Skip to content
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

MacOSX 10.15.4 makes yas3fs read-only? #186

Open
PenelopeFudd opened this issue Apr 19, 2020 · 0 comments
Open

MacOSX 10.15.4 makes yas3fs read-only? #186

PenelopeFudd opened this issue Apr 19, 2020 · 0 comments

Comments

@PenelopeFudd
Copy link

PenelopeFudd commented Apr 19, 2020

Hi;

Found out that using OSXFuse to mount things in the /tmp directory doesn't work:

While testing that, I found that if I mounted things in my home directory, they would work again.

...except for yas3fs:

$ cd $HOME

$ aws s3 mb s3://my-test-bucket
$ date | aws s3 cp - s3://my-test-bucket/testfile.txt
$ aws s3 cp s3://my-test-bucket/testfile.txt -
Sat 18 Apr 2020 21:29:03 PDT

$ yas3fs --debug -l logfile.txt s3://my-test-bucket my-test-bucket

$ ls -l my-test-bucket
total 4096
drwxr-xr-x@   1 root          wheel  4096 Apr 19  2020 ./
drwxr-xr-x+ 122 PenelopeFudd  staff  3904 Apr 18 21:58 ../
-rwxr-xr-x    1 PenelopeFudd  staff    29 Apr 19  2020 testfile.txt*

$ cd my-test-bucket
$ cat testfile.txt
Sat 18 Apr 2020 21:29:03 PDT
$ date > some-date.txt
-bash: some-date.txt: Permission denied
$ rm testfile.txt
rm: testfile.txt: Permission denied
$ cd ..
$ umount my-test-bucket

$ grep -m1 some-date.txt logfile.txt
Dummy-4 2020-04-18T22:33:28.081 DEBUG getattr -> '/some-date.txt' 'None'

$ grep ^Dummy-4 logfile.txt
Dummy-4 2020-04-18T22:33:26.087 DEBUG statfs '/'
Dummy-4 2020-04-18T22:33:26.220 DEBUG statfs '/'
Dummy-4 2020-04-18T22:33:26.967 DEBUG statfs '/'
Dummy-4 2020-04-18T22:33:27.206 DEBUG statfs '/'
Dummy-4 2020-04-18T22:33:28.081 DEBUG getattr -> '/some-date.txt' 'None'
Dummy-4 2020-04-18T22:33:28.082 DEBUG get_metadata -> '/some-date.txt' 'attr' 'None'
Dummy-4 2020-04-18T22:33:28.082 DEBUG get_key /some-date.txt
Dummy-4 2020-04-18T22:33:28.083 DEBUG get_key not on S3 '/some-date.txt'
Dummy-4 2020-04-18T22:33:28.083 DEBUG get_key no '/some-date.txt'
Dummy-4 2020-04-18T22:33:28.084 DEBUG folder_has_contents '/some-date.txt' 1
Dummy-4 2020-04-18T22:33:28.084 DEBUG has_element '<boto.s3.bucketlistresultset.BucketListResultSet object at 0x1475c7bd0>' 1
Dummy-4 2020-04-18T22:33:28.195 DEBUG has_element '<boto.s3.bucketlistresultset.BucketListResultSet object at 0x1475c7bd0>' KO
Dummy-4 2020-04-18T22:33:28.196 DEBUG get_metadata '/some-date.txt' 'attr' no S3 return None
Dummy-4 2020-04-18T22:33:28.197 DEBUG getattr <- '/some-date.txt' 'None' ENOENT

It looks like MacOSX has changed something (probably in the name of security), and broke yas3fs.

Sigh.

Hope this report helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant