this_is_nate
this_is_nate
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
I tried just creating a new container in portainer with a new directory and it looks like that worked. In hindsight, I may have been duplicating my homarr-alpha container and maybe that's how the user got in somehow
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
Hmm alright I'll take a look and see if I can remove that. Thanks!
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
yep, I'm on portainer 2.21.4
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
No description
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
nextjs

total 56
drwxr-xr-x 1 root root 4096 Dec 19 17:55 .
drwxr-xr-x 1 root root 4096 Dec 19 18:36 ..
drwxr-xr-x 1 nextjs nodejs 4096 Dec 19 17:54 apps
drwxr-xr-x 2 nextjs nodejs 4096 Dec 19 17:54 build
drwxr-xr-x 3 nextjs nodejs 4096 Dec 19 17:54 db
-rwxr-xr-x 1 root root 203 Dec 19 17:50 entrypoint.sh
-rw-r--r-- 1 nextjs nodejs 402 Dec 19 17:50 generateRandomSecureKey.js
-rw-r--r-- 1 root root 1362 Dec 19 17:50 next.config.mjs
drwxr-xr-x 116 nextjs nodejs 4096 Dec 19 17:54 node_modules
-rw-r--r-- 1 nextjs nodejs 2731 Dec 19 17:54 package.json
drwxr-xr-x 25 nextjs nodejs 4096 Dec 19 17:54 packages
-rw-r--r-- 1 nextjs nodejs 126 Dec 19 17:50 redis.conf
-rw-r--r-- 1 nextjs nodejs 1627 Dec 19 17:50 run.sh
drwxr-xr-x 2 nextjs nodejs 4096 Dec 19 17:54 static-data

total 8
drwxrwxr-x 2 node node 4096 Dec 19 18:36 .
drwxr-xr-x 1 root root 4096 Dec 19 18:36 ..

mkdir: can't create directory '/appdata/db': Permission denied
nextjs

total 56
drwxr-xr-x 1 root root 4096 Dec 19 17:55 .
drwxr-xr-x 1 root root 4096 Dec 19 18:36 ..
drwxr-xr-x 1 nextjs nodejs 4096 Dec 19 17:54 apps
drwxr-xr-x 2 nextjs nodejs 4096 Dec 19 17:54 build
drwxr-xr-x 3 nextjs nodejs 4096 Dec 19 17:54 db
-rwxr-xr-x 1 root root 203 Dec 19 17:50 entrypoint.sh
-rw-r--r-- 1 nextjs nodejs 402 Dec 19 17:50 generateRandomSecureKey.js
-rw-r--r-- 1 root root 1362 Dec 19 17:50 next.config.mjs
drwxr-xr-x 116 nextjs nodejs 4096 Dec 19 17:54 node_modules
-rw-r--r-- 1 nextjs nodejs 2731 Dec 19 17:54 package.json
drwxr-xr-x 25 nextjs nodejs 4096 Dec 19 17:54 packages
-rw-r--r-- 1 nextjs nodejs 126 Dec 19 17:50 redis.conf
-rw-r--r-- 1 nextjs nodejs 1627 Dec 19 17:50 run.sh
drwxr-xr-x 2 nextjs nodejs 4096 Dec 19 17:54 static-data

total 8
drwxrwxr-x 2 node node 4096 Dec 19 18:36 .
drwxr-xr-x 1 root root 4096 Dec 19 18:36 ..

mkdir: can't create directory '/appdata/db': Permission denied
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
that one fails with mkdir: can't create directory '/appdata/db': Permission denied and no echo
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
No description
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
My apologies, that was after I chowned it on the host system. This is from a freshly created and chmod 777'd bind:
nextjs
total 16
drwxrwxrwx 4 node node 4096 Dec 19 17:44 .
drwxr-xr-x 1 root root 4096 Dec 19 17:39 ..
drwxr-xr-x 2 nextjs nogroup 4096 Dec 19 17:44 db
drwxr-xr-x 2 nextjs nogroup 4096 Dec 19 17:44 redis
nextjs
total 16
drwxrwxrwx 4 node node 4096 Dec 19 17:44 .
drwxr-xr-x 1 root root 4096 Dec 19 17:39 ..
drwxr-xr-x 2 nextjs nogroup 4096 Dec 19 17:44 db
drwxr-xr-x 2 nextjs nogroup 4096 Dec 19 17:44 redis
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
No description
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
nextjs
total 16
drwxrwxrwx 4 nextjs nodejs 4096 Dec 19 15:27 .
drwxr-xr-x 1 root root 4096 Dec 19 17:35 ..
drwxrwxrwx 2 nextjs nodejs 4096 Dec 19 15:27 db
drwxrwxrwx 2 nextjs nodejs 4096 Dec 19 15:27 redis
su-exec: setgroups(1001): Operation not permitted
nextjs
total 16
drwxrwxrwx 4 nextjs nodejs 4096 Dec 19 15:27 .
drwxr-xr-x 1 root root 4096 Dec 19 17:35 ..
drwxrwxrwx 2 nextjs nodejs 4096 Dec 19 15:27 db
drwxrwxrwx 2 nextjs nodejs 4096 Dec 19 15:27 redis
su-exec: setgroups(1001): Operation not permitted
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
In my research I did see that whoami could be useful in this context but didn't want to mess with the start command
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
No description
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
chown: /appdata/db: Operation not permitted
chown: /appdata/redis: Operation not permitted
chown: /appdata/db: Operation not permitted
chown: /appdata/redis: Operation not permitted
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
so I assume root is running it, and should have access to create directories / chown. I've also tried setting the /appdata bind to a directory in my user's home directory, with the exact same errors
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
ps -aux shows this for the portainer process: root 3072 0.3 0.4 1304280 75432 ? Ssl 09:23 0:02 /portainer
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
No description
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
No description
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
okay, got a different error now su-exec: setgroups(1001): Operation not permitted
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
With the parent folder set to 777, these are the permissions the container creates the folders with. There are no items in the folders, and recursively marking everything in the parent folder 777 results in the same error with the chown operation not being permitted. Identical behavior when using a docker volume vs a bind
59 replies
HHomarr
Created by this_is_nate on 12/18/2024 in #💬・get-help
Cannot get homarr v1.0.0-beta4 to start (permissions)
I don't know what the 1001 and 65533 user / groups are, I haven't set those and I'm unable to tell the container to use different uid/gid
59 replies