post the systemctl service file
OK, this is the service file and it is unchanged from previous.
[quote="stevecoh1, post:5, topic:48057"]
`systemctl status wopa`
[/quote]
[Unit]
Description= starting RClone mount of my wopa directory with Google Drive
[Service]
Type=notify
User=xxxxxx
#ExecStart=/usr/bin/rclone --log-file=${HOME}/${RCLONE_LOG} --config=${HOME}/${RCLONE_CONF} --log-level=${RCLONE_LOG_LEVEL} mount ${SVCNAME}: "${MOUNT_DIR}"
ExecStart=/usr/bin/rclone -v --syslog --config=/home/xxxxxx/.config/rclone/rclone.conf \
mount wopa: /home/xxxxxx/wopa
ExecStop=/bin/fusermount -u /home/xxxxxx/wopa
#Restart info
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
I think what I am missing is how to configure the google drive side to map to the wopa subdirectory of my google drive root.. I tried to do that with with the "root folder id" in rclone but that failed.
but that is what the mount command does.
sorry, not understanding what the issue is?
Sorry, I edited my post as you were replying. And it's still garbled.
Let me try again. I am trying to use rclone to access only the wopa subdirectory of my Google Drive. This is what I want to rclone and to mount it as /home/xxxxxx/wopa
mount wopa:wopa /home/xxxxxx/wopa
fwiw, do not use systemd, until the command works on the command line
OK, thanks, it is working now, as I want it to so I can let it go there. and thanks for putting up with my many questions.
Somehow, though, it used to work with the command being
mount wopa: /home/xxxxxx/wopa
.
from the rclone docs at Root folder ID
"if the folder you want rclone to use has a URL which looks like
https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh
in the browser,
then you use 1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh
as the root_folder_id
in the config"
Yeah, that was it, @asdffdsa. I vaguely remember doing that in my initial setup of this rclone. We shall see if the thing expires. Thanks again for all your help. You guys are great.
Ok, it's 11 days out from my last post here, and once again the original problem has returned. The file I am rcloning is said not to exist. I think it's because my systemd service did not survive a reboot. It took unmounting the rclone mount, disabling the systemd service, running rclone config again, reenabling and restarting the systemd service, to allow my rclone mount to be seen. What must be done to allow the rclone mount to survive a reboot?
What is output of:
$ sudo systemctl status your_mount_systemd.service
I suggest you train yourself a bit. Great starting points:
Earlier, when there was the problem, this was the output
$ sudo systemctl status wopa
● wopa.service - starting RClone mount of my wopa directory with Google Drive
Loaded: loaded (/etc/systemd/system/wopa.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-10-16 10:03:55 MST; 4s ago
Main PID: 49399 (rclone)
Tasks: 10 (limit: 9298)
Memory: 15.3M (peak: 15.9M)
CPU: 138ms
CGroup: /system.slice/wopa.service
└─49399 /usr/bin/rclone -v --syslog --config=/home/xxxxxx/.config/rclone/rclone.conf mount wopa: /home/xxxxxx/wopa
Oct 16 10:03:55 taormina systemd[1]: Starting wopa.service - starting RClone mount of my wopa directory with Google Drive...
Oct 16 10:03:55 taormina systemd[1]: Started wopa.service - starting RClone mount of my wopa directory with Google Drive.
Now, after I got it going, this is the output
$ sudo systemctl status wopa.service
● wopa.service - starting RClone mount of my wopa directory with Google Drive
Loaded: loaded (/etc/systemd/system/wopa.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-10-16 10:03:55 MST; 4h 32min ago
Main PID: 49399 (rclone)
Tasks: 10 (limit: 9298)
Memory: 27.1M (peak: 29.6M swap: 92.0K swap peak: 96.0K)
CPU: 4.887s
CGroup: /system.slice/wopa.service
└─49399 /usr/bin/rclone -v --syslog --config=/home/xxxxxx/.config/rclone/rclone.conf mount wopa: /home/xxxxxx/wopa
Oct 16 10:03:55 taormina systemd[1]: Starting wopa.service - starting RClone mount of my wopa directory with Google Drive...
Oct 16 10:03:55 taormina systemd[1]: Started wopa.service - starting RClone mount of my wopa directory with Google Drive.
Oct 16 10:07:32 taormina rclone[49399]: 871204.kdbx: Deleted
Oct 16 10:07:32 taormina rclone[49399]: 871204.kdbx.tisKXD: Moved (server-side) to: 871204.kdbx
Your systemd looks ok. I suspect you do something wrong with how you configure client_id. Try to follow my simplified guide which worked in similar cases:
Then recreate your remote configuration
Thanks. I will give this a try.
OK, @kapitainsky, I've now followed your suggestions. It seems to be working. I don't know if it will expire in a week now. Is there a way to tell besides waiting a week?
I suppose I should delete my old account from Google? It doesn't seem to matter, but no point leaving it lying around.
Let us know in a week please if it works or not.
okay, will let you know in a week.
I've looked at deleting the old one, can't see how.
Simply edit config file and delete it. This is probably the easiest. You can find config file location by running:
$ rclone config paths
Config file: /Users/kptsky/.config/rclone/rclone.conf
Cache dir: /Users/kptsky/Library/Caches/rclone
Temp dir: /var/folders/36/02d6s6313zq5k3mfrhg4d8zc0000gn/T
Thanks, but I created a new project in Google Drive API. I want to delete the old one there.
Apparently, the changes you suggested eight days ago have worked. It's been good for more than a week.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.