Hi,
I am using Piwik 2.2.2 and since I installed the cronjob for archiving, I get every time the following warning:
What can I do to get rid of this errors and warnings? There are overwhelming my Mail inbox.
Thank you!
Hi,
I am using Piwik 2.2.2 and since I installed the cronjob for archiving, I get every time the following warning:
What can I do to get rid of this errors and warnings? There are overwhelming my Mail inbox.
Thank you!
what php version are you running?
What python version are you running?
Hi!
ok a couple things…
I would use at least php 5.3.3 and python needs to be at least 2.7.1
That’s bad… Piwik is running on an Ubuntu 10.04.4 LTS server (5 years suecurity updates). And there are no newer versions of Python and PHP available. Apache has version 2.2.14.
Because this is a productive server which hosts lots of other websites I don’t want to upgrade Python, PHP or Apache ignoring the original Ubuntu sources.
Is there no other way to debug this error and fix it in some way?
Thank you!
What if you upgraded server to
12.04.4 LTS?(I know it too can break alot of things)
Maybe stick to an older piwik version until you can update the server itself, to get support for newer php version?
PHP Warning: parse_url(http://): Unable to parse URL in /var/www/sites/piwik/core/UrlHelper.php on line 494
Ok so there is clearly a bug, that I don’t think is related to PHP
(it is not related to Python version, @lesjokolat only bugs related to Log Analytics / Import_logs.py can be related to python version ).
Could you just try something for me:
if they don’t, please comment here I will investigate further to find the actual bug
Okay, after replacing --url with --piwik-domain I get no warning anymore. But the error only happens one time per day. I will wait until tomorrow and then I can write again here about what happened.
Hi,
i got also the same Error
PHP Warning: parse_url(http://): Unable to parse URL in xxxxx/piwik/docs/core/UrlHelper.php on line 494
Python 2.6.5 / PHP 5.3.2-1ubuntu4.23 with Suhosin-Patch (cli) (built: Mar 1 2014 00:32:42)
on a Ubuntu 10.04.4 LTS.
Since i did the change from url to piwik-domain as suggested - i got no further errors !!!
OLD - buggy
5 * * * * xxxxx/piwik/docs/console core:archive --url=http://piwik.xxxxxx.xx 2>&1 >> xxx/piwik/logs/cron-archive.txt
NEW - working
5 * * * * xxxxx/piwik/docs/console core:archive --piwik-domain=http://piwik.xxxxxx.xx 2>&1 >> xxx/piwik/logs/cron-archive.txt
You made my day !
THX
Bennoto
Ps.
The documentation ( How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo ) told me --url as parameter - perhaps it should changed ?
Thanks for your feedback, I’ve created a bug report at PHP Warning: parse_url(http://): Unable to parse URL in core/UrlHelper.php on line 494 · Issue #5180 · matomo-org/matomo · GitHub
There are some more errors. I got them this morning. It seems to belong to a weekly executed script.
01:05
[quote=“Cron www-data@my /usr/bin/php5 /var/www/sites/piwik/console core:archive --piwik-domain=http://piwik.my.server.net >> /var/log/piwik/archive.log”]
ERROR CoreConsole[2014-05-18 23:05:04] [edfbd] Got invalid response from API request: http://piwik.my.server.net/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=83cfd59fdd9db3a04f2646980bb199c7&trigger=archivephp. Response was 'task,output API.sendReport_1,ERROR: An error occured while sending ‘HTML Email Report - 1.2014-05-11.1.de.html’ to a.user@domain.com. Error was ‘malformed input
’'
ERROR CoreConsole[2014-05-18 23:05:04] [edfbd] 1 total errors during this script execution, please investigate and try and fix these errors.[/quote]
02:05
[quote=“Cron www-data@my /usr/bin/php5 /var/www/sites/piwik/console core:archive --piwik-domain=http://piwik.my.server.net >> /var/log/piwik/archive.log”]ERROR CoreConsole[2014-05-19 00:05:04] [6a39f] Got invalid response from API request: http://piwik.my.server.net/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=83cfd59fdd9db3a04f2646980bb199c7&trigger=archivephp. Response was 'task,output CoreAdminHome.purgeOutdatedArchives,Time elapsed: 0.387s API.sendReport_2,ERROR: An error occured while sending ‘PDF Email Report - 2.2014-05-12.2.de.pdf’ to b.user@satzweiss.com. Error was ‘malformed input
’ PrivacyManager.deleteReportData,Time elapsed: 0.023s PrivacyManager.deleteLogData,Time elapsed: 0.020s Piwik\Plugins\CorePluginsAdmin\MarketplaceApiClient.clearAllCacheEntries,Time elapsed: 0.025s CorePluginsAdmin.sendNotificationIfUpdatesAvailable,Time elapsed: 0.003s CoreAdminHome.optimizeArchiveTable,Time elapsed: 0.371s CoreUpdater.sendNotificationIfUpdateAvailable,Time elapsed: 0.003s’
ERROR CoreConsole[2014-05-19 00:05:04] [6a39f] 1 total errors during this script execution, please investigate and try and fix these errors.[/quote]
The error occurs when sending email reports, and the particular error is:
But I’m not sure what is the cause of this issue. I’ve created a ticket: http://dev.piwik.org/trac/ticket/5193#ticket
Is there anything where I can help to get rid of that error. It is very annoying. I posted the steps to reproduce that error on the ticket mentioned above.