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

/var/run is deprecated in Ubuntu 20.04 #4

Open
aranhoide opened this issue Jan 23, 2021 · 2 comments
Open

/var/run is deprecated in Ubuntu 20.04 #4

aranhoide opened this issue Jan 23, 2021 · 2 comments

Comments

@aranhoide
Copy link

aranhoide commented Jan 23, 2021

The focal fossa version of this package has the following lines in the redis-server.service file:

PIDFile=/var/run/redis/redis-server.pid
[...]
ReadWriteDirectories=-/var/run/redis

The use of /var/run is deprecated in Ubuntu 20.04, and something in systemd aggressively changes that to /run in the PIDFile section with a warning, but fails to update the ReadWriteDirectories entry, so it runs into permission issues trying to create the PID file (P.S.: I was referring to the Operation not permitted error mentioned below, but this happens even after fixing this, so it may be unrelated). I have checked that changing both occurrences of /var/run to just /run removes the warning (P.S.: I still get a systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: Operation not permitted warning at the beginning, but the server runs fine apparently so this may be a transient problem?).

@aranhoide aranhoide changed the title /var/run is deprecated in Ubuntu 20.04 /var/run is deprecated in Ubuntu 20.04, causing permission problems Jan 23, 2021
@aranhoide aranhoide changed the title /var/run is deprecated in Ubuntu 20.04, causing permission problems /var/run is deprecated in Ubuntu 20.04 Jan 23, 2021
@yossigo
Copy link
Member

yossigo commented Jan 25, 2021

@aranhoide Can you take a look at b0ba1f2? The problem seems to be beyond the use of /var/run, but also due to the fact that Redis was not configured to work in supervised mode.

@yossigo
Copy link
Member

yossigo commented Mar 29, 2021

@aranhoide do you still experience this issue with the most recent packages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants