yfauser / planespotter

Demo App utilizing public Aircraft Tracking Data
MIT License
39 stars 75 forks source link

Internal Server Error on App Server #7

Open ericfairfield opened 5 years ago

ericfairfield commented 5 years ago

Getting an Internal Server Error when testing the App server with the curl commands. Getting the following from the uwsgi logs. We rebuilt it and the same issue. It is 16.04.5 and built exactly as the docs show.

--- no python application found, check your startup logs for errors --- [pid: 1237|app: -1|req: -1/1] 10.254.12.68 () {32 vars in 362 bytes} [Wed Apr 17 13:43:53 2019] GET /api/planes => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) --- no python application found, check your startup logs for errors --- [pid: 1238|app: -1|req: -1/2] 10.254.12.68 () {32 vars in 393 bytes} [Wed Apr 17 13:58:25 2019] GET /api/healthcheck => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) --- no python application found, check your startup logs for errors --- [pid: 1240|app: -1|req: -1/3] 10.254.12.68 () {32 vars in 393 bytes} [Wed Apr 17 14:04:31 2019] GET /api/healthcheck => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)

yfauser commented 5 years ago

Sorry that I did not react ... I overlooked this message. --- no python application found, check your startup logs for errors --- tells us that the python app doesn't load, so it crashes when it gets started by the web server.

What happens if you go into the directory that holds the app server code and start it using python main.py?