[GH-ISSUE #1760] Error playing music from web interface #967

Closed
opened 2026-02-26 02:34:47 +03:00 by kerem · 3 comments
Owner

Originally created by @martinmartossimon on GitHub (Apr 9, 2024).
Original GitHub issue: https://github.com/koel/koel/issues/1760

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
Originally created by @martinmartossimon on GitHub (Apr 9, 2024). Original GitHub issue: https://github.com/koel/koel/issues/1760 **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](https://github.com/koel/koel/assets/16241139/1f8d919b-9004-48d3-8839-7f2da733583c) ![image](https://github.com/koel/koel/assets/16241139/5468632d-5a62-4855-bc6f-482506e4bf33) ![image](https://github.com/koel/koel/assets/16241139/b5d798d4-6097-422d-ad7c-64a542feda4f) ![image](https://github.com/koel/koel/assets/16241139/b7ef4ac2-20b8-4d93-9148-c9fe85b8eca4) Console errors: ![image](https://github.com/koel/koel/assets/16241139/645901aa-7266-4b7d-b2fb-eb257bfa0902) 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 ```yaml 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 ```
kerem closed this issue 2026-02-26 02:34:47 +03:00
Author
Owner

@martinmartossimon commented on GitHub (Apr 9, 2024):

Inside de container I can see files in /music
image

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

<!-- gh-comment-id:2045608624 --> @martinmartossimon commented on GitHub (Apr 9, 2024): Inside de container I can see files in /music ![image](https://github.com/koel/koel/assets/16241139/d80e2756-66de-4d5f-8263-6d72c4665b71) Maybe is a permission problem and user www-data can't read them
Author
Owner

@phanan commented on GitHub (Apr 11, 2024):

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

<!-- gh-comment-id:2049592196 --> @phanan commented on GitHub (Apr 11, 2024): What does the log under storage/logs/laravel.log say?
Author
Owner

@phanan commented on GitHub (Jul 7, 2024):

Closing due to inactivity.

<!-- gh-comment-id:2212574355 --> @phanan commented on GitHub (Jul 7, 2024): Closing due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#967
No description provided.