Code Monkey home page Code Monkey logo

Comments (6)

EeeMt avatar EeeMt commented on May 25, 2024

什么环境下出现的呢? ide, jar包(java -jar)还是什么?

from phone-number-geo.

wutongshu-master avatar wutongshu-master commented on May 25, 2024

linux环境下,重新发布下就OK了,但是现在又出现这种情况

from phone-number-geo.

wutongshu-master avatar wutongshu-master commented on May 25, 2024

请问有解决办法吗,今天又出现了

from phone-number-geo.

EeeMt avatar EeeMt commented on May 25, 2024

我google了一下报错信息, 对于Stale file handle的解释可以参考如下解释:

When the directory is deleted, the inode for that directory (and the inodes for its contents) are recycled. The pointer your shell has to that directory's inode (and its contents's inodes) are now no longer valid. When the directory is restored from backup, the old inodes are not (necessarily) reused; the directory and its contents are stored on random inodes. The only thing that stays the same is that the parent directory reuses the same name for the restored directory (because you told it to).

Now if you attempt to access the contents of the directory that your original shell is still pointing to, it communicates that request to the file system as a request for the original inode, which has since been recycled (and may even be in use for something entirely different now). So you get a stale file handle message because you asked for some nonexistent data.

When you perform a cd operation, the shell reevaluates the inode location of whatever destination you give it. Now that your shell knows the new inode for the directory (and the new inodes for its contents), future requests for its contents will be valid.
出处: What does 'stale file handle' in Linux mean?

猜测可能的原因: jar包(或者其父目录)被删除, 或者删除了又恢复了(inode已改变, 参考上文引用); 或者重新发版的过程是先覆盖jar包再重启服务;
另外很多帖子提到了nfs, 不知道你是不是把jar放在nfs上的, 如果是的话, 可以尝试更改存储位置.

from phone-number-geo.

wutongshu-master avatar wutongshu-master commented on May 25, 2024

谢谢回复,因为jar包里存在log日志文件,建议剔除噢

from phone-number-geo.

EeeMt avatar EeeMt commented on May 25, 2024

是说我传到maven仓库的jar包里有日志文件吗, 没有啊

from phone-number-geo.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.