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

Show Output of rclone mount command #21

Closed
cron410 opened this issue Jul 26, 2018 · 3 comments
Closed

Show Output of rclone mount command #21

cron410 opened this issue Jul 26, 2018 · 3 comments

Comments

@cron410
Copy link
Contributor

cron410 commented Jul 26, 2018

I'm not overly proficient with bash and I can't find a way to redirect the stdout of the rclone mount command in your start.sh script so users can see errors and any other output of the command. I tried redirecting stderr to stdout with 2>&1 which did not work. Below is the kind of errors I am trying to show in docker logs.

I ran these commands inside the container to find my error. (didn't add a colon to the remote)

/ # /usr/sbin/rclone --config $ConfigPath mount $RemotePath $MountPoint $MountCommands & wait ${!}
Error: unknown command "gcache" for "rclone"
Run 'rclone --help' for usage.
2018/07/26 19:35:26 Fatal error: unknown command "gcache" for "rclone"
[1]+  Done(1)                    /usr/sbin/rclone --config ${ConfigPath} mount ${RemotePath} ${MountPoint} ${MountCommands}
/ # echo "/usr/sbin/rclone --config $ConfigPath mount $RemotePath $MountPoint $MountCommands & wait ${!}"
/usr/sbin/rclone --config  mount gcache /data --allow-other --allow-non-empty --dir-cache-time=160h --cache-chunk-size=10M --cache-info-age=168h --cache-workers=5 --buffer-size=500M --attr-timeout=1s & wait 31
/ # exit

I only see this in docker logs rclone

==================================================
Mounting gcache: to /data at: 2018.07.26-19:37:02
sending SIGTERM to child pid
Unmounting: fusermount -u -z /data at: 2018.07.26-19:52:09
exiting container now
@Mumie-hub
Copy link
Owner

hi, sorry for the late reply.
you still have the problem? My output is working fine.

@cron410
Copy link
Contributor Author

cron410 commented Jul 4, 2019

I think i was hoping for more verbose output on error instead of sending SIGTERM to child pid and Unmounting: fusermount. My run command was misformed and docker was not able to differentiate where my --config file was supposed to be, which ended up being a typo. That's all been sorted out, but I think for new users, it would help to show what the docker run command pieces together from the user's input to form the final rclone mount command.

@Mumie-hub
Copy link
Owner

A debug option has been added

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

2 participants