tianji icon indicating copy to clipboard operation
tianji copied to clipboard

Docker-monitoring not working

Open 7sedam7 opened this issue 1 year ago • 5 comments

i'm trying to use: https://tianji.dev/docs/install/docker-monitoring

I have podman, and have setup my volume this way: -v /run/user/"$(id -u)/podman/podman.sock":/var/run/docker.sock

If i go into the container I can see:

/app/tianji # ls -la /var/run/docker.sock
srw-------    1 root     root             0 Sep 17 17:51 /var/run/docker.sock
/app/tianji # test -r /var/run/docker.sock && echo "readable" || echo "not readable"
readable
/app/tianji #

and if i try: curl --unix-socket /var/run/docker.sock http://localhost/containers/json i can see it returns all my containers, however, in the Tianji UI i don't see anything. I just ran a new Tianji, did not setup any websites etc, but i thought i will be able to see my containers metrics somewhere (under servers)...

There are no errors (nor anything about server monitoring)...

Can somebody please help 🙇

7sedam7 avatar Sep 30 '25 17:09 7sedam7

Image

can you check this badge is green? you can found it in tianji dashboard left bottom corner

moonrailgun avatar Oct 04 '25 11:10 moonrailgun

yes it is green:

Image

7sedam7 avatar Oct 06 '25 07:10 7sedam7

weird, normally its should work like below

Image

but actually, i download podman and try to use it, its can not read everywell. i dont know much about podman.

moonrailgun avatar Oct 09 '25 15:10 moonrailgun

the socket should be same for podman and docker, it works fine in other tools like: https://github.com/henrygd/beszel

7sedam7 avatar Oct 10 '25 08:10 7sedam7

And there are no errors anywhere, only at the start of the container, but then no any kind of errors for weeks: (there is mention of Socket, but there is mention of many other things, so not sure what's up with those errors)

2025/09/30 17:35:32 Start reporting...
2025/09/30 17:35:32 Mode: http
2025/09/30 17:35:32 Version: 1.0.0
2025-09-30 17:35:36.058 - info: [TaskQueue] Created singleton queue: openai-token-calc
2025-09-30 17:35:37.032 - info: Producer bound to: tcp://127.0.0.1:12351
2025-09-30 17:35:37.320 - info: [WebSocket] No Redis URL configured, using in-memory adapter
2025-09-30 17:35:37.323 - info: Daily job will start at: 2025-10-01T02:00:00.000Z
2025-09-30 17:35:37.324 - info: Weekly job will start at: 2025-10-06T02:00:00.000Z
2025-09-30 17:35:37.324 - info: Monthly job will start at: 2025-10-01T02:00:00.000Z
2025-09-30 17:35:37.326 - info: Worker connected to: tcp://127.0.0.1:12351
2025-09-30 17:35:37.329 - info: UDP Server is listening: 0.0.0.0:12345
2025-09-30 17:35:37.329 - info: Server is listening on port 12345...
2025-09-30 17:35:37.330 - info: Openapi UI: http://127.0.0.1:12345/open/_ui
2025-09-30 17:35:37.330 - info: Website: http://127.0.0.1:12345
2025-09-30 17:35:37.466 - info: Loaded 0 custom domain for status page
2025-09-30 17:35:37.580 - info: Start monitor LaSearch Web(cmg6q5suw000171bnlywgcu0x)
2025-09-30 17:35:37.583 - info: Start monitor LaSearch API(cmg6q7fco000771bnu51pnjf0)
2025-09-30 17:35:37.584 - info: All monitor has been begin.
POST /serverStatus/report 200 7 - 14.492 ms
[auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror
[auth][cause]: Error: no matching decryption secret
    at jwtDecrypt.clockTolerance (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/jwt.js:76:15)
    at async flattenedDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwe/flattened/decrypt.js:92:15)
    at async compactDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwe/compact/decrypt.js:15:23)
    at async jwtDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwt/decrypt.js:5:23)
    at async Object.decode (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/jwt.js:67:25)
    at async Module.session (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/actions/session.js:17:29)
    at async AuthInternal (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/index.js:35:24)
    at async Auth (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/index.js:109:34)
    at async getAuthSession (file:///app/tianji/src/server/dist/src/server/model/auth.js:128:22)
    at async Array.<anonymous> (file:///app/tianji/src/server/dist/src/server/ws/index.js:81:33)
[auth][details]: {}
2025-09-30 17:35:42.126 - error: Can not get info, auth session raw: {
  raw: 'null',
  protocol: 'http:',
  headers: {
    host: '<reducted for privacy>',
    'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36',
    'accept-encoding': 'gzip, br',
    'accept-language': 'en',
    'cache-control': 'no-cache',
    'cdn-loop': 'cloudflare; loops=1',
    'cf-connecting-ip': '78.28.69.79',
    'cf-ipcountry': 'EE',
    'cf-ray': '98757a6f1895de91-ARN',
    'cf-visitor': '{"scheme":"https"}',
    'cf-warp-tag-id': 'cf507490-5d7b-4376-a491-ff8262098a57',
    connection: 'Upgrade',
    cookie: '<reducted for privacy>',
    origin: 'https://<reducted for privacy>',
    pragma: 'no-cache',
    'sec-websocket-extensions': 'permessage-deflate; client_max_window_bits',
    'sec-websocket-key': 'YVe0sgup/eiezd7R8c0x5A==',
    'sec-websocket-version': '13',
    upgrade: 'websocket',
    'x-forwarded-for': '78.28.69.79',
    'x-forwarded-proto': 'https'
  }
}
[Socket] Authenticated throw error: Error: Can not get user info.
    at Array.<anonymous> (file:///app/tianji/src/server/dist/src/server/ws/index.js:83:27)
POST /serverStatus/report 200 7 - 9.663 ms
POST /serverStatus/report 200 7 - 8.251 ms
POST /serverStatus/report 200 7 - 6.068 ms
POST /serverStatus/report 200 7 - 6.004 ms
POST /serverStatus/report 200 7 - 9.040 ms
GET /website/cmg6qdy0d000v71bnt3fmijw2 304 - - 10.977 ms
GET /locales/en/translation.json 304 - - 5.795 ms
[auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror
[auth][cause]: Error: no matching decryption secret
    at jwtDecrypt.clockTolerance (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/jwt.js:76:15)
    at async flattenedDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwe/flattened/decrypt.js:92:15)
    at async compactDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwe/compact/decrypt.js:15:23)
    at async jwtDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwt/decrypt.js:5:23)
    at async Object.decode (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/jwt.js:67:25)
    at async Module.session (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/actions/session.js:17:29)
    at async AuthInternal (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/index.js:35:24)
    at async Auth (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/index.js:109:34)
    at async getSession (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@auth/express/index.js:157:22)
    at async file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:80:21
[auth][details]: {}
Error: user.info TRPCError: No Token or Session
    at file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:92:11
    at async callRecursive (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
    at async file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:32:21
    at async callRecursive (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
    at async procedure (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:176:24)
    at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:249:30
    at async Promise.all (index 0)
    at async resolveResponse (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:488:26)
    at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs:70:34 {
  cause: undefined,
  code: 'UNAUTHORIZED'
}
GET /trpc/user.info?batch=1&input=%7B%7D 401 - - 28.138 ms
GET /trpc/global.config?batch=1&input=%7B%7D 200 - - 33.800 ms
GET /api/auth/providers 200 - - 12.736 ms
GET /api/auth/csrf 200 - - 18.731 ms
POST /api/auth/signin/custom 200 - - 161.574 ms
[auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror
[auth][cause]: Error: no matching decryption secret
    at jwtDecrypt.clockTolerance (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/jwt.js:76:15)
    at async flattenedDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwe/flattened/decrypt.js:92:15)
    at async compactDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwe/compact/decrypt.js:15:23)
    at async jwtDecrypt (file:///app/tianji/node_modules/.pnpm/[email protected]/node_modules/jose/dist/node/esm/jwt/decrypt.js:5:23)
    at async Object.decode (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/jwt.js:67:25)
    at async Module.session (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/actions/session.js:17:29)
    at async AuthInternal (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/index.js:35:24)
    at async Auth (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/index.js:109:34)
    at async getSession (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@auth/express/index.js:157:22)
    at async file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:80:21
[auth][details]: {}
Error: user.info TRPCError: No Token or Session
    at file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:92:11
    at async callRecursive (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
    at async file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:32:21
    at async callRecursive (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
    at async procedure (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:176:24)
    at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:249:30
    at async Promise.all (index 0)
    at async resolveResponse (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:488:26)
    at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs:70:34 {
  cause: undefined,
  code: 'UNAUTHORIZED'
}

7sedam7 avatar Oct 13 '25 08:10 7sedam7