openenergymonitor / EmonScripts

Emoncms Stack Installation and Update scripts
16 stars 30 forks source link

redis error #120

Closed wrvolz closed 4 years ago

wrvolz commented 4 years ago

I upgraded my Raspberry from Jessie to Stretch and finally to Buster. After the Buster upgrade, emoncms was, well, busted.

I admit I was using an old version so I updated to most recent using the guide on EmonScripts/readme.md on this site. I'm still getting the redis error. That error is

`settings.php file error redis enabled but not installed, check setting: redis_enabled

To fix, check that the settings are set in settings.php or try re-creating your settings.php file from default.settings.php template`

If I disable redis in the settings.php I get a different error:

Your PHP installation appears to be missing the MySQL extension(s) which are required by Emoncms. See /php-info.php (restricted to local access)

How do I fix this? Thanks

wrvolz commented 4 years ago

Solved - two problems - first redis wasn't connecting because apache failed to start. That was because another process was listening on port 80. Second mariadb was failing to start because my database was on /home. Added the following to /etc/systemd/system/mariadb.service.d/dontprotecthome.conf ` [Service]

ProtectHome=false ProtectSystem=off `