From 616aad6403e4f8235e4ee90cb6de9041b0c4d99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 7 Mar 2025 11:29:58 +0100 Subject: [PATCH] Added hint to docker install docs, that you need to run sudo with -E command That should prevent isssues like in #882 and #871 --- docs/installation/installation_docker.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/installation/installation_docker.md b/docs/installation/installation_docker.md index 5d357ae5..cb24e6c1 100644 --- a/docs/installation/installation_docker.md +++ b/docs/installation/installation_docker.md @@ -201,6 +201,10 @@ You also have to create the database as described above in step 4. You can run the console commands described in README by executing `docker exec --user=www-data -it partdb bin/console [command]` +{: .warning } +> If you run a root console inside the container, and wanna execute commands on the webserver behalf, be sure to use `sudo -E` command (with the `-E` flag) to preserve env variables from the current shell. +> Otherwise Part-DB console might use the wrong configuration to execute commands. + ## Troubleshooting *Login is not possible. Login page is just reloading and no error message is shown or something like "CSFR token invalid"*: