Open petegilb opened 1 month ago
Does this seem like a timeout (does it take a few seconds for this error to appear)?
@codetheweb yes, it seems like the container runs the DB migrations, hangs for a few seconds, and then prints the above error.
Running docker exec -ti muse npm update
seems to resolve the issue, so it looks like it could be an outdated node package
Confirmed that doing an npm update on the container fixed it
This looks like it's been resolved with the release of v2.9.3
Edit to reduce spam: Looks like it's happening again
$ docker logs -f muse
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================
Running version 2.9.3 built on 8/19/2024 (commit 1e17b94321744ffbe4a6176a900286a834c952d1)
🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
✔ Database migrations applied.
⠇ 📡 connecting to Discord.../usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:10
self.onError(new RequestAbortedError())
^
RequestAbortedError [AbortError]: Request aborted
at abort (/usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:10:18)
at self.<computed> (/usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20)
at EventTarget.dispatchEvent (node:internal/event_target:721:26)
at abortSignal (node:internal/abort_controller:369:10)
at AbortController.abort (node:internal/abort_controller:403:5)
at Timeout.<anonymous> (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:68:46)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
code: 'UND_ERR_ABORTED'
}
Edit again to prevent spam: Looks like it's fixed again in v2.9.4
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================
Running version 2.9.4 built on 8/28/2024 (commit 534d8fafaa7f09f7ba940d044b08e6c48f800c7a)
🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
✔ Database migrations applied.
✔ Ready! Invite the bot with https://discordapp.com/oauth2/authorize?client_id=redacted&scope=bot%20applications.commands&permissions=36700160
This looks like it's been resolved with the release of v2.9.3
Edit to reduce spam: Looks like it's happening again
$ docker logs -f muse ======================================== ======================================== ================= muse ================= ======================================== =========== Made with 🎶 by ============ ==== https://github.com/codetheweb ===== ======================================== ======================================== Running version 2.9.3 built on 8/19/2024 (commit 1e17b94321744ffbe4a6176a900286a834c952d1) 🔧 Need help? https://github.com/codetheweb/muse/discussions/new 🐛 Bug? https://github.com/codetheweb/muse/issues/new ✨ New feature? https://github.com/codetheweb/muse/issues/new ☕ Discussion? https://github.com/codetheweb/muse/discussions/new 💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb ✔ Database migrations applied. ⠇ 📡 connecting to Discord.../usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:10 self.onError(new RequestAbortedError()) ^ RequestAbortedError [AbortError]: Request aborted at abort (/usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:10:18) at self.<computed> (/usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:29:5) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at EventTarget.dispatchEvent (node:internal/event_target:721:26) at abortSignal (node:internal/abort_controller:369:10) at AbortController.abort (node:internal/abort_controller:403:5) at Timeout.<anonymous> (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:68:46) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) { code: 'UND_ERR_ABORTED' }
Edit again to prevent spam: Looks like it's fixed again in v2.9.4
======================================== ======================================== ================= muse ================= ======================================== =========== Made with 🎶 by ============ ==== https://github.com/codetheweb ===== ======================================== ======================================== Running version 2.9.4 built on 8/28/2024 (commit 534d8fafaa7f09f7ba940d044b08e6c48f800c7a) 🔧 Need help? https://github.com/codetheweb/muse/discussions/new 🐛 Bug? https://github.com/codetheweb/muse/issues/new ✨ New feature? https://github.com/codetheweb/muse/issues/new ☕ Discussion? https://github.com/codetheweb/muse/discussions/new 💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb ✔ Database migrations applied. ✔ Ready! Invite the bot with https://discordapp.com/oauth2/authorize?client_id=redacted&scope=bot%20applications.commands&permissions=36700160
A fresh build could be fixing your issue.
If it happens again and you are using docker compose, delete the volume folder ./muse
(the one containing the cache and db.sqlite).
If this fixes the issue, we can investigate further into the db or cache files.
@Hazzajenko, thank you for that, it happened again, I've deleted the cache (but kept the db.sqlite
) and restarted muse.
It happened again.
So I moved the db.sqlite
to db.sqlite.bak
and restarted muse again.
It happened again.
So I mv ./muse ./muse.bak && mkdir ./muse
and restarted muse again.
It happened again.
This is my docker run command:
docker run -itd --restart=always --name=muse \
-v /data/muse:/data \
-e DISCORD_CLIENT_ID='redacted' \
-e DISCORD_CLIENT_SECRET='redacted' \
-e DISCORD_TOKEN='redacted' \
-e SPOTIFY_CLIENT_ID='redacted' \
-e SPOTIFY_CLIENT_SECRET='redacted' \
-e YOUTUBE_API_KEY='redacted' \
-e BOT_STATUS=online \
-e BOT_ACTIVITY_TYPE=STREAMING \
-e BOT_ACTIVITY_URL=https://www.twitch.tv/marinemammalrescue \
-e BOT_ACTIVITY=MarineMammalRescue \
ghcr.io/museofficial/muse
$ docker logs muse
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================
Running version 2.9.4 built on 8/28/2024 (commit 534d8fafaa7f09f7ba940d044b08e6c48f800c7a)
🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
✔ Database migrations applied.
⠇ 📡 connecting to Discord.../usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:10
self.onError(new RequestAbortedError())
^
RequestAbortedError [AbortError]: Request aborted
at abort (/usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:10:18)
at self.<computed> (/usr/app/node_modules/discord.js/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20)
at EventTarget.dispatchEvent (node:internal/event_target:721:26)
at abortSignal (node:internal/abort_controller:369:10)
at AbortController.abort (node:internal/abort_controller:403:5)
at Timeout.<anonymous> (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:68:46)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
code: 'UND_ERR_ABORTED'
}
Node.js v18.20.4
After updating the bot to latest it keeps failing on startup. I even double checked the discord bot token and generated a new one. Is there something I'm missing?
Logs
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
Runtime I'm running Muse:
Versions