A few days ago, I used the automatic upgrade button to upgrade to 1.1.1
Since the upgrade, Piwik is not tracking any new data (everything 0 visits). But the Live Visitors on the dashboard is working so the tracking code must still be working.
Sort of. In Settings -> General Settings I changed" Allow Piwik archiving to trigger when reports are viewed from the browser" back to “Yes” and it is now working.
I haven’t figured out why it no longer works by running the archiving from the command line using /misc/cron/archive.sh which is also why the cron job no longer works.
On my server i use the cron for archiving, so i tried to run it from the shell. It reported permission problems that cold be corrected with the following commands:
The strange thing is, when I run the misc/cron/archive.sh script manually from the command line, it looks like it is working, it says “Starting archiving” or whatever it says, but it doesn’t actually do anything.
Raw Rob, Zero, I am unable to reproduce the archive.sh bug where "it looks like it is working, it says “Starting archiving”, but it doesn’t actually do anything. "
Can you please elaborate how I can reproduce this issue? In the case where permissions are not enough, the archive should show an error message rather than nothing (it does in my tests)
[quote=matthieu]
Raw Rob, Zero, I am unable to reproduce the archive.sh bug where "it looks like it is working, it says “Starting archiving”, but it doesn’t actually do anything. "
Can you please elaborate how I can reproduce this issue? In the case where permissions are not enough, the archive should show an error message rather than nothing (it does in my tests)[/quote]
I was running version 1 (I assume it was 1.0, not entirely sure) and everything was working fine. Used the automatic upgrade to upgrade to 1.1.1 and from that point on the archive.sh script stopped working. It would just say “Starting Piwik reports archiving…” and then immediately return to the command prompt.
I’ve just changed the permissions as stated above and it now works as it should.
are you able to change the permission back to what they were and see the original problem? then please write the steps to reproduce here and I’ll look into it
[quote=matthieu]
are you able to change the permission back to what they were and see the original problem? then please write the steps to reproduce here and I’ll look into it[/quote]
Yes, type the command chmod -R a-w tmp to remove write permissions
run archive.sh
The message says "Starting Piwik reports archiving…"
and then it immediately finished and goes back to the command prompt, doing nothing.
root@pwk1:~# su www-data -c "sh /path/piwik/misc/cron/archive.sh"
Starting Piwik reports archiving...
Archiving period = day for idsite = 0777...
<html>
<head>
<title>Piwik › Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="plugins/CoreHome/templates/images/favicon.ico" />
<link rel="stylesheet" type="text/css" href="themes/default/simple_structure.css" />
</head>
<body>
<div id="content">
<div id="title"><span id="h1">Piwik </span><span id="subh1"> # open source web analytics</span></div>
<p><p><b>Piwik couldn't write to some directories</b>.</p> <p>Try to Execute the following commands on your server:</p><blockquote><code>chmod 0777 /path/piwik/tmp</code><br /><code>chmod 0777 /path/piwik/tmp/templates_c</code><br /><code>chmod 0777 /path/piwik/tmp/cache</code><br /><code>chmod 0777 /path/piwik/tmp/assets</code><br /></blockquote><p>If this doesn't work, you can try to create the directories with your FTP software, and set the CHMOD to 0777 (with your FTP software, right click on the directories, permissions).</p><p>After applying the modifications, you can <a href='index.php'>refresh the page</a>.</p><p>If you need more help, try <a href='?module=Proxy&action=redirect&url=http://piwik.org'>Piwik.org</a>.</p></p> <ul>
<li><a target="_blank" href="?module=Proxy&action=redirect&url=http://piwik.org">Piwik homepage</a></li>
<li><a target="_blank" href="?module=Proxy&action=redirect&url=http://piwik.org/faq/">Piwik Frequently Asked Questions</a></li>
<li><a target="_blank" href="?module=Proxy&action=redirect&url=http://piwik.org/docs/">Piwik Documentation</a></li>
<li><a target="_blank" href="?module=Proxy&action=redirect&url=http://forum.piwik.org/">Piwik Forums</a></li>
<li><a target="_blank" href="?module=Proxy&action=redirect&url=http://demo.piwik.org">Piwik Online Demo</a></li>
</ul></div>
</body>
</html>