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

[Bug]: Cannot connect to localhost. Error: EACCES: permission denied, scandir '/app/public/.well-known'] #2496

Open
joewinke opened this issue Apr 25, 2024 · 7 comments
Labels
area: backend Related to backend functionality or under the /backend directory bug Something isn't working

Comments

@joewinke
Copy link

What happened?

I installed supabase, and can connect.
I installed docker and docker compose, and they are running in mac gui.
I ran docker and it gives the log output. It just keeps looping between 'backend-core ... 200 OK messages' and the web ... [Error: EACCES: permission denied, scandir '/app/public/.well-known'] { web | errno: -13, web | code: 'EACCES', web | syscall: 'scandir', web | path: '/app/public/.well-known' web | }

When I go to localhost:3000 it says unable to connect.

Relevant log output

> docker compose up
WARN[0000] /Volumes/A4/code/quivr/docker-compose.yml: `version` is obsolete 
[+] Running 6/0
 ✔ Container redis         Created                                                                            0.0s 
 ✔ Container backend-core  Created                                                                            0.0s 
 ✔ Container web           Created                                                                            0.0s 
 ✔ Container beat          Created                                                                            0.0s 
 ✔ Container worker        Created                                                                            0.0s 
 ✔ Container flower        Created                                                                            0.0s 
Attaching to backend-core, beat, flower, redis, web, worker
redis         | 1:C 25 Apr 2024 17:35:40.022 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis         | 1:C 25 Apr 2024 17:35:40.022 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis         | 1:C 25 Apr 2024 17:35:40.022 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis         | 1:M 25 Apr 2024 17:35:40.023 * monotonic clock: POSIX clock_gettime
redis         | 1:M 25 Apr 2024 17:35:40.023 * Running mode=standalone, port=6379.
redis         | 1:M 25 Apr 2024 17:35:40.024 * Server initialized
redis         | 1:M 25 Apr 2024 17:35:40.024 * Loading RDB produced by version 7.2.3
redis         | 1:M 25 Apr 2024 17:35:40.024 * RDB age 213 seconds
redis         | 1:M 25 Apr 2024 17:35:40.024 * RDB memory usage when created 1.26 Mb
redis         | 1:M 25 Apr 2024 17:35:40.024 * Done loading RDB, keys loaded: 2, keys expired: 0.
redis         | 1:M 25 Apr 2024 17:35:40.024 * DB loaded from disk: 0.000 seconds
redis         | 1:M 25 Apr 2024 17:35:40.024 * Ready to accept connections tcp
backend-core  | INFO:     Uvicorn running on http://0.0.0.0:5050 (Press CTRL+C to quit)
backend-core  | INFO:     Started parent process [1]
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
web exited with code 0
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
web exited with code 1
worker        | /usr/local/lib/python3.11/site-packages/celery/platforms.py:829: SecurityWarning: You're running the worker with superuser privileges: this is
worker        | absolutely not recommended!
worker        | 
worker        | Please specify a different user using the --uid option.
worker        | 
worker        | User information: uid=0 euid=0 gid=0 egid=0
worker        | 
worker        |   warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
beat          | [2024-04-25 17:35:42,812: INFO/MainProcess] beat: Starting...
worker        |  
worker        |  -------------- celery@dfa5ab53710e v5.4.0 (opalescent)
worker        | --- ***** ----- 
worker        | -- ******* ---- Linux-6.6.22-linuxkit-aarch64-with-glibc2.31 2024-04-25 17:35:42
worker        | - *** --- * --- 
worker        | - ** ---------- [config]
worker        | - ** ---------- .> app:         celery_config:0xffffa5285810
worker        | - ** ---------- .> transport:   redis://redis:6379/0
worker        | - ** ---------- .> results:     redis://redis:6379/0
worker        | - *** --- * --- .> concurrency: 10 (prefork)
worker        | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
worker        | --- ***** ----- 
worker        |  -------------- [queues]
worker        |                 .> celery           exchange=celery(direct) key=celery
worker        |                 
worker        | 
worker        | [tasks]
worker        |   . NotionConnectorLoad
worker        |   . celery_worker.ping_telemetry
worker        |   . celery_worker.process_integration_brain_sync
worker        |   . celery_worker.process_integration_brain_sync_user_brain
worker        |   . celery_worker.remove_onboarding_more_than_x_days_task
worker        |   . process_crawl_and_notify
worker        |   . process_file_and_notify
worker        | 
beat          | [2024-04-25 17:35:42,843: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
flower        | [I 240425 17:35:43 command:168] Visit me at http://0.0.0.0:5555
flower        | [I 240425 17:35:43 command:176] Broker: redis://redis:6379/0
flower        | [I 240425 17:35:43 command:177] Registered tasks: 
flower        |     ['NotionConnectorLoad',
flower        |      'celery.accumulate',
flower        |      'celery.backend_cleanup',
flower        |      'celery.chain',
flower        |      'celery.chord',
flower        |      'celery.chord_unlock',
flower        |      'celery.chunks',
flower        |      'celery.group',
flower        |      'celery.map',
flower        |      'celery.starmap',
flower        |      'celery_worker.ping_telemetry',
flower        |      'celery_worker.process_integration_brain_sync',
flower        |      'celery_worker.process_integration_brain_sync_user_brain',
flower        |      'celery_worker.remove_onboarding_more_than_x_days_task',
flower        |      'process_crawl_and_notify',
flower        |      'process_file_and_notify']
flower        | [I 240425 17:35:43 mixins:228] Connected to redis://redis:6379/0
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
worker        | [2024-04-25 17:35:44,264: WARNING/MainProcess] /usr/local/lib/python3.11/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
worker        | whether broker connection retries are made during startup in Celery 6.0 and above.
worker        | If you wish to retain the existing behavior for retrying connections on startup,
worker        | you should set broker_connection_retry_on_startup to True.
worker        |   warnings.warn(
worker        | 
worker        | [2024-04-25 17:35:44,382: INFO/MainProcess] Connected to redis://redis:6379/0
worker        | [2024-04-25 17:35:44,383: WARNING/MainProcess] /usr/local/lib/python3.11/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
worker        | whether broker connection retries are made during startup in Celery 6.0 and above.
worker        | If you wish to retain the existing behavior for retrying connections on startup,
worker        | you should set broker_connection_retry_on_startup to True.
worker        |   warnings.warn(
worker        | 
worker        | [2024-04-25 17:35:44,393: INFO/MainProcess] mingle: searching for neighbors
flower        | [W 240425 17:35:44 inspector:44] Inspect method stats failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method scheduled failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method conf failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method revoked failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method reserved failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method registered failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method active_queues failed
flower        | [W 240425 17:35:44 inspector:44] Inspect method active failed
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
worker        | [2024-04-25 17:35:45,417: INFO/MainProcess] mingle: all alone
worker        | [2024-04-25 17:35:45,487: INFO/MainProcess] celery@dfa5ab53710e ready.
worker        | [2024-04-25 17:35:45,494: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[b89e97a1-ea17-469e-b8b5-767c5476c62e] received
worker        | [2024-04-25 17:35:45,568: INFO/ForkPoolWorker-2] HTTP Request: GET http://host.docker.internal:54321/rest/v1/integrations_user?select=%2A%2C%20integrations%20%28%29&integrations.integration_name=eq.notion "HTTP/1.1 200 OK"
worker        | [2024-04-25 17:35:45,605: INFO/ForkPoolWorker-2] Task celery_worker.process_integration_brain_sync[b89e97a1-ea17-469e-b8b5-767c5476c62e] succeeded in 0.10200050000003102s: None
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
worker        | [2024-04-25 17:35:48,362: INFO/MainProcess] Events of group {task} enabled by remote.
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
backend-core  | INFO:     Started server process [8]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [12]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [13]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Started server process [10]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [9]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [11]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:58970 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
backend-core  | INFO:     127.0.0.1:36716 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
backend-core  | INFO:     127.0.0.1:54868 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:57840 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:44762 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:53200 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:34956 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:37840 - "GET /healthz HTTP/1.1" 200 OK
beat          | [2024-04-25 17:40:00,034: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-04-25 17:40:00,055: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[6e0e767e-644e-49dd-b2ed-abf2f6557bb6] received
worker        | [2024-04-25 17:40:00,124: INFO/ForkPoolWorker-2] HTTP Request: GET http://host.docker.internal:54321/rest/v1/integrations_user?select=%2A%2C%20integrations%20%28%29&integrations.integration_name=eq.notion "HTTP/1.1 200 OK"
worker        | [2024-04-25 17:40:00,128: INFO/ForkPoolWorker-2] Task celery_worker.process_integration_brain_sync[6e0e767e-644e-49dd-b2ed-abf2f6557bb6] succeeded in 0.06594220899978609s: None
backend-core  | INFO:     127.0.0.1:48368 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
backend-core  | INFO:     127.0.0.1:49764 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:42792 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:44760 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:33118 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
b

Twitter / LinkedIn details

No response

@joewinke joewinke added the bug Something isn't working label Apr 25, 2024
Copy link

dosubot bot commented Apr 25, 2024

The EACCES: permission denied error indicates a permissions issue with the /app/public/.well-known directory in your Docker setup. To resolve this, you need to ensure Docker has the necessary permissions to access this directory. You can adjust the permissions by running:

sudo chmod -R 755 /path/to/app/public/.well-known

Make sure to replace /path/to/app with the actual path to your application directory. This command changes the permissions recursively to allow read, write, and execute access for the owner, and read and execute access for others, which should resolve the permission denied error.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the area: backend Related to backend functionality or under the /backend directory label Apr 25, 2024
@joewinke
Copy link
Author

@dosu thank you - which app are we talking about? Docker? Quivr? A filesystem in a container?

Copy link

dosubot bot commented Apr 25, 2024

To address the EACCES: permission denied error for the /app/public/.well-known and /app/public/Homepage directories in your Docker setup, it's crucial to ensure the Docker container's user has the necessary permissions to access these directories. This involves setting the correct ownership within your Dockerfile, specifically for the Next.js application you're working with.

Here's a concise guide to adjust your Dockerfile for setting the correct permissions:

  1. Change Ownership of the Public Directory: Use the chown command in your Dockerfile to change the ownership of the /app/public directory and its subdirectories to the user and group your application runs as, typically nextjs and nodejs respectively.
# Example snippet from Dockerfile
RUN chown -R nextjs:nodejs ./public
  1. Adjust User Permissions: Ensure that the user your application runs as (e.g., nextjs) has the correct permissions to access and modify the necessary directories. This might involve creating the user and group if they don't already exist and then setting the ownership of application directories to this user.

  2. Review Docker Compose and Environment Configurations: Misconfigurations in your docker-compose.yml or environment variables can also lead to permission issues. Ensure that volume mounts, user permissions, and network configurations are correctly set up to allow proper access to all parts of your application.

  3. Diagnose with Logs: Check the application and Docker logs for specific error messages that could help identify the source of the permission issues. This can provide clues on whether the issue is related to file system permissions, network access, or configuration errors.

By following these steps, you should be able to resolve the permission issues and ensure your Dockerized Next.js application can access the necessary directories without encountering EACCES: permission denied errors.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@joewinke
Copy link
Author

This isn't helpful. I installed everything according to the (rather simple) instructions, I don't think I should have this permission error, but either way I don't know how to run that command, I can't find /public/.well-known

@StanGirard
Copy link
Collaborator

@joewinke Hey I tried to reproduce but I can't. Can you try to rebuild it ? with docker compose up --build

@joewinke
Copy link
Author

@StanGirard Thank you very much for helping. I ran it and it rebuilt, and then it began looping the same errors. Here is the log from running docker compose up --build:

/V/A/c/quivr (main) [1]> docker compose up --build
WARN[0000] /Volumes/A4/code/quivr/docker-compose.yml: `version` is obsolete 
[+] Building 344.2s (52/62)                                  docker:desktop-linux
 => [worker internal] load build definition from Dockerfile                  0.1s
 => => transferring dockerfile: 1.38kB                                       0.0s
 => [beat internal] load build definition from Dockerfile                    0.1s
 => => transferring dockerfile: 1.38kB                                       0.0s
 => [backend-core internal] load build definition from Dockerfile            0.0s
 => => transferring dockerfile: 1.38kB                                       0.0s
 => [flower internal] load metadata for docker.io/library/python:3.11.6-sli  1.3s
 => [backend-core internal] load .dockerignore                               0.0s
 => => transferring context: 195B                                            0.0s
 => [worker internal] load .dockerignore                                     0.0s
 => => transferring context: 195B                                            0.0s
 => [beat internal] load .dockerignore                                       0.0s
 => => transferring context: 195B                                            0.0s
 => [flower 1/8] FROM docker.io/library/python:3.11.6-slim-bullseye@sha256:  0.5s
 => => resolve docker.io/library/python:3.11.6-slim-bullseye@sha256:0c1fbb2  0.0s
 => => sha256:0c1fbb294096d842ad795ee232d783cab436c90b03421 1.65kB / 1.65kB  0.0s
 => => sha256:9a053770f240e0e007a41fa930d6a76452351593b408c 1.37kB / 1.37kB  0.0s
 => => sha256:8237f6fe5f93c0fdad650b173bca926b73bb5e3c85c60 6.93kB / 6.93kB  0.0s
 => [backend-core internal] load build context                               1.0s
 => => transferring context: 39.52MB                                         1.0s
 => [beat internal] load build context                                       1.1s
 => => transferring context: 39.52MB                                         1.1s
 => [worker internal] load build context                                     1.4s
 => => transferring context: 39.52MB                                         1.3s
 => CACHED [flower 2/8] RUN apt-get clean && apt-get update && apt-get in  136.8s
 => CACHED [flower 3/8] WORKDIR /code                                        0.2s
 => [worker 4/8] COPY ./requirements.txt .                                   0.1s 
 => [beat 5/8] RUN pip install --upgrade pip                                 7.2s 
 => [backend-core 6/8] RUN pip install --no-cache-dir -r requirements.txt  181.7s 
 => [worker 7/8] RUN if [ "" = "true" ]; then pip install --no-cache debugp  0.2s 
 => [beat 8/8] COPY . .                                                      0.2s 
 => [worker] exporting to image                                             14.8s
 => => exporting layers                                                     14.8s
 => => writing image sha256:935977d97e5b3f775c04893de669bc6e809ecc84bca3988  0.0s
 => => naming to docker.io/stangirard/quivr-backend-prebuilt:latest          0.0s
 => [backend-core] exporting to image                                       14.8s
 => => exporting layers                                                     14.8s
 => => writing image sha256:1ad9419418fea35ad4e95b3a084fe4a611ddaec6158e5ae  0.0s
 => => naming to docker.io/stangirard/quivr-backend-prebuilt:latest          0.0s
 => [beat] exporting to image                                               14.8s
 => => exporting layers                                                     14.8s
 => => writing image sha256:7c05a466bbc8c30843d9ed9bfc74a6420ba7070cae19098  0.0s
 => => naming to docker.io/stangirard/quivr-backend-prebuilt:latest          0.0s
 => [frontend internal] load build definition from Dockerfile                0.0s
 => => transferring dockerfile: 2.68kB                                       0.0s
 => [flower internal] load build definition from Dockerfile                  0.0s
 => => transferring dockerfile: 1.38kB                                       0.0s
 => [frontend internal] load metadata for docker.io/library/node:18.19.0-al  0.5s
 => [flower internal] load .dockerignore                                     0.0s
 => => transferring context: 195B                                            0.0s
 => [flower internal] load build context                                     0.2s
 => => transferring context: 21.30kB                                         0.2s
 => CACHED [flower 4/8] COPY ./requirements.txt .                            0.0s
 => CACHED [flower 5/8] RUN pip install --upgrade pip                        0.0s
 => CACHED [flower 6/8] RUN pip install --no-cache-dir -r requirements.txt   0.0s
 => CACHED [flower 7/8] RUN if [ "" = "true" ]; then pip install --no-cache  0.0s
 => CACHED [flower 8/8] COPY . .                                             0.0s
 => [flower] exporting to image                                              0.0s
 => => exporting layers                                                      0.0s
 => => writing image sha256:e0add0341466aef4db3177d4cf33410af6cc5e8532e5b8d  0.0s
 => => naming to docker.io/stangirard/quivr-backend-prebuilt:latest          0.0s
 => [frontend internal] load .dockerignore                                   0.0s
 => => transferring context: 340B                                            0.0s
 => [frontend internal] load build context                                   0.6s
 => => transferring context: 64.49kB                                         0.6s
 => [frontend base 1/1] FROM docker.io/library/node:18.19.0-alpine@sha256:0  0.0s
 => CACHED [frontend builder 1/4] WORKDIR /app                               0.0s
 => CACHED [frontend runner 2/8] RUN addgroup --system --gid 1001 nodejs     0.0s
 => CACHED [frontend runner 3/8] RUN adduser --system --uid 1001 nextjs      0.0s
 => CACHED [frontend deps 1/5] RUN apk add --no-cache libc6-compat python3   0.0s
 => CACHED [frontend deps 2/5] RUN yarn global add node-gyp                  0.0s
 => CACHED [frontend deps 3/5] WORKDIR /app                                  0.0s
 => CACHED [frontend deps 4/5] COPY package.json yarn.lock* package-lock.js  0.0s
 => CACHED [frontend deps 5/5] RUN     if [ -f yarn.lock ]; then yarn --fro  0.0s
 => CACHED [frontend builder 2/4] COPY --from=deps /app/node_modules ./node  0.0s
 => CACHED [frontend builder 3/4] COPY . .                                   0.0s
 => CACHED [frontend builder 4/4] RUN yarn build                             0.0s
 => CACHED [frontend runner 4/8] COPY --from=builder /app/public ./public    0.0s
 => CACHED [frontend runner 5/8] RUN mkdir .next                             0.0s
 => CACHED [frontend runner 6/8] RUN chown nextjs:nodejs .next               0.0s
 => CACHED [frontend runner 7/8] COPY --from=builder --chown=nextjs:nodejs   0.0s
 => CACHED [frontend runner 8/8] COPY --from=builder --chown=nextjs:nodejs   0.0s
 => [frontend] exporting to image                                            0.0s
 => => exporting layers                                                      0.0s
 => => writing image sha256:9de445d0598d16b1994f5e25c0ff20f89a5aa7d0b3f46bf  0.0s
 => => naming to docker.io/library/quivr-frontend-prebuilt                   0.0s
[+] Running 1/6
 ✔ Container redis         Created                                           0.0s 
 ⠇ Container beat          Recreated                                         0.8s 
 ⠇ Container backend-core  Recreated                                         0.8s 
 ⠇ Container worker        Recreated                                         0.8s 
 ⠸ Container web           Recreated                                         0.3s 
 ⠹ Container flower        Recreated                                         0.2s 
Attaching to backend-core, beat, flower, redis, web, worker
redis         | 1:C 28 Apr 2024 00:57:01.724 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis         | 1:C 28 Apr 2024 00:57:01.724 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis         | 1:C 28 Apr 2024 00:57:01.724 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis         | 1:M 28 Apr 2024 00:57:01.725 * monotonic clock: POSIX clock_gettime
redis         | 1:M 28 Apr 2024 00:57:01.727 * Running mode=standalone, port=6379.
redis         | 1:M 28 Apr 2024 00:57:01.728 * Server initialized
redis         | 1:M 28 Apr 2024 00:57:01.729 * Loading RDB produced by version 7.2.3
redis         | 1:M 28 Apr 2024 00:57:01.730 * RDB age 163808 seconds
redis         | 1:M 28 Apr 2024 00:57:01.730 * RDB memory usage when created 1.55 Mb
redis         | 1:M 28 Apr 2024 00:57:01.731 * Done loading RDB, keys loaded: 2, keys expired: 130.
redis         | 1:M 28 Apr 2024 00:57:01.732 * DB loaded from disk: 0.003 seconds
redis         | 1:M 28 Apr 2024 00:57:01.732 * Ready to accept connections tcp
backend-core  | INFO:     Uvicorn running on http://0.0.0.0:5050 (Press CTRL+C to quit)
backend-core  | INFO:     Started parent process [1]
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
web exited with code 0
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
web exited with code 1
flower        | [I 240428 00:57:05 command:168] Visit me at http://0.0.0.0:5555
flower        | [I 240428 00:57:05 command:176] Broker: redis://redis:6379/0
flower        | [I 240428 00:57:05 command:177] Registered tasks: 
flower        |     ['NotionConnectorLoad',
flower        |      'celery.accumulate',
flower        |      'celery.backend_cleanup',
flower        |      'celery.chain',
flower        |      'celery.chord',
flower        |      'celery.chord_unlock',
flower        |      'celery.chunks',
flower        |      'celery.group',
flower        |      'celery.map',
flower        |      'celery.starmap',
flower        |      'celery_worker.ping_telemetry',
flower        |      'celery_worker.process_integration_brain_sync',
flower        |      'celery_worker.process_integration_brain_sync_user_brain',
flower        |      'celery_worker.remove_onboarding_more_than_x_days_task',
flower        |      'process_crawl_and_notify',
flower        |      'process_file_and_notify']
flower        | [I 240428 00:57:05 mixins:228] Connected to redis://redis:6379/0
worker        | /usr/local/lib/python3.11/site-packages/celery/platforms.py:829: SecurityWarning: You're running the worker with superuser privileges: this is
worker        | absolutely not recommended!
worker        | 
worker        | Please specify a different user using the --uid option.
worker        | 
worker        | User information: uid=0 euid=0 gid=0 egid=0
worker        | 
worker        |   warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
beat          | [2024-04-28 00:57:05,282: INFO/MainProcess] beat: Starting...
worker        |  
worker        |  -------------- celery@ac1296708437 v5.4.0 (opalescent)
worker        | --- ***** ----- 
worker        | -- ******* ---- Linux-6.6.22-linuxkit-aarch64-with-glibc2.31 2024-04-28 00:57:05
worker        | - *** --- * --- 
worker        | - ** ---------- [config]
worker        | - ** ---------- .> app:         celery_config:0xffffaf56fe90
worker        | - ** ---------- .> transport:   redis://redis:6379/0
worker        | - ** ---------- .> results:     redis://redis:6379/0
worker        | - *** --- * --- .> concurrency: 10 (prefork)
worker        | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
worker        | --- ***** ----- 
worker        |  -------------- [queues]
worker        |                 .> celery           exchange=celery(direct) key=celery
worker        |                 
worker        | 
worker        | [tasks]
worker        |   . NotionConnectorLoad
worker        |   . celery_worker.ping_telemetry
worker        |   . celery_worker.process_integration_brain_sync
worker        |   . celery_worker.process_integration_brain_sync_user_brain
worker        |   . celery_worker.remove_onboarding_more_than_x_days_task
worker        |   . process_crawl_and_notify
worker        |   . process_file_and_notify
worker        | 
flower        | [W 240428 00:57:06 inspector:44] Inspect method revoked failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method active_queues failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method stats failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method scheduled failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method reserved failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method registered failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method conf failed
flower        | [W 240428 00:57:06 inspector:44] Inspect method active failed
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
worker        | [2024-04-28 00:57:06,741: WARNING/MainProcess] /usr/local/lib/python3.11/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
worker        | whether broker connection retries are made during startup in Celery 6.0 and above.
worker        | If you wish to retain the existing behavior for retrying connections on startup,
worker        | you should set broker_connection_retry_on_startup to True.
worker        |   warnings.warn(
worker        | 
worker        | [2024-04-28 00:57:06,800: INFO/MainProcess] Connected to redis://redis:6379/0
worker        | [2024-04-28 00:57:06,803: WARNING/MainProcess] /usr/local/lib/python3.11/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
worker        | whether broker connection retries are made during startup in Celery 6.0 and above.
worker        | If you wish to retain the existing behavior for retrying connections on startup,
worker        | you should set broker_connection_retry_on_startup to True.
worker        |   warnings.warn(
worker        | 
worker        | [2024-04-28 00:57:06,808: INFO/MainProcess] mingle: searching for neighbors
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
worker        | [2024-04-28 00:57:07,831: INFO/MainProcess] mingle: all alone
worker        | [2024-04-28 00:57:07,845: INFO/MainProcess] celery@ac1296708437 ready.
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
worker        | [2024-04-28 00:57:10,141: INFO/MainProcess] Events of group {task} enabled by remote.
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     Started server process [9]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [12]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [8]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [13]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [10]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
backend-core  | INFO:     Started server process [11]
backend-core  | INFO:     Waiting for application startup.
backend-core  | INFO:     Application startup complete.
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/.well-known'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/.well-known'
web           | }
backend-core  | INFO:     127.0.0.1:56872 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:43082 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:38962 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
backend-core  | INFO:     127.0.0.1:54064 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:44688 - "GET /healthz HTTP/1.1" 200 OK
web           |    ▲ Next.js 14.1.0
web           |    - Local:        http://localhost:3000
web           |    - Network:      http://0.0.0.0:3000
web           | 
web           | [Error: EACCES: permission denied, scandir '/app/public/Homepage'] {
web           |   errno: -13,
web           |   code: 'EACCES',
web           |   syscall: 'scandir',
web           |   path: '/app/public/Homepage'
web           | }
beat          | [2024-04-28 01:00:00,030: INFO/MainProcess] Scheduler: Sending due task ping_telemetry (celery_worker.ping_telemetry)
beat          | [2024-04-28 01:00:00,051: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-04-28 01:00:00,090: INFO/MainProcess] Task celery_worker.ping_telemetry[2eb05ca3-0b3c-4c66-b46d-78cbeb547b3f] received
worker        | [2024-04-28 01:00:00,108: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[b0f1dc7c-8999-4d5a-b6dd-a0b1f25f4aa0] received
worker        | [2024-04-28 01:00:00,238: INFO/ForkPoolWorker-2] Task celery_worker.ping_telemetry[2eb05ca3-0b3c-4c66-b46d-78cbeb547b3f] succeeded in 0.10043562500504777s: None
worker        | [2024-04-28 01:00:00,348: INFO/ForkPoolWorker-10] HTTP Request: GET http://host.docker.internal:54321/rest/v1/integrations_user?select=%2A%2C%20integrations%20%28%29&integrations.integration_name=eq.notion "HTTP/1.1 200 OK"
worker        | [2024-04-28 01:00:00,421: INFO/ForkPoolWorker-10] Task celery_worker.process_integration_brain_sync[b0f1dc7c-8999-4d5a-b6dd-a0b1f25f4aa0] succeeded in 0.30371841599117033s: None
worker        | [2024-04-28 01:00:01,635: INFO/ForkPoolWorker-2] HTTP Request: POST https://ovbvcnwemowuuuaebizd.supabase.co/functions/v1/telemetry "HTTP/1.1 200 OK"
backend-core  | INFO:     127.0.0.1:45232 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:45220 - "GET /healthz HTTP/1.1" 200 OK

@joewinke
Copy link
Author

@StanGirard any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants