You are not logged in.

#1 2025-01-23 17:40:49

nixIT
Member
Registered: 2010-01-13
Posts: 544

[SOLVED] rootless podman confused?

hello all,
still on my podman journey, at least I get beyond the initial issue.

as my user, I created custom runroot and graphroot directories, then added them to ~/.config/containers/storage.conf

I installed podman following the wiki including the setting /etc/subuid and /etc/subgid

restarted podman and then executed:

$ podman info |grep -A 10 'store'
Error: acquiring runtime init lock: open /run/libpod/alive.lck: permission denied

since I'm running in rootless, shouldn't it be looking in /run/user/1000/libpod instead of /run/libpod?

is my podman install or arch install for that matter confused?

anyone else have weird permission issues with podman?

any help is appreciated.

cheers,
/nixit

Last edited by nixIT (2025-01-25 12:09:36)


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#2 2025-01-23 21:01:55

nixIT
Member
Registered: 2010-01-13
Posts: 544

Re: [SOLVED] rootless podman confused?

after numerous uninstall/reinstall of podman using the same instructions, I was finally able to get it to work, and when I launched the container, I get this:

$ podman logs n8n
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (audit)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (base-command)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (execute-batch)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (execute)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (start)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (webhook)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (worker)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (export:credentials)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (export:workflow)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (ldap:reset)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (license:clear)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (license:info)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (import:credentials)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (import:workflow)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (list:workflow)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (mfa:disable)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (user-management:reset)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
(node:2) [EACCES] Warning: Error
module: @oclif/core@4.0.7
task: findCommand (update:workflow)
plugin: n8n
root: /usr/local/lib/node_modules/n8n
code: EACCES
message: EACCES: permission denied, open '/home/node/.n8n/config'
See more details with DEBUG=*
 ›   Error: command start not found

I've tried to change ownership of the volume to 1000:1000, that didn't help either.

here is my podman command:

podman run -d  --name n8n -p 5678:5678  -v /nixit/nixitdata/podman/apps/n8n:/home/node/.n8n      docker.n8n.io/n8nio/n8n

any tips on what to look at next?

/nixit

EDIT: added my podman command

Last edited by nixIT (2025-01-23 21:11:33)


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#3 2025-01-24 17:23:14

xerxes_
Member
Registered: 2018-04-29
Posts: 1,029

Re: [SOLVED] rootless podman confused?

I didn't tried podman yet nor I know correct configuration, but for now maybe idmapped mounts (with bind mount) could help you to mount directory which has root ownership as user ownership, see here:
https://bbs.archlinux.org/viewtopic.php … 6#p2211046

Beware that files mounted in that way, depending to mount option, can be mounted with only read attribute or read-write, so in that case your ordinary user account may change files in reality belonging to root owner in original location!
So I would mount it with read only attributes first.

Last edited by xerxes_ (2025-01-24 17:32:49)

Offline

#4 2025-01-25 12:17:03

nixIT
Member
Registered: 2010-01-13
Posts: 544

Re: [SOLVED] rootless podman confused?

I honestly gave up on this, spent over 18 hours trying to get this to work, last thing I want to do is start messing with permissions of files and folders that were already chowned by my user, but get reset when podman is installed. that's odd, and nowhere mentioned.  podman is not meant to run on my arch system.

I then tried a raspberry pi, and had the same permission issues. so I guess  podman doesn't like non fedora systems.

after another 6+ hours of troubleshooting, I finally had to change permissions from within the docker container.... thanx random post buried in a random forum about something else.

all in all, after spending over 24 hours on trying to get n8n running within podman, with mild success. giving up for now.


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#5 2025-01-28 17:28:35

koshon
Member
Registered: 2010-12-11
Posts: 13

Re: [SOLVED] rootless podman confused?

nixIT, stupid question: have you tried :Z label?
2. what is your echo $XDG_RUNTIME_DIR
3. podman info

Offline

Board footer

Powered by FluxBB