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

Config actor not initializing on first run #153

Closed
dlqqq opened this issue May 8, 2023 · 0 comments · Fixed by #161
Closed

Config actor not initializing on first run #153

dlqqq opened this issue May 8, 2023 · 0 comments · Fixed by #161
Labels
bug Something isn't working

Comments

@dlqqq
Copy link
Member

dlqqq commented May 8, 2023

Description

I set up a completely new Mac OS X laptop, without ever having run JupyterLab prior. When trying to start the development server for the first time, I ran into this error:

(ConfigActor pid=29842) 2023-05-08 10:46:37,776	ERROR worker.py:844 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::config:ConfigActor.__init__() (pid=29842, ip=127.0.0.1, repr=<jupyter_ai.actors.config.ConfigActor object at 0x7fdf0b5556c0>)
(ConfigActor pid=29842)   File "/Users/dlq/workplace/jupyter-ai/packages/jupyter-ai/jupyter_ai/actors/config.py", line 20, in __init__
(ConfigActor pid=29842)     self._load()
(ConfigActor pid=29842)   File "/Users/dlq/workplace/jupyter-ai/packages/jupyter-ai/jupyter_ai/actors/config.py", line 58, in _load
(ConfigActor pid=29842)     self.update(GlobalConfig(), True)
(ConfigActor pid=29842)   File "/Users/dlq/workplace/jupyter-ai/packages/jupyter-ai/jupyter_ai/actors/config.py", line 26, in update
(ConfigActor pid=29842)     self._save(config)
(ConfigActor pid=29842)   File "/Users/dlq/workplace/jupyter-ai/packages/jupyter-ai/jupyter_ai/actors/config.py", line 47, in _save
(ConfigActor pid=29842)     with open(self.save_path, 'w') as f:
(ConfigActor pid=29842) FileNotFoundError: [Errno 2] No such file or directory: '/Users/dlq/Library/Jupyter/jupyter_ai/config.json'

Reproduce

This error disappeared after restarting the server. This may be possible to reproduce by deleting jupyter_ai/config.json, but I don't have the time to verify this.

@dlqqq dlqqq added the bug Something isn't working label May 8, 2023
@dlqqq dlqqq changed the title Config actor not initializing sometimes Config actor not initializing on first run May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant