8000 Error when using restic with rclone · Issue #30 · djmaze/resticker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error when using restic with rclone #30

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

Closed
ghost opened this issue Apr 13, 2020 · 4 comments · Fixed by #83
Closed

Error when using restic with rclone #30

ghost opened this issue Apr 13, 2020 · 4 comments · Fixed by #83
Labels
Milestone

Comments

@ghost
Copy link
ghost commented Apr 13, 2020

Hi, I want to run restic with rclone in order to access my Google Drive. Here is my setup:
I have my docker-compose.yml and my rclone.conf in the same dir (/home). Here is what my docker-compose.yml file looks like:

restic:
      image: mazzolino/restic:latest
      container_name: restic
      volumes:
          - ./rclone.conf:/root/.config/rclone/rclone.conf
          - /home:/data:ro
      environment:
          - BACKUP_CRON=*/5 * * * *
          - RESTIC_REPOSITORY=rclone:backup:backup
          - RESTIC_PASSWORD=password
      restart: unless-stopped

Then I run it doing docker-compose up restic and here is what I get:

Starting restic ... done
Attaching to restic
restic        | Trying to initialize remote repository 'rclone:backup:backup' (in case it has not been initialized yet)
restic        | rclone: 2020/04/13 15:35:27 Failed to save config after 10 tries: Failed to move previous config to backup location: rename /root/.config/rclone/rclone.conf /root/.config/rclone/rclone.conf.old: device or resource busy
restic        | Fatal: create repository at rclone:backup:backup failed: error talking HTTP to rclone: context canceled
restic        | 
restic        | new cron: */5 * * * *

At the first time I thought that it was due to the volumes but even when I remove the - /home:/data:ro volume, I still get the error message.

Thanks for your help !

@ghost ghost changed the title error when using restic with rclone Error when using restic with rclone Apr 13, 2020
@djmaze
Copy link
Owner
djmaze commented Apr 16, 2020

Well, it is due to the volume, but the other one. I don't know rclone but it seems it wants to rename the rconf.conf file in order to make a backup. It is not possible to move a file which has been mounted directly. For rclone to work, you need to not mount the config file itself but a surrounding directory.

Replace:

          - ./rclone.conf:/root/.config/rclone/rclone.conf

with:

          - ./rclone_config:/root/.config/rclone

You need to create the directory ./rclone_config and move your config file in there. Then it should work.

@djmaze
Copy link
Owner
djmaze commented Jun 1, 2020

Closing for now as there was no further feedback.

@djmaze djmaze closed this as completed Jun 1, 2020
@lindsaymarkward
Copy link

I had this same problem and it took a long time to figure out.
@djmaze - can I suggest you add this as either an example/comment in the docker-compose file provided or update the readme to provide an example there?
That would have helped me.

@djmaze
Copy link
Owner
djmaze commented Mar 24, 2021

@lindsaymarkward I found a better solution. See #83

@djmaze djmaze reopened this Mar 24, 2021
@djmaze djmaze added the bug label Mar 24, 2021
@djmaze djmaze added this to the 1.4.1 milestone Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0