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

Error playing music from web interface #1760

Open
martinmartossimon opened this issue Apr 9, 2024 · 2 comments
Open

Error playing music from web interface #1760

martinmartossimon opened this issue Apr 9, 2024 · 2 comments

Comments

@martinmartossimon
Copy link

Describe the bug
In my installation (docker-compose), koel start running, I can login and scan my music library, but when I try to play a song, koel starts to jump from one song to the next and doesn't reproduce any sound.

To reproduce

  1. Login
  2. Change user and pass.
  3. Try to scan my library from web, but I got an error message: Error
    Unknown error.
  4. I try to scan my library from inside the container with: php artisan koel:sync. It finished without error. Then I ran inside the container:
    php artisan koel:search:import (because I read on wiki). This command finish OK. All my media is scanned
  5. Try to play a song from the web and it fails, see attached screenshots.

Screenshots
image
image
image
image

Console errors:
image

If I could scan my library, I suposed is an indicator that's not a permision problem over mounted volume. But Im not sure.

If applicable, add screenshots to help explain your problem.

Environment

  • Koel version [e.g. v4.1.0]
  • OS: [e.g. macOS Mojave]
  • Browser [e.g. Chrome 79]
  • PHP version [e.g. v7.2.0]
  • Node version [e.g. v10.15.3]

Additional context
configuration:
docker-compose.yml

version: '3'

services:
  koel:
    image: phanan/koel
    depends_on:
      - database
    ports:
      - 7887:80
    environment:
      - DB_CONNECTION=mysql
      - DB_HOST=database
      - DB_USERNAME=myuser
      - DB_PASSWORD=mypass
      - DB_DATABASE=koel
    volumes:
      #- ./music:/music
      - /path/to/my/music/:/music
      - ./covers:/var/www/html/public/img/covers
      - ./search_index:/var/www/html/storage/search-indexes

  database:
    image: mariadb:10.11
#    ports:
#      - 3306:3306
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=superpass
      - MYSQL_DATABASE=koel
      - MYSQL_USER=myuser
      - MYSQL_PASSWORD=mypass
@martinmartossimon
Copy link
Author

Inside de container I can see files in /music
image

Maybe is a permission problem and user www-data can't read them

@phanan
Copy link
Member

phanan commented Apr 11, 2024

What does the log under storage/logs/laravel.log say?

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

No branches or pull requests

2 participants