Closed markhalliwell closed 4 years ago
Mark, is this on the latest version? This error was fixed in version 0.7.1. If you still see it, please enable Debug Logs in Settings, and send me the logs including the crash.
Yes, I'm running v0.7.3
. I currently have this disabled due to some local issues I'm working through (transferring files, don't need this to mess it up). I'll try to get the debug log when I can. For now, the output I already provided above is all I got.
I've updated the output above to include the debug about before and after the error.
I have the same problem, but it did not start until I updated to 0.7.3. I was previously on 0.7.0 before that so whatever causes Error parsing lftp job status
must have been in-between those.
Right now I have to manually use the Restart multiple times a day to get it working again.
Here is my log (with identifying info removed). Looks exactly the same as Mark's.
2020/06/08 12:31:36 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - LftpJobStateParser error: Missing queue header line 1: 2020-06-08 19:31:36 sftp://username@domain.com/path/video.mkv -> /path/video.mkv.lftp 708761702-945015599 1.87 MiB/s
2020/06/08 12:31:36 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - Status: 2020-06-08 19:31:36 sftp://username@domain.com/path/video.mkv -> /path/video.mkv.lftp 708761702-945015599 1.87 MiB/s [0] queue (sftp://username:password@domain.com) -- 15.23 MiB/s sftp://username:password@domain.com/path Now executing: [1] mirror -c /path/tv /downloads/ -- 99G/117G (84%) 15.23 MiB/s [1] mirror -c /path/tv /downloads/ -- 99G/117G (84%) 15.23 MiB/s \mirror `directory1' \mirror `directory1/directory2' -- 32G/51G (62%) 15.23 MiB/s \transfer `directory1/directory2/video.mkv' `video.mkv', got 2773401069 of 2835046775 (97%) 15.23M/s eta:13s \chunk 0-236253908 `video.mkv' at 235143168 (8%) 2.01M/s eta:1s [Receiving data] \chunk 2362538981-2598792877 `video.mkv' at 2595814373 (98%) 2.00M/s eta:2s [Receiving data] \chunk 1890031187-2126285083 `video.mkv' at 2114000467 (94%) 1.69M/s eta:7s [Receiving data] \chunk 1653777290-1890031186 `video.mkv' at 1879352202 (95%) 1.87M/s eta:6s [Receiving data] \chunk 1181269496-1417523392 `video.mkv' at 1410776568 (97%) 1.80M/s eta:4s [Receiving data] \chunk 708761702-945015598 `video.mkv' at 945015599 (100%) 2.06M/s eta:0s [Receiving data] \chunk 472507805-708761701 `video.mkv' at 703686045 (97%) 1.92M/s eta:3s [Receiving data] \chunk 236253908-472507804 `video.mkv' at 449737428 (90%) 1.87M/s eta:13s [Receiving data]
2020/06/08 12:31:36 - ERROR - seedsync.ControllerJob - Caught exception in job ControllerJob
Traceback (most recent call last):
File "/app/python/lftp/job_status_parser.py", line 81, in parse
statuses += self.__parse_queue(lines)
File "/app/python/lftp/job_status_parser.py", line 486, in __parse_queue
raise ValueError("Missing queue header line 1: {}".format(line))
ValueError: Missing queue header line 1: 2020-06-08 19:31:36 sftp://username@domain.com/path/video.mkv -> /path/video.mkv.lftp 708761702-945015599 1.87 MiB/s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 202, in process
self.__update_model()
File "/app/python/controller/controller.py", line 295, in __update_model
lftp_statuses = self.__lftp.status()
File "/app/python/lftp/lftp.py", line 314, in status
statuses = self.__job_status_parser.parse(statuses_str)
File "/app/python/lftp/job_status_parser.py", line 86, in parse
raise LftpJobStatusParserError("Error parsing lftp job status")
lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status
2020/06/08 12:31:36 - DEBUG - seedsync.ControllerJob - Calling cleanup for ControllerJob
2020/06/08 12:31:36 - DEBUG - seedsync.Controller - Exiting controller
2020/06/08 12:31:36 - ERROR - seedsync - Caught exception
Traceback (most recent call last):
File "/app/python/lftp/job_status_parser.py", line 81, in parse
statuses += self.__parse_queue(lines)
File "/app/python/lftp/job_status_parser.py", line 486, in __parse_queue
raise ValueError("Missing queue header line 1: {}".format(line))
ValueError: Missing queue header line 1: 2020-06-08 19:31:36 sftp://username@domain.com/path/video.mkv -> /path/video.mkv.lftp 708761702-945015599 1.87 MiB/s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/python/seedsync.py", line 162, in run
controller_job.propagate_exception()
File "/app/python/common/job.py", line 77, in propagate_exception
raise exc_info[1].with_traceback(exc_info[2])
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 202, in process
self.__update_model()
File "/app/python/controller/controller.py", line 295, in __update_model
lftp_statuses = self.__lftp.status()
File "/app/python/lftp/lftp.py", line 314, in status
statuses = self.__job_status_parser.parse(statuses_str)
File "/app/python/lftp/job_status_parser.py", line 86, in parse
raise LftpJobStatusParserError("Error parsing lftp job status")
lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status
Thanks for the logs guys. It will be fixed soon in the next version.
Please try the newest version v0.8.0.
So far this looks promising :D
I'll have to see how it performs over the next couple of days.
I'll go ahead and close this as any new errors would likely be a separate issue anyway.
Nope. Still happening (albeit less frequently):
2020/06/15 09:33:10 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - LftpJobStateParser error: Missing queue header line 1: /downloads/(redacted).mp4.lftp 1288777143-1369325714 220.3 KiB/s
2020/06/15 09:33:10 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - Status: /downloads/(redacted).mp4.lftp 1288777143-1369325714 220.3 KiB/s jobs -v [0] queue (sftp://(redacted)) -- 14.74 MiB/s sftp://(redacted) Now executing: [1] mirror -c (redacted) /downloads/ -- 22G/25G (88%) 14.74 MiB/s [1] mirror -c (redacted) /downloads/ -- 22G/25G (88%) 14.74 MiB/s \mirror `(redacted)' -- 2.0G/2.1G (98%) 1.29 MiB/s \transfer `(redacted).mp4' `(redacted).mp4', got 1993308451 of 2013714282 (98%) 1.29M/s eta:24s \chunk 1369325714-1449874284 `(redacted).mp4' at 1445740690 (94%) 231.7K/s eta:18s [Receiving data] \chunk 1208228572-1288777142 `(redacted).mp4' at 1285364444 (95%) 209.2K/s eta:15s [Receiving data] \chunk 805485717-886034287 `(redacted).mp4' at 882392213 (95%) 209.6K/s eta:16s [Receiving data] \chunk 724937146-805485716 `(redacted).mp4' at 799451578 (92%) 393.1K/s eta:24s [Receiving data] \chunk 563840004-644388574 `(redacted).mp4' at 641205252 (96%) 276.0K/s eta:13s [Receiving data] \mirror `(redacted)' -- 3.0G/5.9G (50%) 13.45 MiB/s \transfer `(redacted).mkv' `(redacted).mkv', got 2980151296 of 5871398815 (50%) 13.45M/s eta:14m \chunk 0-234855967 `(redacted).mkv' at 96305152 (1%) 461.2K/s eta:6m [Receiving data] \chunk 5636542863-5871398814 `(redacted).mkv' at 5811425679 (74%) 568.1K/s eta:87s [Receiving data] \chunk 5401686911-5636542862 `(redacted).mkv' at 5497566079 (40%) 385.8K/s eta:6m [Receiving data] \chunk 5166830959-5401686910 `(redacted).mkv' at 5217752431 (21%) 227.8K/s eta:14m [Receiving data] \chunk 4931975007-5166830958 `(redacted).mkv' at 5084149599 (64%) 739.0K/s eta:2m [Receiving data] \chunk 4697119055-4931975006 `(redacted).mkv' at 4819573071 (52%) 461.5K/s eta:4m [Receiving data] \chunk 4462263103-4697119054 `(redacted).mkv' at 4544838463 (35%) 524.1K/s eta:6m [Receiving data] \chunk 4227407151-4462263102 `(redacted).mkv' at 4318305583 (38%) 577.9K/s eta:6m [Receiving data] \chunk 3992551199-4227407150 `(redacted).mkv' at 4170579743 (75%) 1000.3K/s eta:74s [Receiving data] \chunk 3757695247-3992551198 `(redacted).mkv' at 3855376655 (41%) 595.6K/s eta:5m [Receiving data] \chunk 3522839295-3757695246 `(redacted).mkv' at 3690808063 (71%) 824.3K/s eta:96s [Receiving data] \chunk 3287983343-3522839294 `(redacted).mkv' at 3436324079 (63%) 549.6K/s eta:2m [Receiving data] \chunk 3053127391-3287983342 `(redacted).mkv' at 3138455263 (36%) 521.5K/s eta:7m [Receiving data] \chunk 2818271439-3053127390 `(redacted).mkv' at 2907007183 (37%) 359.4K/s eta:6m [Receiving data] \chunk 2583415487-2818271438 `(redacted).mkv' at 2634042047 (21%) 294.7K/s eta:13m [Receiving data] \chunk 2348559535-2583415486 `(redacted).mkv' at 2550082735 (85%) 850.9K/s eta:41s [Receiving data] \chunk 2113703583-2348559534 `(redacted).mkv' at 2220854943 (45%) 501.2K/s eta:4m [Receiving data] \chunk 1878847631-2113703582 `(redacted).mkv' at 2024501391 (62%) 456.4K/s eta:2m [Receiving data] \chunk 1643991679-1878847630 `(redacted).mkv' at 1797706367 (65%) 697.2K/s eta:2m [Receiving data] \chunk 1409135727-1643991678 `(redacted).mkv' at 1551086703 (60%) 463.3K/s eta:3m [Receiving data] \chunk 1174279775-1409135726 `(redacted).mkv' at 1322882655 (63%) 739.4K/s eta:2m [Receiving data] \chunk 939423823-1174279774 `(redacted).mkv' at 1012004943 (30%) 387.3K/s eta:8m [Receiving data] \chunk 704567871-939423822 `(redacted).mkv' at 820369983 (49%) 635.2K/s eta:4m [Receiving data] \chunk 469711919-704567870 `(redacted).mkv' at 591084591 (51%) 540.7K/s eta:4m [Receiving data] \chunk 234855967-469711918 `(redacted).mkv' at 323853855 (37%) 408.8K/s eta:7m [Receiving data]
2020/06/15 09:33:10 - ERROR - seedsync.ControllerJob - Caught exception in job ControllerJob
Traceback (most recent call last):
File "/app/python/lftp/job_status_parser.py", line 85, in parse
statuses += self.__parse_queue(lines)
File "/app/python/lftp/job_status_parser.py", line 490, in __parse_queue
raise ValueError("Missing queue header line 1: {}".format(line))
ValueError: Missing queue header line 1: /downloads/(redacted).mp4.lftp 1288777143-1369325714 220.3 KiB/s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 202, in process
self.__update_model()
File "/app/python/controller/controller.py", line 295, in __update_model
lftp_statuses = self.__lftp.status()
File "/app/python/lftp/lftp.py", line 309, in status
statuses = self.__job_status_parser.parse(out)
File "/app/python/lftp/job_status_parser.py", line 90, in parse
raise LftpJobStatusParserError("Error parsing lftp job status")
lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status
2020/06/15 09:33:11 - ERROR - seedsync - Caught exception
Traceback (most recent call last):
File "/app/python/lftp/job_status_parser.py", line 85, in parse
statuses += self.__parse_queue(lines)
File "/app/python/lftp/job_status_parser.py", line 490, in __parse_queue
raise ValueError("Missing queue header line 1: {}".format(line))
ValueError: Missing queue header line 1: /downloads/(redacted).mp4.lftp 1288777143-1369325714 220.3 KiB/s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/python/seedsync.py", line 162, in run
controller_job.propagate_exception()
File "/app/python/common/job.py", line 77, in propagate_exception
raise exc_info[1].with_traceback(exc_info[2])
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 202, in process
self.__update_model()
File "/app/python/controller/controller.py", line 295, in __update_model
lftp_statuses = self.__lftp.status()
File "/app/python/lftp/lftp.py", line 309, in status
statuses = self.__job_status_parser.parse(out)
File "/app/python/lftp/job_status_parser.py", line 90, in parse
raise LftpJobStatusParserError("Error parsing lftp job status")
lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status
2020/06/15 09:33:14 - INFO - seedsync.Controller - Exited controller
Could you please post the full second line only redacting the filenames.
2020/06/15 09:33:10 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - Status: (redacted) [Receiving data]
I need to see the full status to see what's going wrong.
updated
It seemed like we had the same problem but mine has actually had no problems for the last week. Been smooth sailing since 0.8.0.
Another crash, this had debug enabled though:
2020/06/17 07:42:12 - DEBUG - RemoteScanner - Scan took 2.360s
2020/06/17 07:42:12 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:42:12 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:13 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:13 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:14 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:14 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:15 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:16 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:16 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:17 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:17 - DEBUG - LocalScanner - Running a scan
2020/06/17 07:42:17 - DEBUG - LocalScanner - Scan took 0.058s
2020/06/17 07:42:17 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:18 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:18 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:19 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:20 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file '(redacted)'
2020/06/17 07:42:20 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - LftpJobStateParser error: Missing queue header line 1: /downloads/(redacted).mp4.lftp 914457562-997590066 436.5 KiB/s
2020/06/17 07:42:20 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - Status: /downloads/(redacted).mp4.lftp 914457562-997590066 436.5 KiB/s jobs -v [0] queue (sftp://(redacted)) -- 4.50 MiB/s sftp://(redacted) Now executing: [1] mirror -c (redacted) /downloads/ -- 2.1G/2.1G (97%) 4.50 MiB/s [1] mirror -c (redacted) /downloads/ -- 2.1G/2.1G (97%) 4.50 MiB/s \mirror `Fallen (1998)' \transfer `(redacted).mp4' `(redacted).mp4', got 2028635890 of 2078312618 (97%) 4.50M/s eta:32s \chunk 1496385090-1579517593 `(redacted).mp4' at 1567327810 (85%) 823.2K/s eta:29s [Receiving data] \chunk 1330120082-1413252585 `(redacted).mp4' at 1400046994 (84%) 735.7K/s eta:32s [Receiving data] \chunk 748192554-831325057 `(redacted).mp4' at 819200810 (85%) 787.2K/s eta:29s [Receiving data] \chunk 665060050-748192553 `(redacted).mp4' at 736985810 (86%) 891.7K/s eta:26s [Receiving data] \chunk 415662538-498795041 `(redacted).mp4' at 497844682 (98%) 1.33M/s eta:2s [Receiving data]
2020/06/17 07:42:20 - ERROR - seedsync.ControllerJob - Caught exception in job ControllerJob
Traceback (most recent call last):
File "/app/python/lftp/job_status_parser.py", line 85, in parse
statuses += self.__parse_queue(lines)
File "/app/python/lftp/job_status_parser.py", line 490, in __parse_queue
raise ValueError("Missing queue header line 1: {}".format(line))
ValueError: Missing queue header line 1: /downloads/(redacted).mp4.lftp 914457562-997590066 436.5 KiB/s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 202, in process
self.__update_model()
File "/app/python/controller/controller.py", line 295, in __update_model
lftp_statuses = self.__lftp.status()
File "/app/python/lftp/lftp.py", line 309, in status
statuses = self.__job_status_parser.parse(out)
File "/app/python/lftp/job_status_parser.py", line 90, in parse
raise LftpJobStatusParserError("Error parsing lftp job status")
lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status
2020/06/17 07:42:20 - DEBUG - seedsync.ControllerJob - Calling cleanup for ControllerJob
2020/06/17 07:42:20 - DEBUG - seedsync.Controller - Exiting controller
2020/06/17 07:42:21 - DEBUG - ActiveScanner - Process received terminate flag
2020/06/17 07:42:21 - DEBUG - ActiveScanner - Exiting process
2020/06/17 07:42:21 - ERROR - seedsync - Caught exception
Traceback (most recent call last):
File "/app/python/lftp/job_status_parser.py", line 85, in parse
statuses += self.__parse_queue(lines)
File "/app/python/lftp/job_status_parser.py", line 490, in __parse_queue
raise ValueError("Missing queue header line 1: {}".format(line))
ValueError: Missing queue header line 1: /downloads/(redacted).mp4.lftp 914457562-997590066 436.5 KiB/s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/python/seedsync.py", line 162, in run
controller_job.propagate_exception()
File "/app/python/common/job.py", line 77, in propagate_exception
raise exc_info[1].with_traceback(exc_info[2])
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 202, in process
self.__update_model()
File "/app/python/controller/controller.py", line 295, in __update_model
lftp_statuses = self.__lftp.status()
File "/app/python/lftp/lftp.py", line 309, in status
statuses = self.__job_status_parser.parse(out)
File "/app/python/lftp/job_status_parser.py", line 90, in parse
raise LftpJobStatusParserError("Error parsing lftp job status")
lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status
2020/06/17 07:42:24 - DEBUG - ExtractProcess - Process received terminate flag
2020/06/17 07:42:24 - DEBUG - seedsync.Controller.MPLogger - Stopped listener thread
2020/06/17 07:42:24 - INFO - seedsync.Controller - Exited controller
2020/06/17 07:42:24 - DEBUG - seedsync.ControllerJob - Finished cleanup for ControllerJob
2020/06/17 07:42:24 - DEBUG - seedsync.ControllerJob - Thread ControllerJob stopped
2020/06/17 07:42:42 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:43:17 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:43:42 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:44:12 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:44:42 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:45:18 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:45:42 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:46:12 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:46:48 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:47:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:47:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:48:16 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:48:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:49:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:49:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:50:16 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:50:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:51:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:51:47 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:52:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:52:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:53:17 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:53:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:54:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:54:47 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:55:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:55:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:56:18 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:56:43 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:57:13 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:57:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:58:18 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 07:58:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:59:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 07:59:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:00:18 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:00:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:01:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:01:47 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:02:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:02:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:03:18 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:03:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:04:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:04:48 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:05:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:05:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:06:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:06:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:07:14 - DEBUG - seedsync.WebApp - Stream connection stopped by client
2020/06/17 08:07:14 - DEBUG - seedsync.Controller.Model - LftpModel: Removing a listener
2020/06/17 08:07:17 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:07:44 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:08:14 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:08:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:09:20 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:09:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:10:15 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:10:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:11:19 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:11:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:12:15 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:12:49 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:13:15 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:13:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:14:19 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:14:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:15:15 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:15:48 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:16:15 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:16:45 - DEBUG - seedsync - Persisting states to file
2020/06/17 08:17:15 - DEBUG - seedsync.WebApp - Stream connection stopped by client
2020/06/17 08:17:15 - DEBUG - seedsync.Controller.Model - LftpModel: Removing a listener
2020/06/17 08:17:18 - DEBUG - seedsync.Controller.Model - LftpModel: Adding a listener
2020/06/17 08:17:45 - DEBUG - seedsync - Persisting states to file
Thanks Mark for the logs. I have never seen this case before but I'll add a handler for it.
Mark try v0.8.1
Ok. Trying now.
I still have some parsing issue here im running the last version Let me know if you need more detail.
I took this screenshot of the error while having debug on.
@Jencryzthers Could you please send me a few of the messages before this error. This screenshot does not include the status line which I need to understand the failure. Thanks.
I reproduced the error and redacted a few line. Let me know if this is enough.
`2020/06/29 18:55:09 - DEBUG - LocalScanner - Scan took 3.306s 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:09 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted' 2020/06/29 18:55:10 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:10 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:10 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:10 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:11 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - LftpJobStateParser error: Unable to parse line '[8] pget -c /media/sdq1/home/jencryzthers/private/deluge/data/sync/The.Redacted.Redacted.2020.Multi.10jobs -v' 2020/06/29 18:55:11 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - Status: jobs -v [0] queue (sftp://redacted@feralhosting.com:22) -- 29.12 MiB/s sftp://redacted@feralhosting.com:22/media/sdq1/home/jencryzthers 2020/06/29 18:55:11 - ERROR - seedsync.ControllerJob - Caught exception in job ControllerJob Traceback (most recent call last): File "/app/python/lftp/job_status_parser.py", line 90, in parse statuses += self.__parse_jobs(lines) File "/app/python/lftp/job_status_parser.py", line 472, in __parse_jobs raise ValueError("Unable to parse line '{}'".format(line)) ValueError: Unable to parse line '[8] pget -c /media/sdq1/home/jencryzthers/private/deluge/data/sync/The.Redacted.Redacted.2020.Multi.10jobs -v'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/python/common/job.py", line 44, in run self.execute() File "/app/python/controller/controller_job.py", line 29, in execute self.controller.process() File "/app/python/controller/controller.py", line 202, in process self.update_model() File "/app/python/controller/controller.py", line 295, in update_model lftp_statuses = self.lftp.status() File "/app/python/lftp/lftp.py", line 316, in status statuses = self.job_status_parser.parse(out) File "/app/python/lftp/job_status_parser.py", line 94, in parse raise LftpJobStatusParserError("Error parsing lftp job status") lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status 2020/06/29 18:55:11 - DEBUG - seedsync.ControllerJob - Calling cleanup for ControllerJob 2020/06/29 18:55:11 - DEBUG - seedsync.Controller - Exiting controller 2020/06/29 18:55:11 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:11 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:11 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:11 - WARNING - ActiveScanner.ActiveScanner - Path does not exist: /downloads/redacted 2020/06/29 18:55:11 - ERROR - seedsync - Caught exception Traceback (most recent call last): File "/app/python/lftp/job_status_parser.py", line 90, in parse statuses += self.parse_jobs(lines) File "/app/python/lftp/job_status_parser.py", line 472, in __parse_jobs raise ValueError("Unable to parse line '{}'".format(line)) ValueError: Unable to parse line '[8] pget -c /media/sdq1/home/jencryzthers/private/deluge/data/sync/The.Redacted.Redacted.2020.Multi.10jobs -v'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/python/seedsync.py", line 162, in run controller_job.propagate_exception() File "/app/python/common/job.py", line 77, in propagate_exception raise exc_info[1].with_traceback(exc_info[2]) File "/app/python/common/job.py", line 44, in run self.execute() File "/app/python/controller/controller_job.py", line 29, in execute self.controller.process() File "/app/python/controller/controller.py", line 202, in process self.update_model() File "/app/python/controller/controller.py", line 295, in update_model lftp_statuses = self.lftp.status() File "/app/python/lftp/lftp.py", line 316, in status statuses = self.__job_status_parser.parse(out) File "/app/python/lftp/job_status_parser.py", line 94, in parse raise LftpJobStatusParserError("Error parsing lftp job status") lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status`
Please try version 0.8.3.
I just updated and now it is unable to retrive anything. I tested using manual lftp command and it works.
Here is the log
2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:52 - DEBUG - seedsync.Controller.Model - LftpModel: Updating file 'redacted.mkv' 2020/06/30 10:29:56 - ERROR - seedsync.Controller.Lftp - Lftp timeout exception Traceback (most recent call last): File "/app/python/lftp/lftp.py", line 128, in run_command self.process.expect(self.expect_pattern, timeout=self.timeout) File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 344, in expect timeout, searchwindowsize, async_) File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 372, in expect_list return exp.expect_loop(timeout) File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 181, in expect_loop return self.timeout(e) File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 144, in timeout raise exc pexpect.exceptions.TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x14fdf0f15a10> command: /usr/bin/lftp args: ['/usr/bin/lftp', '-p', '22', '-u', 'jencryzthers,{redacted}', 'sftp://{redacted}.feralhosting.com'] buffer (last 100 chars): b' ' before (last 100 chars): b' ' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 7 child_fd: 5 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile(b'lftp jencryzthers@{redacted}.feralhosting.com:.*>') 2020/06/30 10:29:57 - DEBUG - RemoteScanner - Running a scan 2020/06/30 10:29:57 - DEBUG - RemoteScanner.RemoteScanner.Sshcp - Command: ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=error -o PubkeyAuthentication=no jencryzthers@{redacted}.feralhosting.com "'/tmp/scanfs' '/media/sdq1/home/jencryzthers/private/deluge/data/sync'" 2020/06/30 10:29:57 - DEBUG - LocalScanner - Running a scan 2020/06/30 10:29:57 - DEBUG - seedsync - Persisting states to file 2020/06/30 10:29:57 - DEBUG - LocalScanner - Scan took 0.369s
@Jencryzthers Did you try this again? Are you using the docker image or the debian package? Also what operating system are you installing SeedSync on?
@ipsingh06 I use unRaid with docker
I wiped everything and tried again with the last version.
here is the new error log
2020/07/04 12:41:24 - INFO - seedsync.ServerActionHandler - Received a restart action 2020/07/04 12:41:24 - INFO - seedsync - Exiting Seedsync 2020/07/04 12:41:31 - INFO - RemoteScanner.RemoteScanner - Skipping remote scanfs installation: already installed 2020/07/04 12:41:38 - INFO - seedsync.AutoQueue - Auto queueing 'redacted' 2020/07/04 12:41:45 - INFO - seedsync.Controller - Received command Action.QUEUE for file redacted 2020/07/04 12:42:20 - ERROR - seedsync.Controller.Lftp - Lftp timeout exception Traceback (most recent call last): File "/app/python/lftp/lftp.py", line 128, in run_command self.process.expect(self.expect_pattern, timeout=self.timeout) File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 344, in expect timeout, searchwindowsize, async_) File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 372, in expect_list return exp.expect_loop(timeout) File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 181, in expect_loop return self.timeout(e) File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 144, in timeout raise exc pexpect.exceptions.TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x15187f492790> command: /usr/bin/lftp args: ['/usr/bin/lftp', '-p', '22', '-u', 'jencryzthers,redacted', 'sftp://redacted.feralhosting.com'] buffer (last 100 chars): b' ' before (last 100 chars): b' ' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 20 child_fd: 30 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile(b'lftp jencryzthers@redacted.feralhosting.com:.*>') 2020/07/04 12:42:24 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - LftpJobStateParser error: Unable to parse line '0 (23%) 1.98M/s eta:2m [Receiving data]' 2020/07/04 12:42:24 - ERROR - seedsync.Controller.Lftp.LftpJobStatusParser - Status: jobs -v [0] queue (sftp://jencryzthers:redacted@redacted.feralhosting.com:22) -- 16.34 MiB/s 2020/07/04 12:42:25 - ERROR - seedsync.ControllerJob - Caught exception in job ControllerJob Traceback (most recent call last): File "/app/python/lftp/job_status_parser.py", line 90, in parse statuses += self.__parse_jobs(lines) File "/app/python/lftp/job_status_parser.py", line 472, in __parse_jobs raise ValueError("Unable to parse line '{}'".format(line)) ValueError: Unable to parse line '2 (23%) 1.86M/s eta:2m [Receiving data]'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/python/common/job.py", line 44, in run self.execute() File "/app/python/controller/controller_job.py", line 29, in execute self.controller.process() File "/app/python/controller/controller.py", line 202, in process self.update_model() File "/app/python/controller/controller.py", line 295, in update_model lftp_statuses = self.lftp.status() File "/app/python/lftp/lftp.py", line 322, in status statuses = self.job_status_parser.parse(out) File "/app/python/lftp/job_status_parser.py", line 94, in parse raise LftpJobStatusParserError("Error parsing lftp job status") lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status 2020/07/04 12:42:26 - ERROR - seedsync - Caught exception Traceback (most recent call last): File "/app/python/lftp/job_status_parser.py", line 90, in parse statuses += self.parse_jobs(lines) File "/app/python/lftp/job_status_parser.py", line 472, in __parse_jobs raise ValueError("Unable to parse line '{}'".format(line)) ValueError: Unable to parse line '2 (23%) 1.86M/s eta:2m [Receiving data]'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/python/seedsync.py", line 162, in run controller_job.propagate_exception() File "/app/python/common/job.py", line 77, in propagate_exception raise exc_info[1].with_traceback(exc_info[2]) File "/app/python/common/job.py", line 44, in run self.execute() File "/app/python/controller/controller_job.py", line 29, in execute self.controller.process() File "/app/python/controller/controller.py", line 202, in process self.update_model() File "/app/python/controller/controller.py", line 295, in update_model lftp_statuses = self.lftp.status() File "/app/python/lftp/lftp.py", line 322, in status statuses = self.__job_status_parser.parse(out) File "/app/python/lftp/job_status_parser.py", line 94, in parse raise LftpJobStatusParserError("Error parsing lftp job status") lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status 2020/07/04 12:42:27 - INFO - seedsync.Controller - Exited controller
@Jencryzthers I'm not able to tell what's going wrong from those logs. Please do the following to enable verbose logging.
In your settings.cfg
file, change verbose = False
to verbose = True
. Then run it again and send the logs. Thanks.
I haven't seen any more issues. I think this can be closed now. I think the issue @Jencryzthers is having is seemingly unrelated to this one as it throws a timeout exception prior to the parsing one.
@Jencryzthers Could you please create a new ticket with the verbose logs, thanks.
I have docker 0.8.6 and hitting the same error. Restarting resolves the app for a random period of time (could be minutes, could be hours)
Log Dump:
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/python/common/job.py", line 44, in run self.execute() File "/app/python/controller/controller_job.py", line 29, in execute self.controller.process() File "/app/python/controller/controller.py", line 202, in process self.update_model() File "/app/python/controller/controller.py", line 295, in update_model lftp_statuses = self.lftp.status() File "/app/python/lftp/lftp.py", line 322, in status statuses = self.job_status_parser.parse(out) File "/app/python/lftp/job_status_parser.py", line 94, in parse raise LftpJobStatusParserError("Error parsing lftp job status") lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status 2022-06-04 12:59:42,020 - ERROR - seedsync (MainProcess/MainThread) - Caught exception Traceback (most recent call last): File "/app/python/lftp/job_status_parser.py", line 89, in parse statuses += self.parse_queue(lines) File "/app/python/lftp/job_status_parser.py", line 482, in __parse_queue raise ValueError("Unrecognized line '{}'".format(lines[0])) ValueError: Unrecognized line '/downloads/AudioBook/1984 (George Orwell) - Audio Book/Audio Books - George Orwell - 1984 - 6 of 14.mp3.lftp 7813120-11719680 34.4 KiB/s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/python/seedsync.py", line 164, in run controller_job.propagate_exception() File "/app/python/common/job.py", line 77, in propagate_exception raise exc_info[1].with_traceback(exc_info[2]) File "/app/python/common/job.py", line 44, in run self.execute() File "/app/python/controller/controller_job.py", line 29, in execute self.controller.process() File "/app/python/controller/controller.py", line 202, in process self.update_model() File "/app/python/controller/controller.py", line 295, in update_model lftp_statuses = self.lftp.status() File "/app/python/lftp/lftp.py", line 322, in status statuses = self.job_status_parser.parse(out) File "/app/python/lftp/job_status_parser.py", line 94, in parse raise LftpJobStatusParserError("Error parsing lftp job status") lftp.job_status_parser.LftpJobStatusParserError: Error parsing lftp job status 2022-06-04 12:59:45,037 - ERROR - seedsync.Controller.Lftp (MainProcess/ControllerJob) - Lftp timeout exception Traceback (most recent call last): File "/app/python/lftp/lftp.py", line 128, in run_command self.process.expect(self.expect_pattern, timeout=self.timeout) File "/usr/local/lib/python3.8/site-packages/pexpect/spawnbase.py", line 343, in expect return self.expect_list(compiled_pattern_list, File "/usr/local/lib/python3.8/site-packages/pexpect/spawnbase.py", line 372, in expect_list return exp.expect_loop(timeout) File "/usr/local/lib/python3.8/site-packages/pexpect/expect.py", line 181, in expect_loop return self.timeout(e) File "/usr/local/lib/python3.8/site-packages/pexpect/expect.py", line 144, in timeout raise exc pexpect.exceptions.TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x14b62a98ca90> command: /usr/bin/lftp args: ['/usr/bin/lftp', '-p', '22', '-u', ‘XXX,XXX’, 'sftp://XXX’] buffer (last 100 chars): b'll) - Audio Book/Audio Books - George Orwell - 1984 - 6 of 14.mp3.lftp 7813120-11719680 34.4 KiB/s\r\n' before (last 100 chars): b'll) - Audio Book/Audio Books - George Orwell - 1984 - 6 of 14.mp3.lftp 7813120-11719680 34.4 KiB/s\r\n' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 714 child_fd: 68 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile(b'lftp XXX@XXXX:.*>’) 2022-06-04 12:59:48,092 - ERROR - seedsync.Controller.Lftp (MainProcess/ControllerJob) - Lftp timeout exception Traceback (most recent call last): File "/app/python/lftp/lftp.py", line 128, in __run_command self.process.expect(self.__expect_pattern, timeout=self.__timeout) File "/usr/local/lib/python3.8/site-packages/pexpect/spawnbase.py", line 343, in expect return self.expect_list(compiled_pattern_list, File "/usr/local/lib/python3.8/site-packages/pexpect/spawnbase.py", line 372, in expect_list return exp.expect_loop(timeout) File "/usr/local/lib/python3.8/site-packages/pexpect/expect.py", line 181, in expect_loop return self.timeout(e) File "/usr/local/lib/python3.8/site-packages/pexpect/expect.py", line 144, in timeout raise exc pexpect.exceptions.TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x14b62a98ca90> command: /usr/bin/lftp args: ['/usr/bin/lftp', '-p', '22', '-u', ‘XXX,XXX’, 'sftp://XXX’] buffer (last 100 chars): b'll) - Audio Book/Audio Books - George Orwell - 1984 - 6 of 14.mp3.lftp 7813120-11719680 34.4 KiB/s\r\n' before (last 100 chars): b'll) - Audio Book/Audio Books - George Orwell - 1984 - 6 of 14.mp3.lftp 7813120-11719680 34.4 KiB/s\r\n' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 714 child_fd: 68 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile(b'lftp XXXX@XXXX:.*>’) Exception in thread ControllerJob: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pexpect/pty_spawn.py", line 23, in _wrap_ptyprocess_err yield File "/usr/local/lib/python3.8/site-packages/pexpect/pty_spawn.py", line 328, in close self.ptyproc.close(force=force) File "/usr/local/lib/python3.8/site-packages/ptyprocess/ptyprocess.py", line 400, in close raise PtyProcessError('Could not terminate the child.') ptyprocess.util.PtyProcessError: Could not terminate the child.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/app/python/common/job.py", line 56, in run self.cleanup() File "/app/python/controller/controller_job.py", line 34, in cleanup self.controller.exit() File "/app/python/controller/controller.py", line 207, in exit self.lftp.exit() File "/app/python/lftp/lftp.py", line 404, in exit self.__process.close(force=True) File "/usr/local/lib/python3.8/site-packages/pexpect/pty_spawn.py", line 328, in close self.ptyproc.close(force=force) File "/usr/local/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.8/site-packages/pexpect/pty_spawn.py", line 25, in _wrap_ptyprocess_err raise ExceptionPexpect(*e.args) pexpect.exceptions.ExceptionPexpect: Could not terminate the child.
Likely related to #35