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
OVH Web Host compatibility: detect when file sessions are too slow and use db sessions instead #2997
Comments
See also a related ticket, maybe slightly duplicate: #3234 |
How can we detect the web host effectively? in the case of OVH this is causing much trouble and lost users. We must try to change the setting during install for OVH users!!! |
Regarding DB sessions: Do you think we could do a test during installation? We could call an AJAX method that would try to do some filesystem operations in /tmp/sessions. If it failed or took too long, we'd say there was an issue and make sure DB sessions would be used. I'm not sure if this would be a reliable way to test, though. You wouldn't happen to have an OVH account, would you? Regarding mod_security:
I think we can solve this by issuing a fake tracking request to the server during setup. If it fails or times out, the tracking code that gets shown to users will have setRequestMethod('POST') in it. What do you think? |
Detecting the hosting provider will require an outside service, eg whois. Maybe something we host at api.piwik.org? The installer already does a GET tracking request. It doesn't always trigger mod security because some users have custom error pages or redirects. |
You can't POST to an external domain if piwik is hosted on another domain.
unfortunately I think the only way to work around the mod_security issue would be to not pass any URL or http:// in the GET as it seems to trigger the notice. if we removed these from the tracker and did not require the prepend protocol:// in the URLs in APIs, it might work?
Good point, we could try to open the session (ie. simulate what fails with the widgets), during the installation. If the file session does not work or reply within N second, we can try to enable DB sessions? Anthon & Benaka, what are your thoughts? |
Please fix +1 |
Fixed in [7681]. |
(In [7690]) Refs #2997, add test for checkIfFilesystemIsNfs. |
(In [7695]) Refs #2997, make sure stderr doesn't show up as output in df command. |
It is frustrating thing for some users because by default their host does not work with PiwiK: eg. OVH users need to enable DB sessions.
How to fix this issue?
The goal is minimize user frustration and risk to not continue using Piwik because of these known issues.
Already Discussed in comments:
The text was updated successfully, but these errors were encountered: