Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import Apache access logs #4293

Closed
anonymous-matomo-user opened this issue Nov 12, 2013 · 1 comment
Closed

Unable to import Apache access logs #4293

anonymous-matomo-user opened this issue Nov 12, 2013 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

Environment:
PHP version: 5.5.3-1ubuntu2
OS: Ubuntu 13.10
Piwik version: 1.12

I ran the following command to import Apache access logs:

python piwik/misc/log-analytics/import_logs.py --url="http://piwik.dev" /var/log/apache2/other_vhosts_access.log --idsite=2

I got the following output in my terminal:

0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Parsing log /var/log/apache2/other_vhosts_access.log...
637 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
637 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
637 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
637 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Fatal error: Internal Server Error
You can restart the import of "/var/log/apache2/other_vhosts_access.log" from the point it failed by specifying --skip=45 on the command line.

Running tailf simultaneously on my error log showed the following PHP error:

[Tue Nov 12 16:48:15.432569 2013] [:error] [pid 21755] [client 127.0.0.1:45304] PHP Fatal error:  Cannot use object of type stdClass as array in /home/okal/workspaces/piwik/piwik/core/Common.php on line 594

NB: piwik.dev is an entry in my host file, and loads fine in-browser.
Keywords: log analytics, php 5.5

@mattab
Copy link
Member

mattab commented Nov 14, 2013

can you please try 2.0-beta: http://forum.piwik.org/read.php?2,106854,106854#msg-106854
if you still experience this bug please reopen the ticket

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants