Comments (29)
That's odd, it worked fine for me. Could you double check that you are at the latest revision?
On Nov 7, 2015 13:39, Danny Greer [email protected] wrote:used goofys#bucketname /mnt/mountpoint fuse allow_other,--file-mode=0777,--dir-mode=0777,--uid="33,--gid="33",--storage-class="REDUCED_REDUNDANCY" in /etc/fstab.
sudo mount /mnt/mountpoint mounted the volume with the following messages left open in foreground:
2015/11/07 21:34:10.777609 s3.INFO Switching from region 'us-west-2' to 'us-east-1'
2015/11/07 21:34:10.816434 main.INFO File system has been successfully mounted.
CTRL-C unmounted the volume.
—Reply to this email directly or view it on GitHub.
from goofys.
goofys -v
goofys version 0.0.2
Same after running:
go get github.com/kahing/goofys
go install github.com/kahing/goofys
from goofys.
What's the git revision?
On Nov 7, 2015 3:56 PM, Danny Greer [email protected] wrote:goofys -v
goofys version 0.0.2
—Reply to this email directly or view it on GitHub.
from goofys.
Sorry, I don't know how to tell.
Tried "git pull" from within the src directory and it says "Already up-to-date."
from goofys.
The -f option shows in --help but makes no difference
from goofys.
I cannot reproduce this issue. Could you verify that go install is installing goofys to the same place mount is running it from?
from goofys.
which goofys shows /home/ubuntu/.gvm/pkgsets/go1.5.1/global/bin/goofys
I delete all trace of goofys from the go directories, then ran get and install again. Same problem. Should I send you my binary?
from goofys.
How does mount run goofys from /home/ubuntu/.gvm/pkgsets/go1.5.1/global/bin/goofys ?
from goofys.
"/home/ubuntu/.gvm/pkgsets/go1.5.1/global/bin/goofys bucketname /mnt/mountpoint" ran in background.
Copy or symlink goofys binary to /usr/bin or /bin so that I am able to use fstab and it runs in foreground.
from goofys.
This is my fstab entry:
goofys#bucketname /mnt/mountpoint fuse allow_other,--file-mode=0777,--dir-mode=0777,--uid="33,--gid="33",--storage-class="REDUCED_REDUNDANCY" 0 0
from goofys.
so if you run /usr/bin/goofys bucketname /mnt/mountpoint
, it runs in foreground? Even if /usr/bin/goofys
is identical to /home/ubuntu/.gvm/pkgsets/go1.5.1/global/bin/goofys
? That doesn't make sense to me.
from goofys.
no run from the commandline it is working fine, only when I add the entry above to fstab and type "sudo mount /mnt/mountpoint" it runs in foreground.
from goofys.
Sounds like you are not running the same goofys then. Try
$ sudo strace -f mount /mnt/mountpoint >& xout
$ grep execve xout
and compare the goofys mount
is executing with /home/ubuntu/.gvm/pkgsets/go1.5.1/global/bin/goofys
from goofys.
ubuntu@archive:~$ sudo strace -f mount /mnt/cpirepsarchive.s3/ >& xout
^Cubuntu@archive:$ grep execve xout$ ll
execve("/bin/mount", ["mount", "/mnt/mountpoint/"], [/* 15 vars /]) = 0
[pid 6562] execve("/sbin/mount.fuse", ["/sbin/mount.fuse", "goofys#bucketname", "/mnt/mountpoint", "-o", "rw,allow_other,--file-mode=0777,"...], [/ 11 vars /]) = 0
[pid 6562] execve("/bin/sh", ["/bin/sh", "-c", "'goofys' 'bucketname' '/mnt/"...], [/ 12 vars /]) = 0
[pid 6563] execve("/bin/goofys", ["goofys", "bucketname", "/mnt/mountpoint", "-o", "rw,allow_other,--file-mode=0777,"...], [/ 13 vars /]) = 0
[pid 6566] execve("/home/ubuntu/goofys", ["goofys", "bucketname", "/mnt/mountpoint", "-o", "rw,allow_other,--file-mode=0777,"...], [/ 14 vars /]) = -1 ENOENT (No such file or directory)
[pid 6569] execve("/bin/fusermount", ["fusermount", "-o", "dev,suid,default_permissions,fsn"..., "--", "/mnt/mountpoint"], [/ 15 vars /] <unfinished ...>
[pid 6569] <... execve resumed> ) = 0
[pid 6572] execve("/bin/mount", ["/bin/mount", "--no-canonicalize", "-i", "-f", "-t", "fuse", "-o", "rw,default_permissions,allow_oth"..., "bucketname", "/mnt/mountpoint"], [/ 0 vars */]) = 0
ubuntu@archive:
total 27360
I see a problem here "/home/ubuntu/goofys" There is no goofys in the home directory. I'll check paths, and reboot.
from goofys.
[pid 6563] execve("/bin/goofys", ["goofys", "bucketname", "/mnt/mountpoint", "-o", "rw,allow_other,--file-mode=0777,"...], [/ 13 vars /]) = 0
[pid 6566] execve("/home/ubuntu/goofys", ["goofys", "bucketname", "/mnt/mountpoint", "-o", "rw,allow_other,--file-mode=0777,"...], [/ 14 vars /]) = -1 ENOENT (No such file or directory)
What's /bin/goofys
? mount shouldn't run both /bin/goofys
and /home/ubuntu/goofys
(which doesn't exist because execve
is returning ENOENT
)
from goofys.
/bin/goofys is where I copied /home/ubuntu/.gvm/pkgsets/go1.5.1/global/bin/goofys.
from goofys.
So what's launching /home/ubuntu/goofys? I pushed another commit for additional error check, could you rebuild and try again?
from goofys.
I've rebooted go get and go install again and no longer get any output from:
$ sudo strace -f mount /mnt/mountpoint >& xout
$ grep exec xout
from goofys.
Correction. I get:
execve("/bin/mount", ["mount", "/mnt/mountpoint"], [/* 15 vars */]) = 0
from goofys.
The new build returns:
ubuntu@ip-10-0-0-27:~$ sudo mount /mnt/mountpoint/
panic: unable to daemonize: fork/exec /home/ubuntu/goofys: no such file or directory
goroutine 1 [running]:
main.main.func1(0xc820071b00)
/home/ubuntu/.gvm/pkgsets/go1.5.1/global/src/github.com/kahing/goofys/main.go:152 +0x503
github.com/codegangsta/cli.(*App).Run(0xc8200719e0, 0xc820084280, 0x6, 0x8, 0x0, 0x0)
/home/ubuntu/.gvm/pkgsets/go1.5.1/global/src/github.com/codegangsta/cli/app.go:180 +0x1028
main.main()
/home/ubuntu/.gvm/pkgsets/go1.5.1/global/src/github.com/kahing/goofys/main.go:191 +0xf6
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/home/ubuntu/.gvm/gos/go1.5.1/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [runnable]:
os/signal.loop()
/home/ubuntu/.gvm/gos/go1.5.1/src/os/signal/signal_unix.go:20
created by os/signal.init.1
/home/ubuntu/.gvm/gos/go1.5.1/src/os/signal/signal_unix.go:28 +0x37
from goofys.
I just built and ran on another ubuntu 14.04 server and got the same problem:
ubuntu@devrs:~$ sudo mount /mnt/cpisyndicationarchive.goofys
panic: unable to daemonize: fork/exec /home/ubuntu/goofys: no such file or directory
Maybe how I'm installing go? http://www.hostingadvice.com/how-to/install-golang-on-ubuntu/
from goofys.
Thanks for helping me debug this issue! I couldn't reproduce this problem because I do all my test in the source dir, where the original binary exists. The issue is due to sevlyar/go-daemon#8
from goofys.
Thanks for open sourcing this much needed alternative to the unreliable S3FS and RIOFS.
from goofys.
Hello,
I have the same issue.
fstab and autofs not working.
Any solution?
debug shows:
mounted indirect on /mnt/goofys with timeout 300, freq 75 seconds
ghosting enabled
attempting to mount entry /mnt/goofys/panthermedia-test
2018/06/07 12:47:03.534282 s3.INFO Switching from region 'us-east-1' to 'eu-west-1'
2018/06/07 12:47:03.572287 main.INFO File system has been successfully mounted.
but ls /mnt/goofys/panthermedia-test/ not returning
from goofys.
Getting the same thing, oddly it worked great for about a week, not sure what could have changed but im in the same boat as everyone else here now, everything i've tried results in this same error.
from goofys.
What's "the same thing"? This issue was fixed 3 years ago. Could you elaborate more since you are likely not having the exact same issue (even though the symptom maybe similar)
from goofys.
s3.INFO Switching from region 'us-east-1' to 'us-west-2'
May 30 10:45:18 cmickelson-workstation /home/cmickelson/Go/bin/goofys[9868]: main.FATAL Mounting file system: Mount: Statting mount point: stat /home/cmickelson/Remote/LP/: transport endpoint is not connected
the same error's as stated above.
I dont know where the us-east-1 region is coming from, aws config is set to us-west-2, the command is simply goofys . There is no rush here, I already have a work around for the time being, but thank you for the quick reply
from goofys.
if you run mount
, do you see a stale mount?
from goofys.
@kahing Thank you, yes I just had to unmount with fusermount -u /path/to/mnt and rerun goofys. Thanks again for such a timely reponse.
from goofys.
Related Issues (20)
- Can't access subdir from top dir even as a root user
- Deprecated Azure API
- main.ERROR Unable to access '<bucket_name>': permission denied HOT 3
- Feature Request: Support s3 new checksums crc32/crc32c/sha1/sha256
- Goofys work with contabo object-storage HOT 2
- Operation to mounted Goofys S3 does not respond
- ReadDir inode leak causes memory leak
- mount with ceph rgw got error ,ceph version is 18.2.1
- Improvement request: set op.Handle as point to FileHandle/DirHandle
- can not compile with go1.16
- Building leads to [email protected]: retracted by module author
- certificate has expired or is not yet valid HOT 3
- Goofys mount is not reloading inside container
- Disable multipart upload HOT 1
- mounting, listing and reading file works, writing doesn't HOT 1
- In kubernetes when killing pod with goffys container, pod stuck in terminating. exit code 137. HOT 2
- Process exits with error during copy of file under goofys mount point
- Failed deleting files HOT 1
- Any luck building this on mac osx? Brew and go have both moved on HOT 2
- How to mount the Blob/Data Lake containers with different Azure Storage Accounts via /etc/fstab ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goofys.