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.

[Docker Nightly] Permission broken, UID/GID not working, overwritten with standard 1000:1000

See original GitHub issue

The UID and GID env with docker are getting ignored with the current image.

This has been done with a fresh install, so empty config dir etc. For example i have an user “docker” in the group “users” or in digits 1028:100

For the downloads i create a directory /data/youtube Before the run of the container the permissions are docker:users as they are supposed to be. Container runs with following log output:

warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms INFO: Beginning migration: 4.1->4.2+ ERROR: EACCES: permission denied, scandir 'audio/' ERROR: Migration failed: 4.1->4.2+ INFO: youtube-dl successfully updated! INFO: YoutubeDL-Material v4.2 started on PORT 17442

(node:20) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, scandir 'audio/'
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

(node:20) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:20) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:20) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

If i look at the permissions now /data/youtube has 1000:1000 the config directory gets set to 1000:1000 as well.

This breaks it for anyone using

      - PUID=not1000
      - PGID=not1000

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Tzahi12345commented, Jul 21, 2021

#336 is merged!

0reactions
Tzahi12345commented, Jun 18, 2022

@ckykenken would you mind trying the nightly tag instead? It’s a year and change newer, v4.3 will drop fairly soon and then you can go back to latest

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError: [Errno 13] Permission denied: '/.cache' #186 - GitHub
This folder is in the docker container, so shouldn't it have access? ... [Docker Nightly] Permission broken, UID/GID not working, ...
Read more >
Avoiding Permission Issues With Docker-Created Files
The user of the container (root in the worst case) is completely different than the one on the host. The file permissions and...
Read more >
Docker and the Host Filesystem Owner Matching Problem
This post describes what causes the host filesystem owner matching problem, and analyzes various solutions and their caveats.
Read more >
Container permission denied: How to diagnose this error
Learn what is causing a container permissions error and how to work around the issue without resorting to the --privileged flag.
Read more >
Understanding user file ownership in docker: how to avoid ...
Two options I've found: CHOWN all the things (after doing your work). I've done docker run -v `pwd`/shared:/shared image , and the container ......
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