AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

ERROR [6/6] RUN npm run build

Open diaozheng1226 opened this issue 2 years ago • 12 comments

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'.

diaozheng1226 avatar May 02 '23 01:05 diaozheng1226

same error.did u solve it?

shuaiegg avatar May 04 '23 07:05 shuaiegg

same error.did anyone solve it?

meteorjim avatar May 05 '23 00:05 meteorjim

same error too.

NotBadPad avatar May 05 '23 01:05 NotBadPad

same error too

L1ttlebear avatar May 06 '23 12:05 L1ttlebear

how to resolve it ?

life-is-like-a-boat avatar May 09 '23 05:05 life-is-like-a-boat

同样的错误

23557661 avatar May 09 '23 17:05 23557661

问题解决了,npm问题,升级npm到最新版,不要使用agentgpt提供的脚本,如果不是新机的话要卸载掉原先装好的环境,npm,node都要最新。问题还没解决就是环境卸载不干净。

L1ttlebear avatar May 10 '23 04:05 L1ttlebear

问题解决了,npm问题,升级npm到最新版,不要使用agentgpt提供的脚本,如果不是新机的话要卸载掉原先装好的环境,npm,node都要最新。问题还没解决就是环境卸载不干净。 麻烦问下,不要使用agentgpt提供的脚本,如何安装呢?

life-is-like-a-boat avatar May 10 '23 05:05 life-is-like-a-boat

打包成docker再pull下来启动

问题解决了,npm问题,升级npm到最新版,不要使用agentgpt提供的脚本,如果不是新机的话要卸载掉原先装好的环境,npm,node都要最新。问题还没解决就是环境卸载不干净。 麻烦问下,不要使用agentgpt提供的脚本,如何安装呢?

L1ttlebear avatar May 11 '23 02:05 L1ttlebear

how to resolve it ?

linghongli avatar May 11 '23 07:05 linghongli

same error building with docker Screen Shot 2023-06-29 at 1 40 50 PM

thedreamakeem avatar Jun 29 '23 20:06 thedreamakeem

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!!

jasangill1 avatar Jul 22 '23 21:07 jasangill1