ok i made a slight progress, it seems that it is not possible to start a session, heres a part of the error log:
Archiving period = week for idsite = http-equiv="Content-Type"...
<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>Unable to start session. Check that session.save_path or tmp/sessions is writeable.</p> </div>
</body>
</html>
Whats weird is that that the tmp/sessions folder has 777 and is owned by www-data which is correct.
Also “session.save_path” is disabled inside php.ini. I tried to enable it but the error msg stays the same.
Whats also weird is that it says:
Archiving period = week for idsite = http-equiv="Content-Type"...
isnt it supposed to look like:
Archiving period = week for idsite = 1...
or something? Im confused…
edit:
ok, it seems that the script is unable to fetch the siteid. In line 66 of your archive.sh script it tests the result of CMD_GET_ID_SITES which should be 1 2 3 4 5 and so on.
I simply added a new line between the lines 66 and 67 so that it looks like this:
TEST_IS_NUMERIC=`echo $idsite | egrep '^[0-9]+$'`
echo "IS TEST NUMERIC: $TEST_IS_NUMERIC"
if [ "$TEST_IS_NUMERIC" ]
This should output 1, 2, 3 and so on. It works fine on my other mashine, the output there is:
Starting Piwik archiving...
Started at: Mon Jul 26 15:01:55 CEST 2010
IS TEST NUMERIC: 1
Archiving period = day for idsite = 1...
<?xml version="1.0" encoding="utf-8" ?>
<results>
<result date="2010-06-05" />
<result date="2010-06-06" />
<result date="2010-06-07" />
...
On the other machine the output is:
piwik-dev:/export/vhosts/default/htdocs/piwik/misc/cron# sh archive.sh
Starting Piwik archiving...
IS TEST NUMERIC:
IS TEST NUMERIC:
[...many more of these...]
IS TEST NUMERIC:
IS TEST NUMERIC:
Piwik archiving finished.
The output of $ID_SITES is:
<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>Unable to start session. Check that session.save_path or tmp/sessions is writeable.</p> </div> </body> </html>
So i am back at the sessions problem, which is really annoying because the folders are writeable, the tmp/sessions folder is full of data. All the other pages are working properly, and they also use sessions, i dunno… style_emoticons/<#EMO_DIR#>/unsure.gif