I’m setting up this thing called Homepage
I’m following these documentations to setup a form of Docker statistics view:
However, my Jellyfin docker container only shows “API Error”
Docker logs:
[2024-05-01T03:18:59.940Z] error: <dockerStatusService> TypeError: Cannot read properties of null (reading 'conn')
at handler (/app/.next/server/pages/api/docker/status/[...service].js:89:86)
at Object.apiResolver (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/api-utils/node.js:366:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NextNodeServer.runApi (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:481:9)
at async Object.fn (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:741:37)
at async Router.execute (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/router.js:252:36)
at async NextNodeServer.run (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/base-server.js:365:29)
at async NextNodeServer.handleRequest (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/base-server.js:303:20)
at async Server.<anonymous> (/app/server.js:19:5)
[2024-05-01T03:18:59.941Z] error: <dockerStatsService> TypeError: Cannot read properties of null (reading 'conn')
at handler (/app/.next/server/pages/api/docker/stats/[...service].js:89:86)
at Object.apiResolver (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/api-utils/node.js:366:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NextNodeServer.runApi (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:481:9)
at async Object.fn (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/next-server.js:741:37)
at async Router.execute (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/router.js:252:36)
at async NextNodeServer.run (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/base-server.js:365:29)
at async NextNodeServer.handleRequest (/app/node_modules/.pnpm/next@12.3.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/base-server.js:303:20)
at async Server.<anonymous> (/app/server.js:19:5)
[2024-05-01T03:18:59.969Z] error: <service-helpers> Error getting services from Docker server 'my-docker': Error: connect ECONNREFUSED 127.0.0.1:2375
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 2375
}
docker-compose.yml
version: "3.3"
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
ports:
- 3000:3000
volumes:
- /home/docker/homepage/config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
dockerproxy:
image: ghcr.io/tecnativa/docker-socket-proxy:latest
container_name: dockerproxy
environment:
- CONTAINERS=1 # Allow access to viewing containers
- SERVICES=1 # Allow access to viewing services (necessary when using Docker Swarm)
- TASKS=1 # Allow access to viewing tasks (necessary when using Docker Swarm)
- POST=0 # Disallow any POST operations (effectively read-only)
ports:
- 127.0.0.1:2375:2375
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
restart: unless-stopped
config/docker.yaml
---
# For configuration options and examples, please see:
# https://gethomepage.dev/latest/configs/docker/
my-docker:
host: 127.0.0.1
port: 2375
# my-docker:
# socket: /var/run/docker.sock
config/services.yaml
- Media:
- Jellyfin:
href: http://192.168.100.14:8096/
server: 192.168.100.14
container: jellyfin
siteMonitor: http://192.168.100.14:8096
showStats: true
widget:
type: jellyfin
url: http://192.168.100.14:8096
enableBlocks: true
enableNowPlaying: false
key: xxxxxxxxxxxxxxxxxx
$ snap info docker
...
installed: 24.0.5 (2915) 136MB -
$ snap connections docker
Interface Plug Slot Notes
content - docker:docker-executables -
content - docker:docker-registry-certificates -
content docker:graphics-core22 - -
docker docker:docker-cli docker:docker-daemon -
docker-support docker:privileged :docker-support -
docker-support docker:support :docker-support -
firewall-control docker:firewall-control :firewall-control -
home docker:home :home -
log-observe docker:log-observe - -
network docker:network :network -
network-bind docker:network-bind :network-bind -
network-control docker:network-control :network-control -
opengl docker:opengl :opengl -
removable-media docker:removable-media - -
Any suggestions?