Thank you. I’m running Scientific Linux (Fermilab) 6 and this is how I installed redis:
yum install redis
This is the version:
$ redis-cli --version
redis-cli 2.2.5
but it seems the ‘auto-aof-rewrite-percentage’ error below has to do with redis???
bokeh-server starts, but with a dire warning.
$ bokeh-server
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 335
‘auto-aof-rewrite-percentage 100’
Bad directive or wrong number of arguments
Starting Bokeh plot server on port 5006…
View http://localhost:5006/bokeh to see plots
… then when I connect to http://localhost:5006/bokeh, the browser returns:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. Looks like it using port 7001?
Error 111 connecting 127.0.0.1:7001. Connection refused.
Is this a configuration error, another service that should be running?
The command line where I started bokeh-server says this:
INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 09:43:03] “GET /bokeh HTTP/1.1” 301 435 0.052733
ERROR:bokeh.server:Exception on /bokeh/ [GET]
Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py”, line 1817, in wsgi_app
response = self.full_dispatch_request()
File “/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py”, line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py”, line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py”, line 1475, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py”, line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File “/usr/lib/python2.6/site-packages/bokeh/server/views/main.py”, line 34, in index
bokehuser = bokeh_app.current_user()
File “/usr/lib/python2.6/site-packages/bokeh/server/app.py”, line 41, in current_user
return self.authentication.current_user()
File “/usr/lib/python2.6/site-packages/bokeh/server/server_backends.py”, line 148, in current_user
bokehuser = user.User.load(bokeh_app.servermodel_storage, username)
File “/usr/lib/python2.6/site-packages/bokeh/server/models/user.py”, line 56, in load
attrs = cls.load_json(client, objid)
File “/usr/lib/python2.6/site-packages/bokeh/server/models/init.py”, line 36, in load_json
data = client.get(cls.modelkey(objid))
File “/usr/lib/python2.6/site-packages/bokeh/server/server_backends.py”, line 54, in get
data = self.redisconn.get(key)
File “/usr/lib/python2.6/site-packages/redis-2.9.1-py2.6.egg/redis/client.py”, line 705, in get
return self.execute_command(‘GET’, name)
File “/usr/lib/python2.6/site-packages/redis-2.9.1-py2.6.egg/redis/client.py”, line 464, in execute_command
connection.send_command(*args)
File “/usr/lib/python2.6/site-packages/redis-2.9.1-py2.6.egg/redis/connection.py”, line 334, in send_command
self.send_packed_command(self.pack_command(*args))
File “/usr/lib/python2.6/site-packages/redis-2.9.1-py2.6.egg/redis/connection.py”, line 316, in send_packed_command
self.connect()
File “/usr/lib/python2.6/site-packages/redis-2.9.1-py2.6.egg/redis/connection.py”, line 253, in connect
raise ConnectionError(self._error_message(e))
ConnectionError: Error 111 connecting 127.0.0.1:7001. Connection refused.
INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 09:43:03] “GET /bokeh/ HTTP/1.1” 500 412 0.013936
INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 09:43:03] “GET /favicon.ico HTTP/1.1” 404 342 0.000611
INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 09:43:03] “GET /favicon.ico HTTP/1.1” 404 342 0.000920
···
On Monday, January 27, 2014 9:05:01 AM UTC-6, Mateusz Paprocki wrote:
Hello Chris,
On Mon, Jan 27, 2014 at 3:08 PM, Chris Stoughton [email protected] wrote:
(Sorry if this is a duplicate – first post did not show up)
Just installed bokeh from git
bokeh.version
Out[2]: ‘0.3-421-g692564e’
And this version of python
$ python --version
Python 2.6.6
The server does not start. Please let me know how to diagnose. Thanks!
$ bokeh-server -d
running with debug
INFO:werkzeug: * Restarting with reloader
running with debug
Traceback (most recent call last):
File “/usr/lib64/python2.6/site-packages/gevent/greenlet.py”, line 327, in run
result = self._run(*self.args, **self.kwargs)
File “/usr/bin/bokeh-server”, line 67, in helper
start.start_app(verbose=True)
File “/usr/lib/python2.6/site-packages/bokeh/server/start.py”, line 102, in start_app
start_services()
File “/usr/lib/python2.6/site-packages/bokeh/server/start.py”, line 91, in start_services
save=redis_save
File “/usr/lib/python2.6/site-packages/bokeh/server/services.py”, line 81, in start_redis
stdin=subprocess.PIPE
File “/usr/lib/python2.6/site-packages/bokeh/server/services.py”, line 27, in init
stdin=stdin)
File “/usr/lib64/python2.6/subprocess.py”, line 642, in init
errread, errwrite)
File “/usr/lib64/python2.6/subprocess.py”, line 1234, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
<Greenlet at 0x31407d0: helper> failed with OSError
It looks like redis-server is not available on your system. For example in Ubuntu issue apt-get install redis-server
or if you use Anaconda then issue conda install redis
.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/da85bb51-6bdb-43ae-84c1-17c581461162%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.
Mateusz