I can't get rclone to mount virtual disk on restart using linux openwrt, I can only mount the disk on first boot, but on restart it doesn't boot again. I have to run the script manually for it to work.
Run the 'rclone version' command and share the complete output of the command.
root@OpenWrt:~# rclone --version
rclone v1.59.1
os/version: openwrt 22.03.0-rc6 (64 bit)
os/kernel: 5.10.134 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.18.4
go/linking: dynamic
go/tags: none
What cloud storage system are you using? (eg Google Drive)
Google drive
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
9/7/2022 10:29:13 Failed to create file system for "gdrive:/": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root? alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": dial tcp: lookup www.googleapis.com on [::1]:53: server misbehaving
A quick guess without knowing anything about openwrt:
The router hasn't fully established connection to the internet when it tries to start the mount, I would therefore (naively) try delaying the start with a 60 seconds sleep or similar.
I already tried to do that and it didn't work.
And amazingly, on other hardware
I managed to work perfectly.
The difference was that instead of installing just the rclone-config package, as the hardware had more space, I also installed the rclone packages (Rclone ("rsync for cloud storage") is a command line program to sync…), rclone-ng (An angular web application for rclone), rclone-webui-react(A full fledged UI for the rclone cloud sync tool.)
I think the way to solution is in the connection.
I just did some tests, an ip conflict is happening, I'm trying to solve it now. When configuring the rclone I did not configure the team-drive in the google account.
Can you tell if this configuration is mandatory if more than one machine wanted to access the same account?
in most cases, using the same config file, can run rclone on any number of machines at the same time,
based on the config file, you can do the same.
that has nothing to do teamdrive.
Finally!!! Finally!!!! Is alive!!!!
hahahahahahah!!!!"
I feel like Dr. Frankenstein, .
Sorry for the schizophrenia, but I'm really happy.
Hello everyone?
I managed to get rclone to mount the virtual disk on boot /restart.
I have a lot to thank, to all of you, and especially to Lynx, from the openwrt forum. Thank you very much. Without you I wouldn't be able to find a solution.
Thank you one more time!
I based it on the Lynx script and it looked like this:
The problem was in an ip conflict that wouldn't let the router connect to googledrive.
What made it difficult to find the problem was the fact that when running the script manually, it worked.
At first I did the tests on a VirtualBox vm, then I put it into production on a TP-Link 1043n router.
So... As we know... Information technology is not an exact science, when we replicate the procedure it fails, .
I did something similar on a Banana-pi R2, but it failed. The script is more like yours though
I had to add a 40 second sleep before the "rclone mount" command. See how it turned out: Preformatted text