[GH-ISSUE #2021] Docker edition - 500 error when playing on iPhone #1064

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

Originally created by @Anduin2017 on GitHub (Jul 13, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/2021

Seems permission issue.

ErrorException
mkdir(): Permission denied

PHP 8.4.8 — Laravel 11.45.1

On:

  $destination = artifact_path(sprintf('transcodes/%d/%s.m4a', $bitRate, Ulid::generate()));

Calls:

    if ($subPath) {
        $path .= ltrim($subPath, DIRECTORY_SEPARATOR);
    }
 
    if ($ensureDirectoryExists) {
        File::ensureDirectoryExists(dirname($path));
    }
 
    return $path;

I noticed the path by default is at /tmp/koel/transcodes. After manually creating it and assigning permissions it worked fine.

Originally created by @Anduin2017 on GitHub (Jul 13, 2025). Original GitHub issue: https://github.com/koel/koel/issues/2021 Seems permission issue. ErrorException mkdir(): Permission denied PHP 8.4.8 — Laravel 11.45.1 On: ```php $destination = artifact_path(sprintf('transcodes/%d/%s.m4a', $bitRate, Ulid::generate())); ``` Calls: ```php if ($subPath) { $path .= ltrim($subPath, DIRECTORY_SEPARATOR); } if ($ensureDirectoryExists) { File::ensureDirectoryExists(dirname($path)); } return $path; ``` I noticed the path by default is at `/tmp/koel/transcodes`. After manually creating it and assigning permissions it worked fine.
kerem closed this issue 2026-02-26 02:35:08 +03:00
Author
Owner

@phanan commented on GitHub (Jul 13, 2025):

Hmm. It's pretty curious that your web user doesn't have access to tmp dir.

<!-- gh-comment-id:3066739773 --> @phanan commented on GitHub (Jul 13, 2025): Hmm. It's pretty curious that your web user doesn't have access to tmp dir.
Author
Owner

@phanan commented on GitHub (Jul 13, 2025):

But shouldn't php artisan koel:doctor have found the issue?

<!-- gh-comment-id:3066744238 --> @phanan commented on GitHub (Jul 13, 2025): But shouldn't `php artisan koel:doctor` have found the issue?
Author
Owner

@phanan commented on GitHub (Jul 13, 2025):

Should be fixed with the latest Docker release.

<!-- gh-comment-id:3066960357 --> @phanan commented on GitHub (Jul 13, 2025): Should be fixed with the latest Docker release.
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#1064
No description provided.