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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
heatherk
Posts: 4
Joined: 11 Oct 2010, 21:12

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

Post 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
atrol
Site Admin
Posts: 8532
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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?
Please use Search before posting and read the Manual
heatherk
Posts: 4
Joined: 11 Oct 2010, 21:12

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

Post 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. :)
atrol
Site Admin
Posts: 8532
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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
Please use Search before posting and read the Manual
heatherk
Posts: 4
Joined: 11 Oct 2010, 21:12

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

Post 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. :)
heatherk
Posts: 4
Joined: 11 Oct 2010, 21:12

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

Post 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
atrol
Site Admin
Posts: 8532
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Thanks for the feedback.
I am wondering that your old installation worked before the upgrade.
Please use Search before posting and read the Manual
Post Reply