Opened 6 years ago

Last modified 6 years ago

#7071 assigned Bug/Something is broken

intermittent failed php session cleanup on http://$foo.meetings.mayfirst.org/

Reported by: https://id.mayfirst.org/dkg Owned by: https://id.mayfirst.org/jamie
Priority: Medium Component: Tech
Keywords: meetings.mayfirst.org ir php5 sessions peltier.mayfirst.org Cc:
Sensitive: no

Description

if i refresh http://monkey2012.meetings.mayfirst.org/ a hundred times in a row, one of those times is likely to come up with:

Notice: session_start() [function.session-start]: ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) in /var/www/user.meetings.mayfirst.org/include/ir/src/ir.class.inc.php on line 593

Warning: Cannot modify header information - headers already sent by (output started at /var/www/user.meetings.mayfirst.org/include/ir/src/ir.class.inc.php:593) in /var/www/user.meetings.mayfirst.org/include/ir/src/ir.class.inc.php on line 754

I suspect this is what's happening:

  • we've got php's self-triggered garbage collection turned on.
  • php stores its sessions in /var/lib/php5 normally, so that's where its garbage collection routines try to clean up
  • but peltier:/etc/apache2/sites-enabled/user.meetings.mayfirst.org defines an Suexec User that doesn't have permissions to clean up files from /var/lib/php5.
  • we have php warnings and notices enabled to be written to the web browser (this is probably a bug that needs fixing at least)

Change History (2)

comment:1 Changed 6 years ago by https://id.mayfirst.org/dkg

(note that this is all hosted on peltier)

comment:2 Changed 6 years ago by https://id.mayfirst.org/ross

  • Owner set to https://id.mayfirst.org/jamie
  • Status changed from new to assigned

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.