After I update the version 1.5.1, I use the piwik archiving, but I found the archiveing process couldn’t finish correctly. The following infomation is the the archiving
result:
root@localhost cron]# sh archive.sh
Starting Piwik reports archiving…
the following is my test process according to your advice:
for TEST_PHP_BIN in php5 php php-cli php-cgi; do
if which $TEST_PHP_BIN >/dev/null 2>/dev/null; then
PHP_BIN=which $TEST_PHP_BIN
echo "$PHP_BIN"
break
fi
done
the result is
[root@localhost cron]# sh archive.sh /usr/local/bin/php
Starting Piwik reports archiving…
I had a similar issue, turns out I had forgotten to configure MySQL correctly in the PHP CLI configuration. The error message was rather misleading, I think the reason it occurs is that when Piwik detects the invalid configuration it tries to trigger the installation, which attempts to use the session, which fails due to the CLI environment (I believe).
This may or may not be your exact problem, but the Session error may be leading you down the wrong path.
[quote=Richard.Thomas]
I had a similar issue, turns out I had forgotten to configure MySQL correctly in the PHP CLI configuration. The error message was rather misleading, I think the reason it occurs is that when Piwik detects the invalid configuration it tries to trigger the installation, which attempts to use the session, which fails due to the CLI environment (I believe).
This may or may not be your exact problem, but the Session error may be leading you down the wrong path.[/quote]
thank you very much, i will check it according to what you said,
[quote=Richard.Thomas]
I had a similar issue, turns out I had forgotten to configure MySQL correctly in the PHP CLI configuration. The error message was rather misleading, I think the reason it occurs is that when Piwik detects the invalid configuration it tries to trigger the installation, which attempts to use the session, which fails due to the CLI environment (I believe).
This may or may not be your exact problem, but the Session error may be leading you down the wrong path.[/quote]
can you describe how to solve the problem in detail, I can not find where the problem is, thanks