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

Trouble running docker-compose.development.yml #300

Open
JulesBelveze opened this issue Feb 18, 2022 · 4 comments
Open

Trouble running docker-compose.development.yml #300

JulesBelveze opened this issue Feb 18, 2022 · 4 comments

Comments

@JulesBelveze
Copy link

Hey all,

I am trying to run the whole metaflow-service but when running the development file, all containers are running properly except the the ui_backend_1.
I've clone the repo and then ran:

docker-compose -f docker-compose.development.yml up

but I am facing the following error:

ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message: Traceback (most recent call last):
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:   File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:     "__main__", mod_spec)
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:   File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:     exec(code, run_globals)
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:   File "/root/services/ui_backend_service/data/cache/client/cache_server.py", line 16, in <module>
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:     import click
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message: ModuleNotFoundError: No module named 'click'
ui_backend_1  | Traceback (most recent call last):
ui_backend_1  |   File "/usr/local/bin/ui_backend_service", line 33, in <module>
ui_backend_1  |     sys.exit(load_entry_point('metadata-service', 'console_scripts', 'ui_backend_service')())
ui_backend_1  |   File "/root/services/ui_backend_service/ui_server.py", line 135, in main
ui_backend_1  |     loop.run_until_complete(handler.setup())
ui_backend_1  |   File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
ui_backend_1  |     return future.result()
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_runner.py", line 279, in setup
ui_backend_1  |     self._server = await self._make_server()
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_runner.py", line 375, in _make_server
ui_backend_1  |     await self._app.startup()
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 417, in startup
ui_backend_1  |     await self.on_startup.send(self)
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiosignal/__init__.py", line 36, in send
ui_backend_1  |     await receiver(*args, **kwargs)  # type: ignore
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/store.py", line 66, in start_caches
ui_backend_1  |     await self.artifact_cache.start_cache()
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/store.py", line 154, in start_cache
ui_backend_1  |     await self.cache.start()
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 118, in request_and_return
ui_backend_1  |     await req
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 67, in check
ui_backend_1  |     await ret.wait()
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 113, in wait
ui_backend_1  |     async for obj in self.wait_iter(_repeat(), timeout):
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 102, in wait_iter
ui_backend_1  |     raise CacheServerUnreachable()
ui_backend_1  | services.ui_backend_service.data.cache.client.cache_client.CacheServerUnreachable
Entire trace
docker-compose -f docker-compose.development.yml up                                                                                                                                     INT  pipelines py
WARNING: The CUSTOM_QUICKLINKS variable is not set. Defaulting to a blank string.
WARNING: The NOTIFICATIONS variable is not set. Defaulting to a blank string.
WARNING: The PLUGINS variable is not set. Defaulting to a blank string.
Docker Compose is now in the Docker CLI, try `docker compose up`

Creating network "metaflow-service_default" with the default driver
Pulling db (postgres:11)...
11: Pulling from library/postgres
1cb79db8a9e7: Pull complete
f6bae7873dd7: Pull complete
8f7722dc50a7: Pull complete
e8622b8cb6f3: Pull complete
d6d74bba3a57: Pull complete
874d4d2a09fd: Pull complete
2d87c3a4038c: Pull complete
f955a6cf127b: Pull complete
c607e7071388: Pull complete
1026a7bbc62f: Pull complete
ca1ba5d59f0e: Pull complete
915b4028528f: Pull complete
7dd826953df8: Pull complete
Digest: sha256:bf8c2cbc7372069108f4e2e526da0eda81c96ba6129c42165ab1a1941fc0151a
Status: Downloaded newer image for postgres:11
Building migration
[+] Building 65.7s (18/18) FINISHED
 => [internal] load build definition from Dockerfile.migration_service                                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 455B                                                                                                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/python:3.7                                                                                                                                                                                                              1.6s
 => [internal] load metadata for docker.io/library/golang:1.16.3                                                                                                                                                                                                           1.5s
 => [auth] library/golang:pull token for registry-1.docker.io                                                                                                                                                                                                              0.0s
 => [auth] library/python:pull token for registry-1.docker.io                                                                                                                                                                                                              0.0s
 => [internal] load build context                                                                                                                                                                                                                                          0.0s
 => => transferring context: 39.32kB                                                                                                                                                                                                                                       0.0s
 => [stage-1 1/8] FROM docker.io/library/python:3.7@sha256:48e1422053164310266a9a85e4f3886733a5f1dc025238dba229068806aff4d6                                                                                                                                               25.6s
 => => resolve docker.io/library/python:3.7@sha256:48e1422053164310266a9a85e4f3886733a5f1dc025238dba229068806aff4d6                                                                                                                                                        0.0s
 => => sha256:fee1d9b288b819d7a9114da2279230b6712dac68e505b0491c7d40f78c48c1f9 2.22kB / 2.22kB                                                                                                                                                                             0.0s
 => => sha256:0c6b8ff8c37e92eb1ca65ed8917e818927d5bf318b6f18896049b5d9afc28343 54.92MB / 54.92MB                                                                                                                                                                           4.9s
 => => sha256:412caad352a3ecbb29c080379407ae0761e7b9b454f7239cbfd1d1da25e06b29 5.15MB / 5.15MB                                                                                                                                                                             0.4s
 => => sha256:e6d3e61f7a504fa66d7275123969e9917570188650eb84b2280a726b996040f6 10.87MB / 10.87MB                                                                                                                                                                           0.8s
 => => sha256:48e1422053164310266a9a85e4f3886733a5f1dc025238dba229068806aff4d6 1.86kB / 1.86kB                                                                                                                                                                             0.0s
 => => sha256:eb092e58e9248e0dc5baf7c8604e9c25e8a4cfeb89eb52b6c7163c8c0eb2f05c 9.18kB / 9.18kB                                                                                                                                                                             0.0s
 => => sha256:461bb1d8c517c7f9fc0f1df66c9dc34c85a23421c1e1c540b2e28cbb258e75f5 54.57MB / 54.57MB                                                                                                                                                                           4.4s
 => => sha256:808edda3c2e855dc13af758b35cefbcc417ad1ab4fead7f72234b09aeda893a0 196.53MB / 196.53MB                                                                                                                                                                         9.9s
 => => sha256:724cfd2dc19be12b837643ea67bd5ad7a6fd98049a88f02ec70eca30fa03a5a1 6.29MB / 6.29MB                                                                                                                                                                             5.0s
 => => sha256:773d554492cc49b691accb57e00f233a2217ca78abf2c16bc51e4064c7c77ca7 14.85MB / 14.85MB                                                                                                                                                                           5.8s
 => => extracting sha256:0c6b8ff8c37e92eb1ca65ed8917e818927d5bf318b6f18896049b5d9afc28343                                                                                                                                                                                  4.8s
 => => sha256:5ecddf626bb9ed1c8363e84afc5a04e50144ec20f6595d4df9a82b6d22e62724 236B / 236B                                                                                                                                                                                 5.2s
 => => sha256:eff4d08aa2149de6167d219d1574d89451658355eb697f6d6cf55a3155b4fe2f 2.35MB / 2.35MB                                                                                                                                                                             5.6s
 => => extracting sha256:412caad352a3ecbb29c080379407ae0761e7b9b454f7239cbfd1d1da25e06b29                                                                                                                                                                                  0.4s
 => => extracting sha256:e6d3e61f7a504fa66d7275123969e9917570188650eb84b2280a726b996040f6                                                                                                                                                                                  0.5s
 => => extracting sha256:461bb1d8c517c7f9fc0f1df66c9dc34c85a23421c1e1c540b2e28cbb258e75f5                                                                                                                                                                                  2.9s
 => => extracting sha256:808edda3c2e855dc13af758b35cefbcc417ad1ab4fead7f72234b09aeda893a0                                                                                                                                                                                  8.3s
 => => extracting sha256:724cfd2dc19be12b837643ea67bd5ad7a6fd98049a88f02ec70eca30fa03a5a1                                                                                                                                                                                  0.3s
 => => extracting sha256:773d554492cc49b691accb57e00f233a2217ca78abf2c16bc51e4064c7c77ca7                                                                                                                                                                                  0.7s
 => => extracting sha256:5ecddf626bb9ed1c8363e84afc5a04e50144ec20f6595d4df9a82b6d22e62724                                                                                                                                                                                  0.0s
 => => extracting sha256:eff4d08aa2149de6167d219d1574d89451658355eb697f6d6cf55a3155b4fe2f                                                                                                                                                                                  0.4s
 => [goose 1/2] FROM docker.io/library/golang:1.16.3@sha256:f7d3519759ba6988a2b73b5874b17c5958ac7d0aa48a8b1d84d66ef25fa345f1                                                                                                                                               0.2s
 => => resolve docker.io/library/golang:1.16.3@sha256:f7d3519759ba6988a2b73b5874b17c5958ac7d0aa48a8b1d84d66ef25fa345f1                                                                                                                                                     0.0s
 => => sha256:d5dc529b0ee7ad7b3289de938fb53b2cd495900c8d587f15fd86532788151f67 7.00kB / 7.00kB                                                                                                                                                                             0.0s
 => => sha256:f7d3519759ba6988a2b73b5874b17c5958ac7d0aa48a8b1d84d66ef25fa345f1 2.36kB / 2.36kB                                                                                                                                                                             0.0s
 => => sha256:dfa3cef088454200d6b48e2a911138f7d5d9afff77f89243eea6342f16ddcfb0 1.79kB / 1.79kB                                                                                                                                                                             0.0s
 => [goose 2/2] RUN go get -u github.com/pressly/goose/cmd/goose                                                                                                                                                                                                          47.5s
 => [stage-1 2/8] COPY --from=goose /go/bin/goose /usr/local/bin/                                                                                                                                                                                                          0.1s
 => [stage-1 3/8] ADD services/__init__.py /root/services/__init__.py                                                                                                                                                                                                      0.0s
 => [stage-1 4/8] ADD services/utils /root/services/utils                                                                                                                                                                                                                  0.0s
 => [stage-1 5/8] ADD services/migration_service /root/services/migration_service                                                                                                                                                                                          0.0s
 => [stage-1 6/8] ADD setup.py setup.cfg /root/                                                                                                                                                                                                                            0.0s
 => [stage-1 7/8] WORKDIR /root                                                                                                                                                                                                                                            0.0s
 => [stage-1 8/8] RUN pip install --editable .                                                                                                                                                                                                                            15.7s
 => exporting to image                                                                                                                                                                                                                                                     0.4s
 => => exporting layers                                                                                                                                                                                                                                                    0.4s
 => => writing image sha256:114e2b6aa424bbdb881aa793d65efab8e540842ef8df31b4f0f4be400aeb54bf                                                                                                                                                                               0.0s
 => => naming to docker.io/library/metaflow-service_migration                                                                                                                                                                                                              0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
WARNING: Image for service migration was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building metadata
[+] Building 21.1s (13/13) FINISHED
 => [internal] load build definition from Dockerfile.metadata_service                                                                                                                                                                                                      0.0s
 => => transferring dockerfile: 351B                                                                                                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/python:3.7                                                                                                                                                                                                              0.4s
 => CACHED [1/8] FROM docker.io/library/python:3.7@sha256:48e1422053164310266a9a85e4f3886733a5f1dc025238dba229068806aff4d6                                                                                                                                                 0.0s
 => [internal] load build context                                                                                                                                                                                                                                          0.0s
 => => transferring context: 151.19kB                                                                                                                                                                                                                                      0.0s
 => [2/8] ADD services/__init__.py /root/services/                                                                                                                                                                                                                         0.0s
 => [3/8] ADD services/data /root/services/data                                                                                                                                                                                                                            0.0s
 => [4/8] ADD services/utils /root/services/utils                                                                                                                                                                                                                          0.0s
 => [5/8] ADD services/metadata_service /root/services/metadata_service                                                                                                                                                                                                    0.0s
 => [6/8] ADD setup.py setup.cfg /root/                                                                                                                                                                                                                                    0.0s
 => [7/8] WORKDIR /root                                                                                                                                                                                                                                                    0.0s
 => [8/8] RUN pip install --editable .                                                                                                                                                                                                                                    19.6s
 => exporting to image                                                                                                                                                                                                                                                     0.8s
 => => exporting layers                                                                                                                                                                                                                                                    0.7s
 => => writing image sha256:85bac02c09fd0d29e0e1c2e50f05337129e1acf5e9a1d14ffdb821d1e3a762ff                                                                                                                                                                               0.0s
 => => naming to docker.io/library/metaflow-service_metadata                                                                                                                                                                                                               0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
WARNING: Image for service metadata was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building ui_backend
[+] Building 27.0s (15/15) FINISHED
 => [internal] load build definition from Dockerfile.ui_service                                                                                                                                                                                                            0.0s
 => => transferring dockerfile: 815B                                                                                                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/python:3.7                                                                                                                                                                                                              0.4s
 => [internal] load build context                                                                                                                                                                                                                                          0.0s
 => => transferring context: 714.83kB                                                                                                                                                                                                                                      0.0s
 => CACHED [ 1/10] FROM docker.io/library/python:3.7@sha256:48e1422053164310266a9a85e4f3886733a5f1dc025238dba229068806aff4d6                                                                                                                                               0.0s
 => [ 2/10] ADD services/__init__.py /root/services/__init__.py                                                                                                                                                                                                            0.0s
 => [ 3/10] ADD services/data /root/services/data                                                                                                                                                                                                                          0.0s
 => [ 4/10] ADD services/utils /root/services/utils                                                                                                                                                                                                                        0.0s
 => [ 5/10] ADD services/metadata_service /root/services/metadata_service                                                                                                                                                                                                  0.0s
 => [ 6/10] ADD services/ui_backend_service /root/services/ui_backend_service                                                                                                                                                                                              0.0s
 => [ 7/10] ADD setup.py setup.cfg /root/                                                                                                                                                                                                                                  0.0s
 => [ 8/10] WORKDIR /root                                                                                                                                                                                                                                                  0.0s
 => [ 9/10] RUN /root/services/ui_backend_service/download_ui.sh                                                                                                                                                                                                           1.0s
 => [10/10] RUN pip install --editable .                                                                                                                                                                                                                                  24.2s
 => exporting to image                                                                                                                                                                                                                                                     1.1s
 => => exporting layers                                                                                                                                                                                                                                                    1.1s
 => => writing image sha256:3ed79b083b1ef4210b92e2416359e238f20daab0ede18e2ab44c6756a2d0d22d                                                                                                                                                                               0.0s
 => => naming to docker.io/library/metaflow-service_ui_backend                                                                                                                                                                                                             0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
WARNING: Image for service ui_backend was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating metaflow-service_db_1 ... done
Creating metaflow-service_ui_backend_1 ... done
Creating metaflow-service_migration_1  ... done
Creating metaflow-service_metadata_1   ... done
Attaching to metaflow-service_db_1, metaflow-service_migration_1, metaflow-service_ui_backend_1, metaflow-service_metadata_1
db_1          | The files belonging to this database system will be owned by user "postgres".
db_1          | This user must also own the server process.
db_1          |
db_1          | The database cluster will be initialized with locale "en_US.utf8".
db_1          | The default database encoding has accordingly been set to "UTF8".
db_1          | The default text search configuration will be set to "english".
db_1          |
db_1          | Data page checksums are disabled.
db_1          |
ui_backend_1  | INFO:AsyncPostgresDB:ui:Setting up notify trigger for flows_v3
ui_backend_1  |    Keys: ['flow_id']
db_1          | fixing permissions on existing directory /var/lib/postgresql/data ... ok
ui_backend_1  | INFO:AsyncPostgresDB:ui:Setting up notify trigger for runs_v3
ui_backend_1  |    Keys: ['flow_id', 'run_number', 'last_heartbeat_ts']
db_1          | creating subdirectories ... ok
ui_backend_1  | INFO:AsyncPostgresDB:ui:Setting up notify trigger for steps_v3
ui_backend_1  |    Keys: ['flow_id', 'run_number', 'step_name']
db_1          | selecting default max_connections ... 100
ui_backend_1  | INFO:AsyncPostgresDB:ui:Setting up notify trigger for tasks_v3
ui_backend_1  |    Keys: ['flow_id', 'run_number', 'step_name', 'task_id']
db_1          | selecting default shared_buffers ... 128MB
ui_backend_1  | INFO:AsyncPostgresDB:ui:Setting up notify trigger for artifact_v3
ui_backend_1  |    Keys: ['flow_id', 'run_number', 'step_name', 'task_id', 'attempt_id', 'name']
db_1          | selecting default timezone ... Etc/UTC
db_1          | selecting dynamic shared memory implementation ... posix
ui_backend_1  | INFO:AsyncPostgresDB:ui:Setting up notify trigger for metadata_v3
ui_backend_1  |    Keys: ['flow_id', 'run_number', 'step_name', 'task_id', 'field_name', 'value']
db_1          | creating configuration files ... ok
ui_backend_1  | INFO:AsyncPostgresDB:ui:Connection established.
ui_backend_1  |    Pool min: 1 max: 10
ui_backend_1  |
db_1          | running bootstrap script ... ok
ui_backend_1  | INFO:AsyncPostgresDB:ui:cache:Connection established.
ui_backend_1  |    Pool min: 1 max: 10
ui_backend_1  |
db_1          | performing post-bootstrap initialization ... ok
db_1          | syncing data to disk ... ok
db_1          |
db_1          | Success. You can now start the database server using:
db_1          |
db_1          |     pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1          |
ui_backend_1  | INFO:AsyncPostgresDB:ui:notify:Connection established.
ui_backend_1  |    Pool min: 1 max: 10
ui_backend_1  |
db_1          |
db_1          | WARNING: enabling "trust" authentication for local connections
db_1          | You can change this by editing pg_hba.conf or using the option -A, or
db_1          | --auth-local and --auth-host, the next time you run initdb.
ui_backend_1  | INFO:ListenNotify:Connection acquired
ui_backend_1  | INFO:AsyncPostgresDB:ui:heartbeat:Connection established.
ui_backend_1  |    Pool min: 1 max: 10
ui_backend_1  |
db_1          | waiting for server to start....2022-02-18 15:35:34.430 UTC [48] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1          | 2022-02-18 15:35:34.442 UTC [49] LOG:  database system was shut down at 2022-02-18 15:35:34 UTC
ui_backend_1  | INFO:AsyncPostgresDB:ui:websocket:Connection established.
ui_backend_1  |    Pool min: 1 max: 10
ui_backend_1  |
ui_backend_1  | INFO:AutoCompleteApi:0 cached tags in memory consuming 0 Mb
ui_backend_1  | INFO:AsyncPostgresDB:global:Connection established.
ui_backend_1  |    Pool min: 1 max: 10
ui_backend_1  |
ui_backend_1  | INFO:root:Metadata service available at http://0.0.0.0:8083/metadata
db_1          | 2022-02-18 15:35:34.448 UTC [48] LOG:  database system is ready to accept connections
db_1          |  done
db_1          | server started
db_1          |
db_1          | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1          |
ui_backend_1  | INFO:Plugin:Init plugins
ui_backend_1  | INFO:Plugin:Plugins ready: []
db_1          | waiting for server to shut down...2022-02-18 15:35:34.573 UTC [48] LOG:  received fast shutdown request
db_1          | .2022-02-18 15:35:34.575 UTC [48] LOG:  aborting any active transactions
db_1          | 2022-02-18 15:35:34.578 UTC [48] LOG:  background worker "logical replication launcher" (PID 55) exited with exit code 1
db_1          | 2022-02-18 15:35:34.578 UTC [50] LOG:  shutting down
db_1          | 2022-02-18 15:35:34.593 UTC [48] LOG:  database system is shut down
db_1          |  done
db_1          | server stopped
db_1          |
db_1          | PostgreSQL init process complete; ready for start up.
db_1          |
db_1          | 2022-02-18 15:35:34.685 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1          | 2022-02-18 15:35:34.685 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1          | 2022-02-18 15:35:34.687 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1          | 2022-02-18 15:35:34.699 UTC [67] LOG:  database system was shut down at 2022-02-18 15:35:34 UTC
db_1          | 2022-02-18 15:35:34.704 UTC [1] LOG:  database system is ready to accept connections
metadata_1    | INFO:AsyncPostgresDB:global:Connection established.
metadata_1    |    Pool min: 1 max: 10
metadata_1    |
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message: Traceback (most recent call last):
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:   File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:     "__main__", mod_spec)
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:   File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:     exec(code, run_globals)
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:   File "/root/services/ui_backend_service/data/cache/client/cache_server.py", line 16, in <module>
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message:     import click
ui_backend_1  | INFO:CacheAsyncClient:cache_data/artifact_search:Message: ModuleNotFoundError: No module named 'click'
ui_backend_1  | Traceback (most recent call last):
ui_backend_1  |   File "/usr/local/bin/ui_backend_service", line 33, in <module>
ui_backend_1  |     sys.exit(load_entry_point('metadata-service', 'console_scripts', 'ui_backend_service')())
ui_backend_1  |   File "/root/services/ui_backend_service/ui_server.py", line 135, in main
ui_backend_1  |     loop.run_until_complete(handler.setup())
ui_backend_1  |   File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
ui_backend_1  |     return future.result()
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_runner.py", line 279, in setup
ui_backend_1  |     self._server = await self._make_server()
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_runner.py", line 375, in _make_server
ui_backend_1  |     await self._app.startup()
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 417, in startup
ui_backend_1  |     await self.on_startup.send(self)
ui_backend_1  |   File "/usr/local/lib/python3.7/site-packages/aiosignal/__init__.py", line 36, in send
ui_backend_1  |     await receiver(*args, **kwargs)  # type: ignore
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/store.py", line 66, in start_caches
ui_backend_1  |     await self.artifact_cache.start_cache()
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/store.py", line 154, in start_cache
ui_backend_1  |     await self.cache.start()
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 118, in request_and_return
ui_backend_1  |     await req
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 67, in check
ui_backend_1  |     await ret.wait()
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 113, in wait
ui_backend_1  |     async for obj in self.wait_iter(_repeat(), timeout):
ui_backend_1  |   File "/root/services/ui_backend_service/data/cache/client/cache_async_client.py", line 102, in wait_iter
ui_backend_1  |     raise CacheServerUnreachable()
ui_backend_1  | services.ui_backend_service.data.cache.client.cache_client.CacheServerUnreachable

Any idea what went wrong here?

Thanks for your help 😃

@obgibson
Copy link
Collaborator

This could be a mismatch with your python versions. Ensure that you are using python3 for everything.

@JulesBelveze
Copy link
Author

Thanks for the quick answer @obgibson!
I am actually running it on my local and only have python3 installed on it

@obgibson
Copy link
Collaborator

OK. I have had the same error before when pip was version 2 and python was version 3, meaning when I pip install click it was not visible to python3. Is it possible that this is the case for your docker instance?

@JulesBelveze
Copy link
Author

JulesBelveze commented Feb 18, 2022

Hmmm I replaced pip by pip3 in all the Dockerfiles and got the same error.
I worked around by manually installing the click package in the Dockerfile.ui_service:

RUN pip3 install click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants