Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error upon trying to use a docker install: Unhandled Runtime Error, TypeError: o is null. #1472

Open
6 of 10 tasks
newfantoski opened this issue Feb 6, 2024 · 3 comments
Open
6 of 10 tasks
Labels
bug Something isn't working

Comments

@newfantoski
Copy link

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Access to the user interface on http://127.0.0.1:3000/.

Current behaviour

image
image

The other two error pages are identical.

Steps to reproduce

Attempted with a LocalAI container currently running.

image

in .env, the only two things I have modified are:

REWORKD_PLATFORM_OPENAI_API_KEY=""
REWORKD_PLATFORM_OPENAI_API_BASE="http://localhost:8080/v1"

Upon installing on Windows 10 with setup.bat, the install completes, but is unfortunately not working.

Here are the logs:

>setup.bat

up to date, audited 159 packages in 714ms

37 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

> [email protected] 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 0.0s (0/0)  docker:default
2024/02/06 15:08:07 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
[+] Building 27.2s (15/21)                                                                                                                                                                        docker:default
[+] Building 27.8s (15/21)                                                                                                                                                                        docker:default
[+] Building 312.5s (37/37) FINISHED                                                                                                                                                              docker:default
 => [agentgpt_db internal] load build definition from Dockerfile                                                                                                                                            0.1s
 => => transferring dockerfile: 98B                                                                                                                                                                         0.0s
 => [agentgpt_db internal] load metadata for docker.io/library/mysql:8.0                                                                                                                                    1.9s
 => [frontend internal] load build definition from Dockerfile                                                                                                                                               0.0s
 => => transferring dockerfile: 919B                                                                                                                                                                        0.0s
 => [frontend internal] load metadata for docker.io/library/node:19-alpine                                                                                                                                  1.9s
 => [agentgpt_db internal] load .dockerignore                                                                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                                                                             0.0s
 => [agentgpt_db internal] load build context                                                                                                                                                               0.0s
 => => transferring context: 503B                                                                                                                                                                           0.0s
 => [agentgpt_db 1/2] FROM docker.io/library/mysql:8.0@sha256:3f75dccd64fffa40a06a4a9256206280a5ddc3e26dea3f1ab0df35b2cc12f472                                                                             24.6s
 => => resolve docker.io/library/mysql:8.0@sha256:3f75dccd64fffa40a06a4a9256206280a5ddc3e26dea3f1ab0df35b2cc12f472                                                                                          0.0s
 => => sha256:b6188b3dc37c427f01aac2e8fc2b153044f2861becb8fd0f402bcabb429d71c7 6.76kB / 6.76kB                                                                                                              0.0s
 => => sha256:508ada0981f60fda3708effe5ca1e896bd17b0e307b951d76696b8d6cad59466 982.81kB / 982.81kB                                                                                                          0.3s
 => => sha256:558b7d69a2e576e93c7cb18ecd087a92959e912b116323c188183d5cf8ab5b17 51.32MB / 51.32MB                                                                                                            9.1s
 => => sha256:c7e714ea5470c150d90ee69da1f028674313e515f5b3c54fe94e3896b3aa5524 884B / 884B                                                                                                                  0.3s
 => => sha256:3f75dccd64fffa40a06a4a9256206280a5ddc3e26dea3f1ab0df35b2cc12f472 1.94kB / 1.94kB                                                                                                              0.0s
 => => sha256:094a1638b290a1c5d5faa3f06ac2e3ed975947594db4a60aadc58a92e3d0820b 2.74kB / 2.74kB                                                                                                              0.0s
 => => sha256:1ae11d1b9d69faaee9664ecf939a2c7fc88ed73d135269e353163b39934f4876 4.59MB / 4.59MB                                                                                                              1.3s
 => => sha256:3c9be74ddc84185eafd024e29063043eee015ec174ac612c1250d3d7ebe47b44 2.60kB / 2.60kB                                                                                                              0.8s
 => => sha256:d4a59c7182522928e2dc091099a5f00ac4d95cbfa080182995eb8175bc35854d 333B / 333B                                                                                                                  1.0s
 => => sha256:ac42afee6c9cb6ee9efac8fb6bf9505d3d3c42fd6ea8ef12007237f7946777b9 58.51MB / 58.51MB                                                                                                           14.9s
 => => sha256:dcf1f586b2e2abf128a177a2e00b54fecbaca5eb23a9c6b6e8a29bffb6527f6a 316B / 316B                                                                                                                  1.5s
 => => sha256:210e58b61fa3726a89826dcbcd43a93e07c6ae9b8257082c1d15e89b878b05fd 59.30MB / 59.30MB                                                                                                           10.8s
 => => extracting sha256:558b7d69a2e576e93c7cb18ecd087a92959e912b116323c188183d5cf8ab5b17                                                                                                                   2.7s
 => => sha256:d9719ad703de58410c05950e5f3b8d291ab3dce45ab456dcf1fbe3e1f232105f 5.18kB / 5.18kB                                                                                                              9.3s
 => => sha256:1ef92b20c8ec10ade9d1228ef999a5ff3afd443bea12717145c725d96c41e6d1 122B / 122B                                                                                                                  9.4s
 => => extracting sha256:c7e714ea5470c150d90ee69da1f028674313e515f5b3c54fe94e3896b3aa5524                                                                                                                   0.0s
 => => extracting sha256:508ada0981f60fda3708effe5ca1e896bd17b0e307b951d76696b8d6cad59466                                                                                                                   0.0s
 => => extracting sha256:1ae11d1b9d69faaee9664ecf939a2c7fc88ed73d135269e353163b39934f4876                                                                                                                   0.4s
 => => extracting sha256:3c9be74ddc84185eafd024e29063043eee015ec174ac612c1250d3d7ebe47b44                                                                                                                   0.0s
 => => extracting sha256:d4a59c7182522928e2dc091099a5f00ac4d95cbfa080182995eb8175bc35854d                                                                                                                   0.0s
 => => extracting sha256:ac42afee6c9cb6ee9efac8fb6bf9505d3d3c42fd6ea8ef12007237f7946777b9                                                                                                                   1.3s
 => => extracting sha256:dcf1f586b2e2abf128a177a2e00b54fecbaca5eb23a9c6b6e8a29bffb6527f6a                                                                                                                   0.0s
 => => extracting sha256:210e58b61fa3726a89826dcbcd43a93e07c6ae9b8257082c1d15e89b878b05fd                                                                                                                   7.8s
 => => extracting sha256:d9719ad703de58410c05950e5f3b8d291ab3dce45ab456dcf1fbe3e1f232105f                                                                                                                   0.0s
 => => extracting sha256:1ef92b20c8ec10ade9d1228ef999a5ff3afd443bea12717145c725d96c41e6d1                                                                                                                   0.0s
 => [frontend internal] load .dockerignore                                                                                                                                                                  0.0s
 => => transferring context: 111B                                                                                                                                                                           0.0s
 => [frontend  1/10] FROM docker.io/library/node:19-alpine@sha256:8ec543d4795e2e85af924a24f8acb039792ae9fe8a42ad5b4bf4c277ab34b62e                                                                         18.2s
 => => resolve docker.io/library/node:19-alpine@sha256:8ec543d4795e2e85af924a24f8acb039792ae9fe8a42ad5b4bf4c277ab34b62e                                                                                     0.0s
 => => sha256:e2a8cc97f817417787050d381376568c494547f9af9decfca6463dee6db6561c 6.73kB / 6.73kB                                                                                                              0.0s
 => => sha256:8ec543d4795e2e85af924a24f8acb039792ae9fe8a42ad5b4bf4c277ab34b62e 1.43kB / 1.43kB                                                                                                              0.0s
 => => sha256:d0ba7111bc031323ce2706f8e424afc868db289ba40ff55b05561cf59c123be1 1.16kB / 1.16kB                                                                                                              0.0s
 => => sha256:8a49fdb3b6a5ff2bd8ec6a86c05b2922a0f7454579ecc07637e94dfd1d0639b6 3.40MB / 3.40MB                                                                                                             10.7s
 => => extracting sha256:8a49fdb3b6a5ff2bd8ec6a86c05b2922a0f7454579ecc07637e94dfd1d0639b6                                                                                                                   0.2s
 => => sha256:1197750296b3abe1d21ffbb3d3ea76df5ba887cf82c8e3284d267cbb2aa1724a 48.15MB / 48.15MB                                                                                                           15.3s
 => => sha256:f352bc07f19b43a8678cc8c8efe162ccb6193ead7af6dd366639a01402d1819e 2.34MB / 2.34MB                                                                                                             11.3s
 => => sha256:47be83a79857fb67c4d144471b8301ae6fb874971bfaa60d12dc97ea1355cffe 449B / 449B                                                                                                                 11.5s
 => => extracting sha256:1197750296b3abe1d21ffbb3d3ea76df5ba887cf82c8e3284d267cbb2aa1724a                                                                                                                   2.5s
 => => extracting sha256:f352bc07f19b43a8678cc8c8efe162ccb6193ead7af6dd366639a01402d1819e                                                                                                                   0.1s
 => => extracting sha256:47be83a79857fb67c4d144471b8301ae6fb874971bfaa60d12dc97ea1355cffe                                                                                                                   0.0s
 => [frontend internal] load build context                                                                                                                                                                  8.6s
 => => transferring context: 50.93MB                                                                                                                                                                        8.5s
 => [frontend  2/10] RUN apk add --no-cache netcat-openbsd                                                                                                                                                  2.2s
 => [frontend  3/10] WORKDIR /next                                                                                                                                                                          0.1s
 => [frontend  4/10] COPY package*.json ./                                                                                                                                                                  0.1s
 => [frontend  5/10] RUN npm ci                                                                                                                                                                            62.6s
 => [agentgpt_db 2/2] ADD setup.sql /docker-entrypoint-initdb.d                                                                                                                                             0.3s
 => [agentgpt_db] exporting to image                                                                                                                                                                        0.1s
 => => exporting layers                                                                                                                                                                                     0.1s
 => => writing image sha256:434de09a952d40955d98676487c142fd4a6d65b5e32f2e7012250a6c326d79c2                                                                                                                0.0s
 => => naming to docker.io/library/mysql:8.0                                                                                                                                                                0.0s
 => [platform internal] load build definition from Dockerfile                                                                                                                                               0.1s
 => => transferring dockerfile: 796B                                                                                                                                                                        0.0s
 => [platform internal] load metadata for docker.io/library/python:3.11-slim-buster                                                                                                                         2.0s
 => [platform internal] load .dockerignore                                                                                                                                                                  0.1s
 => => transferring context: 2.29kB                                                                                                                                                                         0.0s
 => [platform prod  1/10] FROM docker.io/library/python:3.11-slim-buster@sha256:c46b0ae5728c2247b99903098ade3176a58e274d9c7d2efeaaab3e0621a53935                                                           14.3s
 => => resolve docker.io/library/python:3.11-slim-buster@sha256:c46b0ae5728c2247b99903098ade3176a58e274d9c7d2efeaaab3e0621a53935                                                                            0.1s
 => => sha256:c46b0ae5728c2247b99903098ade3176a58e274d9c7d2efeaaab3e0621a53935 988B / 988B                                                                                                                  0.0s
 => => sha256:b94af75d4ff65c50bf1b2119bca6d0ba707037bacd0cb75314801a6953c03241 1.37kB / 1.37kB                                                                                                              0.0s
 => => sha256:db841a2e8ab326bf1101c5714186094fa05d3277c5b2dbcec943dade361b269f 6.83kB / 6.83kB                                                                                                              0.0s
 => => sha256:8b91b88d557765cd8c6802668755a3f6dc4337b6ce15a17e4857139e5fc964f3 27.14MB / 27.14MB                                                                                                            4.8s
 => => sha256:824416e234237961c9c5d4f41dfe5b295a3c35a671ee52889bfb08d8e257ec4c 2.78MB / 2.78MB                                                                                                              2.4s
 => => sha256:482d64d97d4e63625e51301e23ca7ff526afaf40710da26704d9ce2e1a6168fa 12.00MB / 12.00MB                                                                                                            3.5s
 => => sha256:c87b3089b2ed5584d9a52ddf02017556958f287dd63945476fbcd191954e6faf 244B / 244B                                                                                                                  2.6s
 => => sha256:91bdacd599c69598dd6fbd7f97f7059b565f6f3015a04b6ab9e8db254a41652c 3.38MB / 3.38MB                                                                                                              3.7s
 => => extracting sha256:8b91b88d557765cd8c6802668755a3f6dc4337b6ce15a17e4857139e5fc964f3                                                                                                                   2.4s
 => => extracting sha256:824416e234237961c9c5d4f41dfe5b295a3c35a671ee52889bfb08d8e257ec4c                                                                                                                   0.4s
 => => extracting sha256:482d64d97d4e63625e51301e23ca7ff526afaf40710da26704d9ce2e1a6168fa                                                                                                                   1.2s
 => => extracting sha256:c87b3089b2ed5584d9a52ddf02017556958f287dd63945476fbcd191954e6faf                                                                                                                   0.0s
 => => extracting sha256:91bdacd599c69598dd6fbd7f97f7059b565f6f3015a04b6ab9e8db254a41652c                                                                                                                   0.9s
 => [platform internal] load build context                                                                                                                                                                  0.2s
 => => transferring context: 181.87kB                                                                                                                                                                       0.1s
 => [platform prod  2/10] RUN apt-get update && apt-get install -y   default-libmysqlclient-dev   gcc   pkg-config   openjdk-11-jdk   build-essential   && rm -rf /var/lib/apt/lists/*                    198.6s
 => [frontend  6/10] COPY wait-for-db.sh /usr/local/bin/wait-for-db.sh                                                                                                                                      0.2s
 => [frontend  7/10] RUN chmod +x /usr/local/bin/wait-for-db.sh                                                                                                                                             0.6s
 => [frontend  8/10] COPY . .                                                                                                                                                                               1.0s
 => [frontend  9/10] COPY entrypoint.sh /                                                                                                                                                                   0.2s
 => [frontend 10/10] RUN apk add --no-cache dos2unix netcat-openbsd     && dos2unix /entrypoint.sh                                                                                                          2.0s
 => [frontend] exporting to image                                                                                                                                                                           8.6s
 => => exporting layers                                                                                                                                                                                     8.6s
 => => writing image sha256:29c1ee1b74260ecc891a898f5590ab4c0b1da4f2aaa46a60401cc24a7adb644e                                                                                                                0.0s
 => => naming to docker.io/library/agentgpt-frontend                                                                                                                                                        0.0s
 => [platform prod  3/10] RUN pip install poetry==1.4.2                                                                                                                                                    20.6s
 => [platform prod  4/10] RUN poetry config virtualenvs.create false                                                                                                                                        0.9s
 => [platform prod  5/10] COPY pyproject.toml /app/src/                                                                                                                                                     0.1s
 => [platform prod  6/10] WORKDIR /app/src                                                                                                                                                                  0.1s
 => [platform prod  7/10] RUN poetry install --only main                                                                                                                                                   41.2s
 => [platform prod  8/10] RUN apt-get purge -y   g++   gcc   pkg-config   && rm -rf /var/lib/apt/lists/*                                                                                                    1.1s
 => [platform prod  9/10] COPY . /app/src/                                                                                                                                                                  0.1s
 => [platform prod 10/10] RUN poetry install --only main                                                                                                                                                    2.2s
 => [platform] exporting to image                                                                                                                                                                           2.8s
 => => exporting layers                                                                                                                                                                                     2.8s
 => => writing image sha256:8b8379b7d4931f4bf331080f35adb7a61ed53694cb27dbdff50018504352983a                                                                                                                0.0s
 => => naming to docker.io/library/agentgpt-platform                                                                                                                                                        0.0s
[+] Running 5/5
 ✔ Network agentgpt_default       Created                                                                                                                                                                   0.1s
 ✔ Volume "agentgpt_agentgpt_db"  Created                                                                                                                                                                   0.0s
 ✔ Container agentgpt_db          Created                                                                                                                                                                   0.2s
 ✔ Container frontend             Created                                                                                                                                                                  20.5s
 ✔ Container platform             Created                                                                                                                                                                   0.2s
Attaching to agentgpt_db, frontend, platform
agentgpt_db  | 2024-02-06 14:13:42+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.36-1.el8 started.
frontend     | dos2unix: converting file wait-for-db.sh to Unix format...
frontend     | dos2unix: converting file .env.temp to Unix format...
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | 2024-02-06 14:13:42+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
agentgpt_db  | 2024-02-06 14:13:42+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.36-1.el8 started.
agentgpt_db  | 2024-02-06 14:13:42+00:00 [Note] [Entrypoint]: Initializing database files
agentgpt_db  | 2024-02-06T14:13:42.701933Z 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-02-06T14:13:42.702133Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.36) initializing of server in progress as process 80
agentgpt_db  | 2024-02-06T14:13:42.723266Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
platform     | INFO:     Will watch for changes in these directories: ['/app/src']
platform     | INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
platform     | INFO:     Started reloader process [1] using WatchFiles
frontend     | Database is unavailable - Sleeping...
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | 2024-02-06T14:13:48.159063Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
frontend     | Database is unavailable - Sleeping...
frontend     | Database is unavailable - Sleeping...
frontend     | Database is unavailable - Sleeping...
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | 2024-02-06T14:13:55.301077Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
frontend     | Database is unavailable - Sleeping...
platform     | /usr/local/lib/python3.11/site-packages/langchain/__init__.py:34: UserWarning: Importing LLMChain from langchain root module is no longer supported. Please use langchain.chains.LLMChain instead.
platform     |   warnings.warn(
platform     | /usr/local/lib/python3.11/site-packages/langchain/__init__.py:34: UserWarning: Importing BasePromptTemplate from langchain root module is no longer supported. Please use langchain.schema.prompt_template.BasePromptTemplate instead.
platform     |   warnings.warn(
platform     | /usr/local/lib/python3.11/site-packages/langchain/__init__.py:34: UserWarning: Importing PromptTemplate from langchain root module is no longer supported. Please use langchain.prompts.PromptTemplate instead.
platform     |   warnings.warn(
frontend     | Database is unavailable - Sleeping...
platform     | 2024-02-06 14:14:00.218 | INFO     | logging:callHandlers:1706 - Started server process [8]
platform     | 2024-02-06 14:14:00.218 | INFO     | logging:callHandlers:1706 - Waiting for application startup.
frontend     | Database is unavailable - Sleeping...
frontend     | Database is unavailable - Sleeping...
platform     | 2024-02-06 14:14:03.759 | INFO     | logging:callHandlers:1706 - Application startup complete.
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | 2024-02-06 14:14:05+00:00 [Note] [Entrypoint]: Database files initialized
agentgpt_db  | 2024-02-06 14:14:05+00:00 [Note] [Entrypoint]: Starting temporary server
agentgpt_db  | 2024-02-06T14:14:05.722029Z 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-02-06T14:14:05.723767Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.36) starting as process 124
agentgpt_db  | 2024-02-06T14:14:05.742065Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
agentgpt_db  | 2024-02-06T14:14:05.931178Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
agentgpt_db  | 2024-02-06T14:14:06.292494Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
agentgpt_db  | 2024-02-06T14:14:06.292567Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
agentgpt_db  | 2024-02-06T14:14:06.301098Z 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-02-06T14:14:06.333295Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
agentgpt_db  | 2024-02-06T14:14:06.333423Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.36'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server - GPL.
agentgpt_db  | 2024-02-06 14:14:06+00:00 [Note] [Entrypoint]: Temporary server started.
agentgpt_db  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
agentgpt_db  | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
agentgpt_db  | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
agentgpt_db  | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
agentgpt_db  | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
agentgpt_db  | 2024-02-06 14:14:09+00:00 [Note] [Entrypoint]: Creating database reworkd_platform
agentgpt_db  | 2024-02-06 14:14:09+00:00 [Note] [Entrypoint]: Creating user reworkd_platform
agentgpt_db  | 2024-02-06 14:14:09+00:00 [Note] [Entrypoint]: Giving user reworkd_platform access to schema reworkd_platform
agentgpt_db  |
agentgpt_db  | 2024-02-06 14:14:09+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/setup.sql
agentgpt_db  | 2024-02-06T14:14:09.617353Z 13 [Warning] [MY-010235] [Server] Following users were specified in CREATE USER IF NOT EXISTS but they already exist. Corresponding entry in binary log used default authentication plugin 'caching_sha2_password' to rewrite authentication information (if any) for them: 'reworkd_platform'@'%'
agentgpt_db  |
agentgpt_db  |
agentgpt_db  | 2024-02-06 14:14:09+00:00 [Note] [Entrypoint]: Stopping temporary server
agentgpt_db  | 2024-02-06T14:14:09.662442Z 14 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.0.36).
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | 2024-02-06T14:14:12.276443Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.36)  MySQL Community Server - GPL.
agentgpt_db  | 2024-02-06 14:14:12+00:00 [Note] [Entrypoint]: Temporary server stopped
agentgpt_db  |
agentgpt_db  | 2024-02-06 14:14:12+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
agentgpt_db  |
agentgpt_db  | 2024-02-06T14:14:12.869642Z 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-02-06T14:14:12.871010Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.36) starting as process 1
agentgpt_db  | 2024-02-06T14:14:12.879069Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
frontend     | Database is unavailable - Sleeping...
agentgpt_db  | 2024-02-06T14:14:13.050561Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
agentgpt_db  | 2024-02-06T14:14:13.345688Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
agentgpt_db  | 2024-02-06T14:14:13.345740Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
agentgpt_db  | 2024-02-06T14:14:13.353016Z 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-02-06T14:14:13.373530Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
agentgpt_db  | 2024-02-06T14:14:13.373746Z 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.
frontend     | Database is available! Continuing...
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     |
frontend     | Environment variables loaded from .env
frontend     | Prisma schema loaded from prisma/schema.prisma
frontend     | Datasource "db": MySQL database "reworkd_platform" at "agentgpt_db:3307"
frontend     |
frontend     | 🚀  Your database is now in sync with your Prisma schema. Done in 1.42s
frontend     |
✔ Generated Prisma Client (4.13.0 | library) to ./node_modules/@prisma/client in
frontend     |  261ms
frontend     |
frontend     | Environment variables loaded from .env
frontend     | Prisma schema loaded from prisma/schema.prisma
frontend     |
frontend     | ✔ Generated Prisma Client (4.13.0 | library) to ./node_modules/@prisma/client in 383ms
frontend     | You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
frontend     | ```
frontend     | import { PrismaClient } from '@prisma/client'
frontend     | const prisma = new PrismaClient()
frontend     | ```
frontend     | ┌─────────────────────────────────────────────────────────┐
frontend     | │  Update available 4.13.0 -> 5.9.1                       │
frontend     | │                                                         │
frontend     | │  This is a major update - please follow the guide at    │
frontend     | │  https://pris.ly/d/major-version-upgrade                │
frontend     | │                                                         │
frontend     | │  Run the following to update                            │
frontend     | │    npm i --save-dev prisma@latest                       │
frontend     | │    npm i @prisma/client@latest                          │
frontend     | └─────────────────────────────────────────────────────────┘
frontend     |
frontend     | > [email protected] dev
frontend     | > next dev
frontend     |
frontend     | Attention: Next.js now collects completely anonymous telemetry regarding usage.
frontend     | This information is used to shape Next.js' roadmap and prioritize features.
frontend     | 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:
frontend     | https://nextjs.org/telemetry
frontend     |
frontend     |   ▲ Next.js 13.5.6
frontend     |   - Local:        http://localhost:3000
frontend     |   - Environments: .env
frontend     |
frontend     |  ✓ Ready in 2.4s
frontend     | Browserslist: caniuse-lite is outdated. Please run:
frontend     |   npx update-browserslist-db@latest
frontend     |   Why you should do it regularly: https://github.com/browserslist/update-db#readme
frontend     |  ○ Compiling / ...
frontend     |  ✓ Compiled / in 17.6s (1617 modules)
frontend     |  ✓ Compiled in 2.6s (1617 modules)
frontend     |  ✓ Compiled in 1558ms (1291 modules)
frontend     |  ✓ Compiled in 1675ms (1617 modules)
platform     | 2024-02-06 14:15:40.818 | INFO     | logging:callHandlers:1706 - 172.18.0.1:33808 - "OPTIONS /api/agent/tools HTTP/1.1" 400
frontend     |  ✓ Compiled /api/auth/[...nextauth] in 1208ms (357 modules)
platform     | 2024-02-06 14:22:11.827 | INFO     | logging:callHandlers:1706 - 172.18.0.1:39592 - "OPTIONS /api/agent/tools HTTP/1.1" 400

Does anyone have an idea how to solve this ? :/

Possible solution

No response

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of AgentGPT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.
@newfantoski newfantoski added the bug Something isn't working label Feb 6, 2024
@Vinay-Khanagavi
Copy link

Is this issue resolved ?

@alpha4041
Copy link

having the same issue

@stark1tty
Copy link

Having this issue in Ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants