Upspinfs on MacOS fails to copy file

46 views
Skip to first unread message

Rodrigo Schio

unread,
May 7, 2024, 9:53:25 PM5/7/24
to Upspin
When I try to copy a file from my local filesystem to upspin, using the mounted dir, it fails saying the file already exists, but that's not true.

```
Downloads$ cp ./Algorithms-JeffE.pdf ~/u/rodrig...@gmail.com/Public
cp: /Users/rschio/u/rodrig...@gmail.com/Public/Algorithms-JeffE.pdf: File exists

~$ ls -lh u/rodrig...@gmail.com/Public
total 1
-rwx------@ 1 rschio  staff     0B May  7 21:42 Algorithms-JeffE.pdf
-rwx------@ 1 rschio  staff    13B Jan 12 18:11 hello
```

The file appears on the directory but with zero bytes.
This problem doesn't occur when I use the upspin command.
E.g.: upspin cp ./Algorithms-JeffE.pdf rodrig...@gmail.com/Public

David Presotto

unread,
Jul 23, 2024, 6:07:09 PM7/23/24
to Rodrigo Schio, Upspin
I just got my macmini working again, rebuilt it, added macfuse, go, upspin sources and rebuilt.  Upspinfs works for me:

/Users/presotto/ufs/pres...@gmail.com
newminime:pres...@gmail.com presotto$ cp ~/.envrc envrc
newminime:pres...@gmail.com presotto$ cat envrc
 #!/bin/bash
...
newminime:pres...@gmail.com presotto$ rm envrc
total 40
drwx------  1 presotto  staff      0 Dec 31  1969 Group
-rwx------  1 presotto  staff  18944 Dec 14  2017 apps.tar
drwx------  1 presotto  staff      0 Jan 30  2018 bin
drwx------  1 presotto  staff      0 Nov 13  2017 flying
drwx------  1 presotto  staff      0 Jan 30  2018 pkg
drwx------  1 presotto  staff      0 Dec 31  1969 private
drwx------  1 presotto  staff      0 Dec 11  2020 public
-rwx------  1 presotto  staff    910 Jul 23 14:55 quux
drwx------  1 presotto  staff      0 Dec 31  1969 src
drwx------  1 presotto  staff    454 Apr 25  2018 testing
/Users/presotto/ufs/pres...@gmail.com

First attempt failed because I still had an x86 cacheserver.

My recommendation would be to turn off the cacheserver (if you are running it) AND remove all files in  your cache (both the cacheserver and upspinfs have all sorts of cached crap).

If that works, try it again with the cacheserver back on.


--
You received this message because you are subscribed to the Google Groups "Upspin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to upspin+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/upspin/35a0122a-e85f-41c6-954d-66c7165e9392n%40googlegroups.com.

David Presotto

unread,
Jul 23, 2024, 6:10:24 PM7/23/24
to Rodrigo Schio, Upspin
... and if it still doesn't work, its time to turn on the infinite debugging and send me the output.  That is indeed painful, at least for me.

michaelian ennis

unread,
Jul 25, 2024, 11:54:59 AM7/25/24
to David Presotto, Rodrigo Schio, Upspin
I think I saw this recently (three months or so) and I had to remove the local cache directory and it went away.

On Jul 23, 2024, at 15:10, David Presotto <pres...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages