tg-archive icon indicating copy to clipboard operation
tg-archive copied to clipboard

Not writing to db

Open isaacrlevin opened this issue 1 year ago • 2 comments

Not sure if I am doing something wrong but I create a new site, add my API Key and Hash as well as channel. When I run tg-archive --sync it starts to download content, but I see no entries in the sqlite table at all.....

isaacrlevin avatar Apr 22 '24 20:04 isaacrlevin

Do you see any specific error while running the command ?

saurabhrane1199 avatar Aug 22 '24 16:08 saurabhrane1199

Not OP but same issue. But I've also just started.

2024-08-25 00:55:11,552: downloading media #68
2024-08-25 00:55:11,747: downloading media #69
2024-08-25 00:55:12,018: downloading media #70
2024-08-25 00:55:31,183: Disconnecting borrowed sender for DC 5
2024-08-25 00:55:31,183: Disconnecting from 91.108.56.105:443/TcpFull...
2024-08-25 00:55:31,184: Disconnection from 91.108.56.105:443/TcpFull complete!
2024-08-25 00:56:31,195: Disconnecting borrowed sender for DC 2
2024-08-25 00:56:31,195: Disconnecting from 149.154.167.50:443/TcpFull...
2024-08-25 00:56:31,196: Disconnection from 149.154.167.50:443/TcpFull complete!
2024-08-25 00:56:31,196: Disconnecting borrowed sender for DC 4
2024-08-25 00:56:31,196: Disconnecting from 149.154.167.91:443/TcpFull...
2024-08-25 00:56:31,240: Disconnection from 149.154.167.91:443/TcpFull complete!
2024-08-25 00:58:51,481: downloading media #72
2024-08-25 00:59:12,609: downloading media #73
2024-08-25 00:59:17,672: downloading media #74
2024-08-25 01:04:41,085: downloading media #75
2024-08-25 01:04:41,147: Connecting to 149.154.167.91:443/TcpFull...
2024-08-25 01:04:41,254: Connection to 149.154.167.91:443/TcpFull complete!
2024-08-25 01:04:41,680: downloading media #76
2024-08-25 01:04:45,803: downloading media #78
2024-08-25 01:04:45,984: downloading media #81
2024-08-25 01:04:56,908: downloading media #83
2024-08-25 01:06:31,383: Disconnecting borrowed sender for DC 4
2024-08-25 01:06:31,383: Disconnecting from 149.154.167.91:443/TcpFull...
2024-08-25 01:06:31,384: Disconnection from 149.154.167.91:443/TcpFull complete!

so far monitoring the data.sqlite and data.sqlite-journal they're still minimal size. 16384 bytes for data.sqlite, and 16928 bytes for data.sqlite-journal.

Without digging too much into the code, would I be correct in assuming that on first run, it'll download the files first, then start archiving the messages?

Adam-Reimer avatar Aug 25 '24 05:08 Adam-Reimer