Redis password change is ignored
Mayan 3.4.4 and 3.4.5
Direct deploy:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Python 3.6.9
I came across this issue after successfully (no errors) updating from a running 3.4.4 installation to 3.4.5. Afterwards the document previews are not working an I'm not able to clear the file cache in the web admin (Gateway timeout). I then found the following:
Any redis password change (which I did before) in the config.yml on the following lines is ignored:
CELERY_BROKER_URL: redis://:mayanredispassword@127.0.0.1:6379/0
CELERY_RESULT_BACKEND: redis://:mayanredispassword@127.0.0.1:6379/1
Ignored means, that only these lines are not taken over into config_backup.yml and also not taken over into the generated supervisor configuration. All other changes are reflected after two restarts. I have tried no password and some simple passwords like "asdf". The following example does not work.
CELERY_BROKER_URL: redis://:asdf@127.0.0.1:6379/0
CELERY_RESULT_BACKEND: redis://:asdf@127.0.0.1:6379/1
After the restart the config_backup.yml still shows "mayanredispassword" which then also breaks an update because the newly generated supervisor configuration contains also this wrong password.
Workaround
When I manually change the password in /etc/supervisor/conf.d/mayan.conf after the update, everything is working fine.