Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackgroundService failed #53

Closed
sllllr opened this issue Feb 15, 2025 · 16 comments
Closed

BackgroundService failed #53

sllllr opened this issue Feb 15, 2025 · 16 comments

Comments

@sllllr
Copy link

sllllr commented Feb 15, 2025

After upgrading to 3.0.2.... lately every upgrade something stops working that worked before. Config unchanged.

E: BackgroundService failed
C: The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.

Now nothing goes on Discord anymore. First the Youtube feeds stopped working now the usual RSS links from outside the Youtube section.

My example config:

{"Instances":
[{"Id": "Newsy",
"RssUrls": [
"https://tvn24.pl/najnowsze.xml"
],
"YoutubeUrls": [ "" ],
"DiscordWebhookUrl": "https://discord.com/api/webhook...",
"RssCheckIntervalMinutes": 2,
"EnableAutoRemove": false,
"DescriptionLimit": 50,
"Color": 9323693,
"FallbackImage": "xxx",
"Forum": false,
"MarkdownFormat": true,
"PersistenceOnShutdown": true
}
],
}

@Qolors
Copy link
Owner

Qolors commented Feb 15, 2025

At what point is this happening in the run? On start, midway or randomly?

Do you have logs following before the crash?

@sllllr
Copy link
Author

sllllr commented Feb 16, 2025

I did a little test. I left in the appsettings.json file everything except the section with YT links. Everything works OK. When I test-run appsettings.json in which there is only one setting for YT it gives the same error as before. I have a feeling that it is about the number of links to check. I have 157 YT subscription links to check.

Where can I find or how do I set the LOG file to be in the same directory as docker? Right now I can only see the LOG as a live preview (I use UNRAID OS on my NAS).

This is my YT list. Use it for test.

"https://www.youtube.com/feeds/videos.xml?channel_id=UCMIdeeBjp_60Jv7ROpRxK6Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCxYS_wIljaOTgFFDK2RK15w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC8zJedg1f4sKnyuHWeS6vyw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCt6rnavC8yDV1UTftLtuVOQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCB0JSO6d5ysH2Mmqz5I9rIw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCK9X9JACEsonjbqaewUtICA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCuTUGh1EP7w6i9M07Ab-afg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCvFGf8HZGZWFzpcDCqb3Lhw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCGnsRwFS8Xm13lMAeouzT9g",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCPriIe8fBIklk9v5CCPJ4XA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCyqHL-0P1THLl7OiU8axDjg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCYnNeZjU0r92oQjYyZH8Iuw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCbJHfnWtshjo6zJg9Y8XzBw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCsvgAhBm50a88Bw2v-275ng",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCQtacGFjDUdNB_caOZicJmA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCpRUSBcRWUQZIj3_jWF19Dg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC4EDkkHm7ncJV33hVPeXvGg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCJtL1AIJ8bjqabmpsq_q1kg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCdvlHk5SZWwr9HjUcwtu8ng",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC5FWImlh1axobNU541SIHHg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UColXC2RSYwtydHYml5zSTnQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCJhe07czqzg4UzpjvQWkmMQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCNCYBBI44YViXw7vBrqCZcg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCGn04aY5TIEssxlTd3yH9qg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCO8czxzBx4PxuTEolCBmq2w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCQQiBzUAV53wgCZMspwF4kA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCDPM_n1atn2ijUwHd0NNRQw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCMb4YB-hMfCjroeoPq0PJOw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCP-tFf_VMQzhyeKMONL1KvQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCQDsiRE--IQe5ycCLeetIxQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCAicVofRtNhbv2EnmQ2arzg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCveWMJeHgcIUPMnFzd7Vxjg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCQcTmBevae2jDeFEZ6VEQPw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCkFqdqBT1Zy-6BQH_t5CgBw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCmHhviensDlGQeU8Yo80zdg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UChiwLDIBJrV5SxqdixMHmQA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCRFHKKNGdaIs9NaULSUuKGw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCAkDjp98HW5fVQsXxJ9kpjQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC0C-w0YjGpqDXGB8IHb662A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCfM3zsQsOnfWNUppiycmBuw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCJeH7gl6PbDVV4DTldIOPOA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCMZwELVwv-0vBMqydvdi9Bw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCQjw3b3Ay5zMmEHUAxL93Rw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC2-T9t3Xzw68EkFihEv5-NQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCi2KNss4Yx73NG0JARSFe0A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCE8ahxIvVScV2EJpwCbm_bQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCe9rl8k6yymUeVzzXfFGWwA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC7EviV3qErrEJtqIojGJjLQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCigGjs0ULkuZKQddRupKk0A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCqC_GY2ZiENFz2pwL0cSfAw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCcSGRAJmicLb1Kf3Wpi8taQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCTJzm9ZZSpAHrbiwLgaZMAw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCJhU9ANHdVvO9WuHcq1kpiA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCcCYOO2uYPnG-21WDOWdwew",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCq3EdTXnnlTTH83DByttrxQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC7hpPBCbFkPxZf1pET-surQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCFATLmdasfbXIPh9q_4fscQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCYEIC1WKHEJHR971HIySQMg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCRZvImLvRIE5BoZvmVHMTqw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCgS9WSzo2n79SVctgJrQP9Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC1Q5iU8ODtqQjKFZgz8JAPg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCP5R-AsfGO0qo6xkeGp5W4A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCPtkyQqGNQUMf5JCpxfPeoA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCXPUvHGOAneIytHGFKLwLTw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCN-sc1xJr-QQNj_uNIM9wTA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCJlMkkOVNbLY9QJPo24-plQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCNSMKIFd2YO5MU04l-KVZaA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC4RkUl120K4nct7dYrk19_A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCoIou1cLocI2tpcrE1h1smQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCjwhEPNX5rsU6gl_8qZMQZg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC6ly_u2ufiHGpYzC_28-8zw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCe5Dq2HfS7IbF67qPnAuA5w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCqJuMiGXqB8Hl41YsGV_sMA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCLr4hMhk_2KE0GUBSBrspGA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC-jwlLr26YGjkTle_EH5kiQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCCndqRyI-5Zl8Mutlq71ASw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCZU9T1ceaOgwfLRq7OKFU4Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCcUGXpH--EuzPEEVGCb1YIQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCMTkC2dA25yFsmtaevpYWfg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCimA-S9nxec1TFZxWofBAHw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCFbKxMUkYIHhVvo9Ag0EfVw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCi4yk3qsFjbqlXb3gr6ei9Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCbirjI1K3MGu0-Y1gTBNR5w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCTTZqMWBvLsUYqYwKTdjvkw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCvb_3WrGri7dqKP2j-EvcDA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCxI9R2o15s4vnGP_Arh575Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCfQ1gHZgfQ-s_TeaAAolZ8w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCbulh9WdLtEXiooRcYK7SWw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC6SrsSzzvLH2zJSJXP2dCmQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCRNxVLVRODbjrKMA1tQgMfA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC6NFFT5qOAvgO_NQomkRvSw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCWriey9lRv_yDmRc00hWxUw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCW22uKjws2CyMnlEfIdyvqw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCG_hveTf7rEquJ3OLQ410Bw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCpJN7kiUkDrH11p0GQhLyFw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCgQna2EqpzqzfBjlSmzT72w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCwAiG5lj7w24SbgPy6eiYvg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCz8FPpkJMwayyReSDLTX8IQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCFGud6qsbaAjuP6WaXAJj3Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCGf7LjrKe3EZqkPpmNTLdyg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC4a5d57ZAWl999-YXw0C1Vg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCFMZHIQMgBXTSxsr86Caazw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC0o9KdLGWAu_-DUzorebz_A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCxYpkdEK78AFDwzwDfTMbvw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC3B67QDqkDsS6H4SGpoYEIg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCXAa2L-AFO4_iDTPsOvI1gw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCvOO7lRB0o0K2o_diujoyjA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCeekxg1vju_sjIK9KjJJLYg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UClQT6Vnsm6BUm0I5kR26EkQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC_dndpNLSSS9YuqlIsbh4oA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCizuLqxCCa5kED4eBpXZHyw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCCv9jWLnabjgctSCI5mlvvg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCpTO7UgWBeiuXtA5ksSkjYg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCTJnHNDKnHto7RpIA-1jJfg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCC9ZIpLRneyc3gyoCrEj1uw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCiMhD4jzUqG-IgPzUmmytRQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCIXAK3v6fgWHu0_jN8HmOUg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCm_W_hbwbzJE8w52jZ2NO0A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCj_k4wAklC_Ngd9kzvD5vow",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCYp3rk70ACGXQ4gFAiMr1SQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCEuOwB9vSL1oPKGNdONB4ig",
"https://www.youtube.com/feeds/videos.xml?channel_id=UChWc6ilKdVM1Cz--wGMW_Zg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCCT_JGIn9I9FS6OTzzqWEew",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC_3c7OVSqos7zLsa3Ulfq4w",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCi8e0iOVk1fEOogdfu4YgfA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCz1GPotHecuLngiLuY739QQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC74ch0wmDm_tsHFz4ra4lrg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC0lhr4dvpfKJ0C3TPFXu3ww",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCA48CJ7jsQc2hG2FG0735Mg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCv7Bgr5Mq-dPYu-Ol4AocEA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCE8NoMFnai3tTuwdiQJ-78A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCBlgkPJ3cQyixrwIw1-VyiA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC-OO324clObi3H-U0bP77dw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCEwWEDmQ_x5wdbi0I7jRqew",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCHKSayVT2Ks-gQBXmMLGTag",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC-867iftJqBGr0mQ83xqyKw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCocvwlndeB9hO7uOwWRrJHg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCygNV8cau_ZC22-Y7TlPpCw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCeB8d73jg7xk5Mb1YNrxsnQ",
"https://rssgenerator.mooo.com/feeds/?p=aaHR0cHM6Ly93d3cueW91dHViZS5jb20vQHN0cHR2",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC5zU9uDbWQh6YW8qY5JsTXw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC7-YMmnc0ppcWmio8t1WdcA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCZ6EN4XhZKPyfGx1vJimzUA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCBYJq71FFRcwfdCFKYWs5eA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCnRNy8j1mhhR-gl3HpWDV-Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCc4K7bAqpdBP8jh1j9XZAww",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC_Zz2GuMeAzm2Uj7vC8Gc0A",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCcFUPGt_tgcP5iMxiBDsXoA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCK7wTMguyPyPCjhLoOK2rJg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCJDON3eLf8709E9YfjAgLOw",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCVdlJ7dfp1KryZzIejSahBA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC8IAR2gn8UoYhr25ETiW_mg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCI-AynP1PLBTcQEs3rsvFnA",
"https://www.youtube.com/feeds/videos.xml?channel_id=UC7XgxJhy6N6KGMFzELHtlUQ",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCe9CD58cPQSbahnU_KoD00Q",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCMqLx2g4eAN3_gJ2qefQ0Xg",
"https://www.youtube.com/feeds/videos.xml?channel_id=UCHS7DnI10AkbB1pA4ego5Pg,

@Qolors
Copy link
Owner

Qolors commented Feb 16, 2025

Thanks for providing the list!

It could be something to do with rate limiting and spamming YouTube

Taking a look at feature request #52 - it sounds like it could be related.

I'm gonna dive in to this now that I have a clue as to what the issue may be.. I'll run it on my local and keep you posted

Lastly, what is your ConcurrentRequests field set to? Just curious..

@sllllr
Copy link
Author

sllllr commented Feb 16, 2025

"ConcurrentRequests" ?

@Qolors
Copy link
Owner

Qolors commented Feb 17, 2025

With 3.x you have a new optional field - take a look at this example :

{ "Instances": [ 
{ 
 "Id": "My First News Feed", "YoutubeUrls": [ "" ], "RssUrls": [ "" ], "Forum": false, "DiscordWebhookUrl": "...", "RssCheckIntervalMinutes": 25, "EnableAutoRemove": false, 
"Color": 8411391, 
"DescriptionLimit": 250, "MarkdownFormat": false, "PersistenceOnShutdown": true 
} 
], 
"ConcurrentRequests": 40 
}

If you set your value to a low value (say 10 or maybe 5) it will limit your amount of concurrent http requests being made at a time. It could slow down the amount of YouTube requests you're making at once and possibly help

@JPnux
Copy link

JPnux commented Feb 17, 2025

Hi, I'm experiencing issues with the latest version as well. It's completely broken for me !

Is it possible to pull a previous stable release ?

@sllllr
Copy link
Author

sllllr commented Feb 17, 2025

I: Successfully initialized Existing URL: https://www.youtube.com/feeds/videos.xml?channel_id=UCygNV8cau_ZC22-Y7TlPpCw
I: Status Code: 200 OK
I: Successfully initialized Existing URL: https://www.youtube.com/feeds/videos.xml?channel_id=UCeB8d73jg7xk5Mb1YNrxsnQ
E: BackgroundService failed
C: The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
Concurrent Requests set to: 10
Number of configurations loaded: 1
Validating & Registering Background Service YT
I: Creating new RssCheckerBackgroundService instance for YT
I: YT Created with check interval 5 minutes
I: YT Starting Background Processing at 02/17/2025 12:56:43..
I: YT: Initializing Url Checks..

Nothing change :/ after add "ConcurrentRequests": 10

You have my YT subscription list above so test on it :) In my case, unfortunately, this new variable does not give anything. It doesn't matter if I set 5 or 10.

There is no denying that version 2.1.1 was probably the best for the moment, and on it everything worked rather as expected. The combination with YT xml links also because I tested it on it before. Fact I didn't have so many subscription links then but.... :) But I don't think I'll be going back to it (I don't even know how).... I hope to pass the problem with YT links in more and will be released the next version already working as expected with this.

@Qolors you already have all the messages from me as to what does not work as expected and a list of links for testing.... Good luck :) for checking...

@JPnux
Copy link

JPnux commented Feb 17, 2025

I don"t understand why it doesn't work

I removed a lot of lines to simplify my config file

logs

FeedCord  | Concurrent Requests set to: 40
FeedCord  | Number of configurations loaded: 2
FeedCord  | Validating & Registering Background Service News BFMBourse
FeedCord  | Validating & Registering Background Service News EasyBourse
FeedCord  | I: Creating new RssCheckerBackgroundService instance for News BFMBourse
FeedCord  | I: News BFMBourse Created with check interval 10 minutes
FeedCord  | I: Creating new RssCheckerBackgroundService instance for News EasyBourse
FeedCord  | I: News EasyBourse Created with check interval 10 minutes
FeedCord  | I: News BFMBourse Starting Background Processing at 02/17/2025 17:08:48..
FeedCord  | I: News BFMBourse: Initializing Url Checks..
FeedCord  | I: News EasyBourse Starting Background Processing at 02/17/2025 17:08:48..
FeedCord  | I: News EasyBourse: Initializing Url Checks..
FeedCord  | I: News EasyBourse: Tested successfully for 0 out of 1 Urls in Configuration File
FeedCord  | I: News EasyBourse Finished Background Processing at 02/17/2025 17:08:58..
FeedCord  | I: News BFMBourse: Tested successfully for 0 out of 2 Urls in Configuration File
FeedCord  | I: News BFMBourse Finished Background Processing at 02/17/2025 17:09:08.

@JPnux
Copy link

JPnux commented Feb 17, 2025

Re,

I just tried with the nightly image and it is WORKING.

The problem came with the "latest" version. :-(

@Qolors
Copy link
Owner

Qolors commented Feb 17, 2025

Thanks for sharing the Urls @sllllr - helped me squash a few issues. A couple things:

Your feed url https://rssgenerator.mooo.com/feeds/?p=aaHR0cHM6Ly93d3cueW91dHViZS5jb20vQHN0cHR2 is in YoutubeUrls and either hangs until a 504 response or if it does it seems like a generated rss feed - try putting this in your normal RssUrls and monitoring that feed yourself to ensure it's properly generating

Your feed url https://www.youtube.com/feeds/videos.xml?channel_id=UCXAa2L-AFO4_iDTPsOvI1gw is indeed a Youtube channel but has no posts (only releases) - it's rss feed has no items:

<feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
  <link rel="self" href="http://www.youtube.com/feeds/videos.xml?channel_id=UCXAa2L-AFO4_iDTPsOvI1gw"/>
  <id>yt:channel:XAa2L-AFO4_iDTPsOvI1gw</id>
  <yt:channelId>XAa2L-AFO4_iDTPsOvI1gw</yt:channelId>
  <title>Paktofonika</title>
  <link rel="alternate" href="https://www.youtube.com/channel/UCXAa2L-AFO4_iDTPsOvI1gw"/>
  <author>
  <name>Paktofonika</name>
  <uri>https://www.youtube.com/channel/UCXAa2L-AFO4_iDTPsOvI1gw</uri>
  </author>
  <published>2011-10-06T15:53:52+00:00</published>
</feed>

FeedCord did two things - it would not handle the timeout request, and it would attempt to access properties from a null item..

I fixed these with v3.0.3. Logging is improved to help us better understand future issues. Next time it critically crashes it will dump it's stack trace for us.

if you and @JPnux could both:

docker pull qolors/feedcord:latest
docker stop <your_container>
docker rm <your_container>
docker run --name <your_container> -v "/path/to/your/appsettings.json:/app/config/appsettings.json" qolors/feedcord:latest

or docker compose:

docker-compose pull
docker-compose up -d --force-recreate

It should handle most issues and at the very least help us pinpoint better

@sllllr
Copy link
Author

sllllr commented Feb 17, 2025

I did as you specified (upgrade). I think it works OK, now have to wait for something new from YT channels. I ran a test ONLY with these 157 subscription links without any other RSS.

Where will the LOG file be created?

@Qolors
Copy link
Owner

Qolors commented Feb 17, 2025

maybe a misunderstanding - I was meaning it will dump the stack trace to your container's logs during a crash so it would have to be observed inside the container. So it will log more than just:

E: BackgroundService failed
C: The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.

dumping the logs locally will eventually be implemented as I build out the Batch Logger

I did as you specified (upgrade). I think it works OK, now have to wait for something new from YT channels. I ran a test ONLY with these 157 subscription links without any other RSS.

I would recommend using your full feed like you normally would. We can catch any issues with v3.0.3

@sllllr
Copy link
Author

sllllr commented Feb 18, 2025

I upgrade to new version and run for all rss feed and now is all OK :) no errors for all feed.

@JPnux
Copy link

JPnux commented Feb 18, 2025

Hello everyone,

Thank you @Qolors !
Your latest version works for all my RSS feeds.

No more issues with accents! It's working perfectly now.

I haven't tried YouTube links yet.
Do standard YouTube links work, or do we need to use XML?

Thank you for the great work! 🙏

@sllllr
Copy link
Author

sllllr commented Feb 18, 2025

I test normal and not work OK. XML all OK. I use for generate XML link from channel plugin for Chrome.

@Qolors
Copy link
Owner

Qolors commented Feb 18, 2025

Thanks for providing the info guys - awesome to hear!

@JPnux

Do standard YouTube links work, or do we need to use XML?

They both are supported, but standard YouTube links seem to vary per person.. I would use XML for more reliability

Going to close the issue for now, but let me know if any other issues or features

Thanks

@Qolors Qolors closed this as completed Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants