Giter VIP home page Giter VIP logo

Comments (9)

adminx01 avatar adminx01 commented on June 6, 2024 1

anyway thanks!

from dwarfs.

mhx avatar mhx commented on June 6, 2024

Interesting. I don't think this error comes directly from dwarfs. Cannot with a capital C doesn't occur even once in the source code.

Can you please provide a full example that would reproduce this error?

from dwarfs.

adminx01 avatar adminx01 commented on June 6, 2024

This issue might actually be caused by some setting me and my team use in our scripts. however i only started seeing this error after 0.7 so naturally I'm more suspicious towards that.
dummy-test.tar.gz

I attached an archive with a dummy dwarfs image and 2 scripts, one for mounting and one for unmounting.

Run the mounting one first and then the unmount one where I expect you to see the output:

Cannot stat file /proc/814/fd/0: Permission denied
Cannot stat file /proc/814/fd/1: Permission denied
Cannot stat file /proc/814/fd/2: Permission denied
Cannot stat file /proc/814/fd/3: Permission denied
Cannot stat file /proc/814/fd/4: Permission denied
Cannot stat file /proc/814/fd/5: Permission denied
Cannot stat file /proc/814/fd/6: Permission denied
Cannot stat file /proc/814/fd/7: Permission denied
Cannot stat file /proc/814/fd/9: Permission denied
Cannot stat file /proc/814/fd/10: Permission denied
Cannot stat file /proc/814/fd/11: Permission denied
Cannot stat file /proc/814/fd/12: Permission denied
Cannot stat file /proc/814/fd/13: Permission denied
Cannot stat file /proc/814/fd/14: Permission denied
Cannot stat file /proc/814/fd/15: Permission denied
Cannot stat file /proc/814/fd/16: Permission denied
Cannot stat file /proc/814/fd/19: Permission denied
Cannot stat file /proc/814/fd/20: Permission denied
Cannot stat file /proc/814/fd/21: Permission denied
Cannot stat file /proc/814/fd/23: Permission denied
Cannot stat file /proc/814/fd/24: Permission denied
Cannot stat file /proc/814/fd/25: Permission denied
Cannot stat file /proc/814/fd/36: Permission denied
Cannot stat file /proc/814/fd/37: Permission denied
Cannot stat file /proc/814/fd/38: Permission denied
Cannot stat file /proc/814/fd/39: Permission denied
Cannot stat file /proc/814/fd/40: Permission denied
Cannot stat file /proc/814/fd/41: Permission denied
Cannot stat file /proc/814/fd/42: Permission denied
Cannot stat file /proc/814/fd/43: Permission denied
Cannot stat file /proc/814/fd/44: Permission denied
Cannot stat file /proc/814/fd/45: Permission denied
Cannot stat file /proc/814/fd/46: Permission denied
Cannot stat file /proc/1049/fd/0: Permission denied
Cannot stat file /proc/1049/fd/1: Permission denied
Cannot stat file /proc/1049/fd/2: Permission denied
Cannot stat file /proc/1049/fd/3: Permission denied
Cannot stat file /proc/1049/fd/4: Permission denied
Cannot stat file /proc/1049/fd/5: Permission denied
Cannot stat file /proc/1049/fd/6: Permission denied
Cannot stat file /proc/1049/fd/7: Permission denied
Cannot stat file /proc/1049/fd/8: Permission denied
Cannot stat file /proc/1049/fd/9: Permission denied
Cannot stat file /proc/1049/fd/10: Permission denied
Cannot stat file /proc/1049/fd/11: Permission denied
Cannot stat file /proc/1049/fd/12: Permission denied
Cannot stat file /proc/1049/fd/13: Permission denied
Cannot stat file /proc/1049/fd/14: Permission denied
Cannot stat file /proc/1049/fd/15: Permission denied
Cannot stat file /proc/1049/fd/16: Permission denied
Cannot stat file /proc/1049/fd/17: Permission denied
Cannot stat file /proc/1049/fd/18: Permission denied
Cannot stat file /proc/1049/fd/19: Permission denied
Cannot stat file /proc/1049/fd/20: Permission denied
Cannot stat file /proc/1049/fd/21: Permission denied
Cannot stat file /proc/1049/fd/22: Permission denied
Cannot stat file /proc/1049/fd/23: Permission denied
Cannot stat file /proc/1049/fd/24: Permission denied
Cannot stat file /proc/1049/fd/25: Permission denied
Cannot stat file /proc/1049/fd/26: Permission denied
Cannot stat file /proc/1049/fd/27: Permission denied
/***/test/files/.groot-mnt:  5039
rm: cannot remove '/***/test/files/.groot-work': Directory not empty
Unmounted game.

from dwarfs.

adminx01 avatar adminx01 commented on June 6, 2024

Also I am on GNU/Linux Arch. If you have a distro which is slower on updates and is perhaps on an older version of fuse then that could yield a different result, if fuse is the culprit.

from dwarfs.

mhx avatar mhx commented on June 6, 2024

Pretty certain the error gets emitted by the fuser call in unmount.sh, so it's likely neither DwarFS nor FUSE.

from dwarfs.

mhx avatar mhx commented on June 6, 2024

I cannot reproduce the behaviour (on an up-to-date Gentoo system), but I do see

$ strings /bin/fuser | grep 'Cannot stat file'       
Cannot stat file %s: %s

as well as

$ strace fuser -k tmp 2>&1 | grep 'stat.*/proc/' | wc -l
3100

Perhaps you can gain some insight by checking what the processes belonging to the PIDs in the error message actually are. If the user running fuser -k doesn't have permission to access/kill these processes, then the error seems reasonable to me.

from dwarfs.

mhx avatar mhx commented on June 6, 2024

For completeness, I'm using fuser from psmisc-23.6.

from dwarfs.

adminx01 avatar adminx01 commented on June 6, 2024

yep fuser -k was the issue. weird that it started giving these errors out of nowhere. we use fuser -k to force all processes of the program to close in order to make sure dwarfs can be unmounted immediately. these errors cause confusion to users though. i should find a more silent way to go about it

from dwarfs.

mhx avatar mhx commented on June 6, 2024

As I said, probably worth checking what the problematic processes are.

from dwarfs.

Related Issues (20)

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.