Giter Site home page Giter Site logo

Comments (10)

codebanesr avatar codebanesr commented on May 26, 2024 1

@tpmccallum A .env file that should work. Also note, that llm server might fail to connect initially since mysql container is probably not ready by that time. Please adjust your openai keys accordingly

# For local development environment
OPENAI_API_TYPE=openai
OPENAI_API_KEY=sk-
PINECONE_API_KEY=
PINECONE_ENV=

MONGODB_URL=mongodb://dbuser:dbpass@mongodb:27017


QDRANT_URL=http://qdrant:6333
SCORE_THRESHOLD=0.91
STORE=QDRANT


LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="TOKEN_GOES_HERE"
LANGCHAIN_PROJECT="PROJECT_NAME_GOES_HERE"

COPILOT_MODE=interactive

MYSQL_URI=mysql+pymysql://dbuser:dbpass@mysql:3306/opencopilot

CELERY_BROKER=redis://redis:6379/0
CELERY_BACKEND=redis://redis:6379/1

LOCAL_IP=http://host.docker.internal


SHARED_FOLDER=/app/shared_data/
SELENIUM_GRID_URL=http://selenium:4444/wd/hub


LLM_SERVER_ENDPOINT=http://host.docker.internal:5000

from opencopilot.

tpmccallum avatar tpmccallum commented on May 26, 2024 1

Thanks so much for your help @gharbat and @codebanesr
Greatly appreciated!

from opencopilot.

tpmccallum avatar tpmccallum commented on May 26, 2024

Does not seem to be any errors in the console while running make install

tpmccallum@192-168-1-21 OpenCopilot % make install
=== 🟒 Putting the services down (if already running) ===
docker-compose down #--remove-orphans
[+] Running 11/10
 βœ” Container opencopilot-nginx-1            Removed                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-workers-1          Removed                                                                                                                                                                          10.2s 
 βœ” Container redis_cache                    Removed                                                                                                                                                                           0.3s 
 βœ” Container opencopilot-adminer-1          Removed                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-selenium-1         Removed                                                                                                                                                                           3.9s 
 βœ” Container opencopilot-llm-server-1       Removed                                                                                                                                                                          10.2s 
 βœ” Container opencopilot-dashboard-1        Removed                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-mysql-1            Removed                                                                                                                                                                           1.0s 
 βœ” Container opencopilot-qdrant-1           Removed                                                                                                                                                                           0.2s 
 βœ” Container mongodb                        Removed                                                                                                                                                                           0.3s 
 βœ” Network opencopilot_opencopilot_network  Removed                                                                                                                                                                           0.1s 
=== 🟒 Setting up Docker environment ===
=== 🟒 Copying .env files ===
cp -n dashboard/.env.example dashboard/.env 2>/dev/null || true
docker-compose build #--no-cache
[+] Building 114.3s (38/38) FINISHED                                                                                                                                                                          docker:desktop-linux
 => [workers internal] load build definition from Dockerfile                                                                                                                                                                  0.1s
 => => transferring dockerfile: 552B                                                                                                                                                                                          0.0s
 => [dashboard internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 924B                                                                                                                                                                                          0.0s
 => [workers internal] load metadata for docker.io/library/python:3.9-slim                                                                                                                                                    2.0s
 => [dashboard internal] load metadata for docker.io/library/node:18-alpine                                                                                                                                                   0.8s
 => [llm-server internal] load build definition from Dockerfile                                                                                                                                                               0.0s
 => => transferring dockerfile: 550B                                                                                                                                                                                          0.0s
 => [dashboard internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 112B                                                                                                                                                                                             0.0s
 => [dashboard internal] load build context                                                                                                                                                                                   0.0s
 => => transferring context: 13.23kB                                                                                                                                                                                          0.0s
 => [dashboard base 1/3] FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f                                                                                        0.0s
 => => resolve docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f                                                                                                       0.0s
 => CACHED [dashboard base 2/3] RUN corepack enable                                                                                                                                                                           0.0s
 => CACHED [dashboard base 3/3] RUN corepack prepare [email protected] --activate                                                                                                                                                    0.0s
 => CACHED [dashboard builder 1/4] WORKDIR /app                                                                                                                                                                               0.0s
 => CACHED [dashboard deps 1/4] RUN apk add --no-cache libc6-compat                                                                                                                                                           0.0s
 => CACHED [dashboard deps 2/4] WORKDIR /app                                                                                                                                                                                  0.0s
 => CACHED [dashboard deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./                                                                                                                            0.0s
 => CACHED [dashboard deps 4/4] RUN pnpm i --frozen-lockfile                                                                                                                                                                  0.0s
 => CACHED [dashboard builder 2/4] COPY --from=deps /app/node_modules ./node_modules                                                                                                                                          0.0s
 => [dashboard builder 3/4] COPY . .                                                                                                                                                                                          0.1s
 => [dashboard builder 4/4] RUN pnpm run build                                                                                                                                                                               79.6s
 => [workers internal] load .dockerignore                                                                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                                                                               0.0s
 => [llm-server internal] load .dockerignore                                                                                                                                                                                  0.0s
 => => transferring context: 2.52kB                                                                                                                                                                                           0.0s
 => [workers common 1/5] FROM docker.io/library/python:3.9-slim@sha256:da575a948dc8bedb079db83aae9c1d7ccb0d792ba51218abcb1cdf03ac95c755                                                                                       4.2s
 => => resolve docker.io/library/python:3.9-slim@sha256:da575a948dc8bedb079db83aae9c1d7ccb0d792ba51218abcb1cdf03ac95c755                                                                                                      0.0s
 => => sha256:ec926eb426a4a498f7ee46020e53da3210bb124c47ebb568206828ac272aa1ae 2.93MB / 2.93MB                                                                                                                                1.1s
 => => sha256:57b3e82cff54cc371f8552487e2d528f14c27ee8177e768fc784e286128258db 232B / 232B                                                                                                                                    0.7s
 => => sha256:342f11d60b1e5fa9671af8474bbd959d419fc7ad2fd68d2f9b096acae58fb560 11.89MB / 11.89MB                                                                                                                              3.4s
 => => sha256:442c5d63eafd969b755d7c8e0914319677ca8d5112a84e851b16677a4fc1d189 3.32MB / 3.32MB                                                                                                                                1.6s
 => => extracting sha256:442c5d63eafd969b755d7c8e0914319677ca8d5112a84e851b16677a4fc1d189                                                                                                                                     0.1s
 => => extracting sha256:342f11d60b1e5fa9671af8474bbd959d419fc7ad2fd68d2f9b096acae58fb560                                                                                                                                     0.4s
 => => extracting sha256:57b3e82cff54cc371f8552487e2d528f14c27ee8177e768fc784e286128258db                                                                                                                                     0.0s
 => => extracting sha256:ec926eb426a4a498f7ee46020e53da3210bb124c47ebb568206828ac272aa1ae                                                                                                                                     0.2s
 => [llm-server internal] load build context                                                                                                                                                                                  0.0s
 => => transferring context: 15.05kB                                                                                                                                                                                          0.0s
 => [workers internal] load build context                                                                                                                                                                                     0.0s
 => => transferring context: 2.54kB                                                                                                                                                                                           0.0s
 => [llm-server common 2/5] WORKDIR /app                                                                                                                                                                                      0.1s
 => [llm-server common 3/5] COPY requirements.txt /app/                                                                                                                                                                       0.0s
 => [workers 3/5] COPY requirements.txt /app/                                                                                                                                                                                 0.0s
 => [workers 4/5] RUN pip install --no-cache-dir -r requirements.txt                                                                                                                                                         77.2s
 => [llm-server common 4/5] RUN pip install --no-cache-dir -r requirements.txt                                                                                                                                               82.8s
 => CACHED [dashboard runner 2/6] RUN addgroup --system --gid 1001 nodejs                                                                                                                                                     0.0s
 => CACHED [dashboard runner 3/6] RUN adduser --system --uid 1001 nextjs                                                                                                                                                      0.0s
 => CACHED [dashboard runner 4/6] COPY --from=builder /app/public ./public                                                                                                                                                    0.0s
 => [dashboard runner 5/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./                                                                                                                                 0.3s
 => [dashboard runner 6/6] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static                                                                                                                         0.1s
 => [dashboard] exporting to image                                                                                                                                                                                            1.5s
 => => exporting layers                                                                                                                                                                                                       1.0s
 => => exporting manifest sha256:1520fbb2e2d99ff73b3bbcc66ff931989e5ce52982ffbd845da7027cd4893570                                                                                                                             0.0s
 => => exporting config sha256:f3e413b6a054073b818a34a5f2888df793d90a977b669f0f088ca6bdce5b3589                                                                                                                               0.0s
 => => exporting attestation manifest sha256:08a1b76abc69815f7295c4c82b45a7f8259aeeb2464ea4781f3f31a7623bbe8d                                                                                                                 0.0s
 => => exporting manifest list sha256:eb3f80f2782ec356900e33c62b1175ef7913db4c7f84e869d54cfda68a99e955                                                                                                                        0.0s
 => => naming to docker.io/codebanesr/dashboard:latest                                                                                                                                                                        0.0s
 => => unpacking to docker.io/codebanesr/dashboard:latest                                                                                                                                                                     0.5s
 => [workers 5/5] COPY . /app/                                                                                                                                                                                                0.1s
 => [workers] exporting to image                                                                                                                                                                                             21.4s
 => => exporting layers                                                                                                                                                                                                      16.8s
 => => exporting manifest sha256:39d4417ce0ed67c5ec5bcb6cda8d3d538bf8af76d8b426458eed4adf52651335                                                                                                                             0.0s
 => => exporting config sha256:52ef112d846bfb26dd900a37a1c3be17b4743acb1849150afec7ef32da51c463                                                                                                                               0.0s
 => => exporting attestation manifest sha256:187c5b1e37b839db1becd04d664d7f590b10f537e8e945af7c7b10717fe8042c                                                                                                                 0.0s
 => => exporting manifest list sha256:d67f0fbfa2ae260397436c1b5d92f47ced15b5b3de89424d61fbda8aef95d686                                                                                                                        0.0s
 => => naming to docker.io/codebanesr/workers:latest                                                                                                                                                                          0.0s
 => => unpacking to docker.io/codebanesr/workers:latest                                                                                                                                                                       4.6s
 => [llm-server common 5/5] COPY . /app/                                                                                                                                                                                      0.2s
 => [llm-server] exporting to image                                                                                                                                                                                          21.8s
 => => exporting layers                                                                                                                                                                                                      16.6s
 => => exporting manifest sha256:02cd26aa425059ca29b20671c7a94679feadd9a613c660daf6eef7714f9f8bec                                                                                                                             0.0s
 => => exporting config sha256:56e35fb24cb5ccc89ce9818bdee0662e25532af3a3330d82708aa3f4fe18e30a                                                                                                                               0.0s
 => => exporting attestation manifest sha256:b126c8e63b827fd743ad3c00a276b2b7c4b1d0ab6addac8b58071ad35ba30a5e                                                                                                                 0.0s
 => => exporting manifest list sha256:e449974991e89da2dea229d1d384dde40f0aa9bcc8861d1d85775ca81f1511cf                                                                                                                        0.0s
 => => naming to docker.io/codebanesr/llm-server:latest                                                                                                                                                                       0.0s
 => => unpacking to docker.io/codebanesr/llm-server:latest                                                                                                                                                                    5.2s
docker-compose up -d #--force-recreate
[+] Building 0.0s (0/0)                                                                                                                                                                                       docker:desktop-linux
[+] Running 11/11
 βœ” Network opencopilot_opencopilot_network  Created                                                                                                                                                                           0.3s 
 βœ” Container redis_cache                    Started                                                                                                                                                                           0.3s 
 βœ” Container opencopilot-selenium-1         Started                                                                                                                                                                           0.3s 
 βœ” Container opencopilot-qdrant-1           Started                                                                                                                                                                           0.3s 
 βœ” Container opencopilot-mysql-1            Started                                                                                                                                                                           0.3s 
 βœ” Container mongodb                        Started                                                                                                                                                                           0.3s 
 βœ” Container opencopilot-adminer-1          Started                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-dashboard-1        Started                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-workers-1          Started                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-llm-server-1       Started                                                                                                                                                                           0.2s 
 βœ” Container opencopilot-nginx-1            Started                                                                                                                                                                           0.1s 
=== 🟒 Waiting for services to start (~20 seconds) ===
=== 🟒 Running Alembic migrations ===
docker-compose exec llm-server sh -c "cd models && python setup_alembic.py && alembic upgrade head"
INFO  [alembic.runtime.migration] Context impl MySQLImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
=== Installation completed ===
=== πŸ”₯πŸ”₯ You can now access the dashboard at -> http://localhost:8888 ===
=== Enjoy! ===

from opencopilot.

gharbat avatar gharbat commented on May 26, 2024

I think it's related to yesterday’s release, I was able to reproduce it and will ship a fix for it today

from opencopilot.

tpmccallum avatar tpmccallum commented on May 26, 2024

Thanks @gharbat
I will try again later on tonight.

from opencopilot.

gharbat avatar gharbat commented on May 26, 2024

@tpmccallum

can you pull & make install it again? it should be fixed

from opencopilot.

tpmccallum avatar tpmccallum commented on May 26, 2024

Hi @gharbat
Thanks for the update.
I have reinstalled using the latest code and get the following error:

workers_1     | Usage: celery [OPTIONS] COMMAND [ARGS]...
workers_1     | Try 'celery --help' for help.
workers_1     | 
workers_1     | Error: Invalid value for '-A' / '--app': 
workers_1     | Unable to load celery application.
workers_1     | While trying to load the module celery_app the following error occurred:
workers_1     | Traceback (most recent call last):
workers_1     |   File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 644, in connect
workers_1     |     sock = socket.create_connection(
workers_1     |   File "/usr/local/lib/python3.9/socket.py", line 823, in create_connection
workers_1     |     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
workers_1     |   File "/usr/local/lib/python3.9/socket.py", line 954, in getaddrinfo
workers_1     |     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
workers_1     | socket.gaierror: [Errno -3] Temporary failure in name resolution
workers_1     | 
workers_1     | During handling of the above exception, another exception occurred:
workers_1     | 
workers_1     | Traceback (most recent call last):
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
workers_1     |     self._dbapi_connection = engine.raw_connection()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3292, in raw_connection
workers_1     |     return self.pool.connect()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 452, in connect
workers_1     |     return _ConnectionFairy._checkout(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 1269, in _checkout
workers_1     |     fairy = _ConnectionRecord.checkout(pool)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
workers_1     |     rec = pool._do_get()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 170, in _do_get
workers_1     |     self._dec_overflow()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
workers_1     |     raise exc_value.with_traceback(exc_tb)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 167, in _do_get
workers_1     |     return self._create_connection()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
workers_1     |     return _ConnectionRecord(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 678, in __init__
workers_1     |     self.__connect()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 903, in __connect
workers_1     |     pool.logger.debug("Error on connect(): %s", e)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
workers_1     |     raise exc_value.with_traceback(exc_tb)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 898, in __connect
workers_1     |     self.dbapi_connection = connection = pool._invoke_creator(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 637, in connect
workers_1     |     return dialect.connect(*cargs, **cparams)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 616, in connect
workers_1     |     return self.loaded_dbapi.connect(*cargs, **cparams)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 358, in __init__
workers_1     |     self.connect()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 711, in connect
workers_1     |     raise exc
workers_1     | pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'mysql' ([Errno -3] Temporary failure in name resolution)")
workers_1     | 
workers_1     | The above exception was the direct cause of the following exception:
workers_1     | 
workers_1     | Traceback (most recent call last):
workers_1     |   File "/usr/local/lib/python3.9/site-packages/celery/bin/celery.py", line 58, in convert
workers_1     |     return find_app(value)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/celery/app/utils.py", line 383, in find_app
workers_1     |     sym = symbol_by_name(app, imp=imp)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/kombu/utils/imports.py", line 59, in symbol_by_name
workers_1     |     module = imp(module_name, package=package, **kwargs)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/celery/utils/imports.py", line 104, in import_from_cwd
workers_1     |     return imp(module, package=package)
workers_1     |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
workers_1     |     return _bootstrap._gcd_import(name[level:], package, level)
workers_1     |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
workers_1     |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
workers_1     |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
workers_1     |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
workers_1     |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
workers_1     |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
workers_1     |   File "/app/celery_app.py", line 2, in <module>
workers_1     |     from shared.models.opencopilot_db import create_database_schema
workers_1     |   File "/app/shared/models/opencopilot_db/__init__.py", line 1, in <module>
workers_1     |     from .chat_history import ChatHistory
workers_1     |   File "/app/shared/models/opencopilot_db/chat_history.py", line 21, in <module>
workers_1     |     Base.metadata.create_all(engine)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 5828, in create_all
workers_1     |     bind._run_ddl_visitor(
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3242, in _run_ddl_visitor
workers_1     |     with self.begin() as conn:
workers_1     |   File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
workers_1     |     return next(self.gen)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3232, in begin
workers_1     |     with self.connect() as conn:
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3268, in connect
workers_1     |     return self._connection_cls(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 147, in __init__
workers_1     |     Connection._handle_dbapi_exception_noconnection(
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2430, in _handle_dbapi_exception_noconnection
workers_1     |     raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
workers_1     |     self._dbapi_connection = engine.raw_connection()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3292, in raw_connection
workers_1     |     return self.pool.connect()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 452, in connect
workers_1     |     return _ConnectionFairy._checkout(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 1269, in _checkout
workers_1     |     fairy = _ConnectionRecord.checkout(pool)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
workers_1     |     rec = pool._do_get()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 170, in _do_get
workers_1     |     self._dec_overflow()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
workers_1     |     raise exc_value.with_traceback(exc_tb)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 167, in _do_get
workers_1     |     return self._create_connection()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
workers_1     |     return _ConnectionRecord(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 678, in __init__
workers_1     |     self.__connect()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 903, in __connect
workers_1     |     pool.logger.debug("Error on connect(): %s", e)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
workers_1     |     raise exc_value.with_traceback(exc_tb)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 898, in __connect
workers_1     |     self.dbapi_connection = connection = pool._invoke_creator(self)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 637, in connect
workers_1     |     return dialect.connect(*cargs, **cparams)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 616, in connect
workers_1     |     return self.loaded_dbapi.connect(*cargs, **cparams)
workers_1     |   File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 358, in __init__
workers_1     |     self.connect()
workers_1     |   File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 711, in connect
workers_1     |     raise exc
workers_1     | sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'mysql' ([Errno -3] Temporary failure in name resolution)")
workers_1     | (Background on this error at: https://sqlalche.me/e/20/e3q8)

Is there something else I should be doing other than just make install (aside from adding my OPENAI_API_KEY to the `.env; which I already did)?

from opencopilot.

codebanesr avatar codebanesr commented on May 26, 2024

@tpmccallum This should disappear after sometime, btw can you share your mysql environment variable value ?

This is what it should be like
MYSQL_URI=mysql+pymysql://dbuser:dbpass@mysql:3306/opencopilot

from opencopilot.

tpmccallum avatar tpmccallum commented on May 26, 2024

Thanks @codebanesr
That makes sense (that the MySQL needed time).
The make install is almost there; am getting the following error:

Creating redis_cache            ... done
Creating opencopilot_selenium_1 ... done
Creating mongodb                ... done
Creating opencopilot_mysql_1    ... done
Creating opencopilot_dashboard_1  ... done
Creating opencopilot_adminer_1    ... done
Creating opencopilot_workers_1    ... done
Creating opencopilot_llm-server_1 ... done
Creating opencopilot_nginx_1      ... done
=== 🟒 Waiting for services to start (~20 seconds) ===
=== 🟒 Running Alembic migrations ===
docker-compose exec llm-server sh -c "cd models && python setup_alembic.py && alembic upgrade head"
/usr/lib/python3/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
make: *** [Makefile:32: install] Error 137

from opencopilot.

tpmccallum avatar tpmccallum commented on May 26, 2024

Oh, I just did make logs and it was generating output, I waited a while (even after the above error which seemed like the install had failed) and then went to the localhost:8888 after a couple of minutes and it started working. Advice to others trying this out, just wait for a couple of minutes and then visit the URL.
image

from opencopilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.