NethServer release 7.7.1908 (final)
there are no packages to update
Ciao! today I migrated a nethserver from an old server to a newer one.
Everything went well, but when I accessed the rspamd interface I realized that something was not working.
Feb 20 21:45:08 srvmail.livenzaviaggipn.it systemd[1]: Started Redis persistent key-value database Rspamd.
Feb 20 21:45:08 srvmail.livenzaviaggipn.it systemd[1]: redis-rspamd.service: main process exited, code=exited, s…LURE
Feb 20 21:45:08 srvmail.livenzaviaggipn.it redis-shutdown[2548]: Could not connect to Redis at 127.0.0.1:0: Conne…sed
Feb 20 21:45:08 srvmail.livenzaviaggipn.it systemd[1]: redis-rspamd.service: control process exited, code=exited…us=1
Feb 20 21:45:08 srvmail.livenzaviaggipn.it systemd[1]: Unit redis-rspamd.service entered failed state.
Feb 20 21:45:08 srvmail.livenzaviaggipn.it systemd[1]: redis-rspamd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@srvmail ~]# systemctl status redis
● redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: failed (Result: exit-code) since Thu 2020-02-20 20:11:31 CET; 1h 38min ago
Main PID: 1725 (code=exited, status=1/FAILURE)
Feb 20 20:11:31 srvmail.livenzaviaggipn.it systemd[1]: Starting Redis persistent key-value database…
Feb 20 20:11:31 srvmail.livenzaviaggipn.it systemd[1]: redis.service: main process exited, code=exited, status=1…LURE
Feb 20 20:11:31 srvmail.livenzaviaggipn.it systemd[1]: redis.service: control process exited, code=exited status=1
Feb 20 20:11:31 srvmail.livenzaviaggipn.it systemd[1]: Failed to start Redis persistent key-value database.
Feb 20 20:11:31 srvmail.livenzaviaggipn.it systemd[1]: Unit redis.service entered failed state.
Feb 20 20:11:31 srvmail.livenzaviaggipn.it systemd[1]: redis.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Were the old server and the new one at the same level of updates?
Did you updated your “new” server (without installing packages) before applying restore?
My experience into something similar but… without rSpamd
you both had the same version of nethserver with updates.
when i prepared the new machine i didn’t pre-install the services, i only did software updates.
When I loaded the configuration file in the new server, I enabled the automatic download of the packages/services in use.
Sometimes a restore can “overdo” things, like a recent experience with Home Assistant (my personal Home Automation system) showed me.
I migrated the whole installation using the built in backup function from a Raspberry 3B+ to the newer 4 series with 4 GB RAM. Everything worked very well, except for some very irritating logfile entries about corrupt database entries…
Seems that the restore actually restored the SQLlite Database as is, that didn’t correspond with the rest of the machine status. Manually erasing that file, and letting the system recreate that file was the solution, but first find that!
The restore shouldn’t have restored that specific DB file, if it creates problems, but should just create a new empty DB and use a dump restore specific for SQLlite…
thanks for the answer, that's what came up after.
Starting Redis persistent key-value database...
-- Subject: Unit redis.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit redis.service has begun starting up.
Feb 21 19:23:45 srvmail.xxxx.it systemd[1]: redis.service: main process exited, code=exited, status=1/FAILURE
Feb 21 19:23:45 srvmail.xxxx.it redis-shutdown[1728]: Could not connect to Redis at 127.0.0.1:6379: Connection refused
Feb 21 19:23:45 srvmail.xxxx.it systemd[1]: redis.service: control process exited, code=exited status=1
Feb 21 19:23:45 srvmail.xxx.it systemd[1]: Failed to start Redis persistent key-value database.
-- Subject: Unit redis.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit redis.service has failed.
--
-- The result is failed.
Feb 21 19:23:45 srvmail.xxxx.it systemd[1]: Unit redis.service entered failed state.
Feb 21 19:23:45 srvmail.xxxx.it systemd[1]: redis.service failed.
thanks anyway for your help. I really appreciate your help.
I haven’t solved the problem though. even if you change the permissions to dump.rdb by going to “history” nothing is displayed, and it keeps asking me for the password to access rspamd. Which he never did.