Skip to content
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

can init repo using rclone, but cannot backup to it or view snapshots #343

Closed
cameronbraid opened this issue Dec 17, 2022 · 4 comments
Closed

Comments

@cameronbraid
Copy link

cameronbraid commented Dec 17, 2022

❯ RUSTIC_PASSWORD=a RUSTIC_REPOSITORY=rclone:live:octane-sites rustic init
key 8d7a5781 successfully added.
repository f23b2bbd successfully created.
❯ RUSTIC_PASSWORD=a RUSTIC_REPOSITORY=rclone:live:octane-sites rustic snapshots
[WARN] Error error sending request for url (http://127.0.0.1:33911/keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a): operation timed out at 736.624523ms, retrying
^C
❯ rclone ls live:octane-sites
      155 config
      362 keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a
❯ RUSTIC_PASSWORD=a RUSTIC_REPOSITORY=rclone:live:octane-sites rustic backup /tmp/a
[WARN] Error error sending request for url (http://127.0.0.1:33931/keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a): operation timed out at 350.420717ms, retrying
❯ rustic --version
rustic v0.4.0
@cameronbraid
Copy link
Author

more verbose :

❯ RCLONE_VERBOSE=1 RUSTIC_PASSWORD=a RUSTIC_REPOSITORY=rclone:live:octane-sites rustic snapshots
[INFO] rclone output: <6>INFO  : Using --user xwYEe5cB6Evl --pass XXXX as authenticated user

[WARN] Error error sending request for url (http://127.0.0.1:33905/keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a): operation timed out at 283.932207ms, retrying
[INFO] rclone output: <6>INFO  : 

[INFO] rclone output: Transferred:                0 B / 0 B, -, 0 B/s, ETA -

[INFO] rclone output: Elapsed time:       1m0.0s

[INFO] rclone output: 

[WARN] Error error sending request for url (http://127.0.0.1:33905/keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a): operation timed out at 461.727815ms, retrying

@cameronbraid
Copy link
Author

even more verbose :

❯ RUSTIC_LOG_LEVEL=debug RCLONE_VERBOSE=1 RUSTIC_PASSWORD=a RUSTIC_REPOSITORY=rclone:live:octane-sites rustic snapshots
[DEBUG] (1) rustic::backend::rclone: starting rclone with args ["serve", "restic", "live:octane-sites", "--addr", "localhost:0"]
[INFO] rclone output: <6>INFO  : Using --user ZJTawHQO4h2V --pass XXXX as authenticated user

[DEBUG] (1) rustic::backend::rclone: using REST backend with url http://ZJTawHQO4h2V:jldcmIJFJ8Xt@127.0.0.1:42703/.
[DEBUG] (3) reqwest::connect: starting new connection: http://127.0.0.1:42703/

[WARN] Error error sending request for url (http://127.0.0.1:42703/keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a): operation timed out at 520.654856ms, retrying
[DEBUG] (3) reqwest::connect: starting new connection: http://127.0.0.1:42703/
[INFO] rclone output: <6>INFO  : 

[INFO] rclone output: Transferred:                0 B / 0 B, -, 0 B/s, ETA -

[INFO] rclone output: Elapsed time:       1m0.0s

[INFO] rclone output: 

[WARN] Error error sending request for url (http://127.0.0.1:42703/keys/8d7a5781fec2de5baeed68791e51060a3a16c3a00e0eab136470df0317d05e3a): operation timed out at 597.556853ms, retrying
[DEBUG] (3) reqwest::connect: starting new connection: http://127.0.0.1:42703/

@cameronbraid
Copy link
Author

ok, I think I have an issue with my s3 server, as rclone can't download files either. it can list them but not copy

so closing this for now.

@aawsome
Copy link
Member

aawsome commented Dec 17, 2022

Unfortunately, rustic is a bit limited when rclone returns errors. If you wait until the retries time out, you'll see the http error produced by rclone. Also rustic tries to detect and differentiate permanent and non-permanent errors, but can do so only by using the http return codes - and rclone in not always able to produce reasonable ones.

To debug the rclone behavior, set the env variable RCLONE_VERBOSE=2. (You can change the rclone behavior via env variables as-you-like as rustic passes all env to rclone)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants