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

[BUG] Randomly stops broadcasting to discord without any errors in logs. !BOG WITCH UPDATE! #308

Open
Raakalainen opened this issue Oct 29, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Raakalainen
Copy link

Describe the issue
Shout chat & other messages stop getting sent to discord channel, rebooting server fixes it for a while again.

Expected behavior
Expecting it to work as it normally does, sending shout chat from ingame to discord :)

Configuration
config-dump.json

Server Environment
Hosted on Survival Servers, steamworks only, crossplay disabled.

Installed Mods
[Info : BepInEx] Loading [DiscordControl 1.0.2]
[Info : BepInEx] Loading [ServerControl 1.0.2]
[Info : BepInEx] Loading [Cron Job 1.10]
[Info : BepInEx] Loading [Better Networking 2.3.2]
[Info : BepInEx] Loading [Expand World Data 1.47]
[Info : BepInEx] Loading [Expand World Prefabs 1.23]
[Info : BepInEx] Loading [Valheim Discord Connector 2.3.1]
[Info : BepInEx] Loading [Smooth Save 1.0.5]
[Info : BepInEx] Loading [Display BepInEx Info In-Game 2.0.2]
[Info : BepInEx] Loading [Server Devcommands 1.84]
[Info : BepInEx] Loading [Upgrade World 1.61]
[Info : BepInEx] Loading [World Edit Commands 1.64]

Additional context
Seems to be working for a couple hours and then stops, haven't noticed anything I could try repeating to force it to stop working.

@Raakalainen Raakalainen changed the title [BUG] Randomly stops broadcasting to discord without any errors in logs. [BUG] Randomly stops broadcasting to discord without any errors in logs. !BOG WITCH UPDATE! Oct 29, 2024
@Raakalainen
Copy link
Author

image

Screenshot from my Experiments Server that doesnt have any clients playing on it, just me testing, can see that it keeps sending messages about worldsaves for about 1.5 hours after launching server and after that it goes silent.

@nwesterhausen nwesterhausen added the bug Something isn't working label Oct 30, 2024
@nwesterhausen
Copy link
Owner

I was noticing that sometimes it will determine there is no need to autosave, which would of course not log anything.

Can you try with the build artifact here: https://github.com/nwesterhausen/valheim-discordconnector/actions/runs/11600478457

I have changed it to build against the 0.219.14 version of Valheim. Also if you can set "Debug HTTP Response Messages" to true in the toggles configuration for discord connector, that can help us see if there is an issue occurring with the messages to discord or not. There is a file "vdc.log" which will show up in the config directory with just logs from this plugin that may be helpful for us to figure this out.

@Raakalainen
Copy link
Author

Hmm, worked when I put the new dll in and launched servers, initialized discordcontrol for 2 way chat too and shouts from ingame and rcon showed on webhook messages...

then I read this again with my sleep deprivation brain and went to turn the Debug Message for HTTP Request Responses = true, after that its been silent after rebooting.

I tried changing it back to false on the 2nd server to see if it starts sending messages again, neither of them seem to send anything anymore.

Gonna try removing configs and generating new ones from scratch and back to more testing, will report what happens later.

@Raakalainen
Copy link
Author

Seems to stop suddenly still, no errors in serverlogs. Removed SmoothSave for experiments just in case if that could cause some issues as it's last updated a year ago, and that doesn't seem to affect anything either.

vdc - survivalheim.log
vdc - experiments.log

@Raakalainen
Copy link
Author

Caught it finally, for some reason the errors didnt get logged untill I removed some mods.

Seemed to have been caused by sending rcon shouts through Discord Control and showing that message by Discord Connector caused something to happen.

I took out the Discord Control mod by cookie, rebooted server and confirmed shout chat getting broadcast by Connector, put the same dll back in for Discord Control that I took out previously, and now both mods seem to be working without any issues, even after trying to cause errors to happen by using multiple Discord Control Rcon shout messages.

So some sort of a freak issue caused by another mod that I am unable to replicate now, sry if it wasted too much time for you 😓

I also already informed CookieMilk with the error, I'll drop it here as well, it was spammed continuously for so long that the whole log is 150 megs, so here's one snip of whats spamming constantly, in case its useful for sleuthing what caused this freak error in the first place :)
error after sending rcon shout.txt

Also including current log that shows that everything seems to be working now atleast on experiments for testing:
serverLog.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants