Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis-Server fails to start #3272

Closed
g7kse opened this issue Dec 20, 2019 · 2 comments
Closed

Redis-Server fails to start #3272

g7kse opened this issue Dec 20, 2019 · 2 comments
Labels
Duplicate For issues that are/were already handled within another issue External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done
Milestone

Comments

@g7kse
Copy link

g7kse commented Dec 20, 2019

RPI Buster fresh install on RPi3

This is just a quick bug report on a test set up I am running. The Redis-Server is a bit hit and miss, sometimes it starts but more often than not it fails. the most useful output I can find is

root@DietPi:~#` redis-server /etc/redis/redis.conf
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 171
>>> 'logfile /var/log/redis/redis-server.log'
Can't open the log file: No such file or directory

I guess this points to a missing file or one that wasn't successfully moved when I moved everything from the micro SD to an SSD using the drive tool. I'll keep looking for a reason but just in case others might find it. It is conceivable that the micro SD is shot though.

@MichaIng
Copy link
Owner

MichaIng commented Dec 20, 2019

@g7kse
Many thanks for your report.

Please start Redis via it's systemd unit: systemctl start redis-server
The systemd unit, if I see right, creates the log dir and file automatically, and assures permissions to write to it, with the run user "redis".

Note that service start is done on boot automatically, hence when you start it manually, you'll have two most likely conflicting (port bind etc) instances. If no Redis is available after boot, check the service log:

journalctl -u redis-server

@MichaIng
Copy link
Owner

MichaIng commented Jan 1, 2020

Most likely a duplicate of: #3291

@MichaIng MichaIng added this to the v6.27 milestone Jan 1, 2020
@MichaIng MichaIng added Duplicate For issues that are/were already handled within another issue External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done and removed Investigating 🤔 labels Jan 1, 2020
@MichaIng MichaIng closed this as completed Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate For issues that are/were already handled within another issue External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

2 participants