Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook gets stuck in forever loading state after restarting my PC while running it #849

Closed
tholdem opened this issue Jan 16, 2021 · 6 comments

Comments

@tholdem
Copy link

tholdem commented Jan 16, 2021

Pluto was working well until I restarted my computer while running it. Now although I can open old and new notebooks, they are forever stuck in loading state, making it impossible to use Pluto. What should I do?

┌ Error: (Base.IOError("read: connection reset by peer (ECONNRESET)", -4077), Base.StackTraces.StackFrame[wait_readnb(::Sockets.TCPSocket, ::Int64) at stream.jl:350, eof at stream.jl:48 [inlined], read_to_buffer(::HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}, ::Int64) at ConnectionPool.jl:251, readuntil(::HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}, ::Function, ::Int64) at ConnectionPool.jl:271, readuntil at ConnectionPool.jl:269 [inlined], readheaders at Messages.jl:471 [inlined], startread(::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at Streams.jl:155, handle_transaction(::HTTP.Handlers.var"#4#5"{HTTP.Handlers.StreamHandlerFunction{Pluto.var"#214#224"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##301")},Base.RefValue{Function}}}}, ::HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}, ::HTTP.Servers.Server{Nothing,Sockets.TCPServer}; final_transaction::Bool) at Servers.jl:343, (::HTTP.Servers.var"#handle_transaction##kw")(::NamedTuple{(:final_transaction,),Tuple{Bool}}, ::typeof(HTTP.Servers.handle_transaction), ::Function, ::HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}, ::HTTP.Servers.Server{Nothing,Sockets.TCPServer}) at Servers.jl:338, handle_connection(::Function, ::HTTP.ConnectionPool.Connection{Sockets.TCPSocket}, ::HTTP.Servers.Server{Nothing,Sockets.TCPServer}, ::Int64, ::Int64) at Servers.jl:299, (::HTTP.Servers.var"#8#9"{HTTP.Handlers.var"#4#5"{HTTP.Handlers.StreamHandlerFunction{Pluto.var"#214#224"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##301")},Base.RefValue{Function}}}},HTTP.Servers.Server{Nothing,Sockets.TCPServer},Base.RefValue{Int64},Int64,Int64,Bool,HTTP.ConnectionPool.Connection{Sockets.TCPSocket}})() at task.jl:356])
└ @ HTTP.Servers C:\Users\bryan\.julia\packages\HTTP\IAI92\src\Servers.jl:264
TaskFailedException:
On worker 7:
LoadError: expected package `HTTP [cd3eb016]` to be registered
pkgerror at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:52
check_registered at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:1057
up at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:1221
#up#106 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:245
#up#38 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:68 [inlined]
#instantiate#170 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:810
instantiate at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:795
top-level scope at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\runner\Loader.jl:22
include at .\client.jl:457
top-level scope at none:1
eval at .\boot.jl:331
#103 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:290
run_work_thunk at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:79
run_work_thunk at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:88
#96 at .\task.jl:356
in expression starting at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\runner\Loader.jl:1
Stacktrace:
 [1] sync_end(::Channel{Any}) at .\task.jl:314
 [2] macro expansion at .\task.jl:333 [inlined]
 [3] remotecall_eval(::Module, ::Array{Int64,1}, ::Expr) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\macros.jl:218
 [4] create_workspaceprocess(; compiler_options::Pluto.Configuration.CompilerOptions) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:170
 [5] make_workspace(::Tuple{Pluto.ServerSession,Pluto.Notebook}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:43
 [6] #7 at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:188 [inlined]
 [7] macro expansion at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Tokens.jl:76 [inlined]
 [8] (::Pluto.var"#1#2"{Pluto.WorkspaceManager.var"#7#9"{Tuple{Pluto.ServerSession,Pluto.Notebook}},Pluto.Promise{Pluto.WorkspaceManager.Workspace}})() at .\task.jl:356┌ Warning: Response function to message of type complete failed
└ @ Pluto C:\Users\bryan\.julia\packages\Pluto\luIaC\src\webserver\WebServer.jl:359

Stacktrace:┌ Warning: Reading WebSocket client stream failed for unknown reason:
│   parentbody =
│    Dict{Any,Any} with 5 entries:
│      ⋮           => ⋮
│   exception =
│    TaskFailedException:
│    On worker 7:
│    LoadError: expected package `HTTP [cd3eb016]` to be registered
│    pkgerror at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:52
│    check_registered at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:1057
│    up at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:1221
│    #up#106 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:245
│    #up#38 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:68 [inlined]
│    #instantiate#170 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:810
│    instantiate at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:795
│    top-level scope at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\runner\Loader.jl:22
│    include at .\client.jl:457
│    top-level scope at none:1
│    eval at .\boot.jl:331
│    #103 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:290
│    run_work_thunk at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:79
│    run_work_thunk at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\process_messages.jl:88
│    #96 at .\task.jl:356
│    in expression starting at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\runner\Loader.jl:1
│    Stacktrace:
│     [1] sync_end(::Channel{Any}) at .\task.jl:314
│     [2] macro expansion at .\task.jl:333 [inlined]
│     [3] remotecall_eval(::Module, ::Array{Int64,1}, ::Expr) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Distributed\src\macros.jl:218
│     [4] create_workspaceprocess(; compiler_options::Pluto.Configuration.CompilerOptions) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:170
│     [5] make_workspace(::Tuple{Pluto.ServerSession,Pluto.Notebook}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:43
│     [6] #7 at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:188 [inlined]
│     [7] macro expansion at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Tokens.jl:76 [inlined]
│     [8] (::Pluto.var"#1#2"{Pluto.WorkspaceManager.var"#7#9"{Tuple{Pluto.ServerSession,Pluto.Notebook}},Pluto.Promise{Pluto.WorkspaceManager.Workspace}})() at .\task.jl:356
│    Stacktrace:
│     [1] wait at .\task.jl:267 [inlined]
│     [2] wait(::Pluto.Promise{Pluto.WorkspaceManager.Workspace}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Tokens.jl:83
│     [3] get_workspace at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:190 [inlined]
│     [4] (::Pluto.var"#201#203")(::Pluto.ServerSession, ::Dict{Any,Any}, ::Pluto.Notebook; initiator::Pluto.Initiator) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\webserver\REPLTools.jl:60
│     [5] process_ws_message(::Pluto.ServerSession, ::Dict{Any,Any}, ::HTTP.WebSockets.WebSocket{HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\webserver\WebServer.jl:357
│     [6] (::Pluto.var"#215#225"{Pluto.ServerSession,Base.RefValue{Function}})(::HTTP.WebSockets.WebSocket{HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\webserver\WebServer.jl:160
│     [7] upgrade(::Pluto.var"#215#225"{Pluto.ServerSession,Base.RefValue{Function}}, ::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}; binary::Bool) at C:\Users\bryan\.julia\packages\HTTP\IAI92\src\WebSockets.jl:160
│     [8] upgrade at C:\Users\bryan\.julia\packages\HTTP\IAI92\src\WebSockets.jl:142 [inlined]
│     [9] (::Pluto.var"#214#224"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##301")},Base.RefValue{Function}})(::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\webserver\WebServer.jl:147
│     [10] handle at C:\Users\bryan\.julia\packages\HTTP\IAI92\src\Handlers.jl:269 [inlined]
│     [11] #4 at C:\Users\bryan\.julia\packages\HTTP\IAI92\src\Handlers.jl:345 [inlined]
│     [12] macro expansion at C:\Users\bryan\.julia\packages\HTTP\IAI92\src\Servers.jl:367 [inlined]
│     [13] (::HTTP.Servers.var"#13#14"{HTTP.Handlers.var"#4#5"{HTTP.Handlers.StreamHandlerFunction{Pluto.var"#214#224"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##301")},Base.RefValue{Function}}}},HTTP.ConnectionPool.Transaction{Sockets.TCPSocket},HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}})() at .\task.jl:356
└ @ Pluto C:\Users\bryan\.julia\packages\Pluto\luIaC\src\webserver\WebServer.jl:168

 [1] wait at .\task.jl:267 [inlined]
 [2] wait(::Pluto.Promise{Pluto.WorkspaceManager.Workspace}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Tokens.jl:83
 [3] get_workspace at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:190 [inlined]
 [4] delete_vars(::Tuple{Pluto.ServerSession,Pluto.Notebook}, ::Set{Symbol}, ::Set{Tuple{Base.UUID,Array{Symbol,1}}}, ::Set{Expr}; kwargs::Base.Iterators.Pairs{Symbol,Array{Pluto.Cell,1},Tuple{Symbol},NamedTuple{(:to_run,),Tuple{Array{Pluto.Cell,1}}}}) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\WorkspaceManager.jl:273
 [5] run_reactive!(::Pluto.ServerSession, ::Pluto.Notebook, ::Pluto.NotebookTopology, ::Pluto.NotebookTopology, ::Array{Pluto.Cell,1}; deletion_hook::Function, persist_js_state::Bool) at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Run.jl:65
 [6] run_reactive! at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Run.jl:26 [inlined]
 [7] macro expansion at C:\Users\bryan\.julia\packages\Pluto\luIaC\src\evaluation\Run.jl:13 [inlined]
 [8] (::Pluto.var"#79#81"{Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Pluto.ServerSession,Pluto.Notebook,Pluto.NotebookTopology,Pluto.NotebookTopology,Array{Pluto.Cell,1}})() at .\task.jl:356 
@pankgeorg
Copy link
Collaborator

A wild guess is to delete the C:\Users\bryan\.julia folder and everything in it, and try to restart.
Make sure to keep your notebook files safe. Let us know if that works!

Are you in Windows 10 btw?

@tholdem
Copy link
Author

tholdem commented Jan 17, 2021

Yes this is windows 10. But C:\Users\bryan\.julia is where all my JuliaPro stuff is installed. Deleting it would delete everything Julia related. I moved my notebook to different directories with no success. Any notebook, old or new, stays in loading state.

Then I tried to reinstall Pluto but accidentally removed it from the registries using ] remove Pluto. I have no idea how to add it back and now Julia wouldn't let me add the package. Could you please help me? Thank you.

@pankgeorg
Copy link
Collaborator

My guess is that all these stuff are corrupted - that's why I propose deleting and reinstalling. Can't you re install them?

@pankgeorg
Copy link
Collaborator

pankgeorg commented Jan 17, 2021

You should be able to reinstall Pluto using ] add Pluto
Let's talk in Zulip if you prefer

@fonsp
Copy link
Owner

fonsp commented Jan 18, 2021

You probably have a corrupted package registry, you need to delete .julia or at least the registries subfolder. If you're worried about corrupting the installation, then the easiest thing is to reinstall Julia (or JuliaPro if you think that you need it)

@tholdem
Copy link
Author

tholdem commented Jan 19, 2021

Thank you for the input. That's unfortunate and I think it could've been a bug with Pluto since everything else in JuliaPro is working fine. I will try resinstalling after I'm done using my Jypter Notebook session.

@fonsp fonsp closed this as completed Jan 25, 2021
pankgeorg pushed a commit that referenced this issue Jan 28, 2021
[Diff since v0.12.18](v0.12.18...v0.12.19)

**Closed issues:**
- GPU usage and console messages (#685)
- Feature Proposal: Exported HTML can be passed to a static site generator (#794)
- wait and resume execution on button press (#803)
- Latex code not appropriately displayed (#817)
- Python doesn't work in Pluto (#818)
- add pluto - pluto not found - Julia 1.5.3 macOS (#819)
- Cell output not shown correctly if in-line comment ends with semicolon (#820)
- _llvm (#821)
- Can't move cells (#822)
- Conditions on list comprehensions and execution order (#824)
- Electron app (#825)
- Errors when pressing Ctrl+C to stop Pluto (#827)
- Failed to load notebook error (#829)
- Popup docs don't work for some symbols (#832)
- Running a notebook deleted contents of `.julia/registries` (#834)
- Ctrl+C broken with `julia -e "Pluto.run()"` instead of the REPL (#836)
- Edit or remove default header and footer in exported static PDF (#837)
- Parameters.jl dynamically created macros confuse Pluto (#838)
- Feature request: Open URL from terminal (#840)
- Notebook gets stuck in forever loading state after restarting my PC while running it (#849)
- Syntax highlighting of @. (#854)
- File not found when file newly created while session is running (#855)
- Weird output from a mix of MathJax, Markdown and PlutoUI (#856)
- Misaligned plots when plotting with UnicodePlots.jl using BrailleCanvas (#870)

**Merged pull requests:**
- Pluto ux process file drop (#707) (@pankgeorg)
- Dralbase state managment (#710) (@dralletje)
- PLJ-785 CodeMirror Eject to TextArea - Reload from TextArea in Offline HTML export (#805) (@pankgeorg)
-  Dralbase state managment: Fix front-end tests (#809) (@pankgeorg)
- Update README.md (#814) (@fonsp)
- Regard `:=` in macros as einsum notation (take 2) (#816) (@mcabbott)
- 🧸 Open your own files as samples (#828) (@fonsp)
- Handle filters in generators, closes #824 (#839) (@Pangoraw)
- Update `== nothing` to `=== nothing` in Parse.jl (#841) (@heetbeet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants