bokeh-server does not start

(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

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

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

Chris,

I am not sure if this is the issue but I will note that I am running a more recent version of redis:

[email protected] ~/work/bokeh $ redis-cli --version
redis-cli 2.6.9

If it is feasible you might try updating to a more recent redis. I do not know that we have characterized a minimum version for redis it seems as though we should.

Other possible options to check, something already running on port 7001, or firewall settings?

Bryan

···

On Jan 27, 2014, at 9:55 AM, Chris Stoughton <[email protected]> wrote:

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_functions[rule.endpoint](**req.view_args)
  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

--
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/2814dd22-53f9-481c-9c25-674fa8e566c5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.

Nothing else is running on 7001. I am running firefox on the server for these tests, so firewall is not an issue.

I am updating to redis 2.8.4.

···

On Monday, January 27, 2014 10:00:21 AM UTC-6, Bryan Van de ven wrote:

Chris,

I am not sure if this is the issue but I will note that I am running a more recent version of redis:

[email protected] ~/work/bokeh $ redis-cli --version

redis-cli 2.6.9

If it is feasible you might try updating to a more recent redis. I do not know that we have characterized a minimum version for redis it seems as though we should.

Other possible options to check, something already running on port 7001, or firewall settings?

Bryan

On Jan 27, 2014, at 9:55 AM, Chris Stoughton [email protected] wrote:

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_functions[rule.endpoint](**req.view_args)

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


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/2814dd22-53f9-481c-9c25-674fa8e566c5%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.

Seems like updating redis helped.

redis-cli -v

redis-cli 2.8.4

and the server starts, shows the following:

$ ./bokeh-server

Starting Bokeh plot server on port 5006…

View http://localhost:5006/bokeh to see plots

INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 10:18:27] “GET /bokeh/ HTTP/1.1” 200 696 0.040723

INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 10:18:28] “GET /static/css/bokeh.css HTTP/1.1” 200 109297 0.069799

INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 10:18:28] “GET /static/vendor/bootstrap/css/bootstrap-orig-2.2.2.css HTTP/1.1” 200 124513 0.001042

INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 10:18:28] “GET /bokehjs/static/js/bokeh.js HTTP/1.1” 200 963121 0.002416

INFO:geventwebsocket.handler:127.0.0.1 - - [2014-01-27 10:18:30] “GET /bokeh/userinfo/ HTTP/1.1” 200 147 0.003255

Thank you for your help. I’ll run through the examples and try making plots and start another thread if there is trouble.

···

On Monday, January 27, 2014 10:14:19 AM UTC-6, Chris Stoughton wrote:

Nothing else is running on 7001. I am running firefox on the server for these tests, so firewall is not an issue.

I am updating to redis 2.8.4.

On Monday, January 27, 2014 10:00:21 AM UTC-6, Bryan Van de ven wrote:

Chris,

I am not sure if this is the issue but I will note that I am running a more recent version of redis:

[email protected] ~/work/bokeh $ redis-cli --version

redis-cli 2.6.9

If it is feasible you might try updating to a more recent redis. I do not know that we have characterized a minimum version for redis it seems as though we should.

Other possible options to check, something already running on port 7001, or firewall settings?

Bryan

On Jan 27, 2014, at 9:55 AM, Chris Stoughton [email protected] wrote:

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_functions[rule.endpoint](**req.view_args)

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


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/2814dd22-53f9-481c-9c25-674fa8e566c5%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.

Chris,

Great! Definitely let us know if you run into any other issues or have any questions.

Bryan

···

On Jan 27, 2014, at 10:14 AM, Chris Stoughton <[email protected]> wrote:

Nothing else is running on 7001. I am running firefox on the server for these tests, so firewall is not an issue.

I am updating to redis 2.8.4.

On Monday, January 27, 2014 10:00:21 AM UTC-6, Bryan Van de ven wrote:
Chris,

I am not sure if this is the issue but I will note that I am running a more recent version of redis:

[email protected] ~/work/bokeh $ redis-cli --version
redis-cli 2.6.9

If it is feasible you might try updating to a more recent redis. I do not know that we have characterized a minimum version for redis it seems as though we should.

Other possible options to check, something already running on port 7001, or firewall settings?

Bryan

On Jan 27, 2014, at 9:55 AM, Chris Stoughton <[email protected]> wrote:

> 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_functions[rule.endpoint](**req.view_args)
> 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
>
> --
> 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/2814dd22-53f9-481c-9c25-674fa8e566c5%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.

--
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/8422ca82-fc2d-4e7c-b117-02ecd79ae065%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.