[IPython-User] Random failures and write errors in tornado

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[IPython-User] Random failures and write errors in tornado

Xīcò
Dear ipython-user,

I am trying to setup a notebook accessible via http on a FreeBSD server.
Unfortunately, I am having quite a bit of trouble in getting a decently
working installation. Indeed, there seem to be some problems in getting
the notebook and the kernels working together, from time to time, the
cells are not evaluated, or new notebooks cannot be created, and the
kernel become unaccessible. It appears to be related to this log
message:

   WARNING:tornado.general:Write error on 24: [Errno 1] Operation not
permitted

where the 24 is an arbitrary variable part.

I am not able to get more useful information by setting
log_level='DEBUG':

   DEBUG:tornado.access:200 PUT /api/notebooks/Untitled0.ipynb
(66.27.70.10) 238.73ms
   2014-06-20 22:58:25.966 [NotebookApp] Polling kernel...
   2014-06-20 22:58:28.934 [NotebookApp] Polling kernel...
   [IPKernelApp]
   *** MESSAGE TYPE:execute_request***
   [IPKernelApp]    Content: {'store_history': True, 'user_variables':
[], 'allow_stdin': True, 'user_expressions': {}, 'code': "n, tau = 8,
85.0  [TRUNCATED FOR THE EMAIL]", 'silent': False}
      --->

   [IPKernelApp] {'msg_id': 'aea6748f-d4e2-426d-b639-1c74b15208cf',
'metadata': {'dependencies_met': True, 'started':
datetime.datetime(2014, 6, 20, 22, 58, 31, 452209), 'engine':
'acc96002-65c5-47aa-949e-0c9cb74b87a3', 'status': 'ok'},
'parent_header': {'msg_id': 'F7A5EBC0FBE349FF882A92950C64FC25',
'username': 'username', 'session': '1B6F8561F91246BA9928B5A5DEBA6132',
'msg_type': 'execute_request'}, 'content': {'payload': [],
'execution_count': 10, 'status': 'ok', 'user_variables': {},
'user_expressions': {}}, 'header': {'msg_id':
'aea6748f-d4e2-426d-b639-1c74b15208cf', 'username': 'kernel', 'date':
datetime.datetime(2014, 6, 20, 22, 58, 31, 720530), 'session':
'919e9995-ad23-436e-a059-01c42b3b2faf', 'msg_type': 'execute_reply'},
'msg_type': 'execute_reply', 'tracker':
<zmq.sugar.tracker.MessageTracker object at 0x8082515c0>}
   WARNING:tornado.general:Write error on 23: [Errno 1] Operation not
permitted
   2014-06-20 22:58:31.886 [NotebookApp] Polling kernel...
   2014-06-20 22:58:35.053 [NotebookApp] Polling kernel...
   2014-06-20 22:58:38.013 [NotebookApp] Polling kernel...

As for the configuration of the notebook, I simply used the command
"ipython profile create" and updated ipython_notebook_config.py to avoid
getting another kind of unsupported protocol errors (the notebook wanted
to got ipv6). Basically, I simply set:

   c.NotebookApp.ip = '192.168.1.10'
   c.NotebookApp.port = 9200
   c.KernelManager.ip = '192.168.1.10'

I also tried with SSL, password and different log_levels, without luck.
If anyone could give me some hints on how to get more debugging, that
would be greatly appreciated.

Best regards,

--
Xīcò
_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: Random failures and write errors in tornado

Zoltán Vörös-2
I think you should post your question on ipython-dev. ipython-user is
phased out.
Cheers,
Zoltán

On 06/21/2014 01:12 AM, Xīcò wrote:

> Dear ipython-user,
>
> I am trying to setup a notebook accessible via http on a FreeBSD server.
> Unfortunately, I am having quite a bit of trouble in getting a decently
> working installation. Indeed, there seem to be some problems in getting
> the notebook and the kernels working together, from time to time, the
> cells are not evaluated, or new notebooks cannot be created, and the
> kernel become unaccessible. It appears to be related to this log
> message:
>
>     WARNING:tornado.general:Write error on 24: [Errno 1] Operation not
> permitted
>
> where the 24 is an arbitrary variable part.
>
> I am not able to get more useful information by setting
> log_level='DEBUG':
>
>     DEBUG:tornado.access:200 PUT /api/notebooks/Untitled0.ipynb
> (66.27.70.10) 238.73ms
>     2014-06-20 22:58:25.966 [NotebookApp] Polling kernel...
>     2014-06-20 22:58:28.934 [NotebookApp] Polling kernel...
>     [IPKernelApp]
>     *** MESSAGE TYPE:execute_request***
>     [IPKernelApp]    Content: {'store_history': True, 'user_variables':
> [], 'allow_stdin': True, 'user_expressions': {}, 'code': "n, tau = 8,
> 85.0  [TRUNCATED FOR THE EMAIL]", 'silent': False}
>        --->
>
>     [IPKernelApp] {'msg_id': 'aea6748f-d4e2-426d-b639-1c74b15208cf',
> 'metadata': {'dependencies_met': True, 'started':
> datetime.datetime(2014, 6, 20, 22, 58, 31, 452209), 'engine':
> 'acc96002-65c5-47aa-949e-0c9cb74b87a3', 'status': 'ok'},
> 'parent_header': {'msg_id': 'F7A5EBC0FBE349FF882A92950C64FC25',
> 'username': 'username', 'session': '1B6F8561F91246BA9928B5A5DEBA6132',
> 'msg_type': 'execute_request'}, 'content': {'payload': [],
> 'execution_count': 10, 'status': 'ok', 'user_variables': {},
> 'user_expressions': {}}, 'header': {'msg_id':
> 'aea6748f-d4e2-426d-b639-1c74b15208cf', 'username': 'kernel', 'date':
> datetime.datetime(2014, 6, 20, 22, 58, 31, 720530), 'session':
> '919e9995-ad23-436e-a059-01c42b3b2faf', 'msg_type': 'execute_reply'},
> 'msg_type': 'execute_reply', 'tracker':
> <zmq.sugar.tracker.MessageTracker object at 0x8082515c0>}
>     WARNING:tornado.general:Write error on 23: [Errno 1] Operation not
> permitted
>     2014-06-20 22:58:31.886 [NotebookApp] Polling kernel...
>     2014-06-20 22:58:35.053 [NotebookApp] Polling kernel...
>     2014-06-20 22:58:38.013 [NotebookApp] Polling kernel...
>
> As for the configuration of the notebook, I simply used the command
> "ipython profile create" and updated ipython_notebook_config.py to avoid
> getting another kind of unsupported protocol errors (the notebook wanted
> to got ipv6). Basically, I simply set:
>
>     c.NotebookApp.ip = '192.168.1.10'
>     c.NotebookApp.port = 9200
>     c.KernelManager.ip = '192.168.1.10'
>
> I also tried with SSL, password and different log_levels, without luck.
> If anyone could give me some hints on how to get more debugging, that
> would be greatly appreciated.
>
> Best regards,
>
> --
> Xīcò
> _______________________________________________
> IPython-User mailing list
> [hidden email]
> http://mail.scipy.org/mailman/listinfo/ipython-user

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user