arc53 / DocsGPT

Chatbot for documentation, that allows you to chat with your data. Privately deployable, provides AI knowledge sharing and integrates knowledge into your AI workflow
https://app.docsgpt.cloud/
MIT License
14.85k stars 1.56k forks source link

🐛 Bug Report: #1009

Open datasigns-in opened 3 months ago

datasigns-in commented 3 months ago

📜 Description

npm notice npm notice New major version of npm available! 9.8.1 -> 10.8.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1 npm notice Run npm install -g npm@10.8.1 to update! npm notice npm ERR! code 1 npm ERR! path /app/node_modules/esbuild npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! node:internal/errors:496 npm ERR! ErrorCaptureStackTrace(err); npm ERR! ^ npm ERR! npm ERR! <ref 1> Error: spawnSync /app/node_modules/esbuild/bin/esbuild ETXTBSY npm ERR! at Object.spawnSync (node:internal/child_process:1124:20) npm ERR! at spawnSync (node:child_process:876:24) npm ERR! at Object.execFileSync (node:child_process:919:15) npm ERR! at validateBinaryVersion (/app/node_modules/esbuild/install.js:99:28) npm ERR! at /app/node_modules/esbuild/install.js:286:5 { npm ERR! errno: -26, npm ERR! code: 'ETXTBSY', npm ERR! syscall: 'spawnSync /app/node_modules/esbuild/bin/esbuild', npm ERR! path: '/app/node_modules/esbuild/bin/esbuild', npm ERR! spawnargs: [ '--version' ], npm ERR! error: [Circular 1], npm ERR! status: null, npm ERR! signal: null, npm ERR! output: null, npm ERR! pid: 0, npm ERR! stdout: null, npm ERR! stderr: null npm ERR! } npm ERR! npm ERR! Node.js v20.6.1

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-06-24T18_48_52_181Z-debug-0.log ERROR: Service 'frontend' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

👟 Reproduction steps

self hosting - tried to do that and encountered above error

👍 Expected behavior

front end should have instlaled after apt install npm

👎 Actual Behavior with Screenshots

npm notice npm notice New major version of npm available! 9.8.1 -> 10.8.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1 npm notice Run npm install -g npm@10.8.1 to update! npm notice npm ERR! code 1 npm ERR! path /app/node_modules/esbuild npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! node:internal/errors:496 npm ERR! ErrorCaptureStackTrace(err); npm ERR! ^ npm ERR! npm ERR! <ref 1> Error: spawnSync /app/node_modules/esbuild/bin/esbuild ETXTBSY npm ERR! at Object.spawnSync (node:internal/child_process:1124:20) npm ERR! at spawnSync (node:child_process:876:24) npm ERR! at Object.execFileSync (node:child_process:919:15) npm ERR! at validateBinaryVersion (/app/node_modules/esbuild/install.js:99:28) npm ERR! at /app/node_modules/esbuild/install.js:286:5 { npm ERR! errno: -26, npm ERR! code: 'ETXTBSY', npm ERR! syscall: 'spawnSync /app/node_modules/esbuild/bin/esbuild', npm ERR! path: '/app/node_modules/esbuild/bin/esbuild', npm ERR! spawnargs: [ '--version' ], npm ERR! error: [Circular 1], npm ERR! status: null, npm ERR! signal: null, npm ERR! output: null, npm ERR! pid: 0, npm ERR! stdout: null, npm ERR! stderr: null npm ERR! } npm ERR! npm ERR! Node.js v20.6.1

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-06-24T18_48_52_181Z-debug-0.log ERROR: Service 'frontend' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

💻 Operating system

Linux

What browsers are you seeing the problem on?

No response

🤖 What development environment are you experiencing this bug on?

Docker

🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)

yes

📃 Provide any additional context for the Bug.

No response

📖 Relevant log output

No response

👀 Have you spent some time to check if this bug has been raised before?

🔗 Are you willing to submit PR?

None

🧑‍⚖️ Code of Conduct

dartpain commented 3 months ago

Hi, I have a few questions to clarify:

  1. Are you launching a docker container? if so are you using frontend/Dockerfile?
  2. Did you try using docker-compose or .setup.sh?
  3. On which command are you getting the error, npm install?