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

Cleaning old PHP session files doesn't work #690

Closed
azurit opened this issue Sep 4, 2017 · 4 comments
Closed

Cleaning old PHP session files doesn't work #690

azurit opened this issue Sep 4, 2017 · 4 comments

Comments

@azurit
Copy link

azurit commented Sep 4, 2017

Cleaning old PHP session files using systemd service/timer phpsessionclean doesn't work:

Sep 4 21:32:01 cloud0001 systemd[1]: Starting Clean php session files...
Sep 4 21:32:01 cloud0001 systemd[31959]: Failed at step NETWORK spawning /usr/lib/php/sessionclean: Invalid argument
Sep 4 21:32:01 cloud0001 systemd[1]: phpsessionclean.service: main process exited, code=exited, status=225/NETWORK
Sep 4 21:32:01 cloud0001 systemd[1]: Failed to start Clean php session files.
Sep 4 21:32:01 cloud0001 systemd[1]: Unit phpsessionclean.service entered failed state.

Everything starts to work fine after removing this line from systemd unit file:
PrivateNetwork=true

Debian Jessie, 64bit, using original Debian kernel and systemd.

Thank you!

@oerdnj
Copy link
Owner

oerdnj commented Sep 5, 2017

Should be fixed since php-defaults/55.

@oerdnj oerdnj closed this as completed Sep 5, 2017
@sandrotosi
Copy link

hey @oerdnj ! I cant find php-defaults/55 in any debian suites, and this error occurs also on stretch - any plan to upload the fix to stable-updates?

@CyrilBrulebois
Copy link

I've seen this issue as well, and cherry-picking the patch indeed makes it go away. +1 for stretch-proposed-updates.

@CyrilBrulebois
Copy link

Oh, my bad. I'm seeing the similar but different CGROUP issue:

mars 20 15:39:01 ldap CRON[22095]: pam_unix(cron:session): session opened for user root by (uid=0)
mars 20 15:39:01 ldap systemd[1]: Starting Clean php session files...
mars 20 15:39:01 ldap systemd[22097]: phpsessionclean.service: Failed at step CGROUP spawning /usr/lib/php/sessionclean: No such file or directory
mars 20 15:39:01 ldap CRON[22096]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
mars 20 15:39:01 ldap systemd[1]: phpsessionclean.service: Main process exited, code=exited, status=219/CGROUP
mars 20 15:39:01 ldap systemd[1]: Failed to start Clean php session files.
mars 20 15:39:01 ldap CRON[22095]: pam_unix(cron:session): session closed for user root
mars 20 15:39:01 ldap systemd[1]: phpsessionclean.service: Unit entered failed state.
mars 20 15:39:01 ldap systemd[1]: phpsessionclean.service: Failed with result 'exit-code'.

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

4 participants