<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #697: Piwik 2.1 upgrade for stats.transitionnetwork.org</title>
    <link>http://localhost:8080/trac/ticket/697</link>
    <description>&lt;p&gt;
Full details on &lt;a class="ext-link" href="http://piwik.org/blog/2014/03/piwik-2-1-massive-performance-reliability-improvements/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;the piwik blog&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Piwik 2.1 is the first release after our 2.0 release and it reflects the new direction Piwik is moving in: better performance, more reliability and a better overall open platform!
&lt;/p&gt;
&lt;/blockquote&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/697</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 04 Mar 2014 07:38:03 GMT</pubDate>
      <title>status, summary changed</title>
      <link>http://localhost:8080/trac/ticket/697#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/697#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;accepted&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;
                changed from &lt;em&gt;Piwik 2.1 upgtate for stats.ttansitionnetwork.org&lt;/em&gt; to &lt;em&gt;Piwik 2.1 upgrade for stats.tansitionnetwork.org&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 04 Mar 2014 07:38:36 GMT</pubDate>
      <title>summary changed</title>
      <link>http://localhost:8080/trac/ticket/697#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/697#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;
                changed from &lt;em&gt;Piwik 2.1 upgrade for stats.tansitionnetwork.org&lt;/em&gt; to &lt;em&gt;Piwik 2.1 upgrade for stats.transitionnetwork.org&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 04 Mar 2014 13:48:29 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/697#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/697#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.85&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.85&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
According to the &lt;a class="ext-link" href="http://piwik.org/blog/2014/03/piwik-2-1-massive-performance-reliability-improvements/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;blog post about Piwik 2.1&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
The cron script &lt;a class="ext-link" href="http://piwik.org/docs/setup-auto-archiving/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/docs/setup-auto-archiving/&lt;/a&gt; you can setup to automatically process your reports will now create new processes to perform asynchronous archiving instead issuing CURL http requests.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Full details are in the &lt;a class="ext-link" href="http://piwik.org/changelog/piwik-2-1-0/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Piwik 2.1.0 Changelog&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Following the last upgrade, &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/672" title="maintenance: Upgrade to Piwik 2.0.3 (closed: fixed)"&gt;ticket:672&lt;/a&gt; and the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer#Updates"&gt;wiki:PiwikServer#Updates&lt;/a&gt; notes and updating these as we go:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Switch off the recording of stats by setting record_statistics to 0 in /web/stats.transitionnetwork.org/piwik/config/config.ini.php:
&lt;/li&gt;&lt;/ol&gt;&lt;pre class="wiki"&gt;[Tracker]
record_statistics = 0
&lt;/pre&gt;&lt;ol start="2"&gt;&lt;li&gt;Backup the config file:
&lt;/li&gt;&lt;/ol&gt;&lt;pre class="wiki"&gt;cd /web/stats.transitionnetwork.org/
cp piwik/config/config.ini.php .
&lt;/pre&gt;&lt;ol start="3"&gt;&lt;li&gt;Download, extract, and update the database and restart php-fpm:
&lt;/li&gt;&lt;/ol&gt;&lt;pre class="wiki"&gt;export PIWIK=0.1.2
wget "http://builds.piwik.org/piwik-$PIWIK.tar.gz"
tar -zxvf piwik-$PIWIK.tar.gz
cp config.ini.php piwik/config/
chown -R www-data:www-data piwik/
php /web/stats.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater"
  PHP Warning:  require_once(./modules/testMinimumPhpVersion.php): failed to open stream: No such file or directory in /web/stats.transitionnetwork.org/piwik/index.php on line 20
  Warning: require_once(./modules/testMinimumPhpVersion.php): failed to open stream: No such file or directory in /web/stats.transitionnetwork.org/piwik/index.php on line 20
  PHP Fatal error:  require_once(): Failed opening required './modules/testMinimumPhpVersion.php' (include_path='.:/usr/share/php:/usr/share/pear') in /web/stats.transitionnetwork.org/piwik/index.php on line 20
  Fatal error: require_once(): Failed opening required './modules/testMinimumPhpVersion.php' (include_path='.:/usr/share/php:/usr/share/pear') in /web/stats.transitionnetwork.org/piwik/index.php on line 20
&lt;/pre&gt;&lt;p&gt;
Oh dear...
&lt;/p&gt;
&lt;p&gt;
The site displays:
&lt;/p&gt;
&lt;pre class="wiki"&gt;
&amp;gt; Warning: The magic method __isset() must have public visibility and cannot be static in /web/stats.transitionnetwork.org/piwik/libs/Zend/Config.php on line 184
&amp;gt;
&amp;gt; Strict Standards: Declaration of Piwik_Log::log() should be compatible with Zend_Log::log($message, $priority) in /web/stats.transitionnetwork.org/piwik/modules/Log.php on line 25
&amp;gt;
&amp;gt; The magic method __toString() must have public visibility and cannot be static
&amp;gt; in '/web/stats.transitionnetwork.org/piwik/modules/TablePartitioning.php' at the line 84
&amp;gt;
&amp;gt; #0  Piwik_ErrorHandler(2, The magic method __toString() must have public visibility and cannot be static, /web/stats.transitionnetwork.org/piwik/modules/TablePartitioning.php, 84, Array ([_GET] =&amp;gt; Array (),[_POST] =&amp;gt; Array (),[_COOKIE] =&amp;gt; Array ([PIWIK_SESSID] =&amp;gt; ikvddiuhp9doherkh0gpjseru4,[PHPSESSID] =&amp;gt; 600v38avmoptplog7iv4v4h213),[_FILES] =&amp;gt; Array (),[piwik_minimumPhpVersion] =&amp;gt; 5.1.3,[piwik_currentVersion] =&amp;gt; 5.4.4-14+deb7u8,[piwik_zend_compatibility_mode] =&amp;gt; ,[_REQUEST] =&amp;gt; Array (),[GLOBALS] =&amp;gt; Array ( *RECURSION*,[_SERVER] =&amp;gt; Array ([USER] =&amp;gt; www-data,[HOME] =&amp;gt; /web,[FCGI_ROLE] =&amp;gt; RESPONDER,[QUERY_STRING] =&amp;gt; ,[REQUEST_METHOD] =&amp;gt; GET,[CONTENT_TYPE] =&amp;gt; ,[CONTENT_LENGTH] =&amp;gt; ,[SCRIPT_FILENAME] =&amp;gt; /web/stats.transitionnetwork.org/piwik/index.php,[SCRIPT_NAME] =&amp;gt; /index.php,[REQUEST_URI] =&amp;gt; /,[DOCUMENT_URI] =&amp;gt; /index.php,[DOCUMENT_ROOT] =&amp;gt; /web/stats.transitionnetwork.org/piwik,[SERVER_PROTOCOL] =&amp;gt; HTTP/1.1,[GATEWAY_INTERFACE] =&amp;gt; CGI/1.1,[SERVER_SOFTWARE] =&amp;gt; nginx/1.4.4,[REMOTE_ADDR] =&amp;gt; XX.XX.XX.XX/
[REMOTE_PORT] =&amp;gt; 59676,[SERVER_ADDR] =&amp;gt; 81.95.52.111,[SERVER_PORT] =&amp;gt; 443,[SERVER_NAME] =&amp;gt; stats.transitionnetwork.org,[GEOIP_ADDR] =&amp;gt; XX.XX.XX.XX,[GEOIP_COUNTRY_CODE] =&amp;gt; GB,[GEOIP_COUNTRY_NAME] =&amp;gt; United Kingdom,[GEOIP_REGION] =&amp;gt; ,[GEOIP_REGION_NAME] =&amp;gt; ,[GEOIP_CITY] =&amp;gt; ,[GEOIP_AREA_CODE] =&amp;gt; 0,[GEOIP_LATITUDE] =&amp;gt; 54.0000,[GEOIP_LONGITUDE] =&amp;gt; -2.0000,[GEOIP_POSTAL_CODE] =&amp;gt; ,[HTTPS] =&amp;gt; on,[REDIRECT_STATUS] =&amp;gt; 200,[HTTP_HOST] =&amp;gt; stats.transitionnetwork.org,[HTTP_USER_AGENT] =&amp;gt; Mozilla/5.0 (X11; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0,[HTTP_ACCEPT] =&amp;gt; text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_LANGUAGE] =&amp;gt; en-gb,en;q=0.5,[HTTP_ACCEPT_ENCODING] =&amp;gt; gzip, deflate,[HTTP_DNT] =&amp;gt; 1,[HTTP_COOKIE] =&amp;gt; PIWIK_SESSID=ikvddiuhp9doherkh0gpjseru4; PHPSESSID=600v38avmoptplog7iv4v4h213,[HTTP_CONNECTION] =&amp;gt; keep-alive,[HTTP_CACHE_CONTROL] =&amp;gt; max-age=0,[PHP_SELF] =&amp;gt; /index.php,[REQUEST_TIME_FLOAT] =&amp;gt; 1393939037.6344,[REQUEST_TIME] =&amp;gt; 1393939037),[_Event_Dispatcher] =&amp;gt; Array ([NotificationClass] =&amp;gt; Event_Notification),[_SESSION] =&amp;gt; Array ())) called at [/web/stats.transitionnetwork.org/piwik/modules/ArchiveProcessing.php:12]
&amp;gt; #1  require_once() called at [/web/stats.transitionnetwork.org/piwik/modules/ArchiveProcessing.php:12]
&amp;gt; #2  require_once(/web/stats.transitionnetwork.org/piwik/modules/ArchiveProcessing.php) called at [/web/stats.transitionnetwork.org/piwik/modules/Archive.php:15]
&amp;gt; #3  require_once(/web/stats.transitionnetwork.org/piwik/modules/Archive.php) called at [/web/stats.transitionnetwork.org/piwik/modules/API/APIable.php:13]
&amp;gt; #4  require_once(/web/stats.transitionnetwork.org/piwik/modules/API/APIable.php) called at [/web/stats.transitionnetwork.org/piwik/modules/FrontController.php:26]
&amp;gt; #5  require_once(/web/stats.transitionnetwork.org/piwik/modules/FrontController.php) called at [/web/stats.transitionnetwork.org/piwik/index.php:50]
&lt;/pre&gt;&lt;p&gt;
Do'h, my fault, that was with the wrong version, should have looked closer at the list at &lt;a class="ext-link" href="http://builds.piwik.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://builds.piwik.org/&lt;/a&gt; trying again:
&lt;/p&gt;
&lt;pre class="wiki"&gt;export PIWIK=2.1.0
wget "http://builds.piwik.org/piwik-$PIWIK.tar.gz"
tar -zxvf piwik-$PIWIK.tar.gz
cp config.ini.php piwik/config/
chown -R www-data:www-data piwik/
php /web/stats.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater"
  *** Update ***
      Database Upgrade Required
      Your Piwik database is out-of-date, and must be upgraded before you can continue.
      Piwik database will be upgraded from version 2.0.3 to the new version 2.1.0.
  *** Note: this is a Dry Run ***
      ALTER TABLE user ADD COLUMN `superuser_access` tinyint(2) unsigned NOT NULL DEFAULT '0' AFTER token_auth;
      UPDATE `option` SET option_value = '2.0.4-b8' WHERE option_name = 'version_core';
  *** End of Dry Run ***
&lt;/pre&gt;&lt;p&gt;
So doing this manually:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql stats
  mysql&amp;gt; ALTER TABLE user ADD COLUMN `superuser_access` tinyint(2) unsigned NOT NULL DEFAULT '0' AFTER token_auth;
  Query OK, 10 rows affected (1.20 sec)
  Records: 10  Duplicates: 0  Warnings: 0
  mysql&amp;gt; UPDATE `option` SET option_value = '2.0.4-b8' WHERE option_name = 'version_core';
  Query OK, 1 row affected (0.00 sec)
  Rows matched: 1  Changed: 1  Warnings: 0
&lt;/pre&gt;&lt;p&gt;
And the site is up and running again, phew!
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://stats.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stats.transitionnetwork.org/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Sort out the logo:
&lt;/p&gt;
&lt;pre class="wiki"&gt;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
&lt;/pre&gt;&lt;p&gt;
But Piwik now uses a SVG logo so that doesn't work:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://stats.transitionnetwork.org/plugins/Morpheus/images/logo.svg"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stats.transitionnetwork.org/plugins/Morpheus/images/logo.svg&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
According to &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/4563"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/4563&lt;/a&gt; there is now a config option for this.
&lt;/p&gt;
&lt;p&gt;
However the password for the admin account appears to have changed, I'll follow this up with Ed.
&lt;/p&gt;
&lt;p&gt;
Switch recording of stats back on by setting record_statistics to 1 in /web/stats.transitionnetwork.org/piwik/config/config.ini.php:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[Tracker]
record_statistics = 1
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 04 Mar 2014 14:58:10 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/697#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/697#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;accepted&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.85&lt;/em&gt; to &lt;em&gt;1.2&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Looking at:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://piwik.org/faq/how-to/#faq_191"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/faq/how-to/#faq_191&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
This seems to be out of date and also the admin user doesn't exist!
&lt;/p&gt;
&lt;p&gt;
So I have made myself a superuser:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql stats
mysql&amp;gt; update user set superuser_access="1" where login="chris";
&lt;/pre&gt;&lt;p&gt;
I have got a big logo from &lt;a class="ext-link" href="https://www.transitionnetwork.org/support/branding"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.transitionnetwork.org/support/branding&lt;/a&gt;
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.transitionnetwork.org/sites/www.transitionnetwork.org/files/uploaded/u5857/TransitionNetwork-Logo-Web.jpg"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.transitionnetwork.org/sites/www.transitionnetwork.org/files/uploaded/u5857/TransitionNetwork-Logo-Web.jpg&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And uploaded that, and recreated the admin account and gave it superuser status via the database as above and updated the wiki page, &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer"&gt;wiki:PiwikServer&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I think this is done, so closing.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>