I just tried to use the rest-server to backup my data between two CentOS-systems.
When I tried to connect to the server which was listening on port 8000:
"restic -r rest:http://server_ip:8000/path/to/my/repo backup /some_data"
I got this error:
"Fatal: unable to open config file: unexpected HTTP response (403): 403 AuthorizedOnly Is there a repository at the following location? rest:http://host:8000/path/to/my/repo"
The server-application just tells me that it listens on my port.
Moreover, I do not see any response on the server.
I ran rest-server with the command:
"rest-server --no-auth --listen ":8000" --path /tmp/restic"
When I verified that the socket listens on the correct port with netstat, it gave me this output:
"tcp6 0 0 :::8000 :::* LISTEN"
As I wondered about the tcp6, I tried to check the connection by doing a telnet on this port which worked fine:
"tcp6 0 0 server_ip:8000 client_ip:any_forworded_port ESTABLISHED"
In my opinion it’s not a network-based issue.
So either I am doing a stupid mistake or something in my environment is crappy.
Few more environment details:
-> OS: both CentOS 7 (same kernel ver.: 3.10.0-693.21.1.el7.x86_64)
-> installed both applications from source as the instructions told me
-> both hosts are virtualized on a bare-metal Hypervisor
Thanks for your help!