Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new docker compos up - admin login doesn't work #150

Open
Philippe-AMIOT opened this issue Jan 23, 2025 · 3 comments
Open

new docker compos up - admin login doesn't work #150

Philippe-AMIOT opened this issue Jan 23, 2025 · 3 comments

Comments

@Philippe-AMIOT
Copy link

Philippe-AMIOT commented Jan 23, 2025

Hi

I did

wget https://raw.githubusercontent.com/msgbyte/tianji/master/docker-compose.yml

then

docker compse up -d

but I can't login with admin/admin...

Thanks for your help

@moonrailgun
Copy link
Contributor

I check and everything work fine. did you mind provide more context about it? for example logs or other things

@Philippe-AMIOT
Copy link
Author

Hi Moonrailgun

of course:

Here are the logs of "docker compose up"

docker compose up
WARN[0000] /home/philippe/docker/_monitoring/tianji/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 29/29
✔ tianji Pulled 62.5s
✔ a7cd7d9a2144 Pull complete 2.4s
✔ b508a0a802cc Pull complete 6.3s
✔ 24ccc27c613d Pull complete 6.4s
✔ c53026b414f8 Pull complete 6.4s
✔ a497ca77528c Pull complete 7.6s
✔ 1cd1ee01451a Pull complete 20.6s
✔ 36ee0c0da094 Pull complete 37.9s
✔ a8552ae5a28b Pull complete 38.9s
✔ f68742a72270 Pull complete 39.0s
✔ e36ab6111e5f Pull complete 39.2s
✔ 51b8ee1016b3 Pull complete 56.4s
✔ 5e6beea2891c Pull complete 56.5s
✔ f81d4c5b2908 Pull complete 57.1s
✔ 33d9fbb45339 Pull complete 57.2s
✔ ad0308c3d9c0 Pull complete 57.3s
✔ d028de409958 Pull complete 57.9s
✔ 413005b0778c Pull complete 58.0s
✔ 6f546c44d986 Pull complete 58.0s
✔ 98f3d94f7c5e Pull complete 58.1s
✔ postgres Pulled 46.4s
✔ 96526aa774ef Pull complete 2.8s
✔ 86da063037d7 Pull complete 2.9s
✔ a93c97be5f7f Pull complete 2.9s
✔ 9737661d941c Pull complete 24.1s
✔ eb9232875c66 Pull complete 24.2s
✔ f11c93c2122d Pull complete 24.4s
✔ be31ef1a5d20 Pull complete 41.1s
✔ b09d59c238cc Pull complete 41.9s
[+] Running 3/3
✔ Network tianji_default Created 0.2s
✔ Container tianji-postgres-1 Created 0.9s
✔ Container tianji-tianji-1 Created 0.2s
Attaching to postgres-1, tianji-1
postgres-1 |
postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-1 |
postgres-1 | 2025-02-04 04:43:06.501 UTC [1] LOG: starting PostgreSQL 15.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
postgres-1 | 2025-02-04 04:43:06.501 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2025-02-04 04:43:06.501 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2025-02-04 04:43:06.520 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2025-02-04 04:43:06.545 UTC [24] LOG: database system was shut down at 2025-01-29 12:31:30 UTC
postgres-1 | 2025-02-04 04:43:06.567 UTC [1] LOG: database system is ready to accept connections
tianji-1 |
tianji-1 | > [email protected] start:docker /app/tianji
tianji-1 | > pnpm start:docker:db && pnpm start
tianji-1 |
tianji-1 |
tianji-1 | > [email protected] start:docker:db /app/tianji
tianji-1 | > cd src/server && pnpm db:migrate:apply && pnpm db:migrate:script
tianji-1 |
tianji-1 |
tianji-1 | > @tianji/server@ db:migrate:apply /app/tianji/src/server
tianji-1 | > prisma migrate deploy
tianji-1 |
tianji-1 | Prisma schema loaded from prisma/schema.prisma
tianji-1 | Datasource "db": PostgreSQL database "tianji", schema "public" at "postgres:5432"
postgres-1 | 2025-02-04 04:43:09.249 UTC [28] LOG: could not receive data from client: Connection reset by peer
tianji-1 |
tianji-1 | 44 migrations found in prisma/migrations
tianji-1 |
tianji-1 | Applying migration 20250130110404_add_key_in_sessiondate
tianji-1 |
tianji-1 | The following migration(s) have been applied:
tianji-1 |
tianji-1 | migrations/
tianji-1 | └─ 20250130110404_add_key_in_sessiondate/
tianji-1 | └─ migration.sql
tianji-1 |
tianji-1 | All migrations have been successfully applied.
tianji-1 |
tianji-1 | > @tianji/server@ db:migrate:script /app/tianji/src/server
tianji-1 | > tsx ./prisma/scripts/populate-ip-location.ts
tianji-1 |
tianji-1 | [populate-ip-location] start scan
tianji-1 | [populate-ip-location] find 0 records wait to parse location
tianji-1 | [populate-ip-location] find 0 records wait to update
tianji-1 | [populate-ip-location] end
tianji-1 |
tianji-1 | > [email protected] start /app/tianji
tianji-1 | > cd src/server && cross-env NODE_ENV=production node ./dist/src/server/main.js
tianji-1 |
tianji-1 | 2025-02-04 04:43:13.246 - info: Producer bound to: tcp://127.0.0.1:12351
tianji-1 | 2025-02-04 04:43:13.324 - info: Daily job will start at: 2025-02-05T02:00:00.000Z
tianji-1 | 2025-02-04 04:43:13.325 - info: Weekly job will start at: 2025-02-10T02:00:00.000Z
tianji-1 | 2025-02-04 04:43:13.325 - info: Monthly job will start at: 2025-03-01T02:00:00.000Z
tianji-1 | 2025-02-04 04:43:13.326 - info: Worker connected to: tcp://127.0.0.1:12351
tianji-1 | (node:192) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
tianji-1 | (Use node --trace-warnings ... to show where the warning was created)
tianji-1 | 2025-02-04 04:43:13.329 - info: UDP Server is listening: 0.0.0.0:12345
tianji-1 | 2025-02-04 04:43:13.330 - info: Server is listening on port 12345...
tianji-1 | 2025-02-04 04:43:13.330 - info: Openapi UI: http://127.0.0.1:12345/open/_ui
tianji-1 | 2025-02-04 04:43:13.331 - info: Website: http://127.0.0.1:12345
tianji-1 | 2025-02-04 04:43:13.398 - info: Loaded 0 custom domain for status page
tianji-1 | 2025-02-04 04:43:13.521 - info: All monitor has been begin.
tianji-1 | GET /website/overview 200 479 - 17.335 ms
tianji-1 | GET /assets/index-Q0gaZMhL.css 200 - - 1.705 ms
tianji-1 | GET /assets/index-2J5CUXCH.js 200 - - 2.085 ms
tianji-1 | GET /locales/en/translation.json 200 - - 3.668 ms
tianji-1 | Error: user.info TRPCError: No Token or Session
tianji-1 | at file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:90:11
tianji-1 | at async callRecursive (file:///app/tianji/node_modules/.pnpm/@trpc[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
tianji-1 | at async file:///app/tianji/src/server/dist/src/server/trpc/trpc.js:30:21
tianji-1 | at async callRecursive (file:///app/tianji/node_modules/.pnpm/@trpc[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:143:24)
tianji-1 | at async procedure (file:///app/tianji/node_modules/.pnpm/@trpc[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:176:24)
tianji-1 | at async file:///app/tianji/node_modules/.pnpm/@trpc[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:249:30
tianji-1 | at async Promise.all (index 0)
tianji-1 | at async resolveResponse (file:///app/tianji/node_modules/.pnpm/@trpc[email protected][email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:488:26)
tianji-1 | at async file:///app/tianji/node_modules/.pnpm/@trpc[email protected][email protected]/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs:70:34 {
tianji-1 | cause: undefined,
tianji-1 | code: 'UNAUTHORIZED'
tianji-1 | }
tianji-1 | GET /trpc/user.info?batch=1&input=%7B%7D 401 - - 43.183 ms
tianji-1 | GET /trpc/global.config?batch=1&input=%7B%7D 200 - - 2.434 ms
tianji-1 | GET /icon.svg 200 - - 12.076 ms
tianji-1 | GET /icon.svg 304 - - 3.689 ms
tianji-1 | GET /api/auth/providers 200 - - 5.597 ms
tianji-1 | GET /api/auth/csrf 200 - - 2.627 ms
tianji-1 | [auth][error] CallbackRouteError: Read more at https://errors.authjs.dev#callbackrouteerror
tianji-1 | [auth][cause]: Error: Password incorrected
tianji-1 | at authUser (file:///app/tianji/src/server/dist/src/server/model/user.js:179:15)
tianji-1 | at runNextTicks (node:internal/process/task_queues:60:5)
tianji-1 | at process.processImmediate (node:internal/timers:454:9)
tianji-1 | at async Object.authorize (file:///app/tianji/src/server/dist/src/server/model/auth.js:26:30)
tianji-1 | at async Module.callback (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/actions/callback/index.js:215:39)
tianji-1 | at async AuthInternal (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/lib/index.js:54:24)
tianji-1 | at async Auth (file:///app/tianji/node_modules/.pnpm/@[email protected][email protected]/node_modules/@auth/core/index.js:109:34)
tianji-1 | at async file:///app/tianji/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@auth/express/index.js:141:45
tianji-1 | [auth][details]: {
tianji-1 | "provider": "account"
tianji-1 | }
tianji-1 | POST /api/auth/callback/account 200 - - 127.810 ms

I'm on Ubuntu 22.04.5 LTS

Phil

@DasCanard
Copy link

same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants