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

seahub container without internet access #234

Closed
coro1404 opened this issue May 11, 2024 · 1 comment
Closed

seahub container without internet access #234

coro1404 opened this issue May 11, 2024 · 1 comment

Comments

@coro1404
Copy link

Might be problem of my setup - but tried to setup SSO with keycloak which failed with the seahub container logging:

seahub-1 | 2024-05-11 23:26:27,633 [ERROR] seahub.oauth.views:154 oauth_callback HTTPSConnectionPool(host='keycloak.xx.yy', port=443): Max retries exceeded with url: /realms/kendoo/protocol/openid-connect/token (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f6660647af0>: Failed to resolve 'keycloak.xx.yy' ([Errno -3] Try again)"))
seahub-1 | 2024-05-11 23:26:28,074 [INFO] xmlschema:1234 include_schema Resource 'XMLSchema.xsd' is already loaded

entering the container shows no internet access / dns resolution

e3a3b4aa0af2:/# ping keycloak.xx.yy
ping: bad address 'keycloak.xx.yy'

I changed docker-compose.yaml for seahub container to contain also network default - after that ping works and SSO works. Suggesting seahub container should also have default network (but might me my setup) . By the way many changes for SSO between version 10 and 11 so make sure to use most up 2 date documentation.

@ggogel
Copy link
Owner

ggogel commented May 11, 2024

The network is by design declared as internal. See #211 and https://github.com/ggogel/seafile-containerized/wiki/OAuth for reference.

@ggogel ggogel closed this as completed May 11, 2024
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