H
Homarr2mo ago
Vasco

Error with getting docker containers

2025-10-30T23:10:10.700Z error: tRPC Error with query on 'docker.getContainers' at Object.onError (/app/apps/nextjs/.next/server/app/api/trpc/[trpc]/route.js:5:5500) at Object.onError (/app/apps/nextjs/.next/server/app/api/trpc/[trpc]/route.js:5:4124) at /app/apps/nextjs/.next/server/app/api/trpc/[trpc]/route.js:1:31608 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /app/apps/nextjs/.next/server/app/api/trpc/[trpc]/route.js:5:1384 caused by TypeError: Cannot read properties of undefined (reading 'online_cpus') at /app/apps/nextjs/.next/server/chunks/3552.js:6:123819 at /app/apps/nextjs/.next/server/chunks/3552.js:6:123922 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Promise.all (index 19) at async l (/app/apps/nextjs/.next/server/chunks/3552.js:6:124110) at async Object.requestAsync (/app/apps/nextjs/.next/server/chunks/3552.js:6:123049) at async Object.requestAsync (/app/apps/nextjs/.next/server/chunks/3552.js:6:176329) at async g (/app/apps/nextjs/.next/server/chunks/3552.js:5:23889) at async Object.getCachedOrUpdatedDataAsync (/app/apps/nextjs/.next/server/chunks/3552.js:5:24357) at async /app/apps/nextjs/.next/server/chunks/3552.js:135:39866
13 Replies
Cakey Bot
Cakey Bot2mo ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Taomyn
Taomyn2mo ago
I get the same issue, though I thought it was because I use Podman and not Docker. so I just ignored it. I recall when I first deployed Homarr that it did seem to work, but I don't know when it last worked.
Manicraft1001
Manicraft10012mo ago
!qa required_data
Cakey Bot
Cakey Bot2mo ago
Thank you for your question. Our support team has noted that your request does not meet the minimum required data so we are unable to answer your question. Please provide: - your Homarr logs - your setup configuration (eg. docker compose, docker run, helm chart, screenshot, ...) - A detailed description of your problem or question with additional images where necessary - Your operating system - Version of Homarr (do not say latest! say 0.15.2, ...) Failure to comply with this will result in a permanent closure of your support request.
Manicraft1001
Manicraft10012mo ago
And please provide information about your deployment. Do you use postman as mentioned by @Taomyn ?
jamauai
jamauai2mo ago
I'm seeing similar errors in v1.43.1. Running on macOS. Attached my logs, docker compose, and screenshot of the board tile in question. Lmk anything else you need.
jamauai
jamauai5w ago
Debug logs throw the same errors.
Manicraft1001
Manicraft10015w ago
Please upload logs to pastebin And attach your yaml as a code block, not as a file
jamauai
jamauai5w ago
Pastebin
2025-11-05T20:34:00.125Z error: Failed to update Docker container s...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
jamauai
jamauai5w ago
version: '3.8'

services:
homarr:
image: ghcr.io/homarr-labs/homarr:latest
container_name: homarr
environment:
- PUID=1026
- PGID=100
- TZ=Pacific/Honolulu
- SECRET_ENCRYPTION_KEY=<removed>
ports:
- "7575:7575"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /volume1/docker/homarr/appdata:/appdata
restart: unless-stopped
version: '3.8'

services:
homarr:
image: ghcr.io/homarr-labs/homarr:latest
container_name: homarr
environment:
- PUID=1026
- PGID=100
- TZ=Pacific/Honolulu
- SECRET_ENCRYPTION_KEY=<removed>
ports:
- "7575:7575"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /volume1/docker/homarr/appdata:/appdata
restart: unless-stopped
jamauai
jamauai5w ago
Confirmed it works fine in v0.16.0. Same socket path, same PUID/PGID.
No description
Manicraft1001
Manicraft10015w ago
Running as a different user | Homarr documentation
By default the container is running with user root and group root.
Kartul
Kartul4w ago
Landed here due to the same Cannot read properties of undefined (reading 'online_cpus') error. Mine was caused by containers still running in docker I had removed and orphaned from compose stacks. (containers running -> edited compose files -> compose down compose up with less services) I checked what containers are returning null online_cpus
for id in $(docker ps -q); do
name=$(docker inspect --format '{{.Name}}' "$id" | cut -c2-)
cpus=$(curl -s --unix-socket /var/run/docker.sock \
"http://localhost/containers/$id/stats?stream=false" | jq -r '.cpu_stats.online_cpus')
if [ "$cpus" = "null" ]; then
echo "⚠️ $name ($id) → online_cpus = null"
else
echo "✅ $name ($id) → online_cpus = $cpus"
fi
done
for id in $(docker ps -q); do
name=$(docker inspect --format '{{.Name}}' "$id" | cut -c2-)
cpus=$(curl -s --unix-socket /var/run/docker.sock \
"http://localhost/containers/$id/stats?stream=false" | jq -r '.cpu_stats.online_cpus')
if [ "$cpus" = "null" ]; then
echo "⚠️ $name ($id) → online_cpus = null"
else
echo "✅ $name ($id) → online_cpus = $cpus"
fi
done
Noticed their all containers I didn't intend to run anymore. Made extra sure and killed them with this script
for id in $(docker ps -q); do
cpus=$(curl -s --unix-socket /var/run/docker.sock \
"http://localhost/containers/$id/stats?stream=false" | jq -r '.cpu_stats.online_cpus')
if [ "$cpus" = "null" ]; then
name=$(docker inspect --format '{{.Name}}' "$id" | cut -c2-)
echo "🛑 Removing $name ($id)..."
docker stop -t 10 "$id" && docker rm "$id"
fi
done
for id in $(docker ps -q); do
cpus=$(curl -s --unix-socket /var/run/docker.sock \
"http://localhost/containers/$id/stats?stream=false" | jq -r '.cpu_stats.online_cpus')
if [ "$cpus" = "null" ]; then
name=$(docker inspect --format '{{.Name}}' "$id" | cut -c2-)
echo "🛑 Removing $name ($id)..."
docker stop -t 10 "$id" && docker rm "$id"
fi
done
After this the Manage->tools->docker started working right away.

Did you find this page helpful?