[GH-ISSUE #374] input/output error on chgrp / chown #195

Closed
opened 2026-03-04 01:43:09 +03:00 by kerem · 1 comment
Owner

Originally created by @maltorfer on GitHub (Mar 15, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/374

I have input/output errors for chown/chgrp commands. We're using the lastet s3fs-fuse on amazon beanstalk. We can read/write to the directory, but we can't deploy over AWS beanstalk since amazon does some magic with chown/chgrp during deploy and this fails on the S3 mounted directory.

mount command:
s3fs /var/app/content -o nonempty -o uid=498 -o gid=496 -o use_cache=/tmp -o allow_other -o passwd_file=/etc/passwd-s3fs -o mp_umask=002 -d -f

[ec2-user@xx app]$ id -u webapp
498
[ec2-user@xx app]$ id -g webapp
496

[ec2-user@ip-172-31-1-121 app]$ ll /var/app/
total 13
drwxrwxr-x 1 webapp webapp 0 Jan 1 1970 content

[ec2-user@xx app]$ sudo chgrp webapp content
chgrp: changing group of ‘content’: Input/output error

Debug log:
[INF] s3fs.cpp:s3fs_getattr(807): [path=/]
[INF] s3fs.cpp:s3fs_chown(1633): [path=/][uid=4294967295][gid=496]
[ERR] s3fs.cpp:s3fs_chown(1636): Could not change owner for maount point.

I find the the uid pretty strange?

Originally created by @maltorfer on GitHub (Mar 15, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/374 I have input/output errors for chown/chgrp commands. We're using the lastet s3fs-fuse on amazon beanstalk. We can read/write to the directory, but we can't deploy over AWS beanstalk since amazon does some magic with chown/chgrp during deploy and this fails on the S3 mounted directory. mount command: s3fs <bucket> /var/app/content -o nonempty -o uid=498 -o gid=496 -o use_cache=/tmp -o allow_other -o passwd_file=/etc/passwd-s3fs -o mp_umask=002 -d -f [ec2-user@xx app]$ id -u webapp 498 [ec2-user@xx app]$ id -g webapp 496 [ec2-user@ip-172-31-1-121 app]$ ll /var/app/ total 13 drwxrwxr-x 1 webapp webapp 0 Jan 1 1970 content [ec2-user@xx app]$ sudo chgrp webapp content chgrp: changing group of ‘content’: Input/output error Debug log: [INF] s3fs.cpp:s3fs_getattr(807): [path=/] [INF] s3fs.cpp:s3fs_chown(1633): [path=/][uid=4294967295][gid=496] [ERR] s3fs.cpp:s3fs_chown(1636): Could not change owner for maount point. I find the the uid pretty strange?
kerem closed this issue 2026-03-04 01:43:09 +03:00
Author
Owner

@ggtakec commented on GitHub (Mar 22, 2016):

@maltorfer Could not change owner/group for mount point.
If you need to do it, please change those before mounting by s3fs.
(But you can change permission(mode) by mp_umask option.)

Regards,

<!-- gh-comment-id:199652771 --> @ggtakec commented on GitHub (Mar 22, 2016): @maltorfer Could not change owner/group for mount point. If you need to do it, please change those before mounting by s3fs. (But you can change permission(mode) by mp_umask option.) Regards,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#195
No description provided.