Open russelg opened 2 months ago
This also occurred on my local instance for the same stream in the same way
2024-04-30T07:14:06.419106024Z {"level":"debug","service":"worker","ActivityID":"11","ActivityType":"KillTwitchLiveChatDownload","Attempt":1,"Namespace":"default","RunID":"be448df0-da3c-47dc-ac06-c33270453534","TaskQueue":"archive","WorkerID":"ce899fafbab7","WorkflowID":"10ac4c44-0e4d-4940-b68e-6d1600642738_5","WorkflowType":"DownloadTwitchLiveVideoWorkflow","time":"2024-04-30T15:14:06+08:00","message":"ExecuteActivity"}
2024-04-30T07:14:06.424880332Z {"level":"info","time":"2024-04-30T15:14:06+08:00","message":"killing chat downloader for channel ezorisu_"}
2024-04-30T07:14:06.430760643Z {"level":"debug","time":"2024-04-30T15:14:06+08:00","message":"found pid 56\n for chat_downloader"}
2024-04-30T07:14:06.432027106Z {"level":"info","time":"2024-04-30T15:14:06+08:00","message":"killed chat downloader for channel ezorisu_"}
2024-04-30T07:14:06.433507998Z error in chat_downloader for live chat download: signal: terminated
2024-04-30T07:14:06.433519417Z {"level":"debug","time":"2024-04-30T15:14:06+08:00","message":"finished downloading live chat for 41261224199"}
2024-04-30T07:14:06.433539198Z {"level":"debug","time":"2024-04-30T15:14:06+08:00","message":"moving file: /tmp/41261224199_8b66cebc-06b9-11ef-8a26-0242ac120007-live-chat.json to /vods/ezorisu_/2024-04-30-41261224199-live-8b66cebc-06b9-11ef-8a26-0242ac120007/41261224199-live-chat.json"}
2024-04-30T07:14:06.435384487Z {"level":"debug","time":"2024-04-30T15:14:06+08:00","message":"stopping heartbeat download-livechat-41261224199"}
2024-04-30T07:14:06.435508271Z {"level":"error","service":"worker","ActivityType":"DownloadTwitchLiveChat","Attempt":1,"Error":"error opening file: open /tmp/41261224199_8b66cebc-06b9-11ef-8a26-0242ac120007-live-chat.json: no such file or directory","Namespace":"default","RunID":"2ca3a5d1-55eb-4262-bd5e-66cd322f2e9c","TaskQueue":"archive","WorkerID":"ce899fafbab7","WorkflowID":"f36d8c17-5591-4857-88cc-1ab0477c61da_39","time":"2024-04-30T15:14:06+08:00","message":"Activity error."}
2024-04-30T07:14:06.443616844Z {"level":"debug","time":"2024-04-30T15:14:06+08:00","message":"checking if tasks are done for video 41261224199"}
Looks like it failed moving, the debug message before it, is just saying that it is about to move, but errors right after as the file is not found. If you exec into the API container, does /tmp/41261224199_752758d6-06b9-11ef-be89-0242ac120009-live-chat.json
(or the other file in your local instance) exist? Is this channel's chat very active?
Is this channel's chat very active?
I didn't tune in on twitch itself so can't say, this is the first time I've seen a stream of theirs. There was no live-chat.json in the tmp folder for either instance. Certainly possible there were no chat messages.
Is there a VOD you can check if there were any chat messages? The chat-downloader tool doesn't create the json file unless there is a message so it likely could be this. I'll update the task to check if the file exists before attempting to move, and set the vod to have no chat.
There isn't a VOD for this specific stream, but they do have other older VODs which do have chat. I think it's safe to assume in this case there weren't any chat messages. Hard to say since chat-downloader doesn't log anything.
The logs say it did kill the process ID of the chat-downloader, so it didn't error out. Very likely just no messages. You can confirm nothing weird is going on with the channel by running docker exec -it ganymede-api chat_downloader https://twitch.tv/<CHANNEL>
and sending a message in the channel's chat. You should see the message in the terminal.
The logs say it did kill the process ID of the chat-downloader, so it didn't error out. Very likely just no messages. You can confirm nothing weird is going on with the channel by running
docker exec -it ganymede-api chat_downloader https://twitch.tv/<CHANNEL>
and sending a message in the channel's chat. You should see the message in the terminal.
Tested, seems to work fine with the channel in question, so yep just very likely there were no messages.
First time I've seen this one happen.
Most relevant lines:
State it ends up in:![image](https://github.com/Zibbp/ganymede/assets/1552840/103cba71-c47a-40ef-bcfa-c8e3e9b8cb95)
The
error opening file: open /tmp/41261224199_752758d6-06b9-11ef-be89-0242ac120009-live-chat.json: no such file or directory
is quite suspicious here, not sure why it would be trying to open that tmp file again, right after it has moved it to the vods directory.Full log for this VOD: