-
Notifications
You must be signed in to change notification settings - Fork 59
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
unreliable when trying to install via docker / docker compose #440
Comments
Please describe you local setup, which assumptions are not true in your case, what version you tried to install, step by step of you setup process. |
I agree with OP. I am running your premade docker image on Windows docker and I just get the following error message when I browse to the image's url: {"detail":"Not Found"}. Running a GET or POST on http://localhost:8000/api/auth/login/ produces the same error. |
@spam0115 currently this is exactly the state of one of my machines {"detail":"Not Found"} See also https://wiki.bitplan.com/index.php/Papermerge and https://github.com/WolfgangFahl/scan2wiki/blob/main/scripts/papermerge papermerge -l
papermerge_redis | 1:C 25 Aug 2024 06:11:42.823 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
papermerge_redis | 1:C 25 Aug 2024 06:11:42.824 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=1, just started
papermerge_redis | 1:C 25 Aug 2024 06:11:42.824 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
papermerge_worker | Installing dependencies from lock file
papermerge_worker |
papermerge_worker | No dependencies to install or update
papermerge_worker |
papermerge_worker | Installing the current project: papermerge-core (3.0.3)
papermerge_worker | Operations to perform:
papermerge_worker | Apply all migrations: auth, contenttypes, core, sites
papermerge_worker | Running migrations:
papermerge_worker | No migrations to apply.
papermerge_worker | Installing dependencies from lock file
papermerge_worker |
papermerge_worker | Package operations: 6 installs, 0 updates, 0 removals
papermerge_worker |
papermerge_worker | • Installing iniconfig (2.0.0)
papermerge_worker | • Installing packaging (23.2)
papermerge_worker | • Installing pluggy (1.3.0)
papermerge_worker | • Installing tomli (2.0.1)
papermerge_worker | • Installing pytest (7.4.4)
papermerge_worker | • Installing pytest-env (0.8.2)
papermerge_worker |
papermerge_worker | Installing the current project: auth-server (0.6.4)
papermerge_worker | User 'admin' already exists.
papermerge_worker | /core_app/.venv/lib/python3.10/site-packages/celery/platforms.py:829: SecurityWarning: You're running the worker with superuser privileges: this is
papermerge_worker | absolutely not recommended!
papermerge_worker |
papermerge_worker | Please specify a different user using the --uid option.
papermerge_worker |
papermerge_worker | User information: uid=0 euid=0 gid=0 egid=0
papermerge_worker |
papermerge_worker | warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
papermerge_worker |
papermerge_worker | -------------- worker-node-b85aca335454@papermerge v5.3.6 (emerald-rush)
papermerge_worker | --- ***** -----
papermerge_worker | -- ******* ---- Linux-6.8.0-40-generic-x86_64-with-glibc2.36 2024-08-25 08:12:05
papermerge_worker | - *** --- * ---
papermerge_worker | - ** ---------- [config]
papermerge_worker | - ** ---------- .> app: papermerge:0x71dca3a32110
papermerge_worker | - ** ---------- .> transport: memory://localhost//
papermerge_worker | - ** ---------- .> results: disabled://
papermerge_worker | - *** --- * --- .> concurrency: 4 (prefork)
papermerge_worker | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
papermerge_worker | --- ***** -----
papermerge_worker | -------------- [queues]
papermerge_worker | .> celery exchange=papermerge(direct) key=papermerge
papermerge_worker |
papermerge_web | Installing dependencies from lock file
papermerge_web |
papermerge_worker |
papermerge_worker | [2024-08-25 08:12:05,421: WARNING/MainProcess] /core_app/.venv/lib/python3.10/site-packages/celery/worker/consumer/consumer.py:507: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
papermerge_worker | whether broker connection retries are made during startup in Celery 6.0 and above.
papermerge_worker | If you wish to retain the existing behavior for retrying connections on startup,
papermerge_worker | you should set broker_connection_retry_on_startup to True.
papermerge_worker | warnings.warn(
papermerge_worker |
papermerge_worker | [2024-08-25 08:12:05,426: WARNING/MainProcess] /core_app/.venv/lib/python3.10/site-packages/celery/worker/consumer/consumer.py:507: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
papermerge_worker | whether broker connection retries are made during startup in Celery 6.0 and above.
papermerge_worker | If you wish to retain the existing behavior for retrying connections on startup,
papermerge_worker | you should set broker_connection_retry_on_startup to True.
papermerge_worker | warnings.warn(
papermerge_worker |
papermerge_redis | 1:M 25 Aug 2024 06:11:42.824 * monotonic clock: POSIX clock_gettime
papermerge_redis | 1:M 25 Aug 2024 06:11:42.825 * Running mode=standalone, port=6379.
papermerge_redis | 1:M 25 Aug 2024 06:11:42.825 # Server initialized
papermerge_web | No dependencies to install or update
papermerge_redis | 1:M 25 Aug 2024 06:11:42.825 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
papermerge_redis | 1:M 25 Aug 2024 06:11:42.825 * Ready to accept connections
papermerge_web |
papermerge_web | Installing the current project: papermerge-core (3.0.3)
papermerge_web | Operations to perform:
papermerge_web | Apply all migrations: auth, contenttypes, core, sites
papermerge_web | Running migrations:
papermerge_web | No migrations to apply.
papermerge_web | Installing dependencies from lock file
papermerge_web |
papermerge_web | Package operations: 6 installs, 0 updates, 0 removals
papermerge_web |
papermerge_web | • Installing iniconfig (2.0.0)
papermerge_web | • Installing packaging (23.2)
papermerge_web | • Installing pluggy (1.3.0)
papermerge_web | • Installing tomli (2.0.1)
papermerge_web | • Installing pytest (7.4.4)
papermerge_web | • Installing pytest-env (0.8.2)
papermerge_web |
papermerge_web | Installing the current project: auth-server (0.6.4)
papermerge_web | User 'admin' already exists.
papermerge_web | /usr/lib/python3/dist-packages/supervisor/options.py:474: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
papermerge_web | self.warnings.warn(
papermerge_web | 2024-08-25 06:12:09,776 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
papermerge_web | 2024-08-25 06:12:09,787 INFO supervisord started with pid 1
papermerge_web | 2024-08-25 06:12:10,790 INFO spawned: 'tivoli' with pid 81
papermerge_web | 2024-08-25 06:12:10,792 INFO spawned: 'auth_server' with pid 82
papermerge_web | 2024-08-25 06:12:10,794 INFO spawned: 'core' with pid 83
papermerge_web | 2024-08-25 06:12:10,798 INFO spawned: 'nginx' with pid 84
papermerge_web | 2024/08/25 06:12:10 [notice] 84#84: using the "epoll" event method
papermerge_web | 2024/08/25 06:12:10 [notice] 84#84: nginx/1.22.1
papermerge_web | 2024/08/25 06:12:10 [notice] 84#84: OS: Linux 6.8.0-40-generic
papermerge_web | 2024/08/25 06:12:10 [notice] 84#84: getrlimit(RLIMIT_NOFILE): 1048576:1048576
papermerge_web | 2024/08/25 06:12:10 [notice] 84#84: start worker processes
papermerge_web | 2024/08/25 06:12:10 [notice] 84#84: start worker process 85
papermerge_web | 2024-08-25 06:12:12,318 INFO success: tivoli entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
papermerge_web | 2024-08-25 06:12:12,318 INFO success: auth_server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
papermerge_web | 2024-08-25 06:12:12,319 INFO success: core entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
papermerge_web | 2024-08-25 06:12:12,319 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
papermerge_web | INFO: Uvicorn running on http://0.0.0.0:8100 (Press CTRL+C to quit)
papermerge_web | INFO: Started parent process [81]
papermerge_web | INFO: Started server process [95]
papermerge_web | INFO: Waiting for application startup.
papermerge_web | INFO: Application startup complete.
papermerge_web | INFO: Started server process [96]
papermerge_web | INFO: Waiting for application startup.
papermerge_web | INFO: Started server process [94]
papermerge_web | INFO: Waiting for application startup.
papermerge_web | INFO: Application startup complete.
papermerge_web | INFO: Application startup complete. inside the container papermerge -b
ps xww
PID TTY STAT TIME COMMAND
1 ? Ss 0:04 /usr/bin/python3 /usr/bin/supervisord
73 pts/0 Ss+ 0:00 /bin/bash /run_sqlite_web.sh
81 ? S 0:00 /tivoli_app/.venv/bin/python /tivoli_app/.venv/bin/uvicorn tivoli.main:app --workers 3 --host 0.0.0.0 --port 8100
82 ? S 0:00 /auth_server_app/.venv/bin/python /auth_server_app/.venv/bin/uvicorn auth_server.main:app --workers 3 --host 0.0.0.0 --port 4010 --log-config /core_app/logging.yml
83 ? S 0:00 /core_app/.venv/bin/python /core_app/.venv/bin/uvicorn config.asgi:fastapp --workers 4 --host 0.0.0.0 --app-dir /core_app/ --log-config /core_app/logging.yml --port 8000
84 ? S 0:00 nginx: master process /usr/sbin/nginx
93 ? S 0:00 /tivoli_app/.venv/bin/python -c from multiprocessing.resource_tracker import main;main(4)
94 ? S 0:45 /tivoli_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=7) --multiprocessing-fork
95 ? S 0:45 /tivoli_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=9) --multiprocessing-fork
96 ? S 0:45 /tivoli_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=11) --multiprocessing-fork
97 ? S 0:00 /auth_server_app/.venv/bin/python -c from multiprocessing.resource_tracker import main;main(4)
98 ? S 0:44 /auth_server_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=7) --multiprocessing-fork
99 ? S 0:44 /auth_server_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=9) --multiprocessing-fork
100 ? S 0:44 /auth_server_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=11) --multiprocessing-fork
102 ? S 0:00 /core_app/.venv/bin/python -c from multiprocessing.resource_tracker import main;main(4)
103 ? S 0:45 /core_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=7) --multiprocessing-fork
104 ? S 0:45 /core_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=9) --multiprocessing-fork
105 ? S 0:45 /core_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=11) --multiprocessing-fork
106 ? S 0:45 /core_app/.venv/bin/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=5, pipe_handle=13) --multiprocessing-fork
156 pts/0 S+ 0:03 /usr/local/bin/python /usr/local/bin/sqlite_web --host 0.0.0.0 --port 8080 /db/db.sqlite3
210 pts/1 Ss 0:00 /bin/bash
217 pts/1 R+ 0:00 ps xww that is all greek to me |
When trying papermerge i get errors such as the one below or no answer at all. The software seem to be not very robust and make assumptions that are not valid when still tinkering with multiple versions and approaches as are scattered over different sources of information. I tried e.g.
but also found
see also
Effectively papermerge is not accessible for me yet due to these startup problems.
1" 500 177 "http://arche.bitplan.com:8008/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0"
web-1 | Exception in ASGI application
web-1 | Traceback (most recent call last):
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
web-1 | result = await app( # type: ignore[func-returns-value]
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
web-1 | return await self.app(scope, receive, send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/message_logger.py", line 86, in call
web-1 | raise exc from None
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/message_logger.py", line 82, in call
web-1 | await self.app(scope, inner_receive, inner_send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
web-1 | await super().call(scope, receive, send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
web-1 | await self.middleware_stack(scope, receive, send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
web-1 | raise exc
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
web-1 | await self.app(scope, receive, _send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
web-1 | raise exc
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
web-1 | await self.app(scope, receive, sender)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
web-1 | await route.handle(scope, receive, send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
web-1 | await self.app(scope, receive, send)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
web-1 | response = await func(request)
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 299, in app
web-1 | raise e
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 294, in app
web-1 | raw_response = await run_endpoint_function(
web-1 | File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
web-1 | return await dependant.call(**values)
web-1 | File "/auth_server_app/auth_server/main.py", line 148, in verify_endpoint
web-1 | user = db.get_user_uuid(session, UUID(user_id))
web-1 | File "/usr/local/lib/python3.10/uuid.py", line 177, in init
web-1 | raise ValueError('badly formed hexadecimal UUID string')
web-1 | ValueError: badly formed hexadecimal UUID string
The text was updated successfully, but these errors were encountered: