Replies: 6 comments 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Are you able to run Not sure why the podman socket location wasn't picked up automatically. Maybe Lines 633 to 643 in 35329ab |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone! I had the same issue where I couldn't see my containers in Beszel. I'm on Fedora 43 using Rootless Podman (Quadlets). To fix it, I made these specific changes in my .container file. I didn't need to disable SELinux or use extra capabilities: With these settings, container stats and SMART monitoring started working immediately. No need for CAP_SYS_ADMIN or disabling security. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
The Beszel agent handles this automatically. Even if Podman is running in rootless mode, the process inside the container thinks it is "root" (mapped to your user UID). In my Fedora setup, as long as my user has permissions to read the disk devices, the agent can access the SMART data without needing sudo or extra privileges. With the configuration I shared, it just worked out of the box! |
Beta Was this translation helpful? Give feedback.
-
|
I'm having the same issue, I get the basic server stats but nothing else - no containers or SMART! I'm on Fedora IoT 43 and everything is running in rootless podman containers (user 1000). Here's how I set them up: POD: podman pod create \
--hostname=beszel \
--name=beszel \
--network=hostHUB: podman run -d --replace \
--env=APP_URL=http://localhost:8090 \
--name=hub \
--restart=unless-stopped \
--pod=beszel \
--volume=beszel:/beszel_data \
docker.io/henrygd/beszel:latestAGENT: podman run -d --replace \
--env=DOCKER_HOST=unix:///run/user/1001/podman/podman.sock \
--env=HUB_URL=http://localhost:8090 \
--env=KEY="****" \
--env=LISTEN=45876 \
--env=TOKEN=**** \
--name=agent \
--pod=beszel \
--restart=unless-stopped \
--volume=beszel_agent:/var/lib/beszel-agent \
--volume=/run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro,z \
docker.io/henrygd/beszel-agent:latestI had How do I see my containers in Beszel?! If I could just vent for a minute, Beszel is the first monitor I found that tries to support Podman (besides Cockpit obviously), everything else I tried barely, if at all, acknowledged Podman's existence! Why so little love for Podman?! |
Beta Was this translation helpful? Give feedback.
-
|
I just had the same issue. You have to set There are several way to mitigate this but I'm unsure about the correct way. Maybe one of the developers can help. Yes, you can set in the I went for an other way -- still not ideal but it least it works for now: You can make podman on the host listen to tcp connections via e.g. So, the bare minimum quadlet for the agent should look something like the following: Notice the separate podman volume
I furthermore wrapped the socket command into a systemd service:
and add the dependency to the above quadlet: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Dear henrygd,
On my server I'm using Podman quadlets, it's very nice that you have made podman documentation and intergration. But even with this i don't get Beszel agent quadlet to work all the way. I've had podman monitoring with making the container think it's the docker.sock, but not as podman.sock.
Volume=/run/user/1001/podman/podman.sock:/var/run/docker.sock:roWhile this need to be the origina.
Volume=/run/user/1001/podman/podman.sock:/run/user/1001/podman/podman.sock:roI use the alpine image version cause I wanted to get SMART working. I added all the devices I would like it to monitor and get an
INFO smartctl failed device=/dev/sda err="exit status 2". Wich mean a premission problem. If i go into the container and execsmartctl --scaneverything is normal but puttingsmartctl --all /dev/sdagives meSmartctl open device: /dev/sda failed: Permission deniedI run al my nvme ddrives in a RAID config. But normally the sda drive shouldn't give me a problem.I turned of SELinux because that is always a problem with premissions but then still the container gives me premission errors. Nothing seems to work.
Hope some one can help me figure this out.
I also have some questions left about the podman socket proxy and how that works.
OS / Architecture
Fedora Server
Beszel version
alpine
Installation method
Other (please describe above)
Configuration
Hub Logs
No response
Agent Logs
Beta Was this translation helpful? Give feedback.
All reactions