maxun icon indicating copy to clipboard operation
maxun copied to clipboard

docker运行没报错,但是注册不了

Open zimoxi opened this issue 4 months ago • 5 comments

postgres-1 | postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres-1 | postgres-1 | 2025-08-28 04:46:33.677 UTC [1] LOG: starting PostgreSQL 13.22 (Debian 13.22-1.pgdg13+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit minio-1 | MinIO Object Storage Server minio-1 | Copyright: 2015-2025 MinIO, Inc. minio-1 | License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html minio-1 | Version: RELEASE.2025-07-23T15-54-02Z (go1.24.5 linux/amd64) minio-1 | minio-1 | API: http://172.19.0.2:9000 http://127.0.0.1:9000 minio-1 | WebUI: http://172.19.0.2:9001 http://127.0.0.1:9001 minio-1 | minio-1 | Docs: https://docs.min.io frontend-1 | postgres-1 | 2025-08-28 04:46:33.677 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres-1 | 2025-08-28 04:46:33.677 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres-1 | 2025-08-28 04:46:34.043 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres-1 | 2025-08-28 04:46:34.486 UTC [26] LOG: database system was shut down at 2025-08-28 04:46:12 UTC postgres-1 | 2025-08-28 04:46:34.730 UTC [1] LOG: database system is ready to accept connections frontend-1 | > [email protected] client frontend-1 | > vite --host frontend-1 | frontend-1 | The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. frontend-1 | frontend-1 | VITE v5.4.11 ready in 402 ms frontend-1 | frontend-1 | ➜ Local: http://localhost:5173/ frontend-1 | ➜ Network: http://172.19.0.5:5173/ backend-1 | backend-1 | > [email protected] server backend-1 | > cross-env NODE_OPTIONS='--max-old-space-size=8000' nodemon server/src/server.ts backend-1 | backend-1 | [nodemon] 2.0.22 backend-1 | [nodemon] to restart at any time, enter rs backend-1 | [nodemon] watching path(s): . backend-1 | [nodemon] watching extensions: ts,json backend-1 | [nodemon] starting ts-node server/src/server.ts backend-1 | 2025-08-28T04:46:59.228Z info: Starting PgBoss worker... backend-1 | 2025-08-28T04:46:59.939Z info: Starting PgBoss scheduling worker... backend-1 | MinIO connected successfully. backend-1 | 2025-08-28T04:47:02.038Z info: PgBoss scheduling worker started successfully backend-1 | 2025-08-28T04:47:02.041Z info: PgBoss worker started successfully backend-1 | 2025-08-28T04:47:02.055Z info: Scheduled workflow workers registered successfully backend-1 | 2025-08-28T04:47:02.056Z info: Scheduling worker registered successfully backend-1 | 2025-08-28T04:47:02.066Z info: Run execution worker registered successfully backend-1 | Database connected successfully backend-1 | 2025-08-28T04:47:02.073Z info: Abort run worker registration system initialized backend-1 | 2025-08-28T04:47:02.074Z info: All recording workers registered successfully backend-1 | Database synced successfully! backend-1 | 2025-08-28T04:47:02.091Z info: Server listening on port 8080

zimoxi avatar Aug 28 '25 05:08 zimoxi

Image

zimoxi avatar Aug 28 '25 05:08 zimoxi

Image

zimoxi avatar Aug 28 '25 05:08 zimoxi

Hey @zimoxi, based on the docker logs everything seems to be functioning correctly. Could you please share the browser console logs?

RohitR311 avatar Aug 28 '25 09:08 RohitR311

Image

BoilingNine avatar Aug 29 '25 08:08 BoilingNine

Do not access the frontend using 127.0.0.1:5173; instead, use localhost:5173 to access it. This way, you will not encounter this CORS issue.

BoilingNine avatar Aug 29 '25 08:08 BoilingNine