Unable to mount remote. Terminal freezes after running command

Hi, I have a mounting problem again on a new machine. Would really appreciate any insight into where I might be going wrong because I tried everything I knew and what I could find online. :frowning:

What is the problem you are having with rclone?

Unable to mount bucket. The command runs, but gets stuck after that. Tried with 2 different access grants. One that gives access to both buckets, other that lets you see one bucket. In both cases, rclone seems to be able to create the remote but it still freezes after running the mount commmand.

Run the command 'rclone version' and share the full output of the command.

  • rclone v1.58.1
  • os/version: rocky 8.6 (64 bit)
  • os/kernel: 5.13.0-40-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Storj DCS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount arthaus_storj_library /mnt/arthaus_buckets/ --allow-other --log-file=/mnt/logs/rclonelog.txt --log-level DEBUG

The rclone config contents with secrets removed.

[arthaus_storj_library]
type = storj
access_grant = "accessgrant"

A log from the command with the -vv flag

2022/07/14 12:47:13 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "mount" "arthaus_storj" "/mnt/arthaus_buckets/" "--allow-other" "--log-file=/mnt/logs/rclonelog.txt" "--log-level" "DEBUG"]
2022/07/14 12:47:13 DEBUG : Creating backend with remote "arthaus_storj"
2022/07/14 12:47:13 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
2022/07/14 12:47:13 DEBUG : fs cache: renaming cache item "arthaus_storj" to be canonical "/arthaus_storj"
2022/07/14 12:47:13 INFO  : Local file system at /arthaus_storj: poll-interval is not supported by this remote
2022/07/14 12:47:13 DEBUG : Local file system at /arthaus_storj: Mounting on "/mnt/arthaus_buckets/"
2022/07/14 12:47:13 DEBUG : : Root:
2022/07/14 12:47:13 DEBUG : : >Root: node=/, err=<nil>
2022/07/14 12:55:48 INFO  : Signal received: interrupt
2022/07/14 12:55:48 ERROR : /mnt/arthaus_buckets/: Unmounted rclone mount
2022/07/14 12:55:48 INFO  : Exiting...
2022/07/14 13:05:57 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "mount" "arthaus_storj_library" "/mnt/arthaus_buckets/" "--allow-other" "--log-file=/mnt/logs/rclonelog.txt" "--log-level" "DEBUG"]
2022/07/14 13:05:57 DEBUG : Creating backend with remote "arthaus_storj_library"
2022/07/14 13:05:57 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
2022/07/14 13:05:57 DEBUG : fs cache: renaming cache item "arthaus_storj_library" to be canonical "/arthaus_storj_library"
2022/07/14 13:05:57 INFO  : Local file system at /arthaus_storj_library: poll-interval is not supported by this remote
2022/07/14 13:05:57 DEBUG : Local file system at /arthaus_storj_library: Mounting on "/mnt/arthaus_buckets/"
2022/07/14 13:05:57 DEBUG : : Root:
2022/07/14 13:05:57 DEBUG : : >Root: node=/, err=<nil>
2022/07/14 13:24:51 INFO  : Signal received: interrupt
2022/07/14 13:24:51 ERROR : /mnt/arthaus_buckets/: Unmounted rclone mount
2022/07/14 13:24:51 INFO  : Exiting...
2022/07/14 13:33:01 Can't set -v and --log-level
2022/07/14 13:34:42 Can't set -v and --log-level

You want to use a colon after the remote name so:

rclone mount arthaus_storj_library: /mnt/arthaus_buckets/ --allow-other --log-file=/mnt/logs/rclonelog.txt --log-level DEBUG
1 Like

Thank you @Animosity022! I can't believe I didn't spot that. Feel very foolish now :sweat_smile:

The command went through quickly this time. However I still don't see my folders from the bucket. I wonder if it might be an access grant issue like last time. I'll try making a new grant and try again.

Here's the log for the current attempt:

2022/07/14 13:51:58 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "mount" "arthaus_storj_library:" "/mnt/arthaus_buckets/" "--allow-other" "--log-file=/mnt/logs/rclonelog.txt" "--log-level" "DEBUG"]
2022/07/14 13:51:58 DEBUG : Creating backend with remote "arthaus_storj_library:"
2022/07/14 13:51:58 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
2022/07/14 13:51:58 Failed to create file system for "arthaus_storj_library:": didn't find section in config file

Thank you again for your help. I'll come report back in a bit, if the access grant thing works out.

Looks like you are running the command as root, but did you create the config as another user? Normally, it's not recommended to run as root.

Start with something simple like a rlcone about command or rclone lsf

rclone about arthaus_storj_library:
rclone lsf arthaus_storj_library:

I ran it as sudo, not as root (would it be the same?, sorry I'm still learning). I remember reading in the forum last time that root is not recommended and --allow-other is the correct method. I had to use sudo because there was an error about permissions for the log file:

 Failed to open log file: open /mnt/logs/rclonelog.txt: permission denied

I ran these commands as you suggested:
rclone about arthaus_storj_library:

Failed to about: FS sj:// doesn't support about

rclone lsf arthaus_storj_library:

arthaus-library/

Sudo is basically switch over to run to run a command as root.

felix@gemini:~$ sudo whoami
root

You'd want to put the log somewhere you can write not use root. Use something like /home/whateveruseryourare/logs and make a directory to put the logs.

You'd need to create the directory first.

When you share commands since I can't see what you are doing, it's very helpful to type and share the entire content.

felix@gemini:~$ rclone lsf GD:
Copy of Bell Curve - II.xlsx
Copy of Bell Curve - II.xlsx
Joeisms.docx
RDManager
TestDoc.docx
Untitled spreadsheet.xlsx
appsheet/
blah/
crypt/
hosts
jellyfish-400-mbps-4k-uhd-hevc-10bit.mkv
nothosts
test/
test.tar
test.xlsx
test.xlsx
testcopy

and

felix@gemini:~$ rclone about GD:
Total:   16 GiB
Used:    1.402 GiB
Free:    11.433 GiB
Trashed: 10.134 KiB
Other:   3.165 GiB

As I can't tell exactly what you ran so I'm not sure on what to expect on the output that's coming out.

1 Like

Hi @Animosity022. I think I have a permissions problem. I made a new logs folder under /home/ and rclone still gives me the permission denied error. I believe my account is in the sudoers user group, so not sure why the permissions are so restrictive.

Here's a copy of the commands I ran:

[vsuvarna@arthaus arthaus_buckets]$ cd /home/
[vsuvarna@arthaus home]$ ls
vsuvarna
[vsuvarna@arthaus home]$ mkdir logs
mkdir: cannot create directory ‘logs’: Permission denied
[vsuvarna@arthaus home]$ sudo mkdir logs
[vsuvarna@arthaus home]$ ls
logs  vsuvarna
[vsuvarna@arthaus home]$ cd /
[vsuvarna@arthaus /]$ rclone mount arthaus_storj_library /mnt/arthaus_buckets/ --allow-other --log-file=/home/logs/rclonelog.txt --log-level DEBUG -vv
2022/07/14 14:15:56 Failed to open log file: open /home/logs/rclonelog.txt: permission denied

Really appreciate your patience and time for guiding me through this @Animosity022

You need to make it in your user home directory.

felix@gemini:~$ pwd
/home/felix
felix@gemini:~$ mkdir testlog

My user is felix so I can use my own home directory for logs.

So in your case.

cd
pwd
mkdir logs
ls

You should see a directory called logs and you'd you /home/username/logs replacing with your actual user name.

My case is /home/felix/logs/rclone.log

1 Like

That makes sense. I was mistaken that /home/ sits under /username/ and therefore every user may have their own home directory. Really sorry about these noob mistakes.

I was able to make a logs directory and run the command without sudo. However the log says fusermount doesnt have write permissions. Please take a look:

2022/07/14 14:47:47 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "mount"                                            "arthaus_storj:" "/mnt/arthaus_buckets/" "--allow-other" "--log-file=/home/vsuvarna/logs/rclonelo                                           g.txt" "--log-level" "DEBUG"]
2022/07/14 14:47:47 DEBUG : Creating backend with remote "arthaus_storj:"
2022/07/14 14:47:47 DEBUG : Using config file from "/home/vsuvarna/.config/rclone/rclone.conf"
2022/07/14 14:47:47 DEBUG : FS sj://: connecting...
2022/07/14 14:47:47 DEBUG : FS sj://: connected: <nil>
2022/07/14 14:47:47 INFO  : FS sj://: poll-interval is not supported by this remote
2022/07/14 14:47:47 DEBUG : FS sj://: Mounting on "/mnt/arthaus_buckets/"
2022/07/14 14:47:47 mount helper error: fusermount: user has no write access to mountpoint /mnt/a                                           rthaus_buckets
2022/07/14 14:47:47 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
2022/07/14 14:49:34 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "mount"                                            "arthaus_storj_library:" "/mnt/arthaus_buckets/" "--allow-other" "--log-file=/home/vsuvarna/logs/                                           rclonelog.txt" "--log-level" "DEBUG"]
2022/07/14 14:49:34 DEBUG : Creating backend with remote "arthaus_storj_library:"
2022/07/14 14:49:34 DEBUG : Using config file from "/home/vsuvarna/.config/rclone/rclone.conf"
2022/07/14 14:49:34 DEBUG : FS sj://: connecting...
2022/07/14 14:49:34 DEBUG : FS sj://: connected: <nil>
2022/07/14 14:49:34 INFO  : FS sj://: poll-interval is not supported by this remote
2022/07/14 14:49:34 DEBUG : FS sj://: Mounting on "/mnt/arthaus_buckets/"
2022/07/14 14:49:34 mount helper error: fusermount: user has no write access to mountpoint /mnt/a                                           rthaus_buckets
2022/07/14 14:49:34 Fatal error: failed to mount FUSE fs: fusermount: exit status 1

I'm trying to look up solutions on the side as well. Thank you again @Animosity022. This would have been 10x more difficult without your help.

Same concept as we did for the log.

You have to make a directory where you can write to so you can mount it.

felix@gemini:~$ rclone mount GD: /home/felix/test
2022/07/14 10:58:53 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /home/felix/test
felix@gemini:~$ mkdir test
felix@gemini:~$ rclone mount GD: /home/felix/test
^C2022/07/14 10:59:07 ERROR : /home/felix/test: Unmounted rclone mount

If you plan to mount in a /mnt location, you'd have to work through the permissions to allow that.

Do you know which of the 3 permission groups (owner, group, public) would rclone fall under? I could try to modify permissions and run it again (unless you advise against it). If that fails again, then I'll do as you suggested to mount in a write friendly folder.

It might be worthwhile to read through something like this:

There's no reason to mount outside of your home directory.

Permissions really don't have anything directly to do with rclone, it's more how you are securing your server setup. If you have multiple users on it, you'd probably want to restrict to your home directory so other people can't get access.

I use a single server and have experience so my setup is more customized to my particular use case which works great for me and my setup.

My goal is simple so the less changes you have to make, start there before making it complex.

1 Like

Thank you animosity, that makes sense. I remember reading this article by DO, but I could use a refresher. I have to step away from the computer now, but I will try to mount it again in a write friendly folder and report back on how it went. Thank you again for your time and patience.

Hi, I wanted to leave an update regarding this problem. It was a permissions problem. I used chown to change the owner of the mounting folder from root to me. Once that was done the same command worked as intended. I want to thank Animosity022 again for their time and patience.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.