Open RCdeWit opened 3 months ago
Hi @RCdeWit 👋🏼
Did bin/console doctrine:migrations:migrate
output any log at all when you ran it? You can check whether the migrations were correctly executed by connection to the database and looking for the tables: there should be around 15 of them, like calendars
, principals
, etc
Being redirected to a 500 page upon login tends to indicate that it cannot find the DB somehow, I'd say, or that some file permissions are not correct
Can you have a look in /var/www/davis/var/log
: there should be a prod.log
file here that should contain more info on the 500 in the PHP realm
Keep me posted!
I believe i'm getting the same error on fresh install of the standalone version. It returns an HTTP 500 Internal Server Error.
@lambolighting this is very likely different — you seem to be missing the APP_ENV=prod
variable?
I get the same error with the ghcr.io/tchapi/davis:latest image.
bin/console doctrine:migrations:migrate
produces:
In StreamHandler.php line 149:
The stream or file "/var/www/davis/var/log/prod.log" could not be opened in
append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: Error thrown while running
command "doctrine:migrations:migrate". Message: "An exception occurred in t
he driver: SQLSTATE[HY000] [2002] Connection refused"
Context: {"exception":{},"command":"doctrine:migrations:migrate","message":
"An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection ref
used"}
And in /var/www/davis/var/log
are no logs, but the folder is owned by root
Interesting @paul-m-koch, thanks for the details
I am trying to get Davis to run on my Synology NAS. I use Portainer to manage my Docker stacks.
I have a reverse proxy hosted elsewhere that connects to my NAS over Tailscale, so I think I need to use the standalone version.
I have adapted the
docker-compose-standalone
to the following:Basically, I have changed the port because Portainer uses
:9000
and the volume to match a directory on my NAS. I have also executedbin/console doctrine:migrations:migrate
through the console of thedocker-standalone
container, although I can't see whether it succeeded.I can access
:8444/dashboard
and get a login page. Whenever I try to log in with theADMIN_LOGIN
/ADMIN_PASSWORD
credentials, I am redirected to a 500 page.The logs of the
davis-standalone
container don't show anything off, although Portainer does give it theUnhealthy
label.Any help would be much appreciated!