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

System Check: Tracker status: 500 #8417

Closed
poing opened this issue Jul 23, 2015 · 14 comments
Closed

System Check: Tracker status: 500 #8417

poing opened this issue Jul 23, 2015 · 14 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@poing
Copy link

poing commented Jul 23, 2015

-- New Installation...

500 GET request to piwik.php failed. Try whitelisting this URL from HTTP Authentication and disable mod_security (you may have to ask your webhost). After making this change, restart your web server.

So wrong! The resolution to this issue was REMOVE non-linux artifacts left in the file.

222.229.x.x - - [23/Jul/2015:23:31:46 +0900] "GET /piwik.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0"

[user@webserver piwik]# mv piwik.php piwik.old; echo "" > piwik.php

222.229.x.x - - [23/Jul/2015:23:33:12 +0900] "GET /piwik.php HTTP/1.1" 200 3 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0"

-- The file loads, there is nothing wrong with the web server.

-- Continue installation
File size mismatch: /var/www/html/piwik/piwik.php (expected length: 2534, found: 21)
-- Nice to see it was checked.

THE SOLUTION:

[user@webserver piwik]# cat piwik.old > piwik.php

-- Indicating there is a non-linux artifact somewhere in the file causing the issue. diff WILL NOT show the two files are different.

@mattab mattab closed this as completed Jul 28, 2015
@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jul 28, 2015
@digeverything
Copy link

Just ran into the same problem, thanks @mattab that was driving me crazy.

@Geobert
Copy link

Geobert commented Aug 25, 2015

I have the same issue but cat piwik.old > piwik.php did not help :-/

@digeverything
Copy link

@Geobert I have to admit a couple of times it didn't work for me either. However the files are being compared it seems unstable. Unfortunately I can't help you anymore than to say that I kept trying with it and eventually it would relent. A better approach is probably to delve into how the file comparison is happening in the first place.

@Geobert
Copy link

Geobert commented Aug 25, 2015

@benjackson84 thanks for your answer, but keep trying what? Just refreshing the page? Or doing cat piwik.old > piwik.php and refresh over and over again?

using 2.14.3 BTW

@digeverything
Copy link

@Geobert sorry "kept trying" was a bit vague. I ran piwik, then deleted the file then ran piwik again, then restored the file and ran piwik again, then added a new line to the file then ran piwik again, then deleted the new line and ran piwik again. It was a trial and error process (which I hate), I got the impression I was battling with a cache. Eventually it accepted the file.

@ghost
Copy link

ghost commented Sep 18, 2015

Same error here, but I don't have an old piwik.php file. After using the latest beta release no problems anymore.

@dcht00
Copy link

dcht00 commented Sep 21, 2015

Fresh Piwik install on fresh Debian Jessie. Having a "Warning" during Piwik installation for this. Hope it won't bite later.

@mattab
Copy link
Member

mattab commented Sep 21, 2015

Please try with latest beta as hopefully the problem is fixed: http://piwik.org/faq/how-to-update/faq_159/

@dcht00
Copy link

dcht00 commented Sep 22, 2015

Could you please point me to verify this is a problem at all? How would it manifest?

@WelliSolutions
Copy link

In my case (Piwik 2.14.3, new installation) I can see in Apache's error log:

PHP Fatal error: Uncaught exception 'Exception' with message 'The configuration file {.../config/config.ini.php} has not been found or could not be read.' in .../core/Application/Kernel/EnvironmentValidator.php:64

And IMHO there was no instruction to create such a config file before going through the installation steps. Actually the installation process will create it. After it is created, there's no HTTP 500 error any more. So, just ignoring the warning seems to be ok.

I have installed via wget http://builds.piwik.org/piwik.zip && unzip piwik.zip

@ragnarkarlsson
Copy link

I've just run into this issue, running nginx + php-fpm on port 443, Centos 7 + Ajenti V.

Initially saw the 500 error on install, tried disabling the mod_ssl which is running on port 9000 for subversion but no change.

Having looked on my server (which I wget then unzip the file on) the piwik.php is showing as zero bytes.

Moved the file to piwik.old and then pasted into vi a copy of the source piwik.php, saved it and tested with a 200 result.

@simokhalil
Copy link

+1 Well done! thanks @mattab

@poing
Copy link
Author

poing commented Oct 15, 2015

@dcht00 it's not something you can always seen in an editor.^M
For example, vim autodetects the file format. Hiding the ^M at the end of each line.^M
It can be a result of using a dos formatted file on a *nix system.^M
^M
The file might look OK, but CR/LF is different.^M
Resulting in the non-linux artifacts left in the file.^M

@thyat000
Copy link

works for me too. I created an empty piwik.php file, then copy and paste the content to this file. voila....the page loads with no errors.
I also ran chmod 775 piwik.php

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

9 participants