Hello. I cant seem to get my my dropbox mount service to work on boot
Run the command 'rclone version' and share the full output of the command.
Here is the rclone output information:
rclone v1.61.1
os/version: ubuntu 22.04 (64 bit)
os/kernel: 5.15.0-67-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.19.4
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
I am using drop box advanced business plan
I have been trying to get my service working so dropbox connects on startup. when I followed a template I found online it always gives back this error "Job for opencrypt.service failed because the control process exited with error code."
Below is my code could someone please tell me if they see something wrong. Thank you.
[Unit]
Description=RClone Service Dropbox opencrypt
Wants=network-online.target
After=network-online.target
for execstart the folder (opencrypt) I want to mount to is located in the home section so i thought I would need to use home and then the user as the path. Is this incorrect?
ExecStart=/usr/bin/rclone mount crypt: /home/tex/opencrypt \
This is for allowing users other than the user running rclone access to the mount
--allow-other \
Dropbox is a polling remote so this value can be set very high and any changes are detected via polling.
--dir-cache-time 9999h \
This is setting the file permission on the mount to user and group have the same access and other can read
--umask 002 \
The local disk used for caching
--cache-dir=/cache/opencrypt \
This is used for caching files to local disk for streaming
--vfs-cache-mode full \
This limits the cache size to the value below
--vfs-cache-max-size 160G \
Speed up the reading: Use fast (less accurate) fingerprints for change detection
--vfs-fast-fingerprint \
Set chunk size
--vfs-read-chunk-size 32M \
This limits the age in the cache if the size is reached and it removes the oldest files first
I'm sorry since this is a simple question. How do I make the logs directly? I thought by having them sent to a folder they would be created in a text file. When you say directly do you mean there is a way to have to log read out within the terminal window?
I think this is rclone continually being restarted. That log is in rclone and what it means is that rclone tried to read a password from standard input but couldn't then exited.
So I'd guess you have an encrypted config file.
You'll need to decrypt it or provide rclone the password. You can do this in the env var RCLONE_CONFIG_PASS (there are other ways if you check the docs).
Sir thank you. You are correct my rclone config is encrypted since it will be storing things on a cloud service and I wanted an extra layer of protection. I did not realize that the service script wouldn't be able to read the file. You said I could pass the password in env var. I am very new to linux and when I am in the computer section of linux I do not see env. I do see etc, var and other folders. What path is the location? If I'm missing it my apologies for the stupid question. I know you could probably put it into the service file itself but im unsure if thats much safer than just having it unencrypted
As for whether this is safer than having it unencrypted? Probably I'd say. The password is separate from the encrypted file.
Its quite dificult to make it perfectly safe - you'd have to run an agent to store the password for you. People have done this with gpg agent and ssh agent but that is much more complicated and well outside beginner territory!
Understood so you the current option is to place it into the actual service file. Thank you for the clarification. I was able to get my script work after adding the RCLONE_CONFIG_Pass field to the script. I appreciate your support in resolving my issue.