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

"Failed to load notebook" message in browser #1477

Closed
yha opened this issue Sep 20, 2021 · 2 comments
Closed

"Failed to load notebook" message in browser #1477

yha opened this issue Sep 20, 2021 · 2 comments

Comments

@yha
Copy link
Contributor

yha commented Sep 20, 2021

Failed to load notebook
The file /home/sternlab/ElegansTimeSeries/notebooks/stats.pluto2.jl could not be loaded. Please report this error!


Go back


Error message:

IOError: realpath("/home/sternlab/ElegansTimeSeries/notebooks/stats.pluto7.jl"): no such file or directory (ENOENT)
Stacktrace:
  [1] uv_error
    @ ./libuv.jl:97 [inlined]
  [2] realpath(path::String)
    @ Base.Filesystem ./path.jl:448
  [3] open(session::Pluto.ServerSession, path::String; run_async::Bool, compiler_options::Nothing, as_sample::Bool)
    @ Pluto.SessionActions ~/.julia/packages/Pluto/0Ly6I/src/webserver/SessionActions.jl:32
  [4] (::Pluto.var"#try_launch_notebook_response#247"{Pluto.var"#try_launch_notebook_response#224#248"{Pluto.ServerSession}})(action::typeof(Pluto.SessionActions.open), path_or_url::String; title::String, advice::String, home_url::String, as_redirect::Bool, action_kwargs::Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:as_sample,), Tuple{Bool}}})
    @ Pluto ~/.julia/packages/Pluto/0Ly6I/src/webserver/Static.jl:141
  [5] (::Pluto.var"#226#250")(request::HTTP.Messages.Request)
    @ Pluto ~/.julia/packages/Pluto/0Ly6I/src/webserver/Static.jl:172
  [6] (::Pluto.var"#213#235"{Bool, Pluto.var"#226#250", Pluto.ServerSession, Pluto.var"#add_set_secret_cookie!#232"{Pluto.ServerSession}})(request::HTTP.Messages.Request)
    @ Pluto ~/.julia/packages/Pluto/0Ly6I/src/webserver/Static.jl:101
  [7] handle(::HTTP.Handlers.RequestHandlerFunction{Pluto.var"#213#235"{Bool, Pluto.var"#226#250", Pluto.ServerSession, Pluto.var"#add_set_secret_cookie!#232"{Pluto.ServerSession}}}, ::HTTP.Messages.Request)
    @ HTTP.Handlers ~/.julia/packages/HTTP/5e2VH/src/Handlers.jl:254
  [8] handle(::HTTP.Handlers.Router{Symbol("##257")}, ::HTTP.Messages.Request)
    @ HTTP.Handlers ~/.julia/packages/HTTP/5e2VH/src/Handlers.jl:468
  [9] (::Pluto.var"#313#323"{Pluto.ServerSession, Base.RefValue{Function}, HTTP.Handlers.Router{Symbol("##257")}})(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}})
    @ Pluto ~/.julia/packages/Pluto/0Ly6I/src/webserver/WebServer.jl:228
 [10] handle
    @ ~/.julia/packages/HTTP/5e2VH/src/Handlers.jl:270 [inlined]
 [11] #4
    @ ~/.julia/packages/HTTP/5e2VH/src/Handlers.jl:346 [inlined]
 [12] macro expansion
    @ ~/.julia/packages/HTTP/5e2VH/src/Servers.jl:413 [inlined]
 [13] (::HTTP.Servers.var"#13#14"{HTTP.Handlers.var"#4#5"{HTTP.Handlers.StreamHandlerFunction{Pluto.var"#313#323"{Pluto.ServerSession, Base.RefValue{Function}, HTTP.Handlers.Router{Symbol("##257")}}}}, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}, HTTP.Servers.Server{Nothing, Sockets.TCPServer}, HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}})()
    @ HTTP.Servers ./task.jl:411

This message appeared in the browser after copying notebook from another machine, renaming the file and trying to open it. The name of the file I was trying to open was "stats.pluto2.jl" that appears at the top, and not "stats.pluto7.jl" which appears in the task trace (which doesn't exist, but existed and was opened before during the lifetime of the server).
EDIT: I now noticed that still has a running kernel when this message showed although the file has been deleted.

@fonsp
Copy link
Owner

fonsp commented Sep 21, 2021

Very strange. Can you reproduce it a second time or did it just happen once? Maybe it's a glitch in your filesystem, and a symbolic link was created between the two files...

@dralletje
Copy link
Collaborator

It happens when an open notebook file is removed.

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