We were running the latest version of Graylog 4.x and scheduled reports worked without issue. We upgraded to version 5.0.2, and since the upgrade, reports both scheduled and by selecting “More Actions > Download Report Now” do not work. Selecting Download Report Now produces this error:
{"type":"ChromedriverError","message":"Error occurred during startup of chromedriver.\nStartup Logs: <EMPTY>\nRoot Cause: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. \nHost info: host: 'graylog.redacted.com', ip: '127.0.1.1'"}
I have tried creating a new report to see if there was an incompatibility in the way reports were previously configured, but that results in the same error/issue.
This would be the second time i seen this post about reports not functioning after update.
Unlike the other post it was the size of the report that was unable to be sent.
What caught my attention was this
Possible causes are invalid address of the remote server or browser start-up failure.
\nHost info: host: ‘graylog.redacted.com’, ip: ‘127.0.1.1’"}
Is your loopback address actually 127.0.1.1 OR 127.0.0.1?
can you create a report with one widget? so to generate the report is under 30s?
i must restart the graylog service after a generated report error to become the little test report.
the error is the same to send email or to download report.
i have the same error and changed the hosts file from 127.0.1.1 to 127.0.0.1 with the same error.
@halfmoon Now that is interesting. I followed your suggestion. I created a very small report with one widget. I tried to download it, and received the same error as listed above. Restarted the graylog service. Attempted to download the small report again. After a few moments, the new small report generated successfully.
Then, I attempted to download one of the reports that had worked previously, prior to the upgrade. It sat there for a number of seconds, and then produced this error message:
{"type":"ApiError","message":"Unable to render report"}
After that, another attempt to download a report produced the same error as I indicated in my first post:
{"type":"ChromedriverError","message":"Error occurred during startup of chromedriver.\nStartup Logs: <EMPTY>\nRoot Cause: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. \nHost info: host: 'graylog.redacted.com', ip: '127.0.1.1'"}
After reading over this it seams , depending on the size of the report it wil time out , And it doesnt like 127.0.1.1. If there was success in a small report using 127.0.0.1, I would keep that address and work on timeout session, just an idea.
Thanks, @gsmith - the interesting thing is that this configuration in our environment is not any different than it was when we were running version 4.x. All to say, I am not sure whether or not that would constitute a bug. If you advise that I submit this as a bug, I can.
For what it is worth, we have upgraded to 5.0.3 and the issue remains.
@gsmith Thanks for the help! Before considering a roll-back/reinstall, do you know: is there a log somewhere that I may be overlooking which might give a little more insight to the problem? I appreciate it!
Update: We upgraded to the new 5.0.4 release today, and reporting now works! In reviewing the change log, nothing seems to directly relate to reporting. However, all of our reports work again, and are functional.
If anyone is still having problems with the schedule or the report is not generating, try using the system cron to send the created reports.
I created a bash script to call the Graylog Rest API using curl:
curl -u user:password http://ipaddress:9000/api/plugins/org.graylog.plugins.report/reports/<report_id_no>/email
sleep 160 #pause between report generation