alfem/telegram-download-daemon

Failed during copy to dest folder (I think)

Closed this issue · 3 comments

I'm trying to download a single file. The status message kept update, until about 95.9%, and then nothing happened. The file does not exist in the dest folder (can't see it in the list`status` commands).

Log:

Session loaded from /session/DownloadDaemon.session,
Session saved in /session/DownloadDaemon.session,
Telegram Download Daemon 1.3,
NewMessage.Event(original_update=UpdateNewChannelMessage(message=Message(id=1057, peer_id=PeerChannel(channel_id=1173148616), date=datetime.datetime(2021, 3, 6, 19, 3, 51, tzinfo=datetime.timezone.utc), message='', out=True, mentioned=False, media_unread=False, silent=False, post=True, from_scheduled=False, legacy=False, edit_hide=False, pinned=False, from_id=None, fwd_from=MessageFwdHeader(date=datetime.datetime(2021, 1, 3, 21, 43, 55, tzinfo=datetime.timezone.utc), from_id=PeerChannel(channel_id=1373916108), from_name=None, channel_post=99, post_author=None, saved_from_peer=None, saved_from_msg_id=None, psa_type=None), via_bot_id=None, reply_to=None, media=MessageMediaDocument(document=Document(id=6021780247639230837, access_hash=-5551498327692000896, file_reference=b'\x04E\xec\xd3\xc8\x00\x00\x04!`C\xd2\x16\xd5h3\t\xd4\x92\xcf8\x9bdj\xd6\xc2t\xaf\x19', date=datetime.datetime(2021, 1, 3, 21, 42, 47, tzinfo=datetime.timezone.utc), mime_type='video/mp4', size=1463402706, dc_id=4, attributes=[DocumentAttributeFilename(file_name='1080p נתי מדיה שטיסל ע3 פ3.mp4')], thumbs=[], video_thumbs=[]), ttl_seconds=None), reply_markup=None, entities=[], views=1, forwards=0, replies=None, edit_date=None, post_author=None, grouped_id=None, restriction_reason=[]), pts=1619, pts_count=1), pattern_match=None, message=Message(id=1057, peer_id=PeerChannel(channel_id=1173148616), date=datetime.datetime(2021, 3, 6, 19, 3, 51, tzinfo=datetime.timezone.utc), message='', out=True, mentioned=False, media_unread=False, silent=False, post=True, from_scheduled=False, legacy=False, edit_hide=False, pinned=False, from_id=None, fwd_from=MessageFwdHeader(date=datetime.datetime(2021, 1, 3, 21, 43, 55, tzinfo=datetime.timezone.utc), from_id=PeerChannel(channel_id=1373916108), from_name=None, channel_post=99, post_author=None, saved_from_peer=None, saved_from_msg_id=None, psa_type=None), via_bot_id=None, reply_to=None, media=MessageMediaDocument(document=Document(id=6021780247639230837, access_hash=-5551498327692000896, file_reference=b'\x04E\xec\xd3\xc8\x00\x00\x04!`C\xd2\x16\xd5h3\t\xd4\x92\xcf8\x9bdj\xd6\xc2t\xaf\x19', date=datetime.datetime(2021, 1, 3, 21, 42, 47, tzinfo=datetime.timezone.utc), mime_type='video/mp4', size=1463402706, dc_id=4, attributes=[DocumentAttributeFilename(file_name='1080p נתי מדיה שטיסל ע3 פ3.mp4')], thumbs=[], video_thumbs=[]), ttl_seconds=None), reply_markup=None, entities=[], views=1, forwards=0, replies=None, edit_date=None, post_author=None, grouped_id=None, restriction_reason=[])),
Downloading file 1080p נתי מדיה שטיסל ע3 פ3.mp4 (1463402706 bytes),
0.03 % (524288 / 1463402706),
0.07 % (1048576 / 1463402706),
0.1 % (1572864 / 1463402706),
0.14 % (2097152 / 1463402706),
0.17 % (2621440 / 1463402706),
0.21 % (3145728 / 1463402706),
0.25 % (3670016 / 1463402706),
0.28 % (4194304 / 1463402706),
0.32 % (4718592 / 1463402706),
0.35 % (5242880 / 1463402706),
0.39 % (5767168 / 1463402706),
0.42 % (6291456 / 1463402706),
0.46 % (6815744 / 1463402706),
0.5 % (7340032 / 1463402706),
0.53 % (7864320 / 1463402706),
0.57 % (8388608 / 1463402706),
0.6 % (8912896 / 1463402706),
0.64 % (9437184 / 1463402706),
0.68 % (9961472 / 1463402706),
0.71 % (10485760 / 1463402706),
0.75 % (11010048 / 1463402706),
0.78 % (11534336 / 1463402706),
0.82 % (12058624 / 1463402706),
0.85 % (12582912 / 1463402706),
0.89 % (13107200 / 1463402706),
0.93 % (13631488 / 1463402706),
0.96 % (14155776 / 1463402706),
5.01 % (73400320 / 1463402706),
5.05 % (73924608 / 1463402706),
5.08 % (74448896 / 1463402706),
5.12 % (74973184 / 1463402706),
5.15 % (75497472 / 1463402706),
5.19 % (76021760 / 1463402706),
5.23 % (76546048 / 1463402706),
5.26 % (77070336 / 1463402706),
5.3 % (77594624 / 1463402706),
5.33 % (78118912 / 1463402706),
5.37 % (78643200 / 1463402706),
5.4 % (79167488 / 1463402706),
5.44 % (79691776 / 1463402706),
5.48 % (80216064 / 1463402706),
5.51 % (80740352 / 1463402706),
5.55 % (81264640 / 1463402706),
5.58 % (81788928 / 1463402706),
5.62 % (82313216 / 1463402706),
5.66 % (82837504 / 1463402706),
5.69 % (83361792 / 1463402706),
5.73 % (83886080 / 1463402706),
5.76 % (84410368 / 1463402706),
5.8 % (84934656 / 1463402706),
5.83 % (85458944 / 1463402706),
5.87 % (85983232 / 1463402706),
5.91 % (86507520 / 1463402706),
5.94 % (87031808 / 1463402706),
5.98 % (87556096 / 1463402706),
10.03 % (146800640 / 1463402706),
10.06 % (147324928 / 1463402706),
10.1 % (147849216 / 1463402706),
10.13 % (148373504 / 1463402706),
10.17 % (148897792 / 1463402706),
10.21 % (149422080 / 1463402706),
10.24 % (149946368 / 1463402706),
10.28 % (150470656 / 1463402706),
10.31 % (150994944 / 1463402706),
10.35 % (151519232 / 1463402706),
10.38 % (152043520 / 1463402706),
10.42 % (152567808 / 1463402706),
10.46 % (153092096 / 1463402706),
10.49 % (153616384 / 1463402706),
10.53 % (154140672 / 1463402706),
10.56 % (154664960 / 1463402706),
10.6 % (155189248 / 1463402706),
10.64 % (155713536 / 1463402706),
10.67 % (156237824 / 1463402706),
10.71 % (156762112 / 1463402706),
10.74 % (157286400 / 1463402706),
10.78 % (157810688 / 1463402706),
10.81 % (158334976 / 1463402706),
10.85 % (158859264 / 1463402706),
10.89 % (159383552 / 1463402706),
10.92 % (159907840 / 1463402706),
10.96 % (160432128 / 1463402706),
10.99 % (160956416 / 1463402706),
15.01 % (219676672 / 1463402706),
15.04 % (220200960 / 1463402706),
15.08 % (220725248 / 1463402706),
15.11 % (221249536 / 1463402706),
15.15 % (221773824 / 1463402706),
15.19 % (222298112 / 1463402706),
15.22 % (222822400 / 1463402706),
15.26 % (223346688 / 1463402706),
15.29 % (223870976 / 1463402706),
15.33 % (224395264 / 1463402706),
15.36 % (224919552 / 1463402706),
15.4 % (225443840 / 1463402706),
15.44 % (225968128 / 1463402706),
15.47 % (226492416 / 1463402706),
15.51 % (227016704 / 1463402706),
15.54 % (227540992 / 1463402706),
15.58 % (228065280 / 1463402706),
15.62 % (228589568 / 1463402706),
15.65 % (229113856 / 1463402706),
15.69 % (229638144 / 1463402706),
15.72 % (230162432 / 1463402706),
15.76 % (230686720 / 1463402706),
15.79 % (231211008 / 1463402706),
15.83 % (231735296 / 1463402706),
15.87 % (232259584 / 1463402706),
15.9 % (232783872 / 1463402706),
15.94 % (233308160 / 1463402706),
15.97 % (233832448 / 1463402706),
20.02 % (293076992 / 1463402706),
20.06 % (293601280 / 1463402706),
20.09 % (294125568 / 1463402706),
20.13 % (294649856 / 1463402706),
20.17 % (295174144 / 1463402706),
20.2 % (295698432 / 1463402706),
20.24 % (296222720 / 1463402706),
20.27 % (296747008 / 1463402706),
20.31 % (297271296 / 1463402706),
20.34 % (297795584 / 1463402706),
20.38 % (298319872 / 1463402706),
20.42 % (298844160 / 1463402706),
20.45 % (299368448 / 1463402706),
20.49 % (299892736 / 1463402706),
20.52 % (300417024 / 1463402706),
20.56 % (300941312 / 1463402706),
20.6 % (301465600 / 1463402706),
20.63 % (301989888 / 1463402706),
20.67 % (302514176 / 1463402706),
20.7 % (303038464 / 1463402706),
20.74 % (303562752 / 1463402706),
20.77 % (304087040 / 1463402706),
20.81 % (304611328 / 1463402706),
20.85 % (305135616 / 1463402706),
20.88 % (305659904 / 1463402706),
20.92 % (306184192 / 1463402706),
20.95 % (306708480 / 1463402706),
20.99 % (307232768 / 1463402706),
25.0 % (365953024 / 1463402706),
25.04 % (366477312 / 1463402706),
25.07 % (367001600 / 1463402706),
25.11 % (367525888 / 1463402706),
25.15 % (368050176 / 1463402706),
25.18 % (368574464 / 1463402706),
25.22 % (369098752 / 1463402706),
25.25 % (369623040 / 1463402706),
25.29 % (370147328 / 1463402706),
25.32 % (370671616 / 1463402706),
25.36 % (371195904 / 1463402706),
25.4 % (371720192 / 1463402706),
25.43 % (372244480 / 1463402706),
25.47 % (372768768 / 1463402706),
25.5 % (373293056 / 1463402706),
25.54 % (373817344 / 1463402706),
25.58 % (374341632 / 1463402706),
25.61 % (374865920 / 1463402706),
25.65 % (375390208 / 1463402706),
25.68 % (375914496 / 1463402706),
25.72 % (376438784 / 1463402706),
25.75 % (376963072 / 1463402706),
25.79 % (377487360 / 1463402706),
25.83 % (378011648 / 1463402706),
25.86 % (378535936 / 1463402706),
25.9 % (379060224 / 1463402706),
25.93 % (379584512 / 1463402706),
25.97 % (380108800 / 1463402706),
30.02 % (439353344 / 1463402706),
30.05 % (439877632 / 1463402706),
30.09 % (440401920 / 1463402706),
30.13 % (440926208 / 1463402706),
30.16 % (441450496 / 1463402706),
30.2 % (441974784 / 1463402706),
30.23 % (442499072 / 1463402706),
30.27 % (443023360 / 1463402706),
30.3 % (443547648 / 1463402706),
30.34 % (444071936 / 1463402706),
30.38 % (444596224 / 1463402706),
30.41 % (445120512 / 1463402706),
30.45 % (445644800 / 1463402706),
30.48 % (446169088 / 1463402706),
30.52 % (446693376 / 1463402706),
30.56 % (447217664 / 1463402706),
30.59 % (447741952 / 1463402706),
30.63 % (448266240 / 1463402706),
30.66 % (448790528 / 1463402706),
30.7 % (449314816 / 1463402706),
30.73 % (449839104 / 1463402706),
30.77 % (450363392 / 1463402706),
30.81 % (450887680 / 1463402706),
30.84 % (451411968 / 1463402706),
30.88 % (451936256 / 1463402706),
30.91 % (452460544 / 1463402706),
30.95 % (452984832 / 1463402706),
30.99 % (453509120 / 1463402706),
35.0 % (512229376 / 1463402706),
35.03 % (512753664 / 1463402706),
35.07 % (513277952 / 1463402706),
35.11 % (513802240 / 1463402706),
35.14 % (514326528 / 1463402706),
35.18 % (514850816 / 1463402706),
35.21 % (515375104 / 1463402706),
35.25 % (515899392 / 1463402706),
35.28 % (516423680 / 1463402706),
35.32 % (516947968 / 1463402706),
35.36 % (517472256 / 1463402706),
35.39 % (517996544 / 1463402706),
35.43 % (518520832 / 1463402706),
35.46 % (519045120 / 1463402706),
35.5 % (519569408 / 1463402706),
35.54 % (520093696 / 1463402706),
35.57 % (520617984 / 1463402706),
35.61 % (521142272 / 1463402706),
35.64 % (521666560 / 1463402706),
35.68 % (522190848 / 1463402706),
35.71 % (522715136 / 1463402706),
35.75 % (523239424 / 1463402706),
35.79 % (523763712 / 1463402706),
35.82 % (524288000 / 1463402706),
35.86 % (524812288 / 1463402706),
35.89 % (525336576 / 1463402706),
35.93 % (525860864 / 1463402706),
35.96 % (526385152 / 1463402706),
40.01 % (585629696 / 1463402706),
40.05 % (586153984 / 1463402706),
40.09 % (586678272 / 1463402706),
40.12 % (587202560 / 1463402706),
40.16 % (587726848 / 1463402706),
40.19 % (588251136 / 1463402706),
40.23 % (588775424 / 1463402706),
40.26 % (589299712 / 1463402706),
40.3 % (589824000 / 1463402706),
40.34 % (590348288 / 1463402706),
40.37 % (590872576 / 1463402706),
40.41 % (591396864 / 1463402706),
40.44 % (591921152 / 1463402706),
40.48 % (592445440 / 1463402706),
40.51 % (592969728 / 1463402706),
40.55 % (593494016 / 1463402706),
40.59 % (594018304 / 1463402706),
40.62 % (594542592 / 1463402706),
40.66 % (595066880 / 1463402706),
40.69 % (595591168 / 1463402706),
40.73 % (596115456 / 1463402706),
40.77 % (596639744 / 1463402706),
40.8 % (597164032 / 1463402706),
40.84 % (597688320 / 1463402706),
40.87 % (598212608 / 1463402706),
40.91 % (598736896 / 1463402706),
40.94 % (599261184 / 1463402706),
40.98 % (599785472 / 1463402706),
45.03 % (659030016 / 1463402706),
45.06 % (659554304 / 1463402706),
45.1 % (660078592 / 1463402706),
45.14 % (660602880 / 1463402706),
45.17 % (661127168 / 1463402706),
45.21 % (661651456 / 1463402706),
45.24 % (662175744 / 1463402706),
45.28 % (662700032 / 1463402706),
45.32 % (663224320 / 1463402706),
45.35 % (663748608 / 1463402706),
45.39 % (664272896 / 1463402706),
45.42 % (664797184 / 1463402706),
45.46 % (665321472 / 1463402706),
45.49 % (665845760 / 1463402706),
45.53 % (666370048 / 1463402706),
45.57 % (666894336 / 1463402706),
45.6 % (667418624 / 1463402706),
45.64 % (667942912 / 1463402706),
45.67 % (668467200 / 1463402706),
45.71 % (668991488 / 1463402706),
45.75 % (669515776 / 1463402706),
45.78 % (670040064 / 1463402706),
45.82 % (670564352 / 1463402706),
45.85 % (671088640 / 1463402706),
45.89 % (671612928 / 1463402706),
45.92 % (672137216 / 1463402706),
45.96 % (672661504 / 1463402706),
50.01 % (731906048 / 1463402706),
50.04 % (732430336 / 1463402706),
50.08 % (732954624 / 1463402706),
50.12 % (733478912 / 1463402706),
50.15 % (734003200 / 1463402706),
50.19 % (734527488 / 1463402706),
50.22 % (735051776 / 1463402706),
50.26 % (735576064 / 1463402706),
50.3 % (736100352 / 1463402706),
50.33 % (736624640 / 1463402706),
50.37 % (737148928 / 1463402706),
50.4 % (737673216 / 1463402706),
50.44 % (738197504 / 1463402706),
50.47 % (738721792 / 1463402706),
50.51 % (739246080 / 1463402706),
50.55 % (739770368 / 1463402706),
50.58 % (740294656 / 1463402706),
50.62 % (740818944 / 1463402706),
50.65 % (741343232 / 1463402706),
50.69 % (741867520 / 1463402706),
50.73 % (742391808 / 1463402706),
50.76 % (742916096 / 1463402706),
50.8 % (743440384 / 1463402706),
50.83 % (743964672 / 1463402706),
50.87 % (744488960 / 1463402706),
50.9 % (745013248 / 1463402706),
50.94 % (745537536 / 1463402706),
50.98 % (746061824 / 1463402706),
55.02 % (805306368 / 1463402706),
55.06 % (805830656 / 1463402706),
55.1 % (806354944 / 1463402706),
55.13 % (806879232 / 1463402706),
55.17 % (807403520 / 1463402706),
55.2 % (807927808 / 1463402706),
55.24 % (808452096 / 1463402706),
55.28 % (808976384 / 1463402706),
55.31 % (809500672 / 1463402706),
55.35 % (810024960 / 1463402706),
55.38 % (810549248 / 1463402706),
55.42 % (811073536 / 1463402706),
55.45 % (811597824 / 1463402706),
55.49 % (812122112 / 1463402706),
55.53 % (812646400 / 1463402706),
55.56 % (813170688 / 1463402706),
55.6 % (813694976 / 1463402706),
55.63 % (814219264 / 1463402706),
55.67 % (814743552 / 1463402706),
55.71 % (815267840 / 1463402706),
55.74 % (815792128 / 1463402706),
55.78 % (816316416 / 1463402706),
55.81 % (816840704 / 1463402706),
55.85 % (817364992 / 1463402706),
55.88 % (817889280 / 1463402706),
55.92 % (818413568 / 1463402706),
55.96 % (818937856 / 1463402706),
55.99 % (819462144 / 1463402706),
60.0 % (878182400 / 1463402706),
60.04 % (878706688 / 1463402706),
60.08 % (879230976 / 1463402706),
60.11 % (879755264 / 1463402706),
60.15 % (880279552 / 1463402706),
60.18 % (880803840 / 1463402706),
60.22 % (881328128 / 1463402706),
60.26 % (881852416 / 1463402706),
60.29 % (882376704 / 1463402706),
60.33 % (882900992 / 1463402706),
60.36 % (883425280 / 1463402706),
60.4 % (883949568 / 1463402706),
60.43 % (884473856 / 1463402706),
60.47 % (884998144 / 1463402706),
60.51 % (885522432 / 1463402706),
60.54 % (886046720 / 1463402706),
60.58 % (886571008 / 1463402706),
60.61 % (887095296 / 1463402706),
60.65 % (887619584 / 1463402706),
60.69 % (888143872 / 1463402706),
60.72 % (888668160 / 1463402706),
60.76 % (889192448 / 1463402706),
60.79 % (889716736 / 1463402706),
60.83 % (890241024 / 1463402706),
60.86 % (890765312 / 1463402706),
60.9 % (891289600 / 1463402706),
60.94 % (891813888 / 1463402706),
60.97 % (892338176 / 1463402706),
65.02 % (951582720 / 1463402706),
65.06 % (952107008 / 1463402706),
65.09 % (952631296 / 1463402706),
65.13 % (953155584 / 1463402706),
65.16 % (953679872 / 1463402706),
65.2 % (954204160 / 1463402706),
65.24 % (954728448 / 1463402706),
65.27 % (955252736 / 1463402706),
65.31 % (955777024 / 1463402706),
65.34 % (956301312 / 1463402706),
65.38 % (956825600 / 1463402706),
65.41 % (957349888 / 1463402706),
65.45 % (957874176 / 1463402706),
65.49 % (958398464 / 1463402706),
65.52 % (958922752 / 1463402706),
65.56 % (959447040 / 1463402706),
65.59 % (959971328 / 1463402706),
65.63 % (960495616 / 1463402706),
65.67 % (961019904 / 1463402706),
65.7 % (961544192 / 1463402706),
65.74 % (962068480 / 1463402706),
65.77 % (962592768 / 1463402706),
65.81 % (963117056 / 1463402706),
65.84 % (963641344 / 1463402706),
65.88 % (964165632 / 1463402706),
65.92 % (964689920 / 1463402706),
65.95 % (965214208 / 1463402706),
65.99 % (965738496 / 1463402706),
70.0 % (1024458752 / 1463402706),
70.04 % (1024983040 / 1463402706),
70.07 % (1025507328 / 1463402706),
70.11 % (1026031616 / 1463402706),
70.14 % (1026555904 / 1463402706),
70.18 % (1027080192 / 1463402706),
70.22 % (1027604480 / 1463402706),
70.25 % (1028128768 / 1463402706),
70.29 % (1028653056 / 1463402706),
70.32 % (1029177344 / 1463402706),
70.36 % (1029701632 / 1463402706),
70.39 % (1030225920 / 1463402706),
70.43 % (1030750208 / 1463402706),
70.47 % (1031274496 / 1463402706),
70.5 % (1031798784 / 1463402706),
70.54 % (1032323072 / 1463402706),
70.57 % (1032847360 / 1463402706),
70.61 % (1033371648 / 1463402706),
70.65 % (1033895936 / 1463402706),
70.68 % (1034420224 / 1463402706),
70.72 % (1034944512 / 1463402706),
70.75 % (1035468800 / 1463402706),
70.79 % (1035993088 / 1463402706),
70.82 % (1036517376 / 1463402706),
70.86 % (1037041664 / 1463402706),
70.9 % (1037565952 / 1463402706),
70.93 % (1038090240 / 1463402706),
//./telegram-download-daemon.py:193: RuntimeWarning: coroutine 'set_progress' was never awaited,
  set_progress(filename, message, 100, 100),
RuntimeWarning: Enable tracemalloc to get the object allocation traceback,

Sorry for the Hebrew filename :-)

alfem commented

Are you using the latest version? Progress should be updated every 5%, not as often as your log shows.

I'm using the latest version from DockerHub. And it possibly bug, because you can see it prints every 5%- but the whole percent.

You see? a lot of 0.x%, then a lot of 5.x% etc'.

(Also it prints them in bulks. In the chat, I can see 50% for example, but in the log, it still on 20%, and after some time it prints all at once in the log.)

This is my docker-compose.yml:

telegram-download-daemon:
  container_name: telegram-download-daemon
  image: alfem/telegram-download-daemon
  environment:
    TELEGRAM_DAEMON_API_ID: ${TELEGRAM_DAEMON_API_ID}
    TELEGRAM_DAEMON_API_HASH: ${TELEGRAM_DAEMON_API_HASH}
    TELEGRAM_DAEMON_CHANNEL: ${TELEGRAM_TV_CHANNEL_ID}
    TELEGRAM_DAEMON_DEST: "/downloads"
    TELEGRAM_DAEMON_TEMP: "/telegram-temp"
    TELEGRAM_DAEMON_SESSION_PATH: "/session"
  volumes:
    - tv-shows:/downloads
    - sessions:/session
  restart: unless-stopped

Also I see this error now, I'm not sure where it comes from, I will try to reproduce it:

95.57 % (186384384 / 195011920)
95.71 % (186646528 / 195011920)
95.84 % (186908672 / 195011920)
95.97 % (187170816 / 195011920)
Queue worker error:  [Errno 18] Invalid cross-device link: '/telegram-temp/myfile.mp4.tdd' -> '/downloads/myfile.mp4'

I think the problem is related to the Docker volumes, see this Q&A: https://stackoverflow.com/questions/42392600/oserror-errno-18-invalid-cross-device-link