codewind icon indicating copy to clipboard operation
codewind copied to clipboard

'Application is taking longer than expected to start' message is missing application host

Open tetchel opened this issue 5 years ago • 7 comments

Remote codewind

[02/01/20 18:00:37 pyproj123] [INFO] Emitting event
 message: projectStatusChanged
 data: {
  "projectID": "603e6690-2031-11ea-b6f3-3fae510b6303",
  "appStatus": "starting",
  "detailedAppStatus": {
    "severity": "WARN",
    "message": "Timeout: Pinging http://:5000/cc. The application is taking longer than expected to start. Please check the application logs for problems and ensure the project's 'healthCheck' setting is correct. Last error message received: Received response, but with bad status code 404 when pinging project",
    "notify": true
  }
}
[02/01/20 18:00:37 pyproj123] [INFO] pingInTransitApplications: Application state for project 603e6690-2031-11ea-b6f3-3fae510b6303 has changed from starting to starting
[02/01/20 18:00:37 pyproj123] [INFO] pingInTransitApplications: Application state error message: Timeout: Pinging http://:5000/cc. The application is taking longer than expected to start. Please check the application logs for problems and ensure the project's 'healthCheck' setting is correct. Last error message received: Received response, but with bad status code 404 when pinging project

Pinging http://:5000/cc should be Pinging http://cw-pyproj123-603e6690-2031-11ea-b6f3-codewind.codewind-ide-7674b4bd9abbdeea0be228236d5275c9-0001.tor01.containers.appdomain.cloud/cc

tetchel avatar Jan 02 '20 18:01 tetchel

it would be nice if the message was shorter image

tetchel avatar Jan 02 '20 18:01 tetchel

In respect to making the message shorter, how about something like:

Timeout: Pinging <hostname>:<port>. The application is taking longer than expected to start,
received bad status code <code>. Please check the application logs and verify the healthCheck
setting

johnmcollier avatar Jan 07 '20 14:01 johnmcollier

Also, the message that does have the host uses the internal Docker networking IP address, which isn't actually reachable from the user's system and doesn't match the Application Endpoint, which is pretty confusing.

image

tetchel avatar Jan 10 '20 17:01 tetchel

Still a bug

tetchel avatar May 14 '20 15:05 tetchel

/assign /pipeline In Progress

jcockbain avatar Jul 07 '20 11:07 jcockbain

@tetchel - from what you've seen is the original problem (missing hostname) exclusive to remote projects?

With Local Codewind I get the full messages with internal docker IP address.

jcockbain avatar Jul 13 '20 12:07 jcockbain

Yes, in the description it says this is for remote

tetchel avatar Jul 13 '20 16:07 tetchel