Unable to start frappe-web service

Hi everyone,

after executing #bench update the frappe-bench-frappe-web is unable to start, the error showing as below:
Please advise how to fix it.
Thank you.

2016-10-28 05:03:45,463 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
2016-10-28 05:03:45,463 INFO supervisord started with pid 9326
2016-10-28 05:03:46,465 INFO spawned: ‘syncthing’ with pid 9351
2016-10-28 05:03:46,467 INFO spawned: ‘frappe-bench-frappe-default-worker-0’ with pid 9352
2016-10-28 05:03:46,468 INFO spawned: ‘frappe-bench-frappe-schedule’ with pid 9353
2016-10-28 05:03:46,470 INFO spawned: ‘frappe-bench-frappe-long-worker-0’ with pid 9354
2016-10-28 05:03:46,472 INFO spawned: ‘frappe-bench-frappe-short-worker-0’ with pid 9355
2016-10-28 05:03:46,474 INFO spawned: ‘frappe-bench-frappe-web’ with pid 9360
2016-10-28 05:03:46,476 INFO spawned: ‘frappe-bench-node-socketio’ with pid 9361
2016-10-28 05:03:46,478 INFO spawned: ‘frappe-bench-redis-queue’ with pid 9362
2016-10-28 05:03:46,480 INFO spawned: ‘frappe-bench-redis-cache’ with pid 9364
2016-10-28 05:03:46,482 INFO spawned: ‘frappe-bench-redis-socketio’ with pid 9365
2016-10-28 05:03:47,226 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2016-10-28 05:03:47,511 INFO success: syncthing entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-frappe-default-worker-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-frappe-schedule entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-frappe-long-worker-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-frappe-short-worker-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-node-socketio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-redis-queue entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-redis-cache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:47,511 INFO success: frappe-bench-redis-socketio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-10-28 05:03:48,755 INFO spawned: ‘frappe-bench-frappe-web’ with pid 9448
2016-10-28 05:03:49,076 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2016-10-28 05:03:51,079 INFO spawned: ‘frappe-bench-frappe-web’ with pid 9471
2016-10-28 05:03:51,395 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2016-10-28 05:03:54,645 INFO spawned: ‘frappe-bench-frappe-web’ with pid 9505
2016-10-28 05:03:54,960 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2016-10-28 05:03:55,962 INFO gave up: frappe-bench-frappe-web entered FATAL state, too many start retries too quickly

i got error message, said missing oauthlib.oauth2.rfc6749.tokes.
Could someone have idea how to fix it?

Thank you.

ImportError: No module named oauthlib.oauth2.rfc6749.tokens
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/bin/gunicorn”, line 11, in
sys.exit(run())
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py”, line 74, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/app/base.py”, line 192, in run
super(Application, self).run()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py”, line 61, in init
self.setup(app)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/arbiter.py”, line 120, in setup
self.app.wsgi()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py”, line 65, in load
return self.load_wsgiapp()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py”, line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/gunicorn/util.py”, line 357, in import_app
import(module)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 19, in
import frappe.api
File “/home/frappe/frappe-bench/apps/frappe/frappe/api.py”, line 13, in
from frappe.integration_broker.oauth2 import oauth_server
File “/home/frappe/frappe-bench/apps/frappe/frappe/integration_broker/oauth2.py”, line 3, in
from frappe.oauth import OAuthWebRequestValidator, WebApplicationServer
File “/home/frappe/frappe-bench/apps/frappe/frappe/oauth.py”, line 4, in
from oauthlib.oauth2.rfc6749.tokens import BearerToken
ImportError: No module named oauthlib.oauth2.rfc6749.tokens

1 Like

Hi @bzero

Goto frappe-bench folder and run command ./env/bin/pip install oauthlib

Thanks

1 Like

thanks @rohit_w
This doesn’t work. However i found there is missing python-oauthlib package, so i installed it first,

apt-get install python-oauthlib

pip install oauthlib --upgrade

then execute that command:
./env/bin/pip install oauthlib

but still not works :frowning: