question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

freezes at "📡 updating commands in all guilds..."

See original GitHub issue

What’s happening? It freeze in ⠼ 📡 updating commands in all guilds.... Bot commands do not working, but he is online.

Logs

yarn run v1.22.15
$ npm run env:set-database-url -- esmo src/scripts/migrate-and-start.ts
  agentkeepalive sock[0#registry.yarnpkg.com:443::::::::true:::::::::::::] create, timeout 300001ms +0ms

> muse@2.1.1 env:set-database-url
> esmo src/scripts/run-with-database-url.ts "esmo" "src/scripts/migrate-and-start.ts"

  agentkeepalive sock[0#registry.yarnpkg.com:443::::::::true:::::::::::::](requests: 1, finished: 1) free +140ms
(node:53) 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:53) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource
(node:89) 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:89) DeprecationWarning: Obsolete loader hook(s) supplied and will be ignored: getFormat, transformSource
  prisma:tryLoadEnv Environment variables not found at null +0ms
  prisma:tryLoadEnv Environment variables not found at undefined +1ms
  prisma:tryLoadEnv No Environment variables loaded +0ms
  prisma:tryLoadEnv Environment variables not found at null +291ms
  prisma:tryLoadEnv Environment variables not found at undefined +1ms
  prisma:tryLoadEnv No Environment variables loaded +0ms
  prisma:client dirname /usr/app/node_modules/.prisma/client +0ms
  prisma:client relativePath ../../.. +0ms
  prisma:client cwd /usr/app +0ms
  prisma:client clientVersion: 3.14.0 +5ms
  prisma:client clientEngineType: library +0ms
  prisma:client:libraryEngine internalSetup +0ms
  prisma:tryLoadEnv Environment variables not found at null +641ms
  prisma:tryLoadEnv Environment variables not found at undefined +1ms
  prisma:tryLoadEnv No Environment variables loaded +0ms
  prisma:client dirname /usr/app/node_modules/.prisma/client +637ms
  prisma:client relativePath ../../.. +0ms
  prisma:client cwd /usr/app +1ms
  prisma:client clientVersion: 3.14.0 +2ms
  prisma:client clientEngineType: library +0ms
  prisma:client:libraryEngine internalSetup +640ms
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================

Running version 2.1.1 built on 7/16/2022 (commit 60264a3950a6b6a76aa5856b5934074640c43a5f)

🔧 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...  prisma:client prisma.queryRaw(SELECT COUNT(id) FROM _prisma_migrations, []) +120ms
  prisma:client Prisma Client call: +1ms
  prisma:client Prisma Client call: +10ms
  prisma:client prisma.$queryRaw({
  prisma:client   query: 'SELECT COUNT(id) FROM _prisma_migrations',
  prisma:client   parameters: {
  prisma:client     values: '[]',
  prisma:client     __prismaRawParamaters__: true
  prisma:client   }
  prisma:client }) +6ms
  prisma:client Generated request: +0ms
  prisma:client mutation {
  prisma:client   queryRaw(
  prisma:client     query: "SELECT COUNT(id) FROM _prisma_migrations"
  prisma:client     parameters: "[]"
  prisma:client   )
  prisma:client }
  prisma:client  +1ms
  prisma:client:libraryEngine sending request, this.libraryStarted: false +139ms
⠹ Applying database migrations...  prisma:client:libraryEngine Searching for Query Engine Library in /usr/app/node_modules/.prisma/client +209ms
  prisma:client:libraryEngine loadEngine using /usr/app/node_modules/.prisma/client/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0ms
  prisma:client:libraryEngine library starting +54ms
⠸ Applying database migrations...  prisma:client:libraryEngine Searching for Query Engine Library in /usr/app/node_modules/.prisma/client +2ms
  prisma:client:libraryEngine loadEngine using /usr/app/node_modules/.prisma/client/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0ms
  prisma:client:libraryEngine library started +28ms
✔ Database migrations applied.
  prisma:client Prisma Client call: +2s
  prisma:client prisma.fileCache.findMany({
  prisma:client   where: undefined,
  prisma:client   orderBy: {
  prisma:client     createdAt: 'asc'
  prisma:client   },
  prisma:client   take: 50
  prisma:client }) +1ms
  prisma:client Generated request: +0ms
  prisma:client query {
  prisma:client   findManyFileCache(
  prisma:client     orderBy: [
  prisma:client       {
  prisma:client         createdAt: asc
  prisma:client       }
  prisma:client     ]
  prisma:client     take: 50
  prisma:client   ) {
  prisma:client     hash
  prisma:client     bytes
  prisma:client     accessedAt
  prisma:client     createdAt
  prisma:client     updatedAt
  prisma:client   }
  prisma:client }
  prisma:client  +0ms
  prisma:client:libraryEngine sending request, this.libraryStarted: false +1s
  prisma:client:libraryEngine library starting +0ms
  prisma:client:libraryEngine library started +3ms
  muse Evicting oldest files... +0ms
  prisma:client Prisma Client call: +15ms
  prisma:client prisma.fileCache.aggregate({
  prisma:client   select: {
  prisma:client     _sum: {
  prisma:client       select: {
  prisma:client         bytes: true
  prisma:client       }
  prisma:client     }
  prisma:client   }
  prisma:client }) +1ms
  prisma:client Generated request: +1ms
  prisma:client query {
  prisma:client   aggregateFileCache {
  prisma:client     _sum {
  prisma:client       bytes
  prisma:client     }
  prisma:client   }
  prisma:client }
  prisma:client  +0ms
  prisma:client:libraryEngine sending request, this.libraryStarted: true +14ms
  superagent POST https://accounts.spotify.com/api/token +0ms
  superagent POST https://accounts.spotify.com/api/token +9ms
  superagent POST https://accounts.spotify.com/api/token +6ms
⠋ 📡 connecting to Discord...  muse Provided token: ODk0NjcyNjU0MDcyNjc2MzUz.G1zKYh.************************************** +56ms
  muse Preparing to connect to the gateway... +0ms
  muse No files needed to be evicted. Total size of the cache is currently 0 bytes, and the cache limit is 2000000000 bytes. +7ms
  superagent POST https://accounts.spotify.com/api/token -> 200 +65ms
  superagent POST https://accounts.spotify.com/api/token -> 200 +6ms
  superagent POST https://accounts.spotify.com/api/token -> 200 +2ms
⠹ 📡 connecting to Discord...  muse [WS => Manager] Fetched Gateway Information
  muse     URL: wss://gateway.discord.gg
  muse     Recommended Shards: 1 +155ms
  muse [WS => Manager] Session Limit Information
  muse     Total: 1000
  muse     Remaining: 997 +0ms
  muse [WS => Manager] Spawning shards: 0 +0ms
  muse [WS => Shard 0] [CONNECT]
  muse     Gateway    : wss://gateway.discord.gg/
  muse     Version    : 10
  muse     Encoding   : json
  muse     Compression: none +1ms
  muse [WS => Shard 0] Setting a HELLO timeout for 20s. +0ms
⠸ 📡 connecting to Discord...  muse [WS => Shard 0] [CONNECTED] Took 123ms +123ms
  muse [WS => Shard 0] Clearing the HELLO timeout. +2ms
  muse [WS => Shard 0] Setting a heartbeat interval for 41250ms. +0ms
  muse [WS => Shard 0] [IDENTIFY] Shard 0/1 with intents: 1153 +0ms
⠦ 📡 connecting to Discord...  muse [WS => Shard 0] [READY] Session 06d37cf94aca233cdb8cf1b484c8387d. +253ms
  muse [WS => Shard 0] [ReadyHeartbeat] Sending a heartbeat. +1ms
⠇ 📡 connecting to Discord...  muse [WS => Shard 0] Shard received all its guilds. Marking as fully ready. +113ms
  muse --------------------------------------------------
  muse Core Dependencies
  muse - @discordjs/voice: 0.10.0-dev
  muse - prism-media: 1.3.2
  muse
  muse Opus Libraries
  muse - @discordjs/opus: 0.7.0
  muse - opusscript: not found
  muse
  muse Encryption Libraries
  muse - sodium-native: not found
  muse - sodium: not found
  muse - libsodium-wrappers: 0.7.10
  muse - tweetnacl: not found
  muse
  muse FFmpeg
  muse - version: 4.1.9-0+deb10u1
  muse - libopus: yes
  muse -------------------------------------------------- +3ms
  muse [WS => Shard 0] Heartbeat acknowledged, latency of 127ms. +11ms
⠋ 📡 updating commands in all guilds...DiscordAPIError[50001]: Missing Access
    at SequentialHandler.runRequest (file:///usr/app/node_modules/@discordjs/rest/dist/index.mjs:670:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (file:///usr/app/node_modules/@discordjs/rest/dist/index.mjs:473:14)
    at async registerCommandsOnGuild (file:///usr/app/src/utils/register-commands-on-guild.ts:3:3)
    at async file:///usr/app/src/bot.ts:111:13
    at async Promise.all (index 0)
    at async Client.<anonymous> (file:///usr/app/src/bot.ts:109:9) {
  rawError: { message: 'Missing Access', code: 50001 },
  code: 50001,
  status: 403,
  method: 'put',
  url: 'https://discord.com/api/v10/applications/894672654072676353/guilds/566706499276242964/commands',
  requestBody: {
    files: undefined,
    json: [
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object]
    ]
  }
}
⠙ 📡 updating commands in all guilds...  agentkeepalive sock[0#registry.yarnpkg.com:443::::::::true:::::::::::::](requests: 1, finished: 1) timeout after 15000ms, listeners 2, defaultTimeoutListenerCount 3, hasHttpRequest false, HttpRequest timeoutListenerCount 0 +15s
  agentkeepalive timeout listeners: onTimeout, onTimeout +1ms
  agentkeepalive sock[0#registry.yarnpkg.com:443::::::::true:::::::::::::] is free, destroy quietly +1ms
  agentkeepalive sock[0#registry.yarnpkg.com:443::::::::true:::::::::::::](requests: 1, finished: 1) close, isError: false +0ms
⠧ 📡 updating commands in all guilds...  muse [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. +41s
⠏ 📡 updating commands in all guilds...  muse [WS => Shard 0] Heartbeat acknowledged, latency of 106ms. +107ms
⠹ 📡 updating commands in all guilds...  muse [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. +41s
⠸ 📡 updating commands in all guilds...  muse [WS => Shard 0] Heartbeat acknowledged, latency of 107ms. +108ms
⠧ 📡 updating commands in all guilds...  muse [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. +41s
⠇ 📡 updating commands in all guilds...  muse [WS => Shard 0] Heartbeat acknowledged, latency of 108ms. +110ms
⠙ 📡 updating commands in all guilds...  muse [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. +41s
⠸ 📡 updating commands in all guilds...

Runtime I’m running Muse inside a Docker container.

Versions

  • Muse: 2.1.1 built on 7/16/2022
  • Docker (if applicable): 20.10.12, build 20.10.12-0ubuntu4
  • OS: Ubuntu 22.04 LTS
  • CPU arch: aarch64
  • Kernel: 5.15.0-1011-oracle

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
codethewebcommented, Aug 5, 2022

Sorry, I didn’t mean to be rude.

Try kicking Muse as well from all the servers it’s currently in.

0reactions
filip2czcommented, Sep 6, 2022

Sorry, I didn’t mean to be rude.

Try kicking Muse as well from all the servers it’s currently in.

It worked, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

frozen update of input but can execute commands? - Super User
The temporary solution is to start a screen session and every time the interface freezes you simply do Ctrl + a -> c...
Read more >
Global Slash Commands are only available after rejoin from bot
Description When I add a new global slash command via API, this slash command is only available on the server after a rejoin...
Read more >
How can I deploy commands to all guilds with discord.js?
I am writing a discord bot and I have a deploy-commands.js file. In it's current state it can only deploy the commands to...
Read more >
Getting Stuck In Walls - Update /Stuck Command
All you'd need to do is update /stuck command so it instantly downstates a player first and then when they bleed out, they...
Read more >
Stata freezes when executing simple commands - Statalist
Hi, I am having problem with my Stata that freezes when i try to execute very simple commands with simple datasets.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found