tchapi / davis

🗓 A simple, fully translatable admin interface for sabre/dav based on Symfony 5 and Bootstrap 5, initially inspired by Baïkal.

Home Page:https://github.com/users/tchapi/projects/1/views/1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

500 error when creating new user

Jab2870 opened this issue · comments

Hi,

I'm trying to set this up using docker compose and sqlite. However, when creating a new user, I get a 500 error.

image

Docker compose logs

davis          | 172.23.0.3 -  20/Jan/2024:11:48:31 +0000 "GET /index.php" 200
davis          | 127.0.0.1 -  20/Jan/2024:11:48:39 +0000 "GET /status" 200
davis          | 172.23.0.3 -  20/Jan/2024:11:48:47 +0000 "POST /index.php" 500
davis          | 127.0.0.1 -  20/Jan/2024:11:49:09 +0000 "GET /status" 200
davis          | 172.23.0.3 -  20/Jan/2024:11:49:17 +0000 "POST /index.php" 500

Can i turn on more verbose logging anywhere?

Hi @Jab2870

Thanks for the report.
Which Davis version are you on?
You can inspect more logs in the ./var/log/prod.log file, in the application folder (as it seems you're running in production mode). I'll have a look at them when you send it;

I'm trying to reproduce on my side ...

Hi,

Thanks for your prompt response.

The log file had this:

[2024-01-20T17:38:22.316130+00:00] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ReadOnlyException: "An exception occurred while executing a query: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database" at /var/www/davis/vendor/doctrine/dbal/src/Driver/API/SQLite/ExceptionConverter.php line 72 {"exception":"[object] (Doctrine\\DBAL\\Exception\\ReadOnlyException(code: 8): An exception occurred while executing a query: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database at /var/www/davis/vendor/doctrine/dbal/src/Driver/API/SQLite/ExceptionConverter.php:72)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 8): SQLSTATE[HY000]: General error: 8 attempt to write a readonly database at /var/www/davis/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 8 attempt to write a readonly database at /var/www/davis/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130)"} []

Turned out that, despite the sqlite db file being owned by www-data, the data folder wasn't. Adjusting that fixed it. Thanks again