-
Notifications
You must be signed in to change notification settings - Fork 482
Client ended connection while still streaming output #2319
Copy link
Copy link
Closed
Labels
Description
Expected behaviour:
Execution goes from start to end
Actual behaviour:
Execution stops throwing an error.
Steps to reproduce:
Run command:
flexget execute
Config:
https://github.com/effemmeffe/flexget/blob/master/config.yml
Log:
(click to expand)
flexget.log:2019-02-01 15:28 INFO scheduler Starting scheduler
2019-02-01 15:28 INFO web_server_daemon Running web server at IP 0.0.0.0:5050
2019-02-01 15:28 INFO web_server_daemon Initiating API
2019-02-01 15:28 INFO web_server_daemon Registering WebUI v1
2019-02-01 15:28 INFO web_server Web interface available at http://127.0.1.1:5050
2019-02-01 15:28 DEBUG manager Figuring out config load paths
2019-02-01 15:28 DEBUG manager Found config: /media/video-nas/flexget/config.yml
2019-02-01 15:28 DEBUG manager Config file /media/video-nas/flexget/config.yml selected
2019-02-01 15:28 DEBUG manager sys.defaultencoding: ascii
2019-02-01 15:28 DEBUG manager sys.getfilesystemencoding: UTF-8
2019-02-01 15:28 DEBUG manager flexget detected io encoding: utf-8
2019-02-01 15:28 DEBUG manager os.path.supports_unicode_filenames: False
2019-02-01 15:28 DEBUG manager Sending command to running FlexGet process: [u'-L', u'debug', u'execute', u'--task', u'download-series-discover']
2019-02-01 15:33 ERROR ipc download-series-discover Client ended connection while still streaming output.
Output on screen:
Traceback (most recent call last):
File "/usr/local/bin/flexget", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/flexget/__init__.py", line 42, in main
manager.start()
File "/usr/local/lib/python2.7/dist-packages/flexget/manager.py", line 344, in start
client.handle_cli(self.args)
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/netref.py", line 199, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/netref.py", line 75, in syncreq
return conn.sync_request(handler, proxy, *args)
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/protocol.py", line 471, in sync_request
return self.async_request(handler, *args, timeout=timeout).value
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/async_.py", line 95, in value
self.wait()
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/async_.py", line 47, in wait
raise AsyncResultTimeout("result expired")
rpyc.lib.compat.TimeoutError: result expired
Additional information:
- FlexGet version: 2.19.0
- Python version: Python 2.7.15rc1
- Installation method: pip
- Using daemon (yes/no): yes
- OS and version: ubuntu 18.04
- Link to crash log: no crash log present
The log is taken with the download-series-discover task, but it happens randomly with every task in my config whan I run flexget execute.
The error happens only when the daemon is running and I run the command flexget execute.
If I stop the daemon and run flexget execute I don't see any error.
The daemon is started via systemctl, the service is this:
fmf@kodi:~/.flexget$ cat /etc/systemd/system/flexget.service
[Unit]
Description=Flexget Daemon
After=network.target
[Service]
Type=simple
User=fmf
Group=fmf
UMask=000
WorkingDirectory=/home/fmf/.flexget
ExecStart=/usr/local/bin/flexget daemon start
ExecStop=/usr/local/bin/flexget daemon stop
ExecReload=/usr/local/bin/flexget daemon reload
[Install]
WantedBy=multi-user.target
Reactions are currently unavailable