knadh / tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.
MIT License
829 stars 121 forks source link

Not writing to db #131

Open isaacrlevin opened 4 months ago

isaacrlevin commented 4 months ago

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.....

saurabhrane1199 commented 2 weeks ago

Do you see any specific error while running the command ?

Adam-Reimer commented 1 week ago

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?