4.4 install error


(bob) #1

Hello there, love Piwik, have been using version 0.2.26 with no problems for some time now. Decided to do fresh install of 4.4 to take advantage of all the new features. Ran into this error:

Fatal error: Uncaught exception ‘Zend_Session_Exception’ with message 'Zend_Session::start() - /var/www/vhosts/website.com/httpdocs/piwik/libs/Zend/Session.php(Line:480): Error #2 session_start() [function.session-start]: open(/var/www/vhosts/website.com/httpdocs/piwik/tmp/sessions/sess_m6usveq812admivp6ru28vmhn5, O_RDWR) failed: No such file or directory (2) Array /var/www/vhosts/website.com/httpdocs/piwik/libs/Zend/Session.php(Line:490): Error #2 session_write_close() [function.session-write-close]: open(/var/www/vhosts/website.com/httpdocs/piwik/tmp/sessions/sess_m6usveq812admivp6ru28vmhn5, O_RDWR) failed: No such file or directory (2) Array /var/www/vhosts/website.com/httpdocs/piwik/libs/Zend/Session.php(Line:490): Error #2 session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/vhosts/website in /var/www/vhosts/website.com/httpdocs/piwik/libs/Zend/Session.php on line 493

“Please verify that the current setting of session.save_path is correct”, not really sure what this means. I searched the forums and google, but no one else seems to have encountered this error.

Any help would be greatly appreciated ~Bob


(vipsoft) #2

You have to manually create the tmp/sessions folder and ensure it’s read/writeable by the web server .


(bob) #3

Hi, thanks for your reply. After changing the tmp/sessions folder permissions to 777, it worked. Thanks very much for your reply! ~Bob


(maykino) #4

Hi, I just tried to install piwik and I get this error when navigate to index.php file:

Fatal error: Uncaught exception ‘Zend_Session_Exception’ with message ‘Zend_Session::start() - /srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/libs/Zend/Session.php(Line:480): Error #2 session_start(): open(/srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/tmp/sessions/sess_p7stnl14di9c34k5kj4mg1i36batgsof, O_RDWR) failed: No such file or directory (2) Array /srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/libs/Zend/Session.php(Line:490): Error #2 session_write_close(): open(/srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/tmp/sessions/sess_p7stnl14di9c34k5kj4mg1i36batgsof, O_RDWR) failed: No such file or directory (2) Array /srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/libs/Zend/Session.php(Line:490): Error #2 session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/tmp/sessions) Array’ in /srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/libs/Zend in /srv/www/vhosts/nerdalert.biz/subdomains/stats/httpdocs/libs/Zend/Session.php on line 493


(vipsoft) #5

maykino: mkdir tmp/sessions, and chmod as necessary for your environment


(SeanK) #6

Hello,

Everything works swell but if I refresh a page I get an error about failed to write session data files:

Warning: Unknown(): open(/tmp/sess_963ff493c14482b546a6c794ec052255, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Any suggestions?

The example above is from my home page www.internetbeacon.com.

SeanK


(philmck) #7

I’m getting this as well. I chmod /tmp and everything in it recursively to 777 and the problem goes away for a while, but then a few days later Piwik is not collecting stats any more. I then find more session files have been created with default 644 permissions that the webserver can’t modify.


(vipsoft) #8

seank: it looks like Piwik is using your system’s default session.save_path (/tmp). If you’re having permission problems there, then you’ll have to contact your sysadmin/hosting provider. Otherwise, set your session.save_path to use “/insertyourwebdirectory/piwik/tmp/sessions” folder.

philmck: the tracker doesn’t write any session files to tmp/sessions; if Piwik is no longer tracking, then you’re having a different problem from bob and maykino; check to see if you have enough disk space on all your volumes (e.g., /tmp, /var, /home).


(pbb) #9

I have the same problem as Bob, but tmp and the three folders below it all have permissions of 777.

Is there anything else that could be causing this error?