error with heroku

246 views
Skip to first unread message

ngangsia akumbo

unread,
Sep 10, 2014, 4:06:20 AM9/10/14
to django...@googlegroups.com
Please why am i having this error

(djangoapps)yems firstapp # ls
firstapp  manage.py  Procfile


(djangoapps)yems firstapp # foreman start
08:47:00 web.1  | started with pid 4491
08:47:00 web.1  | exited with code 3
08:47:00 system | sending SIGTERM to all processes
(djangoapps)yems firstapp # nano Procfile
(djangoapps)yems firstapp # nano Procfile
(djangoapps)yems firstapp # foreman start
09:04:29 web.1  | started with pid 4990
09:04:31 web.1  | [2014-09-10 09:04:31 +0000] [4990] [INFO] Starting gunicorn 19.1.1
09:04:31 web.1  | [2014-09-10 09:04:31 +0000] [4990] [INFO] Listening at: http://0.0.0.0:5000 (4990)
09:04:31 web.1  | [2014-09-10 09:04:31 +0000] [4990] [INFO] Using worker: sync
09:04:31 web.1  | [2014-09-10 09:04:31 +0000] [4997] [INFO] Booting worker with pid: 4997
09:04:31 web.1  | [2014-09-10 09:04:31 +0000] [4997] [ERROR] Exception in worker process:
09:04:31 web.1  | Traceback (most recent call last):
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
09:04:31 web.1  |     worker.init_process()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 114, in init_process
09:04:31 web.1  |     self.wsgi = self.app.wsgi()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 66, in wsgi
09:04:31 web.1  |     self.callable = self.load()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
09:04:31 web.1  |     return self.load_wsgiapp()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
09:04:31 web.1  |     return util.import_app(self.app_uri)
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py", line 356, in import_app
09:04:31 web.1  |     __import__(module)
09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
09:04:31 web.1  | Traceback (most recent call last):
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
09:04:31 web.1  |     worker.init_process()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 114, in init_process
09:04:31 web.1  |     self.wsgi = self.app.wsgi()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 66, in wsgi
09:04:31 web.1  |     self.callable = self.load()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
09:04:31 web.1  |     return self.load_wsgiapp()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
09:04:31 web.1  |     return util.import_app(self.app_uri)
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py", line 356, in import_app
09:04:31 web.1  |     __import__(module)
09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
09:04:31 web.1  | [2014-09-10 09:04:31 +0000] [4997] [INFO] Worker exiting (pid: 4997)
09:04:31 web.1  | Traceback (most recent call last):
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/bin/gunicorn", line 11, in <module>
09:04:31 web.1  |     sys.exit(run())
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
09:04:31 web.1  |     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 185, in run
09:04:31 web.1  |     super(Application, self).run()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 71, in run
09:04:31 web.1  |     Arbiter(self).run()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 169, in run
09:04:31 web.1  |     self.manage_workers()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
09:04:31 web.1  |     self.spawn_workers()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 542, in spawn_workers
09:04:31 web.1  |     time.sleep(0.1 * random.random())
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 209, in handle_chld
09:04:31 web.1  |     self.reap_workers()
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 459, in reap_workers
09:04:31 web.1  |     raise HaltServer(reason, self.WORKER_BOOT_ERROR)
09:04:31 web.1  | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
09:04:31 web.1  | exited with code 1
09:04:31 system | sending SIGTERM to all processes



nano Procfile
web: gunicorn hellodjango.wsgi --log-file -

Please i need some help



ngangsia akumbo

unread,
Sep 10, 2014, 4:08:49 AM9/10/14
to django...@googlegroups.com

ngangsia akumbo

unread,
Sep 10, 2014, 4:36:23 AM9/10/14
to django...@googlegroups.com
thanks i have solved it


On Wednesday, September 10, 2014 9:06:20 AM UTC+1, ngangsia akumbo wrote:

Daniel Roseman

unread,
Sep 10, 2014, 4:37:10 AM9/10/14
to django...@googlegroups.com
On Wednesday, 10 September 2014 09:06:20 UTC+1, ngangsia akumbo wrote:
Please why am i having this error

(djangoapps)yems firstapp # ls
firstapp  manage.py  Procfile
 
<snip> 
 
nano Procfile
web: gunicorn hellodjango.wsgi --log-file -

Please i need some help


Your project appears to be called "firstapp", not "hellodjango". You need to change the name in your Procfile accordingly.
--
DR. 
Reply all
Reply to author
Forward
0 new messages