Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

No "Start Successful" Discord notification on auto-update #255

Closed
pwlgrzs opened this issue Mar 5, 2021 · 6 comments
Closed

No "Start Successful" Discord notification on auto-update #255

pwlgrzs opened this issue Mar 5, 2021 · 6 comments

Comments

@pwlgrzs
Copy link

pwlgrzs commented Mar 5, 2021

Server stops at 5AM for auto-update following these variables:
-e AUTO_UPDATE=1
-e AUTO_UPDATE_SCHEDULE="0 5 * * *"

Our Discord gets 2 notifications:

image

but we do not receive Start Successful message.

@CosmicHorrorDev
Copy link
Collaborator

Can you post a (censored) docker compose file (or equivalent), along with a server log and when you last pulled the image. This has been a bug that seems to have hit a few people, but I still haven't been able to reproduce.

Don't list the full webhook url you pass in, but knowing if it's discord or discordapp would be nice too.

@pwlgrzs
Copy link
Author

pwlgrzs commented Mar 5, 2021

`#!/bin/bash

docker stop valheim
docker rm valheim
docker pull mbround18/valheim:latest

docker run -d
--name valheim
-p 2456:2456/udp
-p 2457:2457/udp
-p 2458:2458/udp
-v /local/valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
-v /local/valheim/server:/home/steam/valheim
-v /local/valheim/backup:/home/steam/backups
-e PUBLIC=1
-e PORT=2456
-e NAME=
-e PASSWORD=""
-e TZ=Europe/Warsaw
-e WORLD=World
-e AUTO_UPDATE=1
-e AUTO_UPDATE_SCHEDULE="0 5 * * "
-e UPDATE_ON_STARTUP=1
-e AUTO_BACKUP=1
-e AUTO_BACKUP_SCHEDULE="
/15 * * * *"
-e AUTO_BACKUP_REMOVE_OLD=1
-e AUTO_BACKUP_DAYS_TO_LIVE=3
-e AUTO_BACKUP_ON_UPDATE=1
-e AUTO_BACKUP_ON_SHUTDOWN=1
-e WEBHOOK_URL=https://discord.com/api/webhooks/
-e WEBHOOK_BROADCAST_MESSAGE="HEHE VALHEIM"
--restart=always
mbround18/valheim`

Image pulled: 2021-03-02 10:03:56
Log:
valheim_server.log

@pwlgrzs
Copy link
Author

pwlgrzs commented Mar 5, 2021

Also, message for auto-update says: "Notification From: Your Valheim Server" while if I do odin stop it will say "Notification From: ACTUAL SERVER NAME".

@CosmicHorrorDev
Copy link
Collaborator

Does stopping and starting the container send out the messages correctly. I would pull the latest image, I think there was some work towards fixing this issue earlier today.

Also, message for auto-update says: "Notification From: Your Valheim Server" while if I do odin stop it will say "Notification From: ACTUAL SERVER NAME".

This is a known issue. I'll go ahead and push out a fix for this.

@pwlgrzs
Copy link
Author

pwlgrzs commented Mar 5, 2021

I just pulled newest image but obviously we gotta wait till 5AM to see.

@CosmicHorrorDev
Copy link
Collaborator

No worries, gives me time to stall :D

In the meantime I went ahead and opened a pull request to fix the name not getting read for auto updates (#256)

image

Repository owner locked and limited conversation to collaborators Mar 5, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants