Page 1 of 1

SYSTEM WARNING: session_start()...No such file or directory.

Posted: 12 Oct 2010, 13:40
by heatherk
I recently upgraded our Mantis installation to version 1.2.3, schema version 183. I now see the following error when I go to log in:

SYSTEM WARNING: session_start() [function.session-start]: open(/var/php_sessions/sess_02267afaecb6019916b5d37c2af3fbc6, O_RDWR) failed: No such file or directory (2)


I am able to log in and manage projects, but when I try to submit a bug request, I get application error #2800 (link to screenshot of the error).

Is this a problem with my server, or is there something in the Mantis configuration that needs to be changed to fix this?

Thank you in advance.

Edit: Link to screenshot was broken

Re: SYSTEM WARNING: session_start()...No such file or direct

Posted: 12 Oct 2010, 14:30
by atrol
heatherk wrote: Is this a problem with my server, or is there something in the Mantis configuration that needs to be changed to fix this?
Check if the directory /var/php_sessions exists and is writable.
If yes, try setting up a parallel empty fresh installation in same environment, to be sure that the problem is not caused by any relicts / customizations of your old version.
Which PHP version do you use?

Re: SYSTEM WARNING: session_start()...No such file or direct

Posted: 12 Oct 2010, 17:30
by heatherk
atrol wrote:
heatherk wrote: Is this a problem with my server, or is there something in the Mantis configuration that needs to be changed to fix this?
Check if the directory /var/php_sessions exists and is writable.
If yes, try setting up a parallel empty fresh installation in same environment, to be sure that the problem is not caused by any relicts / customizations of your old version.
Which PHP version do you use?
Our server is using PHP version 5.2.2. I unzipped the upgraded version into a separate folder, copied in my existing config_inc.php file into the new folder and performed the updgrade there like the included instructions stated.

I'll get a message in to my hosting provider to check on /var/php_sessions. Thanks for your help atrol. :)

Re: SYSTEM WARNING: session_start()...No such file or direct

Posted: 12 Oct 2010, 18:30
by atrol
heatherk wrote: Our server is using PHP version 5.2.2.
Version 5.2.2 was released in May 2007. I would not use it. Since that time there were a lot of bugs fixed. It's a waste of time to search for bugs in your application if you finally find, that it's caused by an outdated PHP version.
You should update to a newer 5.2.x version or to latest 5.3

Re: SYSTEM WARNING: session_start()...No such file or direct

Posted: 12 Oct 2010, 18:44
by heatherk
atrol wrote:Version 5.2.2 was released in May 2007. I would not use it. Since that time there were a lot of bugs fixed. It's a waste of time to search for bugs in your application if you finally find, that it's caused by an outdated PHP version.
You should update to a newer 5.2.x version or to latest 5.3
Unfortunately I have no control over what version of PHP our hosting provider chooses to use. I can put a bug in StartLogic's ear to upgrade, but that doesn't mean they will listen. :( They've been on that version for a long while and everything was working fine until a few days ago. I'm now thinking this may be strictly on the hosting provider's end of things.

Thanks again for your comments atrol. :)

Re: SYSTEM WARNING: session_start()...No such file or direct

Posted: 13 Oct 2010, 14:35
by heatherk
Problem solved - The PHP session save path on the server was invalid. Once my hosting provider fixed it, I have no issues. :D

Re: SYSTEM WARNING: session_start()...No such file or direct

Posted: 13 Oct 2010, 14:52
by atrol
Thanks for the feedback.
I am wondering that your old installation worked before the upgrade.