-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoFS hangs #230
Comments
Sorry for the slow response. I don't use autofs so I maybe of limited help here. What happens if you send goofys SIGQUIT when it hangs? You may need to write a wrapper script to redirect the output to a file |
I have the same issue. autofs configured with debugging enabled. I have scrubbed out my bucket name with the string BUCKET_NAME I am able to mount it from the command line. Nov 16 16:51:56 web6 automount[2121]: handle_packet: type = 3 |
hi @kahing,
But, I have to access it "twice at the first" (e.g using command But first thing first, here is my environment :
And here is the configuration of the autofs (more about autofs configuration for fuse, see here) the
|
@kahing any ideas on this? |
We've been able to replicate this as well |
Checking the stack trace
So it seems to wait for something. I tried to use a minimum script to call the executable with a working behavior. I resulted in
Removing any of the stream redirections resulted in the same behavior as using the It is also interesting that the mount is performed 4-5 times when using the above script ( |
UP! |
@darkdragon-001 Not sure to follow everything: is using your |
I experimented with the goofy2 script and observed the same behavior: it works with it and the mountpoint is mounted multiple times:
Other infos:
|
Trying to mount bucket with goofys using autofs, but..
When I try to cd into the mount location, the terminal process hangs and mounting obviosly doesn't work:
goofys --version goofys version 0.0.17-3d40e98b163a797e800550a30e950dc06f7229b1
Trying to access autofs-mounted bucket:
[ec2-user@ip-192-168-1-81 ~]$ cd /data/app ^C^C-bash: cd: /data/app: Interrupted system call
Content of autofs master map (/etc/auto.master)
/data /etc/auto.data --ghost --timeout=10
/etc/auto.data
app -fstype=fuse,ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666 :/usr/bin/goofys\#bucket
/var/log/messages output
26 14:17:45 ip-192-168-1-81 automount[29215]: mounted indirect on /data with timeout 300, freq 75 seconds
Sep 26 14:17:45 ip-192-168-1-81 automount[29215]: st_ready: st_ready(): state = 0 path /data
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: handle_packet: type = 3
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: handle_packet_missing_indirect: token 172, name app, request pid 18912
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: attempting to mount entry /data/app
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: lookup_mount: lookup(file): looking up app
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: lookup_mount: lookup(file): app -> -fstype=fuse,ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666 :/usr/bin/goofys#bucket
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: parse_mount: parse(sun): expanded entry: -fstype=fuse,ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666 :/usr/bin/goofys#bucket
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: parse_mount: parse(sun): gathered options: fstype=fuse,ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: parse_mount: parse(sun): dequote(":/usr/bin/goofys#bucket") -> :/usr/bin/goofys#bucket
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: parse_mount: parse(sun): core of entry: options=fstype=fuse,ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666, loc=:/usr/bin/goofys#bucket
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: sun_mount: parse(sun): mounting root /data, mountpoint app, what /usr/bin/goofys#bucket, fstype fuse, options ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: do_mount: /usr/bin/goofys#bucket /data/app type fuse options ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666 using module generic
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: mount_mount: mount(generic): calling mkdir_path /data/app
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: mount_mount: mount(generic): calling mount -t fuse -s -o ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666 /usr/bin/goofys#bucket /data/app
Sep 26 14:18:35 ip-192-168-1-81 automount[29215]: spawn_mount: mtab link detected, passing -n to mount
Sep 26 14:19:26 ip-192-168-1-81 automount[29215]: st_expire: state 1 path /data
Sep 26 14:19:26 ip-192-168-1-81 automount[29215]: expire_proc: exp_proc = 140674273302272 path /data
Sep 26 14:19:26 ip-192-168-1-81 automount[29215]: expire_cleanup: got thid 140674273302272 path /data stat 1
Sep 26 14:19:26 ip-192-168-1-81 automount[29215]: expire_cleanup: sigchld: exp 140674273302272 finished, switching from 2 to 1
Sep 26 14:19:26 ip-192-168-1-81 automount[29215]: st_ready: st_ready(): state = 2 path /data
If I stop the autofs-process (which I have to kill -9 by the way), I am perfectly capable of executing:
# mount -t fuse -s -o ro,_netdev,allow_other,--region=eu-central-1,--debug_fuse,--debug_s3,--file-mode=0666 /usr/bin/goofys#bucket /data/app
.. i works without issues. Same does:
# goofys --region=eu-central-1 bucket /data/app
It seems like it might be the combination of autofs and fuse causing the problem? Please help 👍
P.S. Mounting ro or rw makes no difference. And yes, my AWS Credentials are present in /root/.aws/credentials.
The text was updated successfully, but these errors were encountered: