<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #36: Piwik stats stopped on 31st August 2015</title>
    <link>https://trac.crin.org/trac/ticket/36</link>
    <description>&lt;p&gt;
The Piwik stats stopped on 31st August 2015.
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="https://trac.crin.org/trac/attachment/ticket/36/crin-piwik-2015-09-08.png"&gt;&lt;img src="https://trac.crin.org/trac/raw-attachment/ticket/36/crin-piwik-2015-09-08.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The tracking code is missing, can the &lt;a class="ext-link" href="https://www.drupal.org/project/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Drupal Piwik module&lt;/a&gt; be re-installed / re-enabled please?
&lt;/p&gt;
&lt;p&gt;
In addition I believe the GA tracking code can be removed as the Piwik stats replace these.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/36</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 08 Sep 2015 11:14:32 GMT</pubDate>
      <title>attachment set</title>
      <link>https://trac.crin.org/trac/ticket/36</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;crin-piwik-2015-09-08.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 08 Sep 2015 11:15:27 GMT</pubDate>
      <title>description changed</title>
      <link>https://trac.crin.org/trac/ticket/36#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/trac/ticket/36?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 08 Sep 2015 11:41:20 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/36#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have just used &lt;tt&gt;drush uli&lt;/tt&gt; to login to the live Drupal site and noticed that it very slow.
&lt;/p&gt;
&lt;p&gt;
I think this module can probably be removed:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Cookie Control for Google Analytics
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I guess the GA code is hard coded into the templates? What is the URL for the project on Bitbucket?
&lt;/p&gt;
&lt;p&gt;
The Piwik module needs adding back, I can sort the settings needed by this module on the dev/staging site if you wish, it would perhaps make sense to have a separate Piwik account for the dev/staging sites so that we can do testing without an impact on the live site stats.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>mori</dc:creator>

      <pubDate>Tue, 08 Sep 2015 12:02:05 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/36#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:3</guid>
      <description>
        &lt;p&gt;
Thanks for the heads-up. The Piwik module has been added back to Dev, Stage and Prod.
&lt;/p&gt;
&lt;p&gt;
Whether we want the module enabled on non-production environment depends on how CRIN would like to use it. The module's status changes every time the database sync between environments happen so switching to respective account needs to happen automatically. We can handle this as part of a maintenance task in the future.
&lt;/p&gt;
&lt;p&gt;
On Drupal sites, usually Google Analytics code is added through modules. The module however does not exist so I'd assume the code was hard-coded. This can also be handled as part of ongoing maintenance.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 08 Sep 2015 12:28:37 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/36#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.6&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/36#comment:3" title="Comment 3"&gt;mori&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Thanks for the heads-up. The Piwik module has been added back to Dev, Stage and Prod.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Thanks, I'm struggling to find the form to configure it, the &lt;a class="ext-link" href="https://www.crin.org/en/admin/modules"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;modules list&lt;/a&gt; links to &lt;a class="ext-link" href="https://www.crin.org/en/admin/config/system"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;a list of system settings pages&lt;/a&gt; rather than the specific form fields for the Piwik plugin. On a Drupal 6 site I would expect these settings to be at &lt;a class="ext-link" href="https://www.crin.org/en/admin/settings/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.crin.org/en/admin/settings/piwik&lt;/a&gt; but that URL doesn't work either. Do you know what the URL to configure the Piwik module is?
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Whether we want the module enabled on non-production environment depends on how CRIN would like to use it. The module's status changes every time the database sync between environments happen so switching to respective account needs to happen automatically. We can handle this as part of a maintenance task in the future.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
OK, so it would be far simpler using the same account on all 3 sites I guess? In any case developers can opt out in various ways from being tracked (whitelisting IPs in Piwik, setting DNT in Firefox, not loading JS from stats.crin.org etc)
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
On Drupal sites, usually Google Analytics code is added through modules. The module however does not exist so I'd assume the code was hard-coded. This can also be handled as part of ongoing maintenance.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Great.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>mori</dc:creator>

      <pubDate>Tue, 08 Sep 2015 13:03:46 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/36#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:5</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/36#comment:4" title="Comment 4"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Thanks, I'm struggling to find the form to configure it
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I had to disable and re-enable the module to get the module to work properly.
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://stage.crin.org/en/admin/config/system/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stage.crin.org/en/admin/config/system/piwik&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
The module is now working on Stage and Prod. Will take care of Dev as soon as it responds.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Whether we want the module enabled on non-production environment depends on how CRIN would like to use it. The module's status changes every time the database sync between environments happen so switching to respective account needs to happen automatically. We can handle this as part of a maintenance task in the future.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
OK, so it would be far simpler using the same account on all 3 sites I guess?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Yes. If CRIN can configure Piwik to filter out data from non-prod, that would be the simplest solution
&lt;/p&gt;
&lt;p&gt;
Just so you know, there seems to be an outstanding performance issue on the site. I've noticed that there are some modules that are marked as enabled in systems table (this is how Drupal decides to inlcude PHP files), but the actual files are not present. Drupal 7 has a performance bug which keeps scanning for missing files and it drastically reduces the site's performance. We will handle this issue in due course.
&lt;/p&gt;
&lt;p&gt;
When new developers (who are not from Code Positive) get involved in the development of the site, can you please point them to our wiki* and make sure they manage the codebase via git and never add/remove files on the server?
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;just added you to the Crin project: &lt;a class="ext-link" href="https://bitbucket.org/crin/crin/wiki/Home"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://bitbucket.org/crin/crin/wiki/Home&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 08 Sep 2015 13:13:08 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/36#comment:6</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.6&lt;/em&gt; to &lt;em&gt;0.85&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/36#comment:5" title="Comment 5"&gt;mori&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;blockquote&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://stage.crin.org/en/admin/config/system/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stage.crin.org/en/admin/config/system/piwik&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Thanks I'll get it set up.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Yes. If CRIN can configure Piwik to filter out data from non-prod, that would be the simplest solution
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
OK.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Just so you know, there seems to be an outstanding performance issue on the site. I've noticed that there are some modules that are marked as enabled in systems table (this is how Drupal decides to inlcude PHP files), but the actual files are not present. Drupal 7 has a performance bug which keeps scanning for missing files and it drastically reduces the site's performance. We will handle this issue in due course.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Yes, it's really slow, I'll open a separate ticket on this.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
When new developers (who are not from Code Positive) get involved in the development of the site, can you please point them to our wiki* and make sure they manage the codebase via git and never add/remove files on the server?
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;just added you to the Crin project: &lt;a class="ext-link" href="https://bitbucket.org/crin/crin/wiki/Home"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://bitbucket.org/crin/crin/wiki/Home&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;
&lt;p&gt;
Thanks, I'll check that out.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 08 Sep 2015 13:50:43 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/36#comment:7</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.35&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;
Getting a login URL via Drush doesn't work for the staging site on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin4"&gt;Crin4&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - bitbucket -s /bin/bash
cd /var/www/stage/docroot/
drush uli
exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'newprod'@'crin4' (using password: YES)' in             [error]
/var/www/stage/docroot/includes/database/database.inc:304
Stack trace:
#0 /var/www/stage/docroot/includes/database/database.inc(304): PDO-&amp;gt;__construct('mysql:host=crin...', 'newprod', 'XXXX', Array)
#1 /var/www/stage/docroot/includes/database/mysql/database.inc(51): DatabaseConnection-&amp;gt;__construct('mysql:host=crin...', 'newprod',
'XXXX', Array)
#2 /var/www/stage/docroot/includes/database/database.inc(1686): DatabaseConnection_mysql-&amp;gt;__construct(Array)
#3 /var/www/stage/docroot/includes/database/database.inc(1476): Database::openConnection('default', 'default')
#4 /var/www/stage/docroot/includes/database/database.inc(2347): Database::getConnection('default')
#5 /var/www/stage/docroot/includes/bootstrap.inc(1915): db_query('SELECT 1 FROM {...', Array)
#6 /var/www/stage/docroot/includes/bootstrap.inc(1928): drupal_is_denied('127.0.0.1')
#7 /var/www/stage/docroot/includes/bootstrap.inc(2378): drupal_block_denied('127.0.0.1')
#8 /var/www/stage/docroot/includes/bootstrap.inc(2233): _drupal_bootstrap_page_cache()
#9 /var/www/stage/docroot/sites/all/modules/contrib/domain/domain.bootstrap.inc(108): drupal_bootstrap(2, true)
#10 /var/www/stage/docroot/sites/all/modules/contrib/domain/domain.bootstrap.inc(70): _domain_bootstrap(0)
#11 /var/www/stage/docroot/sites/all/modules/contrib/domain/settings.inc(21): domain_bootstrap()
#12 /var/www/stage/docroot/sites/default/settings.php(490): include('/var/www/stage/...')
#13 /var/www/stage/docroot/includes/bootstrap.inc(716): include_once('/var/www/stage/...')
#14 /var/www/stage/docroot/includes/bootstrap.inc(2355): drupal_settings_initialize()
#15 /var/www/stage/docroot/includes/bootstrap.inc(2229): _drupal_bootstrap_configuration()
#16 /usr/local/src/drush-master/lib/Drush/Boot/DrupalBoot7.php(62): drupal_bootstrap(0)
#17 /usr/local/src/drush-master/includes/bootstrap.inc(314): Drush\Boot\DrupalBoot7-&amp;gt;bootstrap_drupal_configuration()
#18 /usr/local/src/drush-master/commands/user/user.drush.inc(388): drush_bootstrap(5)
#19 [internal function]: drush_user_login()
#20 /usr/local/src/drush-master/includes/command.inc(359): call_user_func_array('drush_user_logi...', Array)
#21 /usr/local/src/drush-master/includes/command.inc(210): _drush_invoke_hooks(Array, Array)
#22 [internal function]: drush_command()
#23 /usr/local/src/drush-master/includes/command.inc(178): call_user_func_array('drush_command', Array)
#24 /usr/local/src/drush-master/lib/Drush/Boot/BaseBoot.php(62): drush_dispatch(Array)
#25 /usr/local/src/drush-master/drush.php(70): Drush\Boot\BaseBoot-&amp;gt;bootstrap_and_dispatch()
#26 /usr/local/src/drush-master/drush.php(11): drush_main()
#27 {main}
&lt;/pre&gt;&lt;p&gt;
I created a &lt;tt&gt;~/.my.cnf&lt;/tt&gt; for this user containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[client]
host=crin1
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca=/etc/ssl/cacert/cacert.pem
ssl-cert=/etc/ssl/cacert/crin1_cert.pem
ssl-key=/etc/ssl/cacert/crin1_yassl_privatekey.pem
&lt;/pre&gt;&lt;p&gt;
But that didn't solve it -- there is the same error on the command line:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql -unewprod -p -hcrin1 newprod
Enter password:
ERROR 1045 (28000): Access denied for user 'newprod'@'crin4' (using password: YES)
&lt;/pre&gt;&lt;p&gt;
One error was with the permissions on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql&amp;gt; SELECT Host from user where User="newprod";
+-------+
| Host  |
+-------+
| crin2 |
+-------+
1 row in set (0.00 sec)
mysql&amp;gt; UPDATE user SET Host="crin4" WHERE User="newprod";
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0
mysql&amp;gt; FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.15 sec)
&lt;/pre&gt;&lt;p&gt;
But that also hasn't solved it, I'll have to continue with this tomorrow.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>mori</dc:creator>

      <pubDate>Tue, 08 Sep 2015 14:04:44 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/36#comment:8</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:8</guid>
      <description>
        &lt;p&gt;
It works for me. The problem you had is caused by lack of specificity so Drush to work out which site to access.
&lt;/p&gt;
&lt;p&gt;
Run &lt;tt&gt;drush uli&lt;/tt&gt; within the site-specific directory (&lt;tt&gt;docroot/sites/[site]/ &lt;/tt&gt;. The dir &lt;tt&gt;default&lt;/tt&gt; is for the production), or use a drush alias @crin.[env].
&lt;/p&gt;
&lt;p&gt;
You can see the list of environments by executing &lt;tt&gt;drush site-alias&lt;/tt&gt;. An explanation on the aliases is found here: &lt;a class="ext-link" href="https://bitbucket.org/crin/crin/wiki/CRIN%20Drush%20aliases%20explained"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://bitbucket.org/crin/crin/wiki/CRIN%20Drush%20aliases%20explained&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Below are the examples on how to run &lt;tt&gt;drush uli&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mori@CRIN4:/var/www/stage/docroot/sites/stage.crin.org$ drush uli
http://stage.crin.org/en/user/reset/1/1441720321'''/[hash]'''/login
mori@CRIN4:/var/www/stage/docroot/sites$ drush @crin.stage uli
http://stage.crin.org/en/user/reset/1/1441720340/'''[hash]'''/login
&lt;/pre&gt;&lt;p&gt;
===
&lt;/p&gt;
&lt;p&gt;
Regarding the issue you had when logging into mysql, I also experienced it when attempting to edit the prod database (&lt;tt&gt;newprod&lt;/tt&gt;). Can you look into this as well?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 09 Sep 2015 12:14:05 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/36#comment:9</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/36#comment:9</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.55&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&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;1.2&lt;/em&gt; to &lt;em&gt;1.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/36#comment:8" title="Comment 8"&gt;mori&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
The problem you had is caused by lack of specificity so Drush to work out which site to access.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Yes, I'm sorry, that was stupid of me, thanks for pointing my mistake out.
&lt;/p&gt;
&lt;p&gt;
The Piwik settings here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;​&lt;a class="ext-link" href="https://stage.crin.org/en/admin/config/system/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stage.crin.org/en/admin/config/system/piwik&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Look like they are unchanged, so are probably fine, on dev and prod I was just getting the list of system settings pages:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://dev.crin.org/en/admin/config/system/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://dev.crin.org/en/admin/config/system/piwik&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.crin.org/en/admin/config/system/piwik"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.crin.org/en/admin/config/system/piwik&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Until I ran "Flush all caches" and then the settings appeared on dev, but not on the prod site, I had to restart memcache and php5-fpm to get the tracking code to appear on the site and to get the Piwik settings form to be available in admin:
&lt;/p&gt;
&lt;pre class="wiki"&gt;service php5-fpm restart
service memcached restart
&lt;/pre&gt;&lt;p&gt;
So I think the lesson here is that when new code is deployed we need to do a &lt;tt&gt;drush cc&lt;/tt&gt; to clear all the caches and restart these services, I'll look at where this could be added to the bitbucket documentation.
&lt;/p&gt;
&lt;p&gt;
The Piwik stats are being collected again now, so closing this ticket as fixed, thanks for you help on this.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>