Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku: Connection to log stream failed. Please try again later. When trying to access the logs

Tags:

heroku

I am running a Nodejs server on Heroku, but when I try to view/access the log I get this error message saying:

Connection to log stream failed. Please try again later.

along with a popup that shows up at top right corner enter image description here

I went to check the logs for another Heroku project that I have and the same thing was happening there as well. Any ideas as for why that's happening?

like image 345
Sidah Merzouk Avatar asked May 23 '18 19:05

Sidah Merzouk


1 Answers

This issue occurs frequently even when the logs are not down as @JRichardsz suggested.

According to Heroku's official documentation

A real-time tail session is automatically terminated after one hour of inactivity.

This can cause your Log Stream to time out.

I also assume they have other flags in place that limit users when using logs.

It is common to face temporary blocks from logs when using them extensively, usually after waiting a few minutes you can run heroku logs --tail again and continue viewing the logs.

like image 135
ricks Avatar answered Nov 15 '22 05:11

ricks