From 43ff7b48f70d9e8291c343155f5daa0567e7f4e1 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 14 Aug 2022 09:59:38 +1000 Subject: [PATCH] info on how to resolve DB permission issues --- dockerfiles/README.md | 2 +- front/php/templates/language/en_us.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfiles/README.md b/dockerfiles/README.md index d3506626..4e0dca08 100644 --- a/dockerfiles/README.md +++ b/dockerfiles/README.md @@ -50,7 +50,7 @@ Default Port * Map the `pialert.db` file (⚠ not folder) from above to `/home/pi/pialert/db/pialert.db` (see [Examples](https://github.com/jokob-sk/Pi.Alert/tree/main/dockerfiles#-examples) for details). * If facing issues (AJAX errors, can't write to DB, etc,) make sure permissions are set correctly, alternatively check the logs under `/home/pi/pialert/log`. * To solve permission issues you can also try to create a DB backup and then run a DB Restore via the **Maintenance > Backup/Restore** section. - * If the database is in read-only mode you can solve this by setting the owner and group by executing the following command on the host system: 'docker exec pialert chown -R www-data:www-data /home/pi/pialert/db/pialert.db' + * If the database is in read-only mode you can solve this by setting the owner and group by executing the following command on the host system: `docker exec pialert chown -R www-data:www-data /home/pi/pialert/db/pialert.db`. 6. The container supports mapping to local User nad Group IDs. Specify the enviroment variables `HOST_USER_ID` and `HOST_USER_GID` if needed. 7. You can override the port by specifying the `PORT` env variable. diff --git a/front/php/templates/language/en_us.php b/front/php/templates/language/en_us.php index b165832b..e7e3935d 100644 --- a/front/php/templates/language/en_us.php +++ b/front/php/templates/language/en_us.php @@ -374,6 +374,7 @@ $pia_lang['HelpFAQ_Cat_General_102docker_text'] = 'Double-check you\'ve followed
  • Map the pialert.db file ( not folder) from above to /home/pi/pialert/db/pialert.db (see Examples for details).
  • If facing issues (AJAX errors, can\'t write to DB, etc,) make sure permissions are set correctly, alternatively check the logs under /home/pi/pialert/log.
  • To solve permission issues you can also try to create a DB backup and then run a DB Restore via the Maintenance > Backup/Restore section.
  • +
  • If the database is in read-only mode you can solve this by setting the owner and group by executing the following command on the host system: docker exec pialert chown -R www-data:www-data /home/pi/pialert/db/pialert.db.
  • '; $pia_lang['HelpFAQ_Cat_General_103_head'] = 'The login page does not appear, even after changing the password.'; $pia_lang['HelpFAQ_Cat_General_103_text'] = 'In addition to the password, the configuration file must contain ~/pialert/config/pialert.conf