Closed Maxximou5 closed 2 years ago
I am also receiving this error as well. Bot will actually play music until it crashes with this error.
Same error
muse_1 | yarn run v1.22.15
muse_1 | $ npm run env:set-database-url -- esmo src/scripts/migrate-and-start.ts
muse_1 |
muse_1 | > muse@1.9.0 env:set-database-url
muse_1 | > esmo src/scripts/run-with-database-url.ts "esmo" "src/scripts/migrate-and-start.ts"
muse_1 |
muse_1 | (node:52) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
muse_1 | (Use `node --trace-warnings ...` to show where the warning was created)
muse_1 | (node:52) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource
muse_1 | (node:90) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
muse_1 | (Use `node --trace-warnings ...` to show where the warning was created)
muse_1 | (node:90) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource
muse_1 | ========================================
muse_1 | ========================================
muse_1 | ================= muse =================
muse_1 | ========================================
muse_1 | =========== Made with 🎶 by ============
muse_1 | ==== https://github.com/codetheweb =====
muse_1 | ========================================
muse_1 | ========================================
muse_1 |
muse_1 | Running version 1.9.0 built on 4/23/2022 (commit 1ef05aba9d2e692ef365721f725be2d2a4e464d9)
muse_1 |
muse_1 | 🔧 Need help? https://github.com/codetheweb/muse/discussions/new
muse_1 | 🐛 Bug? https://github.com/codetheweb/muse/issues/new
muse_1 | ✨ New feature? https://github.com/codetheweb/muse/issues/new
muse_1 | ☕ Discussion? https://github.com/codetheweb/muse/discussions/new
muse_1 | 💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
muse_1 |
muse_1 |
muse_1 | - Applying database migrations...
muse_1 | ✔ Database migrations applied.
muse_1 | - 📡 connecting to Discord...
muse_1 | file:///usr/app/src/utils/update-permissions-for-guild.ts:10
muse_1 | throw new Error("could not find settings for guild");
muse_1 | ^
muse_1 |
muse_1 | Error: could not find settings for guild
muse_1 | at updatePermissionsForGuild (file:///usr/app/src/utils/update-permissions-for-guild.ts:10:11)
muse_1 | at async Promise.all (index 0)
muse_1 | at async Client.<anonymous> (file:///usr/app/src/bot.ts:129:7)
muse_1 | file:///usr/app/node_modules/execa/lib/error.js:59
muse_1 | error = new Error(message);
muse_1 | ^
muse_1 |
muse_1 | Error: Command failed with exit code 1: esmo src/scripts/migrate-and-start.ts
muse_1 | at makeError (file:///usr/app/node_modules/execa/lib/error.js:59:11)
muse_1 | at handlePromise (file:///usr/app/node_modules/execa/index.js:119:26)
muse_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5)
muse_1 | at async file:///usr/app/src/scripts/run-with-database-url.ts:5:3 {
muse_1 | shortMessage: 'Command failed with exit code 1: esmo src/scripts/migrate-and-start.ts',
muse_1 | command: 'esmo src/scripts/migrate-and-start.ts',
muse_1 | escapedCommand: 'esmo "src/scripts/migrate-and-start.ts"',
muse_1 | exitCode: 1,
muse_1 | signal: undefined,
muse_1 | signalDescription: undefined,
muse_1 | stdout: undefined,
muse_1 | stderr: undefined,
muse_1 | failed: true,
muse_1 | timedOut: false,
muse_1 | isCanceled: false,
muse_1 | killed: false
muse_1 | }
muse_1 | npm notice
muse_1 | npm notice New minor version of npm available! 8.1.0 -> 8.8.0
muse_1 | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.8.0>
muse_1 | npm notice Run `npm install -g npm@8.8.0` to update!
muse_1 | npm notice
muse_1 | error Command failed with exit code 1.
muse_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Also the same error, first time using the bot for me
> muse@1.9.0 env:set-database-url
> esmo src/scripts/run-with-database-url.ts "esmo" "src/scripts/migrate-and-start.ts"
(node:52) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:52) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource
(node:92) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:92) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================
Running version 1.9.0 built on 4/23/2022 (commit 1ef05aba9d2e692ef365721f725be2d2a4e464d9)
🔧 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
- Applying database migrations...
✔ Database migrations applied.
- 📡 connecting to Discord...
file:///usr/app/src/utils/update-permissions-for-guild.ts:10
throw new Error("could not find settings for guild");
^
Error: could not find settings for guild
at updatePermissionsForGuild (file:///usr/app/src/utils/update-permissions-for-guild.ts:10:11)
at async Promise.all (index 0)
at async Client.<anonymous> (file:///usr/app/src/bot.ts:129:7)
file:///usr/app/node_modules/execa/lib/error.js:59
error = new Error(message);
^
Error: Command failed with exit code 1: esmo src/scripts/migrate-and-start.ts
at makeError (file:///usr/app/node_modules/execa/lib/error.js:59:11)
at handlePromise (file:///usr/app/node_modules/execa/index.js:119:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async file:///usr/app/src/scripts/run-with-database-url.ts:5:3 {
shortMessage: 'Command failed with exit code 1: esmo src/scripts/migrate-and-start.ts',
command: 'esmo src/scripts/migrate-and-start.ts',
escapedCommand: 'esmo "src/scripts/migrate-and-start.ts"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
error Command failed with exit code 1.```
Probably related to https://github.com/codetheweb/muse/issues/637.
This is fixed in https://github.com/codetheweb/muse/releases/tag/v2.0.0. Please reopen if you're still having issues.
What's happening? Deploying a new installation using docker results in the following errors on launch. Bot has been invited with the required permissions and tokens, ids, keys, and secrets have been set in docker-compose file. Previously running on v1.4.0 without any issues until after upgrade was performed. Going back a version results in the same problems.
Logs
Screenshots N/A
Additional context If a previous installation with data (db.sqlite) is used, the issue is then #637
Runtime I'm running Muse:
Versions