Fail to build app using docker: Could not find a production build in the '.next' directory
Description
Hi maintainers. I've started the deployment by following the document and pretty sure I am using python 3.10.8 satisfying the requirement.
git clone https://github.com/Josh-XT/AGiXT
cd AGiXT
python start.py
But then the agixt-agixtinteractive-1 fails to run by keeping throwing the error of "Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id".
Could you guide me how to solve this issue? Thanks!
Operating System
- [ ] Linux
- [ ] Windows
- [x] MacOS
Acknowledgements
- [x] I am NOT trying to use localhost for providers running outside of the docker container.
- [x] I am NOT trying to run AGiXT outside of docker, the only supported method to run it.
- [x] Python 3.10.X is installed and the version in use on the host machine.
- [x] The latest version of Docker is installed and running on the host machine.
- [x] I am using the latest stable version of AGiXT.
- [x] I have provided enough information for the maintainers to reproduce and diagnose the issue.
- [x] I have searched the existing issues to make sure this bug has not been reported yet.
Hello! Try this:
docker compose pull
Then you can try running it again.
Sorry I tried docker compose pull still the same issue. I am running it on the Macbook M2max chip
2025-03-17 11:46:23 24 packages are looking for funding
2025-03-17 11:46:23 run `npm fund` for details
2025-03-17 11:46:21 npm error dest /app/node_modules/.sha.js-X3PMf0DE
2025-03-17 11:46:21 npm error errno -5
2025-03-17 11:46:21 npm error EIO: i/o error, rename '/app/node_modules/sha.js' -> '/app/node_modules/.sha.js-X3PMf0DE'
2025-03-17 11:46:21 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-17T15_46_18_003Z-debug-0.log
2025-03-17 11:46:21 sh: next: not found
2025-03-17 11:46:21 Cloning into '/app/themes'...
2025-03-17 11:46:28 npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2025-03-17 11:46:32 npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
2025-03-17 11:46:32 npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
That appears to be a very old container. Can you try to pull the latest from the AGiXT main repo and launch again?