netinvent / npbackup

A secure and efficient file backup solution that fits both system administrators (CLI) and end users (GUI)
GNU General Public License v3.0
141 stars 5 forks source link

rest-server returns bogus result when remote connection sends html error page #39

Closed deajan closed 1 month ago

deajan commented 6 months ago
2023-12-08 14:32:49,351 :: DEBUG :: Running command: ["/usr/local/bin/restic" init --repository-version 2 --compression auto --limit-upload 500000]
2023-12-08 14:32:49,352 :: DEBUG :: Setting GOMAXPROCS to 1
2023-12-08 14:32:49,712 :: DEBUG :: Command "['/usr/local/bin/restic', 'init', '--repository-version', '2', '--compression', 'auto', '--limit-upload', '500000']" returned with exit code "1". Command output was:
2023-12-08 14:32:49,713 :: DEBUG :: STDOUT: Fatal: create repository at rest:https://USER:***@myhost.tld/USER/ failed: config file already exists

2023-12-08 14:32:49,714 :: DEBUG :: Running on_exit callable.
2023-12-08 14:32:49,715 :: INFO :: Repo already initialized.
2023-12-08 14:32:49,716 :: DEBUG :: Running command: ["/usr/local/bin/restic" snapshots --json --limit-upload 500000]
2023-12-08 14:32:49,717 :: DEBUG :: Setting GOMAXPROCS to 1
2023-12-08 14:33:42,181 :: DEBUG :: Command "['/usr/local/bin/restic', 'snapshots', '--json', '--limit-upload', '500000']" returned with exit code "1". Command output was:
2023-12-08 14:33:42,183 :: DEBUG :: STDOUT: List(key) returned error, retrying after 693.009248ms: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 760.178904ms: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 1.010456495s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 1.348040655s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 2.001668959s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 2.321936782s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 4.001640537s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 7.088563909s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 12.024584913s: Decode: invalid character '<' looking for beginning of value
List(key) returned error, retrying after 20.724782293s: Decode: invalid character '<' looking for beginning of value
Fatal: Decode: invalid character '<' looking for beginning of value

Investigate if this is a rest-server issue or a npbackup one