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

After Upgrading to Piwik version: 3.1.0 tracking stopped working for all the sites. #12063

Closed
satya876 opened this issue Sep 15, 2017 · 21 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@satya876
Copy link

Hi,
Kindly suggest, after I upgraded my Piwik to version: 3.1.0 tracking to all the sites stopped. None of the site is now been tracked. I am not getting any error while I am accessing the Piwik dashboard. It only stopped all the tracking. Kindly help. Before upgrade everything was working fine.

Piwik version: 3.1.0
MySQL version: 5.5.56
PHP version: 7.0.23

@michaeltarleton
Copy link

+1 Same here

  • Piwik: 3.1.0
  • MySQL: 14.14 Distrib 5.7.19
  • PHP: 7.0.18
  • Ubuntu: 16.04.1 (x86_64)
  • Apache:
    • version: Apache/2.4.18 (Ubuntu)
    • built: 2017-07-27T14:34:01

Downgrade is not possible because of the database migration

@mattab
Copy link
Member

mattab commented Sep 18, 2017

@satya876 @michaeltarleton can you please follow instructions here: http://developer.piwik.org/api-reference/tracking-api#debugging-the-tracker
and let us know what error message you're seeing in the piwik.php debug output?

@satya876
Copy link
Author

piwik.zip
Hi Matt,
I did as instructed. kindly find attached log file.

Thank You !!

@mattab
Copy link
Member

mattab commented Sep 18, 2017

@satya876 Thanks, but in your tests you have the "Ignore Cookie" created, so your visits are not tracked and there is no error. Could you try again in "private browsing" window or a browser without the Piwik exclude cookie?

@satya876
Copy link
Author

Hi Matt,

I removed the option to ignore cookie and have tested in "private browsing" as well as from another browser. Still not showing any data in Real Time as well as in Visitor Log. Kindly find the attached updated logs.
piwik.zip

@mattab
Copy link
Member

mattab commented Sep 18, 2017

Now your IP address is excluded so can you remove this IP exclude:

DEBUG CoreHome[2017-09-18 03:43:49 UTC] [0b22e] Visitor IP 127.0.0.1 is excluded from being tracked

@satya876
Copy link
Author

I excluded 127.0.0.1 IP, however now in the visitor log all the IP is shown as 127.0.0.1, it is not tracking the public IP. Kindly refer the attachments with screen shots.
I am not accessing the application from local host. I am using it from the static IP: 107.182.225.47
ss_visitor_log.zip

@satya876
Copy link
Author

All the time it is showing "Your current IP address is 127.0.0.1" this is not correct and in the Visitor Log the same IP is showing for all the visit. I believe this application is not reliable for production, this is the 3rd time I find the application have issues.

@mattab
Copy link
Member

mattab commented Sep 19, 2017

I guess you're using Piwik behind a proxy, see: http://piwik.org/faq/how-to-install/faq_98/

@mattab mattab closed this as completed Sep 19, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 19, 2017
@satya876
Copy link
Author

Hi Matt,

I use to deploy on Apache and reverse proxy with NGINX before version upgrade everything was working fine. But after version upgrade there are issues coming up. Anyways Thanks for replying.

@mattab
Copy link
Member

mattab commented Sep 19, 2017

Something changed in your server configuration, because nothing's changed in Piwik in that area

@satya876
Copy link
Author

Thanks for your response, I will check on my server.

@satya876
Copy link
Author

I am using the below configuration:

proxy_client_headers[] = "HTTP_X_FORWARDED_FOR"
proxy_host_headers[] = "HTTP_X_FORWARDED_HOST"
trusted_hosts[] = "analytics.bluella.in"

Apache is listining on 127.0.0.1:81

NGINX as: proxy_pass http://127.0.0.1:81;

From long time I was using the same configuration and everything was working fine. But after update, the Visitor IP is simply showing 127.0.0.1 for all the website.

Kindly suggest.

@mattab
Copy link
Member

mattab commented Sep 20, 2017

which version did you upgrade from?

@satya876
Copy link
Author

satya876 commented Sep 20, 2017 via email

@satya876
Copy link
Author

Hi Matt,

I am running the Piwik on Apache server without using any reverse proxy. The issue still not rectified. Experiencing the same issue. Only Server local IP is shown in the visitor log.

Kindly suggest.

@mattab
Copy link
Member

mattab commented Sep 24, 2017

can you post a link to your phpinfo or so?

@satya876
Copy link
Author

php.zip
Hello Matt,

You can access phpinfo from the below link:
https://analytics.bluella.in/analytics/info.php

Thank You !!

@mattab
Copy link
Member

mattab commented Sep 25, 2017

the IP address of the user is not visible in the phpinfo, so there is a problem in the configuration of your server somehow. please ask your host how you can get the original IP address

@satya876
Copy link
Author

Okay, I will and will get back to you with the update. Thank You !!

@satya876
Copy link
Author

I changed the NGINX configuration as below, now it is working fine.

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

Thank You for the help provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants