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
Better message when the core:archive failed with an internal server error #6723
Comments
With the logger refactoring and the latest changes in
So that means we can close this one? |
Nice progress! Here is a proposal:
|
Wether Could we just replace this:
To this:
(by the way I couldn't find any FAQ regarding this?) I'm not sure getting the name of the log file will be easy :/ |
not exactly, because, when
we only have this FAQ so far: https://piwik.org/faq/troubleshooting/faq_115/ - maybe it needs updating?
could we get it from DI container? |
|
I'm thinking about it over and over...
TL/DR: empty response should only happen when running through web (i.e. $message = "Got invalid response from API request: $url. ";
if (empty($response)) {
$message .= "The response was empty. This usually means a server error. This solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web server Error Log file for more details.";
} else {
$message .= "Response was '$response'";
} That should show:
This should be fine then. |
Sounds good! +1 |
OK all should be good then |
The goal of this issue is to improve the message displayed to users when an API requests fails during the
core:archive
command.Users often have this problem and need to ask in the forums. For example today this post. When the
core:archive
command fails, the output looks like this:The message mentions the
web server error log file
but often thecore:archive
command will use CLI to archive the data (in #4610). So the error will rather be logged in the PHP cli error log file.Maybe we could make the message dependant on the context Cli VS Http and point to the actual error log file path if we can detect it.
The text was updated successfully, but these errors were encountered: