Ticket #664 (closed maintenance: fixed)

Opened 3 years ago

Last modified 3 years ago

Upgrade Piwik to 2.0.2

Reported by: chris Owned by: chris
Priority: major Milestone: Maintenance
Component: Piwik Keywords:
Cc: sam Estimated Number of Hours: 0.25
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.7

Description

This is a bugfix version which fixes 3 issues, see http://piwik.org/changelog/piwik-2-0-1/

Upgrade notes are here, wiki:PiwikServer#Updates

Change History

comment:1 follow-up: ↓ 2 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.45
  • Total Hours changed from 0.0 to 0.45

Following wiki:PiwikServer#Updates

sudo -i
cd /web/stats.transitionnetwork.org/
cp piwik/config/config.ini.php .

Switch off the recording of stats by adding this to /web/stats.transitionnetwork.org/piwik/config/config.ini.php:

[Tracker]
record_statistics = 0

Download, extract, and update the database:

wget "http://piwik.org/latest.zip" -O latest.zip
unzip latest.zip
cp config.ini.php piwik/config/
chown -R www-data:www-data piwik/
php /web/stats.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater" 

Then we have this error:

A fatal error occurred

The following error just broke Piwik (v2.0.2):

Class 'Twig_Loader_Filesystem' not found

in

/web/stats.transitionnetwork.org/piwik/core/Twig.php line 150

If this error continues to happen, there is a good chance to fix this issue by disabling one or more of the Third-Party plugins. You can enable them again in the Plugins or Themes page under settings at any time.

If this error still occurs after disabling all plugins, you might want to consider uninstalling some plugins. Keep in mind: The plugin will be completely removed from your platform.

ExampleFeedburner 	uninstall


We appreciate if you send the error report to the Piwik team.

I have searched the ticketing system, http://dev.piwik.org/ and forums http://forum.piwik.org/ for anyone else with this problem but couldn't find any reports of this issue.

I have raised a ticket about it here: http://dev.piwik.org/trac/ticket/4434

comment:2 in reply to: ↑ 1 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.25
  • Status changed from new to closed
  • Resolution set to fixed
  • Total Hours changed from 0.45 to 0.7

Replying to chris:

I have raised a ticket about it here: http://dev.piwik.org/trac/ticket/4434

The answer from Matt on the Pwiki Trac:

Can you check all files were uploaded properly?

If so, what php version do you use?

Closing as it should not be a bug but likely config or php or missing file issue...

However after downloading and installing the files again we now have a 500 error for the front page, so I have changed the log level from crit to debug and restarted Nginx and we now have this in the logs:

2013/12/26 11:20:31 [error] 27131#0: *32 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class 'Zend_Session_Abstract' not found in /web/stats.transitionnetwork.org/piwik/libs/Zend/Session.php on line 50
PHP message: PHP Fatal error:  Class 'Piwik\Session' not found in /web/stats.transitionnetwork.org/piwik/core/FrontController.php on line 432" while reading response header from upstream, client: XX.XX.XX.XX, server: stats.transitionnetwork.org, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "stats.transitionnetwork.org"

So I restarted php-fpm and it's fixed!

I have updated the docs, wiki:PiwikServer#Updates and switched on stats recording.


comment:3 Changed 3 years ago by chris

For all previous upgrades a php-fpm restart wasn't needed and I think this is because previously we were not running with APC, but now we are, see ticket:535#comment:55. The upgrade dopcumentation has been updated to include a php-fpm restart wiki:PiwikServer#Updates.

Last edited 3 years ago by chris (previous) (diff)
Note: See TracTickets for help on using tickets.