millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 122 forks source link

Cannot open notebook: REQUEST-STATUS timeout DATA interrupt: 2 #776

Closed hnisonoff closed 3 years ago

hnisonoff commented 3 years ago

Problem description

I keep getting the following errors while trying to open a jupyter notebook [error] request--callback: peculiar error ein: [error] ein:content-query-contents--error http://127.0.0.1:8084/semisup/WorkflowRewrite.ipynb REQUEST-STATUS timeout DATA interrupt: 2 The notebook will not open

Steps to reproduce the problem

I am just clicking Open on the notebook. The notebook is on a remote server and I am using SSH forwarding to connect to it. However, this used to work all the time in the past.

System info:

("EIN system info"
 :emacs-version
 "GNU Emacs 27.1 (build 1, x86_64-apple-darwin19.4.0, Carbon Version 162 AppKit 1894.4)
 of 2020-08-19"
 :window-system mac
 :emacs-variant nil
 :build
 "--enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-mac/emacs-27.1-mac-8.0/share/info/emacs --prefix=/usr/local/Cellar/emacs-mac/emacs-27.1-mac-8.0 --with-mac --enable-mac-app=/usr/local/Cellar/emacs-mac/emacs-27.1-mac-8.0 --with-gnutls --with-modules"
 :os
 (:uname
  "Darwin Hunters-MacBook-Pro-2.local 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
"
  :lsb-release nil)
 :jupyter
 "/usr/local/opt/emacs-mac/Emacs.app/Contents/MacOS/Emacs: /usr/local/bin/jupyter: No such file or directory
"
 :image-types
 (svg image-io imagemagick png gif tiff jpeg xpm xbm pbm)
 :image-types-available
 (svg image-io imagemagick png gif tiff jpeg xpm xbm pbm)
 :request-backend curl
 :ein
 (:version "20210122.2112"
           :source-dir "/Users/hunternisonoff/.emacs.d/elpa/ein-20210122.2112/")
 :lib
 ((:name "websocket"
         :path "~/.emacs.d/elpa/websocket-20210110.17/websocket.elc"
         :featurep t
         :version-var websocket-version
         :version "1.12")
  (:name "anaphora"
         :path "~/.emacs.d/elpa/anaphora-20180618.2200/anaphora.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "request"
         :path "~/.emacs.d/elpa/request-20201026.2324/request.elc"
         :featurep t
         :version-var request-version
         :version "0.3.0")
  (:name "deferred"
         :path "~/.emacs.d/elpa/deferred-20170901.1330/deferred.elc"
         :featurep t
         :version-var deferred:version
         :version "0.5.0")
  (:name "polymode"
         :path "~/.emacs.d/elpa/polymode-20200606.1106/polymode.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "dash"
         :path "~/.emacs.d/elpa/dash-20210124.1524/dash.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "with-editor"
         :path "~/.emacs.d/elpa/with-editor-20210117.2008/with-editor.elc"
         :featurep t
         :version-var nil
         :version nil)))

Logs:

request-log:

[debug] request--curl: curl --silent --location --cookie /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --cookie-jar /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --include --write-out \n(:num-redirects %{num_redirects} :url-effective "%{url_effective}") --trace-ascii /var/folders/8m/pdqwfjld1w35_ffy49dwrpxc0000gn/T/curl-trace --compressed --request GET --header User-Agent: Mozilla/5.0 --header X-XSRFTOKEN: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 http://127.0.0.1:8084/api/contents/semisup/WorkflowRewrite.ipynb
[debug] request--curl-callback: event interrupt: 2

[debug] request--callback: UNPARSED

[error] request--callback: peculiar error
[debug] request--callback: executing error
[debug] request--curl: curl --silent --location --cookie /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --cookie-jar /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --include --write-out \n(:num-redirects %{num_redirects} :url-effective "%{url_effective}") --trace-ascii /var/folders/8m/pdqwfjld1w35_ffy49dwrpxc0000gn/T/curl-trace --compressed --request GET --header User-Agent: Mozilla/5.0 --header X-XSRFTOKEN: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 http://127.0.0.1:8084/api/contents/semisup/WorkflowRewrite.ipynb
[debug] request--callback: executing complete
[debug] request--curl-callback: event interrupt: 2

[debug] request--callback: UNPARSED

[error] request--callback: peculiar error
[debug] request--callback: executing error
[debug] request--curl: curl --silent --location --cookie /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --cookie-jar /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --include --write-out \n(:num-redirects %{num_redirects} :url-effective "%{url_effective}") --trace-ascii /var/folders/8m/pdqwfjld1w35_ffy49dwrpxc0000gn/T/curl-trace --compressed --request GET --header User-Agent: Mozilla/5.0 --header X-XSRFTOKEN: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 http://127.0.0.1:8084/api/contents/semisup/WorkflowRewrite.ipynb
[debug] request--callback: executing complete
[debug] request--curl-callback: event interrupt: 2

[debug] request--callback: UNPARSED

[error] request--callback: peculiar error
[debug] request--callback: executing error
[debug] request--curl: curl --silent --location --cookie /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --cookie-jar /Users/hunternisonoff/.emacs.d/request/curl-cookie-jar --include --write-out \n(:num-redirects %{num_redirects} :url-effective "%{url_effective}") --trace-ascii /var/folders/8m/pdqwfjld1w35_ffy49dwrpxc0000gn/T/curl-trace --compressed --request GET --header User-Agent: Mozilla/5.0 --header X-XSRFTOKEN: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 http://127.0.0.1:8084/api/contents/semisup/WorkflowRewrite.ipynb
[debug] request--callback: executing complete
[debug] request--curl-callback: event interrupt: 2

[debug] request--callback: UNPARSED

[error] request--callback: peculiar error
[debug] request--callback: executing error
[debug] request--callback: executing complete

ein:log-all:

13:32:54:252: [warn] ein:jupyter-default-kernel: (json-readtable-error 47) @#<buffer myinit.org>
13:32:54:257: [info] ein:jupyter-process-lines: jupyter exited with status 127 @#<buffer myinit.org>
13:33:09:285: [info] ein:jupyter-process-lines: jupyter exited with status 127 @#<buffer myinit.org>
13:33:10:097: [info] Login to http://127.0.0.1:8084 complete. @#<buffer myinit.org>
13:33:11:074: [verbose] Opening notebooklist at http://127.0.0.1:8084 @#<buffer myinit.org>
13:33:13:089: [verbose] Retry content-query-contents #0 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:13:092: [verbose] Retry content-query-contents #0 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:15:982: [verbose] Opening notebooklist at http://127.0.0.1:8084/semisup @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:21:651: [verbose] Retry content-query-contents #0 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:23:180: [verbose] Retry content-query-contents #1 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:25:205: [verbose] Retry content-query-contents #2 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:27:729: [error] ein:content-query-contents--error http://127.0.0.1:8084/semisup/WorkflowRewrite.ipynb REQUEST-STATUS timeout DATA interrupt: 2
 @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:48:120: [verbose] Opening notebooklist at http://127.0.0.1:8084/semisup @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:33:50:837: [verbose] Opening notebooklist at http://127.0.0.1:8084/semisup @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:28:018: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:29:028: [verbose] Retry content-query-contents #0 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:29:533: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:29:538: [debug] ein:query-contents--complete STATUS: nil DATA: nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:30:550: [verbose] Retry content-query-contents #1 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:31:554: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:31:560: [debug] ein:query-contents--complete STATUS: nil DATA: nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:32:565: [verbose] Retry content-query-contents #2 in response to nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:34:070: [debug] EIN:QUERY-PREPARE-HEADER: Found xsrf: 2|30ef551f|6469946e12a82dec05bb825a69dfef4e|1610472080 @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:34:077: [debug] ein:query-contents--complete STATUS: nil DATA: nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:35:093: [error] ein:content-query-contents--error http://127.0.0.1:8084/semisup/WorkflowRewrite.ipynb REQUEST-STATUS timeout DATA interrupt: 2
 @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:35:099: [debug] ein:query-contents--complete STATUS: nil DATA: nil @#<buffer *ein:notebooklist http://127.0.0.1:8084*>
13:34:52:068: [warn] ein:dev-packages: Don’t call me! @#<buffer  *temp*>
hnisonoff commented 3 years ago

Closing since this is a duplicate issue