Skip to content

使用docker 创建 无法注册 #554

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

Open
Hotyuo789 opened this issue Apr 25, 2025 · 0 comments
Open

使用docker 创建 无法注册 #554

Hotyuo789 opened this issue Apr 25, 2025 · 0 comments

Comments

@Hotyuo789
Copy link

从安装到注册目前遇到的问题有
1.安装后进入系统会提示5432 端口占用 这个需要调整.env 中默认的那个5432端口为其他的端口 。这个默认端口能否在演示标准.env中调整为其他非常用端口比如5212
2.调整后目前卡在这个注册的界面 一注册 就会提示 图中所示、
Register.tsx:44

   POST http://192.168.2.112:8068/auth/register net::ERR_CONNECTION_REFUSED

使用 docker compose logs 输出的结果 如下:
WARN[0000] The "kLq7" variable is not set. Defaulting to a blank string.
WARN[0000] The "kLq7" variable is not set. Defaulting to a blank string.
WARN[0000] The "kLq7" variable is not set. Defaulting to a blank string.
WARN[0000] The "kLq7" variable is not set. Defaulting to a blank string.
WARN[0000] /maxun/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
WARN[0000] The "kLq7" variable is not set. Defaulting to a blank string.
WARN[0000] The "kLq7" variable is not set. Defaulting to a blank string.
minio-1 | INFO: Formatting 1st pool, 1 set(s), 1 drives per set.
minio-1 | INFO: WARNING: Host local has more than 0 drives of set. A host failure will result in data becoming unavailable.
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-04-22T22-12-26Z (go1.24.2 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
postgres-1 | The files belonging to this database system will be owned by user "postgres".
postgres-1 | This user must also own the server process.
postgres-1 |
postgres-1 | The database cluster will be initialized with locale "en_US.utf8".
postgres-1 | The default database encoding has accordingly been set to "UTF8".
postgres-1 | The default text search configuration will be set to "english".
postgres-1 |
postgres-1 | Data page checksums are disabled.
postgres-1 |
postgres-1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres-1 | creating subdirectories ... ok
postgres-1 | selecting dynamic shared memory implementation ... posix
postgres-1 | selecting default max_connections ... 100
postgres-1 | selecting default shared_buffers ... 128MB
postgres-1 | selecting default time zone ... Etc/UTC
postgres-1 | creating configuration files ... ok
postgres-1 | running bootstrap script ... ok
postgres-1 | performing post-bootstrap initialization ... ok
postgres-1 | syncing data to disk ... ok
postgres-1 |
postgres-1 | initdb: warning: enabling "trust" authentication for local connections
postgres-1 | You can change this by editing pg_hba.conf or using the option -A, or
postgres-1 | --auth-local and --auth-host, the next time you run initdb.
postgres-1 |
postgres-1 | Success. You can now start the database server using:
postgres-1 |
postgres-1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres-1 |
postgres-1 | waiting for server to start....2025-04-24 23:28:32.285 UTC [57] LOG: starting PostgreSQL 13.20 (Debian 13.20-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres-1 | 2025-04-24 23:28:32.304 UTC [57] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2025-04-24 23:28:32.332 UTC [58] LOG: database system was shut down at 2025-04-24 23:28:22 UTC
postgres-1 | 2025-04-24 23:28:32.346 UTC [57] LOG: database system is ready to accept connections
postgres-1 | done
postgres-1 | server started
postgres-1 | CREATE DATABASE
postgres-1 |
postgres-1 |
postgres-1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres-1 |
postgres-1 | waiting for server to shut down....2025-04-24 23:28:35.923 UTC [57] LOG: received fast shutdown request
postgres-1 | 2025-04-24 23:28:35.971 UTC [57] LOG: aborting any active transactions
postgres-1 | 2025-04-24 23:28:35.973 UTC [57] LOG: background worker "logical replication launcher" (PID 64) exited with exit code 1
postgres-1 | 2025-04-24 23:28:35.975 UTC [59] LOG: shutting down
postgres-1 | 2025-04-24 23:28:36.055 UTC [57] LOG: database system is shut down
postgres-1 | done
postgres-1 | server stopped
postgres-1 |
postgres-1 | PostgreSQL init process complete; ready for start up.
postgres-1 |
postgres-1 | 2025-04-24 23:28:36.174 UTC [1] LOG: starting PostgreSQL 13.20 (Debian 13.20-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres-1 | 2025-04-24 23:28:36.174 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2025-04-24 23:28:36.174 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2025-04-24 23:28:36.205 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2025-04-24 23:28:36.224 UTC [72] LOG: database system was shut down at 2025-04-24 23:28:36 UTC
postgres-1 | 2025-04-24 23:28:36.241 UTC [1] LOG: database system is ready to accept connections
frontend-1 |
frontend-1 | > maxun@0.0.12 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.10 ready in 337 ms
frontend-1 |
frontend-1 | ➜ Local: http://localhost:5173/
frontend-1 | ➜ Network: http://172.19.0.5:5173/
backend-1 |
backend-1 | > maxun@0.0.12 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-04-24T23:28:41.576Z info: Starting PgBoss worker...
backend-1 | Worker is running...
backend-1 | Redis connection error: Error: getaddrinfo ENOTFOUND redis
backend-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
backend-1 | errno: -3007,
backend-1 | code: 'ENOTFOUND',
backend-1 | syscall: 'getaddrinfo',
backend-1 | hostname: 'redis'
backend-1 | }
backend-1 | Error: getaddrinfo ENOTFOUND redis
backend-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
backend-1 | errno: -3007,
backend-1 | code: 'ENOTFOUND',
backend-1 | syscall: 'getaddrinfo',
backend-1 | hostname: 'redis'
backend-1 | }
backend-1 | Error: getaddrinfo ENOTFOUND redis
backend-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
backend-1 | errno: -3007,
backend-1 | code: 'ENOTFOUND',
backend-1 | syscall: 'getaddrinfo',
backend-1 | hostname: 'redis'
backend-1 | }
backend-1 | Error: getaddrinfo ENOTFOUND redis
backend-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
backend-1 | errno: -3007,
backend-1 | code: 'ENOTFOUND',
backend-1 | syscall: 'getaddrinfo',
backend-1 | hostname: 'redis'
backend-1 | }
backend-1 | 2025-04-24T23:28:44.020Z error: Failed to start PgBoss workers: connect ECONNREFUSED 172.19.0.3:5212
backend-1 | [nodemon] app crashed - waiting for file changes before starting...

系统信息如下:
/maxun$ sudo uname -a
Linux h 6.6.38-trim #92 SMP PREEMPT_DYNAMIC Tue Mar 11 17:22:50 CST 2025 x86_64 GNU/Linux

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

1 participant