Ticket #672 (closed maintenance: fixed)

Opened 3 years ago

Last modified 3 years ago

Upgrade to Piwik 2.0.3

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

Description

From the Piwik changelog:

Piwik 2.0.3 is a bug-fix release. To ensure the highest quality and reliability for your Piwik 2.0 setup, we have fixed all known major bugs, as well as made some small improvements.

...

We highly recommend that you upgrade your server to Piwik 2.0.3 today to benefit from the latest improvements.

Change History

comment: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.0 to 0.25

Following the update notes, wiki:PiwikServer#Updates, first switch off stats recording by setting record_statistics to 0 in /web/stats.transitionnetwork.org/piwik/config/config.ini.php:

[Tracker]
record_statistics = 0

Backup the config file:

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

Download, update and restart:

wget "http://piwik.org/latest.zip" -O latest.zip
unzip -u 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" 
/etc/init.d/php5-fpm restart

Re-overwrite the TN logos:

cp /web/penguin.transitionnetwork.org/www/favicon.ico /web/stats.transitionnetwork.org/piwik/plugins/CoreHome/images/favicon.ico
cp /web/penguin.transitionnetwork.org/www/favicon.ico /web/stats.transitionnetwork.org/piwik/favicon.ico
cp /web/penguin.transitionnetwork.org/www/logo.png /web/stats.transitionnetwork.org/piwik/plugins/Morpheus/images/logo.png
cp /web/penguin.transitionnetwork.org/www/logo-header.png /web/stats.transitionnetwork.org/piwik/plugins/Morpheus/images/logo-header.png 

Switch recording of stats back on by setting record_statistics to 1 in /web/stats.transitionnetwork.org/piwik/config/config.ini.php:

[Tracker]
record_statistics = 1

On doing a system check there is this error:

File integrity check failed and reported some errors. This is most likely due to a partial or failed upload of some of the Piwik files. You should reupload all the Piwik files in BINARY mode and refresh this page until it shows no error.

The details:

File integrity check failed and reported some errors. This is most likely due to a partial or failed upload of some of the Piwik files. You should reupload all the Piwik files in BINARY mode and refresh this page until it shows no error.
File size mismatch: /web/stats.transitionnetwork.org/piwik/plugins/CoreHome/images/favicon.ico (expected length: 17947, found: 894)
File size mismatch: /web/stats.transitionnetwork.org/piwik/plugins/Morpheus/images/logo-header.png (expected length: 2215, found: 8663)
File size mismatch: /web/stats.transitionnetwork.org/piwik/plugins/Morpheus/images/logo.png (expected length: 3902, found: 23226)

This indicated that we could do with a better way of updating the logos... The documentation has been updated, wiki:PiwikServer#Updates

Note: See TracTickets for help on using tickets.