Dams
January 22, 2021, 9:44am
1
Bonjour,
Sur une installation toute neuve mon service Redis ne démarre pas. J’ai essayé un apt-get reinstall mais ça n’a rien changé.
janv. 22 08:01:54 systemd[1]: Starting Advanced key-value store...
janv. 22 08:01:54 systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: No such file or directory
janv. 22 08:01:54 systemd[1]: Started Advanced key-value store.
janv. 22 08:01:54 systemd[1]: redis-server.service: Main process exited, code=exited, status=1/FAILURE
janv. 22 08:01:54 systemd[1]: redis-server.service: Failed with result 'exit-code'.
janv. 22 08:01:54 systemd[1]: redis-server.service: Service RestartSec=100ms expired, scheduling restart.
janv. 22 08:01:54 systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 5.
janv. 22 08:01:54 systemd[1]: Stopped Advanced key-value store.
janv. 22 08:01:54 systemd[1]: redis-server.service: Start request repeated too quickly.
janv. 22 08:01:54 systemd[1]: redis-server.service: Failed with result 'exit-code'.
janv. 22 08:01:54 systemd[1]: Failed to start Advanced key-value store.
Du coup, je n’arrive pas à installer NextCloud 20 qui échoue à l’appel de Redis.
Les suggestions sont les bienvenues.
Aleks
January 22, 2021, 4:07pm
2
Hmokay, si tu regardes l’autre fichier de log (/var/log/redis/redis-server.log) que tu devrais pouvoir trouver dans l’interface d’admin dans Services > redis, est-ce qu’il y a des choses intéressantes dedans ?
Tu peux aussi faire tail -n 50 /var/log/redis/redis-server.log
si tu veux le faire en ligne de commande…
Dams
January 22, 2021, 4:11pm
3
L’interface d’admin ne me montre qu’un seul fichier. J’en ai vu 2 au début mais je crois que suite au apt-get reinstall elle n’en affiche plus qu’un.
800:C 22 Jan 2021 12:16:12.108 # Configuration loaded
801:M 22 Jan 2021 12:16:12.116 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.3 (00000000/0) 32 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 801
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
801:M 22 Jan 2021 12:16:12.118 # Server initialized
801:M 22 Jan 2021 12:16:12.118 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
801:M 22 Jan 2021 12:16:12.118 # Wrong signature trying to load DB from file
801:M 22 Jan 2021 12:16:12.119 # Fatal error loading the DB: Invalid argument. Exiting.
807:C 22 Jan 2021 12:16:12.391 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
807:C 22 Jan 2021 12:16:12.391 # Redis version=5.0.3, bits=32, commit=00000000, modified=0, pid=807, just started
807:C 22 Jan 2021 12:16:12.391 # Configuration loaded
808:M 22 Jan 2021 12:16:12.398 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.3 (00000000/0) 32 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 808
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
808:M 22 Jan 2021 12:16:12.401 # Server initialized
808:M 22 Jan 2021 12:16:12.401 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
808:M 22 Jan 2021 12:16:12.401 # Wrong signature trying to load DB from file
808:M 22 Jan 2021 12:16:12.401 # Fatal error loading the DB: Invalid argument. Exiting.
Aleks
January 22, 2021, 4:15pm
4
Wokay … Not sure what the hell is happening but I guess we can follow this advice …
Find the dump.rdb: sudo find / -name *.rdb
Move the correspoding file elsewhere, for example mv /var/lib/redis/dump.rdb /root/dump.rdb.bkp
Try to restart redis
1 Like
Dams
January 22, 2021, 4:18pm
5
After reading the log I found the answer on docker - Redis - Wrong signature trying to load DB from file - Stack Overflow . I tested it (renaming instead of deleting). And it works
I was just about to tell it when you wrote your message. Thanks for you help @Aleks , as usual.
system
Closed
February 6, 2021, 4:18pm
6
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.