I have a new setup of MR on a linux machine. I'm using SQLite as the database for MR. I have configured the .env file db section as below:
# DATABASE
# --------
CONNECTION_DRIVER="sqlite"
CONNECTION_DATABASE="APP_ROOT . 'app/db/db.sqlite'"
#CONNECTION_DRIVER="mysql"
#CONNECTION_HOST="127.0.0.1"
#CONNECTION_PORT=3306
#CONNECTION_DATABASE="munkireport"
#CONNECTION_USERNAME="root"
#CONNECTION_PASSWORD=""
#CONNECTION_CHARSET="utf8mb4"
#CONNECTION_COLLATION="utf8mb4_unicode_ci"
#CONNECTION_STRICT=TRUE
#CONNECTION_ENGINE="InnoDB"
And the db/db.sqlite is writable by the www-data user. But when I run the ./please migrate I get the following error.
sudo ./please migrate
PHP Warning: touch(): Unable to create file APP_ROOT . 'app/db/db.sqlite' because No such file or directory in /munkireport/munkireport-php/app/Console/Commands/MigrateCommand.php on line 87
In Connection.php line 664:
Database (APP_ROOT . 'app/db/db.sqlite') does not exist. (SQL: select * from sqlite_master where type = 'table' and name = migrations)
In SQLiteConnector.php line 34:
Database (APP_ROOT . 'app/db/db.sqlite') does not exist.
migrate
But the db.sqlite actually exists. When browsing the MR via a web browser, I see the below error when I go to the system status page and the error under Database section.
As I mentioned above, I've set the database connection to an embedded SQlite. I assume if my settings were correct this page would show PDO Database driver: sqlite, instead of mysql.
Can someone please see if I am missing any settings somewhere? of if more information is required, please let me know.