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 saving scheduler state #2611

Closed
simonm3 opened this issue Dec 19, 2018 · 6 comments
Closed

failed saving scheduler state #2611

simonm3 opened this issue Dec 19, 2018 · 6 comments
Labels

Comments

@simonm3
Copy link

simonm3 commented Dec 19, 2018

Since upgrading (now on 2.8.2), I get this warning at the end of every pipeline:

WARNING:luigi.scheduler:Failed saving scheduler state
Traceback (most recent call last):
File "/anaconda3/lib/python3.7/site-packages/luigi/scheduler.py", line 458, in dump
with open(self._state_path, 'wb') as fobj:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/luigi-server/s tate.pickle'
WARNING:luigi.scheduler:Failed saving scheduler state
Traceback (most recent call last):
File "/anaconda3/lib/python3.7/site-packages/luigi/scheduler.py", line 458, in dump
with open(self._state_path, 'wb') as fobj:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/luigi-server/s tate.pickle'

@Tarrasch
Copy link
Contributor

Tarrasch commented Jan 9, 2019

Do you have a space character in your path???

'/var/lib/luigi-server/s tate.pickle'

Generally though the state.pickle file can safely be nuked after luigi upgrades.

@simonm3
Copy link
Author

simonm3 commented Jan 10, 2019 via email

@simonm3
Copy link
Author

simonm3 commented Jan 19, 2019

When you mentioned the space I thought maybe that was the issue so removed my "mkdirs". However the error is still there and there is no space in the actual error message - not sure where it came from!

So there should be line to create the folder if it does not exist.

@stale
Copy link

stale bot commented May 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions.

@stale stale bot added the wontfix label May 19, 2019
@stale stale bot closed this as completed Jun 2, 2019
@parlad
Copy link

parlad commented Aug 7, 2021

I am having this issue. I am running Luigi 3.0.3 @simonm3 Did you managed to solve this issue? if yes how ?

Note: I am running Luigi on Windows Server

luigid --port 8082 2021-08-07 11:27:56,983 luigi[11272] INFO: logging configured by default settings 2021-08-07 11:27:56,983 luigi.scheduler[11272] INFO: No prior state file exists at /var/lib/luigi-server/state.pickle. Starting with empty state Traceback (most recent call last): File "C:\name\AppData\Local\Programs\Python\Python39\Scripts\luigid-script.py", line 33, in <module> sys.exit(load_entry_point('luigi==3.0.3', 'console_scripts', 'luigid')()) File "c:\name\appdata\local\programs\python\python39\lib\site-packages\luigi\cmdline.py", line 37, in luigid luigi.server.run(api_port=opts.port, address=opts.address, unix_socket=opts.unix_socket) File "c:\name\appdata\local\programs\python\python39\lib\site-packages\luigi\server.py", line 343, in run _init_api( File "c:\name\appdata\local\programs\python\python39\lib\site-packages\luigi\server.py", line 327, in _init_api server.add_sockets(api_sockets) File "c:\name\appdata\local\programs\python\python39\lib\site-packages\tornado\tcpserver.py", line 157, in add_sockets self._handlers[sock.fileno()] = add_accept_handler( File "c:\users\appdata\local\programs\python\python39\lib\site-packages\tornado\netutil.py", line 268, in add_accept_handler io_loop.add_handler(sock, accept_handler, IOLoop.READ) File "c:\name\appdata\local\programs\python\python39\lib\site-packages\tornado\platform\asyncio.py", line 79, in add_handler self.asyncio_loop.add_reader( File "c:\name\appdata\local\programs\python\python39\lib\asyncio\events.py", line 504, in add_reader raise NotImplementedError NotImplementedError

@simonm3
Copy link
Author

simonm3 commented Aug 7, 2021

This is a different problem. Probably related to this:

tornadoweb/tornado#2608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants