ERROR [6/6] RUN npm run build
Git clone to the server after cd AgentGPT ./setup.sh --docker docker deployment error
[6/6] RUN npm run build:
#0 0.759
#0 0.759 > [email protected] build
#0 0.759 > next build --no-lint
#0 0.759
#0 0.823 warn - You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env #0 1.140 warn - Linting is disabled #0 1.140 info - Loaded env from /app/.env #0 1.452 Attention: Next.js now collects completely anonymous telemetry regarding usage. #0 1.452 This information is used to shape Next.js' roadmap and prioritize features. #0 1.452 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: #0 1.452 https://nextjs.org/telemetry #0 1.452 #0 1.569 info - Checking validity of types... #0 14.81 info - Creating an optimized production build... #0 30.02 error - No Sentry auth token configured. Source maps will not be uploaded. #0 30.02 You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/ #0 30.02 After generating a Sentry auth token, set it via the SENTRY_AUTH_TOKEN environment variable during the build. #0 30.02 #0 226.6 npm ERR! path /app #0 226.6 npm ERR! command failed #0 226.6 npm ERR! signal SIGKILL #0 226.6 npm ERR! command sh -c next build --no-lint #0 226.6 #0 226.6 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-05-02T01_52_00_715Z-debug-0.log
Dockerfile:21
19 |
20 | # Build the Next.js app
21 | >>> RUN npm run build
22 |
23 | # Expose the port the app will run on
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 Unable to find image 'agentgpt:latest' locally docker: Error response from daemon: pull access denied for agentgpt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.
same error.did u solve it?
same error.did anyone solve it?
same error too.
same error too
how to resolve it ?
同样的错误
问题解决了,npm问题,升级npm到最新版,不要使用agentgpt提供的脚本,如果不是新机的话要卸载掉原先装好的环境,npm,node都要最新。问题还没解决就是环境卸载不干净。
问题解决了,npm问题,升级npm到最新版,不要使用agentgpt提供的脚本,如果不是新机的话要卸载掉原先装好的环境,npm,node都要最新。问题还没解决就是环境卸载不干净。 麻烦问下,不要使用agentgpt提供的脚本,如何安装呢?
打包成docker再pull下来启动
问题解决了,npm问题,升级npm到最新版,不要使用agentgpt提供的脚本,如果不是新机的话要卸载掉原先装好的环境,npm,node都要最新。问题还没解决就是环境卸载不干净。 麻烦问下,不要使用agentgpt提供的脚本,如何安装呢?
how to resolve it ?
same error building with docker
Hello @NotBadPad @linghongli @meteorjim @life-is-like-a-boat @23557661 @maigouqi Any chance you have retried the setup script? We have updated the script which maybe causing these problems. Also I noticed you were running dockker-- after? Could you try running the script without that!!