App is listening on port 8080. We recommend your app listen on the port defined by the PORT environment variable to take advantage of an NGINX layer on port 8080.

2,869 views
Skip to first unread message

Kevin Méndez Arce

unread,
Dec 26, 2019, 5:05:10 PM12/26/19
to Google App Engine
Hi my name is Kevin and I am new with the app engine.
I am a running a timer for 20 min. Sometime the timer runs very well but other the console returns 

App is listening on port 8080. We recommend your app listen on the port defined by the PORT environment variable to take advantage of an NGINX layer on port 8080.

When this warning appers my timer stops. I has been search this warning on internet and how can I fixed, but without any success.

I really apreciate if I could get a answer for this issue. Actually the app is in production

Julie (cloud platform support)

unread,
Dec 27, 2019, 1:34:40 PM12/27/19
to Google App Engine
Thanks for reporting this. I understand the error message sounds concerning, the Product team specified that the error is more closely described as "App is listening on port 8080, You could take advantage of an automatic nginx layer available on port 8080 if your application listens on the port defined by the PORT environment variable." for Java runtimes on App Engine. Its unclear how the timer works but it is possible the times is unable to continue counting when a warning is returned and as it sounds like the counter is self coded so if possible can you have it ignore the warning? Otherwise you may be able to exclude the specific warning as detailed by this document if the actual warning log is what is causing the timer to stop as it sounds like the request should work it just also returns an error. 
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Kevin Méndez Arce

unread,
Dec 29, 2019, 2:00:51 PM12/29/19
to Google App Engine
HI Julie.
Thanks for your answer. I exclude the warning but I am still getting the same issue. I go to attach my code of the timer

Степан Семчёнок

unread,
Dec 30, 2019, 11:28:47 AM12/30/19
to Google App Engine
No it means your app is still listening on port 8080...

пятница, 27 декабря 2019 г., 5:05:10 UTC+7 пользователь Kevin Méndez Arce написал:

George (Cloud Platform Support)

unread,
Dec 30, 2019, 12:14:21 PM12/30/19
to Google App Engine
Hi Kevin, 

In fact, listening to the PORT environment variable in your app still constitutes good practice. You should try using this environment variable in your code, referring to the "Node.js Runtime Environment" documentation page

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching the app engine. For coding and program architecture, as well as setting environment variables, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help.
Reply all
Reply to author
Forward
0 new messages