deploying django on heroku

358 views
Skip to first unread message

ngangsia akumbo

unread,
Sep 5, 2014, 6:19:25 AM9/5/14
to django...@googlegroups.com
i had a problem trying to deply django on heroku

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



Please some help here 
am using linux mint

ngangsia akumbo

unread,
Sep 5, 2014, 8:53:30 AM9/5/14
to django...@googlegroups.com
please some help if any 

Koed00

unread,
Sep 5, 2014, 11:10:59 AM9/5/14
to django...@googlegroups.com
Looks like Gunicorn can't find your app module hellodjango.wsgi
Did you make a wsgi.py in your app folder as described in the Heroku docs?

ngangsia akumbo

unread,
Sep 6, 2014, 6:21:09 AM9/6/14
to django...@googlegroups.com
i have another error

yems python-getting-started # git commit -m "Demo"

*** Please tell me who you are.

Run

  git config --global user.email "y...@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@yems.(none)')

Kevin Ndung'u

unread,
Sep 7, 2014, 5:04:51 PM9/7/14
to django...@googlegroups.com
As it says, just run those commands, setting your username and email, to set your git identity (Username and Email address) which is required for commits.

ngangsia akumbo

unread,
Sep 8, 2014, 8:42:01 AM9/8/14
to django...@googlegroups.com
i still dont get it bro
Reply all
Reply to author
Forward
0 new messages