django - Heroku ImportError - Gunicorn still trying to run deleted instead of new app? -


yesterday worked through heroku dev center tutorial getting started django on heroku. using tutorial, created app called "oldtestapp"...

today went heroku.com, logged in, , deleted oldtestapp. have existing django project wish migrate heroku. copied on procfile , requirements.txt oldtestapp new app's root directory (the same dir manage.py in). changed procfile: said "oldtestapp.wsgi" changed "newapp.wsgi" newapp name of django application. opened git bash in root directory project (the same dir manage.py in) , pushed git , heroku.

i got internal server error when did heroku open. logs below (i replaced email emailaddress@email.com):

$ heroku logs 2013-07-17t23:09:55+00:00 heroku[slug-compiler]: slug compilation started 2013-07-17t23:09:56+00:00 heroku[slug-compiler]: slug compilation failed: no ced ar-supported app detected 2013-07-17t23:15:43+00:00 heroku[slug-compiler]: slug compilation started ←[36m2013-07-17t23:17:07.691491+00:00 heroku[api]:←[0m scale web=1 emailadd ress@email.com ←[36m2013-07-17t23:17:07.728257+00:00 heroku[api]:←[0m deploy e6cec10 emailadd ress@email.com ←[36m2013-07-17t23:17:07.775009+00:00 heroku[api]:←[0m release v3 created emailaddress@email.com ←[36m2013-07-17t23:17:07.812132+00:00 heroku[api]:←[0m deploy e6cec10 emailadd ress@email.com 2013-07-17t23:17:08+00:00 heroku[slug-compiler]: slug compilation finished ←[33m2013-07-17t23:17:15.119247+00:00 heroku[web.1]:←[0m starting process c ommand `gunicorn oldtestapp.wsgi` ←[33m2013-07-17t23:17:17.533626+00:00 app[web.1]:←[0m 2013-07-17 23:17:17 [2] [i nfo] listening at: http://0.0.0.0:43432 (2) ←[33m2013-07-17t23:17:17.535035+00:00 app[web.1]:←[0m 2013-07-17 23:17:17 [2] [i nfo] using worker: sync ←[33m2013-07-17t23:17:17.531496+00:00 app[web.1]:←[0m 2013-07-17 23:17:17 [2] [i nfo] starting gunicorn 17.5 ←[33m2013-07-17t23:17:17.567349+00:00 app[web.1]:←[0m 2013-07-17 23:17:17 [7] [i nfo] booting worker pid: 7 ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/arbiter.py", line 473, in spawn_worker ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m     worker.init_process() ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m     self.wsgi = self.app.w sgi() ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m 2013-07-17 23:17:17 [7] [e rror] exception in worker process: ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m traceback (most recent cal l last): ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_proce ss ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/base.py", line 115, in wsgi ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m importerror: no module nam ed oldtestapp.wsgi ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/arbiter.py", line 473, in spawn_worker ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m     __import__(module) ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m traceback (most recent cal l last): ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 33, in load ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m     return util.import_app (self.app_uri) ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/util.py", line 353, in import_app ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/base.py", line 115, in wsgi ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_proce ss ←[33m2013-07-17t23:17:17.618566+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/util.py", line 353, in import_app ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m     self.callable = self.l oad() ←[33m2013-07-17t23:17:17.618566+00:00 app[web.1]:←[0m     return util.import_app (self.app_uri) ←[33m2013-07-17t23:17:17.618566+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 33, in load ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m     worker.init_process() ←[33m2013-07-17t23:17:17.618202+00:00 app[web.1]:←[0m     self.callable = self.l oad() ←[33m2013-07-17t23:17:17.620526+00:00 app[web.1]:←[0m 2013-07-17 23:17:17 [7] [i nfo] worker exiting (pid: 7) ←[33m2013-07-17t23:17:17.618566+00:00 app[web.1]:←[0m     __import__(module) ←[33m2013-07-17t23:17:17.618566+00:00 app[web.1]:←[0m importerror: no module nam ed oldtestapp.wsgi ←[33m2013-07-17t23:17:17.618410+00:00 app[web.1]:←[0m     self.wsgi = self.app.w sgi() ←[33m2013-07-17t23:17:17.699855+00:00 heroku[web.1]:←[0m state changed star ting ←[33m2013-07-17t23:17:18.100018+00:00 app[web.1]:←[0m 2013-07-17 23:17:18 [2] [i nfo] shutting down: master ←[33m2013-07-17t23:17:18.104067+00:00 app[web.1]:←[0m 2013-07-17 23:17:18 [2] [i nfo] reason: worker failed boot. ←[33m2013-07-17t23:17:19.804175+00:00 heroku[web.1]:←[0m process exited sta tus 3 ←[33m2013-07-17t23:17:24.727149+00:00 heroku[web.1]:←[0m starting process c ommand `gunicorn oldtestapp.wsgi` ←[33m2013-07-17t23:17:25.684787+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [2] [i nfo] starting gunicorn 17.5 ←[33m2013-07-17t23:17:25.685477+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [2] [i nfo] listening at: http://0.0.0.0:10242 (2) ←[33m2013-07-17t23:17:25.689543+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [2] [i nfo] using worker: sync ←[33m2013-07-17t23:17:25.698842+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [7] [i nfo] booting worker pid: 7 ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [7] [e rror] exception in worker process: ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/arbiter.py", line 473, in spawn_worker ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/base.py", line 115, in wsgi ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m     worker.init_process() ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m     __import__(module) ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m     self.callable = self.l oad() ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_proce ss ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/arbiter.py", line 473, in spawn_worker ←[33m2013-07-17t23:17:25.717331+00:00 app[web.1]:←[0m     return util.import_app (self.app_uri) ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m traceback (most recent cal l last): ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m     self.wsgi = self.app.w sgi() ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m     self.callable = self.l oad() ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m traceback (most recent cal l last): ←[33m2013-07-17t23:17:25.717331+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/util.py", line 353, in import_app ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 33, in load ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_proce ss ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/base.py", line 115, in wsgi ←[33m2013-07-17t23:17:25.716897+00:00 app[web.1]:←[0m     return util.import_app (self.app_uri) ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m     worker.init_process() ←[33m2013-07-17t23:17:25.717331+00:00 app[web.1]:←[0m     __import__(module) ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/util.py", line 353, in import_app ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m     self.wsgi = self.app.w sgi() ←[33m2013-07-17t23:17:25.717176+00:00 app[web.1]:←[0m importerror: no module nam ed oldtestapp.wsgi ←[33m2013-07-17t23:17:25.717331+00:00 app[web.1]:←[0m importerror: no module nam ed oldtestapp.wsgi ←[33m2013-07-17t23:17:25.717331+00:00 app[web.1]:←[0m   file "/app/.heroku/pytho n/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 33, in load ←[33m2013-07-17t23:17:25.717331+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [7] [i nfo] worker exiting (pid: 7) ←[33m2013-07-17t23:17:25.863220+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [2] [i nfo] shutting down: master ←[33m2013-07-17t23:17:25.863355+00:00 app[web.1]:←[0m 2013-07-17 23:17:25 [2] [i nfo] reason: worker failed boot. ←[33m2013-07-17t23:17:27.176443+00:00 heroku[web.1]:←[0m process exited sta tus 3 ←[33m2013-07-17t23:17:27.194233+00:00 heroku[web.1]:←[0m state changed star ting crashed ←[33m2013-07-17t23:17:19.814946+00:00 heroku[web.1]:←[0m state changed t o crashed ←[33m2013-07-17t23:17:19.815657+00:00 heroku[web.1]:←[0m state changed cras hed starting 2013-07-17t23:19:20+00:00 heroku[slug-compiler]: slug compilation started ←[36m2013-07-17t23:20:01.083451+00:00 heroku[api]:←[0m deploy 339f362 emailadd ress@email.com ←[36m2013-07-17t23:20:01.121450+00:00 heroku[api]:←[0m release v4 created che riexress@email.com ←[36m2013-07-17t23:20:01.164786+00:00 heroku[api]:←[0m deploy 339f362 emailadd ress@email.com 2013-07-17t23:20:02+00:00 heroku[slug-compiler]: slug compilation finished ←[33m2013-07-17t23:20:08.957935+00:00 heroku[web.1]:←[0m state changed star ting ←[33m2013-07-17t23:20:01.520877+00:00 heroku[web.1]:←[0m state changed cras hed starting ←[36m2013-07-17t23:23:26.902944+00:00 heroku[api]:←[0m scale web=1 emailadd ress@email.com ←[32m2013-07-17t23:23:32.825464+00:00 heroku[router]:←[0m at=info method=get pat h=/favicon.ico host=secret-falls-6154.herokuapp.com fwd="69.249.253.220" dyno=we b.1 connect=1ms service=4ms status=500 bytes=135 ←[32m2013-07-17t23:27:34.455499+00:00 heroku[router]:←[0m at=info method=get pat h=/ host=pathetic.herokuapp.com fwd="69.249.253.220" dyno=web.1 connect=2ms serv ice=11ms status=500 bytes=135 ←[32m2013-07-17t23:27:34.782763+00:00 heroku[router]:←[0m at=info method=get pat h=/favicon.ico host=pathetic.herokuapp.com fwd="69.249.253.220" dyno=web.1 conne ct=2ms service=8ms status=500 bytes=135 ←[32m2013-07-17t23:27:34.959360+00:00 heroku[router]:←[0m at=info method=get pat h=/favicon.ico host=pathetic.herokuapp.com fwd="69.249.253.220" dyno=web.1 conne ct=2ms service=6ms status=500 bytes=135 ←[36m2013-07-17t23:27:46.177839+00:00 heroku[api]:←[0m scale web=0 emailadd ress@email.com ←[33m2013-07-17t23:27:46.404001+00:00 heroku[web.1]:←[0m state changed t o down ←[36m2013-07-17t23:44:26.986606+00:00 heroku[api]:←[0m scale web=1 emailadd ress@email.com ←[33m2013-07-17t23:44:34.147645+00:00 heroku[web.1]:←[0m starting process c ommand `gunicorn pathetic.wsgi` ←[33m2013-07-17t23:44:45.317811+00:00 app[web.1]:←[0m 2013-07-17 23:44:45 [2] [i nfo] starting gunicorn 17.5 ←[33m2013-07-17t23:44:45.318913+00:00 app[web.1]:←[0m 2013-07-17 23:44:45 [2] [i nfo] using worker: sync ←[33m2013-07-17t23:44:45.318772+00:00 app[web.1]:←[0m 2013-07-17 23:44:45 [2] [i nfo] listening at: http://0.0.0.0:9194 (2) ←[33m2013-07-17t23:44:45.334904+00:00 app[web.1]:←[0m 2013-07-17 23:44:45 [7] [i nfo] booting worker pid: 7 ←[33m2013-07-17t23:44:45.397342+00:00 heroku[web.1]:←[0m state changed star ting 

it looks me there error starting process command 'gunicorn oldtestapp.wsgi' , importerror: no module named oldtestapp.wsgi ...it seems heroku still trying tell gunicorn run test app created. how can gunicorn forget oldtestapp , correctly run new one?

please let me know if other information needed. if helps, have committed project git without using virtualenv. django application works without error (i have tested elsewhere, i'm trying migrate heroku.)

i did global search on of files in heroku project attempt remove occurrences of "oldtestapp" there none found.

for may chance run same issue, did find workaround:

i changed procfile this:

web: python manage.py run_gunicorn  

essentially, workaround here run gunicorn django service instead of running django gunicorn. of course, gunicorn must added settings.py

i still don't understand original problem though, , think workaround , not solution- thus, i'll leave question open in case stumbles upon answer.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -