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

Bot suddenly stops playback #1050

Open
2 tasks
Stanisgrox opened this issue Jul 18, 2024 · 3 comments
Open
2 tasks

Bot suddenly stops playback #1050

Stanisgrox opened this issue Jul 18, 2024 · 3 comments
Labels

Comments

@Stanisgrox
Copy link

Stanisgrox commented Jul 18, 2024

What's happening?
When playing any song bot connects and starts playback of first 10-40 sec of video but then stops.

Logs

 prisma:client:libraryEngine  sending request, this.libraryStarted: true +17ms
  muse Spawned ffmpeg with ffmpeg -reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5 -to 225 -i REDACTED -acodec libopus -vn -f webm pipe:1 +837ms
  muse [WS => Shard 0] Heartbeat acknowledged, latency of 140ms. +11s
  prisma:client  Prisma Client call: +47s
  prisma:client  prisma.setting.findUnique({
  where: {
    guildId: 'REDACTED'
  }
}) +1ms
  prisma:client  Generated request: +0ms
  prisma:client  query {
  findUniqueSetting(where: {
    guildId: "REDACTED"
  }) {
    guildId
    playlistLimit
    secondsToWaitAfterQueueEmpties
    leaveIfNoListeners
    queueAddResponseEphemeral
    autoAnnounceNextSong
    defaultVolume
    createdAt
    updatedAt
  }
}
 +0ms
  prisma:client:libraryEngine  sending request, this.libraryStarted: true +47s
  prisma:client  Prisma Client call: +5ms
  prisma:client  prisma.fileCache.create({
  data: {
    hash: 'REDACTED',
    accessedAt: new Date('2024-07-18T22:36:38.240Z'),
    bytes: 524206
  }
}) +0ms
  prisma:client  Generated request: +0ms
  prisma:client  mutation {
  createOneFileCache(data: {
    hash: "REDACTED"
    accessedAt: "2024-07-18T22:36:38.240Z"
    bytes: 524206
  }) {
    hash
    bytes
    accessedAt
    createdAt
    updatedAt
  }
}
 +0ms
  prisma:client:libraryEngine  sending request, this.libraryStarted: true +5ms
  muse Evicting oldest files... +36s
  prisma:client  Prisma Client call: +15ms
  prisma:client  prisma.fileCache.aggregate({
  select: {
    _sum: {
      select: {
        bytes: true
      }
    }
  }
}) +0ms
  prisma:client  Generated request: +0ms
  prisma:client  query {
  aggregateFileCache {
    _sum {
      bytes
    }
  }
}
 +0ms
  prisma:client:libraryEngine  sending request, this.libraryStarted: true +15ms
  muse No files needed to be evicted. Total size of the cache is currently 2422126 bytes, and the cache limit is 2000000000 bytes. +2ms

Additional context
L:ogs look fine like it should just end playback. It downloads 100-500 kb file and plays it then it ends. I've redacted guild id and link cause it contains IP but there's nothing on this side.

Runtime
I'm running Muse:

  • Directly from the cloned repository
  • [*] Inside a Docker container
  • Something else (please elaborate)

Versions

  • Docker (if applicable): 24.05 b ced0996
  • OS: Ubuntu server 24.04 LTS
@Stanisgrox
Copy link
Author

Seeking while music plays prolongates this playback by additional seconds.

@ike2117
Copy link

ike2117 commented Jul 24, 2024

I've been experiencing the same issue. Currently running muse:latest and after a few seconds of playback, stream stops

@Stanisgrox
Copy link
Author

Stanisgrox commented Jul 24, 2024

Well I narrowed that down to FFMPEG issue. If I try to put same string inside console to start playback I get 403 error code. If I enter google API link inside browser it works fine.

It's strange 'cause bot version of FFMPEG doesn't get 403.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants