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

部署失败☹️ #167

Open
guyingd opened this issue Aug 12, 2024 · 2 comments
Open

部署失败☹️ #167

guyingd opened this issue Aug 12, 2024 · 2 comments

Comments

@guyingd
Copy link

guyingd commented Aug 12, 2024

root@iZ8vbhhj5p8mmyisajaz1yZ:/home/aspoem# docker compose up WARN[0000] /home/aspoem/docker-compose.yaml: the attribute versionis obsolete, it will be ignored, please remove it to avoid potential confusion [+] Building 189.4s (10/14) docker:default => [aspoem internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 668B 0.0s => [aspoem internal] load metadata for docker.io/library/node:20-alpine3.16 4.1s => [aspoem internal] load .dockerignore 0.0s => => transferring context: 58B 0.0s => [aspoem base 1/4] FROM docker.io/library/node:20-alpine3.16@sha256:f9b54b46639a9017b39eba677cf44c8cb96760ca69dadcc1d4cbd1daea753225 0.0s => [aspoem internal] load build context 0.1s => => transferring context: 35.63kB 0.1s => CACHED [aspoem base 2/4] RUN corepack enable 0.0s => [aspoem base 3/4] COPY . /app 0.9s => [aspoem base 4/4] WORKDIR /app 0.0s => ERROR [aspoem prod-deps 1/2] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile --ignore-scripts 184.1s => CANCELED [aspoem build 1/2] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile 184.1s ------ > [aspoem prod-deps 1/2] RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile --ignore-scripts: 184.0 Internal Error: Error when performing the request 184.0 at ClientRequest.<anonymous> (/usr/local/lib/node_modules/corepack/dist/corepack.js:43953:14) 184.0 at ClientRequest.emit (node:events:511:28) 184.0 at TLSSocket.socketErrorListener (node:_http_client:495:9) 184.0 at TLSSocket.emit (node:events:511:28) 184.0 at emitErrorNT (node:internal/streams/destroy:151:8) 184.0 at emitErrorCloseNT (node:internal/streams/destroy:116:3) 184.0 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) ------ failed to solve: process "/bin/sh -c pnpm install --prod --frozen-lockfile --ignore-scripts" did not complete successfully: exit code: 1

@liaotingyao
Copy link

一样。。你解决了没

@liguobao
Copy link

部署没有问题的,构建不了基本都是网络问题。

docker-compose up -d;

启动之后直接去访问 http://localhost:3000/create/poem?token=secret

添加诗词即可。

截屏2024-10-18 15 28 23

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