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

0.17 fails to connect to kopia server through ansible #3862

Open
pdarko2 opened this issue May 13, 2024 · 3 comments
Open

0.17 fails to connect to kopia server through ansible #3862

pdarko2 opened this issue May 13, 2024 · 3 comments

Comments

@pdarko2
Copy link

pdarko2 commented May 13, 2024

when connecting to kopia server through ansible playbook, on one server it fails with following in cli-logs log file:

2024-05-13T12:59:07.140308Z INFO kopia/cli Connecting to server 'https://****:51515' as '****'...
2024-05-13T12:59:07.140566Z DEBUG kopia/repo Creating cache directory '/****/.cache/kopia/803ebe9b061d183a' with max size 5242880000
2024-05-13T12:59:07.629546Z DEBUG cache finished initial cache scan	{"cache":"cache-storage","duration":"204.542µs","totalRetainedSize":0,"tooRecentBytes":0,"tooRecentCount":0,"maxSizeBytes":5242880000,"limitBytes":0,"inUsePercent":0}
2024-05-13T12:59:07.629812Z DEBUG kopia/repo establishing new GRPC streaming session (purpose=)
2024-05-13T12:59:07.708029Z ERROR kopia/repo failed to open repository: unable to establish session for purpose=: error establishing session: Session(): rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp: address None: missing port in address"

Connecting 0.17 from command line works; connecting 0.17 from all other servers works. Reverting to kopia 0.16.1, connecting works. URL obviously has address and port, but error line reports them none/missing.

@julio-lopez
Copy link
Collaborator

@pdarko2 is the server address IPv6 by any chance?

@pdarko2
Copy link
Author

pdarko2 commented May 14, 2024

No, name resolves to ipv4, and servers use ipv4 only.

@pdarko2
Copy link
Author

pdarko2 commented May 14, 2024

also, using ansible.builtin.raw instead command/shell seems to work, so it's some specific way ansible calls kopia throgh it's command/shell module.

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