Am I meant to be able to connect to an insecure repository server?
I’m running the “selfhosters” kopia UnRAID template, which runs a server with --insecure
. I’ve also repeated the problem running a test server locally and trying to connect to it.
If I run kopia repository connect server --url="http://<servername>:51515"
, I get this response:
Connecting to server 'http://<servername>:51515' as 'jorgenman@laptop'...
Enter password to open repository:
ERROR failed to open repository: invalid server address, must be 'https://host:port'
kopia: error: error connecting to API server: invalid server address, must be 'https://host:port', try --help
On the other hand if I run kopia repository connect server --url="https://<servername>:51515"
or kopia repository connect server --url="kopia://<servername>:51515"
, I get this response:
Connecting to server 'https://<servername>:51515' as 'jorgenman@laptop'...
Enter password to open repository:
ERROR failed to open repository: unable to establish session for purpose=: error establishing session: Session(): rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"
kopia: error: error connecting to API server: unable to establish session for purpose=: error establishing session: Session(): rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake", try --help