-
Notifications
You must be signed in to change notification settings - Fork 27
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
Domain wildcard issue #206
Comments
Adding context, the same issue is present if I use the following compose file: services:
etebase:
image: victorrds/etebase:latest
container_name: "etebase-basic"
volumes:
- ./etebase_data:/data:rw
- ./etebase_static:${STATIC_PATH}:rw
environment:
SERVER: asgi
SUPER_USER: ${ADMIN_USER}
SUPER_PASS: ${ADMIN_PASS}
depends_on:
- postgres
ports:
- 8001:3735
restart: unless-stopped $ podman-compose up --force-recreate
Error: no container with name or ID "etebase-basic" found: no such container
Error: no container with ID or name "etebase-basic" found: no such container
Error: not all containers could be removed from pod fd1a7a3f717c1f748317d183411fdd0a97950b857408d57622e0c14dfb9ad1ba: removing pod containers
Error: error removing container a70e2ec984aec0028c6902d63553157a8baadd8326f44d078badd3a17093dcbf from pod fd1a7a3f717c1f748317d183411fdd0a97950b857408d57622e0c14dfb9ad1ba: cannot remove container a70e2ec984aec0028c6902d63553157a8baadd8326f44d078badd3a17093dcbf as it is running - running or paused containers cannot be removed without force: container state improper
Error: adding pod to state: name "pod_etebase" is in use: pod already exists
b13501c78f84ca059614f3bea64dc54e278588e46de3f4c682dec07ef31a0f16
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: ------------------------------------------------
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Check permission of /data/etebase-server.ini
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Permissions: Ok
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: ------------------------------------------------
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: ------------------------------------------------
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Check permission of /data/secret.txt
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Permissions: Ok
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: ------------------------------------------------
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: ------------------------------------------------
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Check permission of /data/media
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: /data/media does not exist
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Testing parent directory permissions
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: Permissions: Ok
[etebase] | 2024-07-17T04:06:14+00:00 [Info] [Entrypoint]: ------------------------------------------------
[etebase] | admin
[etebase] | auth
[etebase] | contenttypes
[etebase] | django_etebase
[etebase] | myauth
[etebase] | sessions
[etebase] | token_auth
[etebase] | 2024-07-17T04:06:15+00:00 [Warn] [Entrypoint]: If necessary please run: docker exec -it b13501c78f84 python manage.py migrate
[etebase] | 2024-07-17T04:06:15+00:00 [Info] [Entrypoint]: Starting Etebase
[etebase] | INFO: Started server process [1]
[etebase] | INFO: Waiting for application startup.
[etebase] | INFO: ASGI 'lifespan' protocol appears unsupported.
[etebase] | INFO: Application startup complete.
[etebase] | INFO: Uvicorn running on http://0.0.0.0:3735 (Press CTRL+C to quit)
[etebase] | ERROR: Exception in ASGI application
[etebase] | Traceback (most recent call last):
[etebase] | File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
[etebase] | result = await app( # type: ignore[func-returns-value]
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
[etebase] | return await self.app(scope, receive, send)
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
[etebase] | await super().__call__(scope, receive, send)
[etebase] | File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 122, in __call__
[etebase] | self.middleware_stack = self.build_middleware_stack()
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 109, in build_middleware_stack
[etebase] | app = cls(app=app, *args, **kwargs)
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/trustedhost.py", line 23, in __init__
[etebase] | assert "*" not in pattern[1:], ENFORCE_DOMAIN_WILDCARD
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^
[etebase] | AssertionError: Domain wildcard patterns must be like '*.example.com'.
[etebase] | INFO: 10.89.12.47:60946 - "GET / HTTP/1.1" 500 Internal Server Error
[etebase] | ERROR: Exception in ASGI application
[etebase] | Traceback (most recent call last):
[etebase] | File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
[etebase] | result = await app( # type: ignore[func-returns-value]
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
[etebase] | return await self.app(scope, receive, send)
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
[etebase] | await super().__call__(scope, receive, send)
[etebase] | File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 122, in __call__
[etebase] | self.middleware_stack = self.build_middleware_stack()
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 109, in build_middleware_stack
[etebase] | app = cls(app=app, *args, **kwargs)
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[etebase] | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/trustedhost.py", line 23, in __init__
[etebase] | assert "*" not in pattern[1:], ENFORCE_DOMAIN_WILDCARD
[etebase] | ^^^^^^^^^^^^^^^^^^^^^^
[etebase] | AssertionError: Domain wildcard patterns must be like '*.example.com'.
[etebase] | INFO: 10.89.12.47:60950 - "GET /favicon.ico HTTP/1.1" 500 Internal Server Error
^X^C[etebase] | INFO: Shutting down
[etebase] | INFO: Finished server process [1]
[etebase] |
[etebase] | Aborted! |
Behavior seems to be similar using the
Maybe my system is the problem? |
I had the same issue. It looks like there is a bad default configuration being generated in etebase-server.ini
Removing the extra quotes so it is just Problem line: docker-etebase/context/entrypoint.sh Line 81 in 95ca535
Problem commit: 1d6c9cc |
I'm trying out the 'production' example and having some issues. It seems to start up properly but as soon as I try to load the page etebase crashes.
I added the networks so etebase could find postgres via hostname.
I'm using rootless podman, but I don't think that should make a difference. I also tried running
podman exec -it e73335e543ae python manage.py migrate
to no avial.Any thoughts on why this might be happening?
My .env file:
My compose file:
Podman compose log:
The text was updated successfully, but these errors were encountered: