No output from console core:archive

Hello,

I’m running console core:archive in a cron job and it seems to work fine but I’ve noticed that in the last few versions there is absolutely NO output when I run the command. Regardless of --verbose or -vvv flags.

I’ve searched the forums and the web in general and can’t find anything. I feel like I’m missing something simple. Please advise.

Thanks!

-Chris Murphy

I’m seeing the same with 2.12.1. Is this expected. I almost feel like it is getting hung up somewhere.

I run the following command in 2.12.1 and get nothing until it terminates.


sudo -u apache php /var/www/piwik2.12/console core:archive --url=http://rofpia002a.xxxx.xxx/piwik2.12

This is the output I get from version 2.8.3


sudo -u apache php /var/www/piwik/console core:archive --url=http://rofpia002a.xxxx.xxx/piwik        
INFO LoginLdap[2015-04-16 16:50:57] [33f68] UserSynchronizer::makeConfigured(): LDAP access synchronization not enabled.
INFO CoreConsole[2015-04-16 16:50:57] [33f68] ---------------------------
INFO CoreConsole[2015-04-16 16:50:57] [33f68] INIT
INFO CoreConsole[2015-04-16 16:50:57] [33f68] Piwik is installed at: http://rofpia002a.xxxx.xxx/piwik/index.php
INFO CoreConsole[2015-04-16 16:50:57] [33f68] Running Piwik 2.8.3 as Super User
INFO CoreConsole[2015-04-16 16:50:57] [33f68] ---------------------------
INFO CoreConsole[2015-04-16 16:50:57] [33f68] NOTES
INFO CoreConsole[2015-04-16 16:50:57] [33f68] - If you execute this script at least once per hour (or more often) in a crontab, you may disable 'Browser trigger archiving' in Piwik UI > Settings > General Settings.
INFO CoreConsole[2015-04-16 16:50:57] [33f68]   See the doc at: http://piwik.org/docs/setup-auto-archiving/
INFO CoreConsole[2015-04-16 16:50:57] [33f68] - Reports for today will be processed at most every 3600 seconds. You can change this value in Piwik UI > Settings > General Settings.
INFO CoreConsole[2015-04-16 16:50:57] [33f68] - Reports for the current week/month/year will be refreshed at most every 3600 seconds.
INFO CoreConsole[2015-04-16 16:50:57] [33f68] - Archiving was last executed without error 42 min 15s ago
INFO CoreConsole[2015-04-16 16:52:32] [33f68] - Will process 0 websites with new visits since 42 min 15s
INFO CoreConsole[2015-04-16 16:52:32] [33f68] - Will process 15 other websites because some old data reports have been invalidated (eg. using the Log Import script) , IDs: 1432, 1419, 1430, 1431, 1429, 1428, 1418, 1379, 1409, 1377, 1378, 1410, 1402, 2912, 2980
INFO CoreConsole[2015-04-16 16:52:32] [33f68] ---------------------------
INFO CoreConsole[2015-04-16 16:52:32] [33f68] START
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Starting Piwik reports archiving...
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Done archiving!
INFO CoreConsole[2015-04-16 16:52:32] [33f68] ---------------------------
INFO CoreConsole[2015-04-16 16:52:32] [33f68] SUMMARY
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Total visits for today across archived websites: 0
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Archived today's reports for 0 websites
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Archived week/month/year for 0 websites
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Skipped 1993 websites: no new visit since the last script execution
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Skipped 0 websites day archiving: existing daily reports are less than 3600 seconds old
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Skipped 0 websites week/month/year archiving: existing periods reports are less than 3600 seconds old
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Total API requests: 0
INFO CoreConsole[2015-04-16 16:52:32] [33f68] done: 0/0, 0 vtoday, 0 wtoday, 0 wperiods, 0 req, 152 ms, no error
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Time elapsed: 0.152s
INFO CoreConsole[2015-04-16 16:52:32] [33f68] ---------------------------
INFO CoreConsole[2015-04-16 16:52:32] [33f68] SCHEDULED TASKS
INFO CoreConsole[2015-04-16 16:52:32] [33f68] Starting Scheduled tasks...
INFO CoreConsole[2015-04-16 16:52:33] [33f68]  No task to run
INFO CoreConsole[2015-04-16 16:52:33] [33f68] done
INFO CoreConsole[2015-04-16 16:52:33] [33f68] ---------------------------

I think I figured it out. I had to go into admin and enable the “Monolog” plugin. Now the expected output is being displayed.

Wow. Thank you! I never would have looked for a plugin for that.

I don’t suppose there’s any explanation as to why that would have happened? I never read anything about it in the changelog during upgrades but I suppose I could have missed it.

-Murphy