Open valentt opened 7 months ago
(base) root ➜ /workspaces/AgentGPT (main) $ ./setup.sh
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'agentgpt-cli@1.0.0',
npm warn EBADENGINE required: { node: '>=18.0.0 <19.0.0' },
npm warn EBADENGINE current: { node: 'v22.7.0', npm: '10.8.2' }
npm warn EBADENGINE }
up to date, audited 159 packages in 779ms
37 packages are looking for funding
run `npm fund` for details
1 low severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
> agentgpt-cli@1.0.0 start
> node src/index.js
█████╗ ██████╗ ███████╗███╗ ██╗████████╗ ██████╗ ██████╗ ████████╗
██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝██╔════╝ ██╔══██╗╚══██╔══╝
███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║ ██║ ███╗██████╔╝ ██║
██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ ██║ ██║██╔═══╝ ██║
██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║ ╚██████╔╝██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
Welcome to the AgentGPT CLI! This CLI will generate the required .env files.
Copies of the generated envs will be created in `./next/.env` and `./platform/.env`.
Existing ./next/env file found. Validating...
? How will you be running AgentGPT? 🐋 Docker-compose (Recommended)
Building frontend
[+] Building 1.2s (15/15) FINISHED docker:default
=> [internal] load .dockerignore 0.2s
=> => transferring context: 105B 0.0s
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 880B 0.0s
=> [internal] load metadata for docker.io/library/node:19-alpine 0.3s
=> [ 1/10] FROM docker.io/library/node:19-alpine@sha256:8ec543d4795e2e85af924a24f8acb039792ae9fe8a42ad5b4bf4c277ab34b62e 0.0s
=> [internal] load build context 0.5s
=> => transferring context: 50.90MB 0.4s
=> CACHED [ 2/10] RUN apk add --no-cache netcat-openbsd 0.0s
=> CACHED [ 3/10] WORKDIR /next 0.0s
=> CACHED [ 4/10] COPY package*.json ./ 0.0s
=> CACHED [ 5/10] RUN npm ci 0.0s
=> CACHED [ 6/10] COPY wait-for-db.sh /usr/local/bin/wait-for-db.sh 0.0s
=> CACHED [ 7/10] RUN chmod +x /usr/local/bin/wait-for-db.sh 0.0s
=> CACHED [ 8/10] COPY . . 0.0s
=> CACHED [ 9/10] COPY entrypoint.sh / 0.0s
=> CACHED [10/10] RUN apk add --no-cache dos2unix netcat-openbsd && dos2unix /entrypoint.sh 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:2e3d5d4a3a4dad3b137d8f1ed66d6408384c5af5520e022dbca4dc35865f8204 0.0s
=> => naming to docker.io/library/agentgpt_frontend 0.0s
Building agentgpt_db
[+] Building 2.8s (7/7) FINISHED docker:default
=> [internal] load .dockerignore 0.2s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 95B 0.0s
=> [internal] load metadata for docker.io/library/mysql:8.0 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 492B 0.0s
=> [1/2] FROM docker.io/library/mysql:8.0 0.4s
=> [2/2] ADD setup.sql /docker-entrypoint-initdb.d 0.6s
=> exporting to image 1.2s
=> => exporting layers 1.1s
=> => writing image sha256:1763a0bd5b206f1deb7a66398da4c55a6a6e017ea427cdfe35fee61ca6aa2565 0.0s
=> => naming to docker.io/library/mysql:8.0 0.0s
Building platform
[+] Building 1.0s (16/16) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.3s
=> => transferring dockerfile: 779B 0.0s
=> [internal] load .dockerignore 0.2s
=> => transferring context: 2.14kB 0.0s
=> [internal] load metadata for docker.io/library/python:3.11-slim-buster 0.3s
=> [prod 1/11] FROM docker.io/library/python:3.11-slim-buster@sha256:c46b0ae5728c2247b99903098ade3176a58e274d9c7d2efeaaab3e0621a53935 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 177.47kB 0.0s
=> CACHED [prod 2/11] RUN apt-get update && apt-get install -y default-libmysqlclient-dev gcc pkg-config openjdk-11-jdk build-essential && rm -rf /var/lib/apt/ 0.0s
=> CACHED [prod 3/11] RUN pip install poetry==1.4.2 0.0s
=> CACHED [prod 4/11] RUN poetry config virtualenvs.create false 0.0s
=> CACHED [prod 5/11] COPY pyproject.toml /app/src/ 0.0s
=> CACHED [prod 6/11] WORKDIR /app/src 0.0s
=> CACHED [prod 7/11] RUN poetry install --only main 0.0s
=> CACHED [prod 8/11] RUN apt-get purge -y g++ gcc pkg-config && rm -rf /var/lib/apt/lists/* 0.0s
=> CACHED [prod 9/11] COPY . /app/src/ 0.0s
=> CACHED [prod 10/11] RUN poetry install --only main 0.0s
=> CACHED [prod 11/11] RUN ls -R /app/src/ 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:158df65287d38c6278004249e147b2200cf032212ca12302cfae855969568a97 0.0s
=> => naming to docker.io/library/agentgpt_platform 0.0s
Starting frontend ... done
Recreating agentgpt_db ... done
Recreating platform ... done
Attaching to frontend, agentgpt_db, platform
agentgpt_db | 2024-08-28 15:04:22+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
agentgpt_db | 2024-08-28 15:04:23+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
agentgpt_db | 2024-08-28 15:04:23+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
agentgpt_db | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
agentgpt_db | 2024-08-28T15:04:23.839424Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
agentgpt_db | 2024-08-28T15:04:23.844322Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.39) starting as process 1
agentgpt_db | 2024-08-28T15:04:23.864411Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
frontend | dos2unix: wait-for-db.sh: No such file or directory
frontend | dos2unix: Skipping wait-for-db.sh, not a regular file.
frontend | cp: omitting directory '.env'
frontend | dos2unix: .env.temp: No such file or directory
frontend | dos2unix: Skipping .env.temp, not a regular file.
frontend | /entrypoint.sh: line 10: can't create .env: Is a directory
frontend | rm: can't remove '.env.temp': No such file or directory
frontend | /entrypoint.sh: line 16: ./wait-for-db.sh: not found
platform | /usr/local/bin/python: No module named reworkd_platform
frontend |
frontend | ! unknown or unexpected option: --name
frontend |
frontend | Apply pending migrations to update the database schema in production/staging
frontend |
frontend | Usage
frontend |
frontend | $ prisma migrate deploy [options]
frontend |
frontend | Options
frontend |
frontend | -h, --help Display this help message
frontend | --schema Custom path to your Prisma schema
frontend |
frontend | Examples
frontend |
frontend | Deploy your pending migrations to your production/staging database
frontend | $ prisma migrate deploy
frontend |
frontend | Specify a schema
frontend | $ prisma migrate deploy --schema=./schema.prisma
frontend |
platform exited with code 1
agentgpt_db | 2024-08-28T15:04:25.968820Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
agentgpt_db | 2024-08-28T15:04:26.592377Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
agentgpt_db | 2024-08-28T15:04:26.606411Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
agentgpt_db | 2024-08-28T15:04:26.773410Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
agentgpt_db | 2024-08-28T15:04:26.773453Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
agentgpt_db | 2024-08-28T15:04:26.805232Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
agentgpt_db | 2024-08-28T15:04:26.879305Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
agentgpt_db | 2024-08-28T15:04:26.879558Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.39' socket: '/var/run/mysqld/mysqld.sock' port: 3307 MySQL Community Server - GPL.
frontend | Schema Env Error: Error: EISDIR: illegal operation on a directory, read
frontend | Schema Env Error: Error: EISDIR: illegal operation on a directory, read
frontend | Error: Could not find a schema.prisma file that is required for this command.
frontend | You can either provide it with --schema, set it as `prisma.schema` in your package.json or put it into the default location ./prisma/schema.prisma https://pris.ly/d/prisma-schema-location
platform exited with code 1
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
frontend | Schema Env Error: Error: EISDIR: illegal operation on a directory, read
frontend | prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
frontend | If you have a Prisma schema file in a custom path, you will need to run
frontend | `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
frontend | If you do not have a Prisma schema file yet, you can ignore this message.
frontend |
frontend | npm ERR! code ENOENT
frontend | npm ERR! syscall open
frontend | npm ERR! path /next/package.json
frontend | npm ERR! errno -2
frontend | npm ERR! enoent ENOENT: no such file or directory, open '/next/package.json'
frontend | npm ERR! enoent This is related to npm not being able to find a file.
frontend | npm ERR! enoent
frontend |
frontend | npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-08-28T15_04_29_870Z-debug-0.log
frontend exited with code 254
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform exited with code 1
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform exited with code 1
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platform
platform | /usr/local/bin/python: No module named reworkd_platfor
Please check that this issue hasn't been reported before.
Expected Behavior
To have AgentGPT running locally
Current behaviour
Successfully tagged agentgpt_platform:latest Recreating agentgpt_db ... done Starting frontend ... done Recreating platform ... done Attaching to frontend, agentgpt_db, platform agentgpt_db | 2024-04-09 08:04:54+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.36-1.el8 started. agentgpt_db | 2024-04-09 08:04:54+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' agentgpt_db | 2024-04-09 08:04:54+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.36-1.el8 started. agentgpt_db | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' frontend | dos2unix: wait-for-db.sh: Permission denied frontend | dos2unix: Skipping wait-for-db.sh, not a regular file. frontend | cp: can't stat '.env': Permission denied frontend | dos2unix: .env.temp: No such file or directory frontend | dos2unix: Skipping .env.temp, not a regular file. frontend | /entrypoint.sh: line 10: can't create .env: Permission denied frontend | rm: can't remove '.env.temp': No such file or directory frontend | /entrypoint.sh: source: line 13: can't open '.env': Permission denied platform | /usr/local/bin/python: No module named reworkd_platform frontend exited with code 2 agentgpt_db | 2024-04-09T08:04:55.048860Z 0 [Warning] [MY-010139] [Server] Changed limits: max_open_files: 1024 (requested 8161) agentgpt_db | 2024-04-09T08:04:55.048869Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 431 (requested 4000) agentgpt_db | 2024-04-09T08:04:55.290509Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. agentgpt_db | 2024-04-09T08:04:55.292485Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.36) starting as process 1 agentgpt_db | 2024-04-09T08:04:55.304160Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. agentgpt_db | 2024-04-09T08:04:55.874021Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. platform exited with code 1 agentgpt_db | 2024-04-09T08:04:56.686782Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. agentgpt_db | 2024-04-09T08:04:56.688488Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. agentgpt_db | 2024-04-09T08:04:56.702996Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. agentgpt_db | 2024-04-09T08:04:56.741412Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock agentgpt_db | 2024-04-09T08:04:56.741580Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.36' socket: '/var/run/mysqld/mysqld.sock' port: 3307 MySQL Community Server - GPL. platform | /usr/local/bin/python: No module named reworkd_platform platform exited with code 1 platform | /usr/local/bin/python: No module named reworkd_platform platform exited with code 1 platform | /usr/local/bin/python: No module named reworkd_platform platform exited with code 1 platform | /usr/local/bin/python: No module named reworkd_platform
Steps to reproduce
AgentGPT]$ sudo ./setup.sh
Possible solution
Installing missing python module
Which Operating Systems are you using?
Acknowledgements