QuivrHQ / quivr

Open-source RAG Framework for building GenAI Second Brains 🧠 Build productivity assistant (RAG) ⚡️🤖 Chat with your docs (PDF, CSV, ...) & apps using Langchain, GPT 3.5 / 4 turbo, Private, Anthropic, VertexAI, Ollama, LLMs, Groq that you can share with users ! Efficient retrieval augmented generation framework
https://quivr.com
Other
33.96k stars 3.33k forks source link

[Bug]: #2554

Closed runningcd closed 1 month ago

runningcd commented 1 month ago

What happened?

I'm deploying on a remote server, and http://ip:3000 accessing after docker compose starts, neither js nor css resources can be loaded, like http://ip:3000/_next/static/css/59ffadf4069e4968.css error

docker compose logs

$ docker compose up
[+] Running 4/0
 ✔ Container backend-core  Recreated                                                                                                                                                                        0.0s
 ✔ Container redis         Recreated                                                                                                                                                                        0.0s[+] Running 6/5
 ✔ Container backend-core  Recreated                                                                                                                                                                        0.0s
 ✔ Container redis         Recreated                                                                                                                                                                        0.0s ✔ Container web           Recreated                                                                                                                                                                        0.0s
 ✔ Container beat          Recreated                                                                                                                                                                        0.0s
 ✔ Container worker        Recreated                                                                                                                                                                        0.0s
 ✔ Container web           Recreated                                                                                                                                                                        0.0s
 ✔ Container flower        Recreated                                                                                                                                                                        0.0s
Attaching to backend-core, beat, flower, redis, web, worker
redis         | 1:C 07 May 2024 07:39:19.363 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis         | 1:C 07 May 2024 07:39:19.364 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis         | 1:C 07 May 2024 07:39:19.364 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis         | 1:C 07 May 2024 07:39:19.364 # 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 07 May 2024 07:39:19.366 * monotonic clock: POSIX clock_gettime
redis         | 1:M 07 May 2024 07:39:19.368 * Running mode=standalone, port=6379.
redis         | 1:M 07 May 2024 07:39:19.371 * Server initialized
redis         | 1:M 07 May 2024 07:39:19.371 * 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           |  ✓ Ready in 96ms
beat          | [2024-05-07 07:39:23,592: INFO/MainProcess] beat: Starting...
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(
worker        |
worker        |  -------------- celery@4dd454ae941b v5.4.0 (opalescent)
worker        | --- ***** -----
worker        | -- ******* ---- Linux-5.15.0-92-generic-x86_64-with-glibc2.31 2024-05-07 07:39:23
worker        | - *** --- * ---
worker        | - ** ---------- [config]
worker        | - ** ---------- .> app:         celery_config:0x7f9c7f6b0b10
worker        | - ** ---------- .> transport:   redis://redis:6379/0
worker        | - ** ---------- .> results:     redis://redis:6379/0
worker        | - *** --- * --- .> concurrency: 80 (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        | [I 240507 07:39:24 command:168] Visit me at http://0.0.0.0:5555
flower        | [I 240507 07:39:24 command:176] Broker: redis://redis:6379/0
flower        | [I 240507 07:39:24 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 240507 07:39:24 mixins:228] Connected to redis://redis:6379/0
backend-core  | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
backend-core  | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
backend-core  |   warnings.warn(
backend-core  | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
backend-core  | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
backend-core  |   warnings.warn(
backend-core  | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
backend-core  | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
backend-core  |   warnings.warn(
flower        | [W 240507 07:39:25 inspector:44] Inspect method stats failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method active failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method registered failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method active_queues failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method scheduled failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method conf failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method reserved failed
flower        | [W 240507 07:39:25 inspector:44] Inspect method revoked failed
backend-core  | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
backend-core  | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
backend-core  |   warnings.warn(
backend-core  | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
backend-core  | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
backend-core  |   warnings.warn(
backend-core  | /usr/local/lib/python3.11/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
backend-core  | from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
backend-core  |   warnings.warn(
backend-core  | INFO:     Started server process [11]
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 [10]
backend-core  | INFO:     Waiting for application startup.
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 [13]
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.
worker        | [2024-05-07 07:39:36,989: 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-05-07 07:39:36,999: INFO/MainProcess] Connected to redis://redis:6379/0
worker        | [2024-05-07 07:39:37,003: 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-05-07 07:39:37,012: INFO/MainProcess] mingle: searching for neighbors
worker        | [2024-05-07 07:39:38,027: INFO/MainProcess] mingle: all alone
worker        | [2024-05-07 07:39:38,102: INFO/MainProcess] celery@4dd454ae941b ready.
worker        | [2024-05-07 07:39:39,113: INFO/MainProcess] Events of group {task} enabled by remote.
backend-core  | INFO:     127.0.0.1:44276 - "GET /healthz HTTP/1.1" 200 OK
beat          | [2024-05-07 07:40:00,007: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-05-07 07:40:00,022: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[c8866018-53e0-48ca-9041-cfef755e06dc] received
worker        | [2024-05-07 07:40:00,123: INFO/ForkPoolWorker-58] 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-05-07 07:40:00,146: INFO/ForkPoolWorker-58] Task celery_worker.process_integration_brain_sync[c8866018-53e0-48ca-9041-cfef755e06dc] succeeded in 0.11798032792285085s: None
backend-core  | INFO:     127.0.0.1:55268 - "GET /healthz HTTP/1.1" 200 OK
web           | react-i18next:: You will need to pass in an i18next instance by using initReactI18next
web           | i18next: languageChanged en
web           | i18next: initialized {
web           |   debug: true,
web           |   initImmediate: true,
web           |   ns: [ 'translation' ],
web           |   defaultNS: 'translation',
web           |   fallbackLng: [ 'en' ],
web           |   fallbackNS: false,
web           |   supportedLngs: false,
web           |   nonExplicitSupportedLngs: false,
web           |   load: 'all',
web           |   preload: false,
web           |   simplifyPluralSuffix: true,
web           |   keySeparator: '.',
web           |   nsSeparator: ':',
web           |   pluralSeparator: '_',
web           |   contextSeparator: '_',
web           |   partialBundledLanguages: false,
web           |   saveMissing: false,
web           |   updateMissing: false,
web           |   saveMissingTo: 'fallback',
web           |   saveMissingPlurals: true,
web           |   missingKeyHandler: false,
web           |   missingInterpolationHandler: false,
web           |   postProcess: false,
web           |   postProcessPassResolved: false,
web           |   returnNull: false,
web           |   returnEmptyString: true,
web           |   returnObjects: false,
web           |   joinArrays: false,
web           |   returnedObjectHandler: false,
web           |   parseMissingKeyHandler: false,
web           |   appendNamespaceToMissingKey: false,
web           |   appendNamespaceToCIMode: false,
web           |   overloadTranslationOptionHandler: [Function: overloadTranslationOptionHandler],
web           |   interpolation: {
web           |     escapeValue: false,
web           |     format: [Function: bound format],
web           |     prefix: '{{',
web           |     suffix: '}}',
web           |     formatSeparator: ',',
web           |     unescapePrefix: '-',
web           |     nestingPrefix: '$t(',
web           |     nestingSuffix: ')',
web           |     nestingOptionsSeparator: ',',
web           |     maxReplaces: 1000,
web           |     skipOnVariables: true
web           |   },
web           |   lng: 'en',
web           |   resources: {
web           |     en: {
web           |       brain: [Object],
web           |       chat: [Object],
web           |       config: [Object],
web           |       contact: [Object],
web           |       explore: [Object],
web           |       home: [Object],
web           |       invitation: [Object],
web           |       login: [Object],
web           |       logout: [Object],
web           |       monetization: [Object],
web           |       translation: [Object],
web           |       upload: [Object],
web           |       user: [Object],
web           |       delete_or_unsubscribe_from_brain: [Object],
web           |       knowledge: [Object],
web           |       external_api_definition: [Object]
web           |     },
web           |     es: {
web           |       brain: [Object],
web           |       chat: [Object],
web           |       config: [Object],
web           |       contact: [Object],
web           |       explore: [Object],
web           |       home: [Object],
web           |       invitation: [Object],
web           |       login: [Object],
web           |       logout: [Object],
web           |       monetization: [Object],
web           |       translation: [Object],
web           |       upload: [Object],
web           |       user: [Object],
web           |       delete_or_unsubscribe_from_brain: [Object],
web           |       knowledge: [Object],
web           |       external_api_definition: [Object]
web           |     },
web           |     fr: {
web           |       brain: [Object],
web           |       chat: [Object],
web           |       config: [Object],
web           |       contact: [Object],
web           |       explore: [Object],
web           |       home: [Object],
web           |       invitation: [Object],
web           |       login: [Object],
web           |       logout: [Object],
web           |       monetization: [Object],
web           |       translation: [Object],
web           |       upload: [Object],
web           |       user: [Object],
web           |       delete_or_unsubscribe_from_brain: [Object],
web           |       knowledge: [Object],
web           |       external_api_definition: [Object]
web           |     },
web           |     ptbr: {
web           |       brain: [Object],
web           |       chat: [Object],
web           |       config: [Object],
web           |       contact: [Object],
web           |       explore: [Object],
web           |       home: [Object],
web           |       invitation: [Object],
web           |       login: [Object],
web           |       logout: [Object],
web           |       monetization: [Object],
web           |       translation: [Object],
web           |       upload: [Object],
web           |       user: [Object],
web           |       delete_or_unsubscribe_from_brain: [Object],
web           |       knowledge: [Object],
web           |       external_api_definition: [Object]
web           |     },
web           |     ru: {
web           |       brain: [Object],
web           |       chat: [Object],
web           |       config: [Object],
web           |       contact: [Object],
web           |       explore: [Object],
web           |       home: [Object],
web           |       invitation: [Object],
web           |       login: [Object],
web           |       logout: [Object],
web           |       monetization: [Object],
web           |       translation: [Object],
web           |       upload: [Object],
web           |       user: [Object],
web           |       delete_or_unsubscribe_from_brain: [Object],
web           |       knowledge: [Object],
web           |       external_api_definition: [Object]
web           |     },
web           |     zh_cn: {
web           |       brain: [Object],
web           |       chat: [Object],
web           |       config: [Object],
web           |       contact: [Object],
web           |       explore: [Object],
web           |       home: [Object],
web           |       invitation: [Object],
web           |       login: [Object],
web           |       logout: [Object],
web           |       monetization: [Object],
web           |       translation: [Object],
web           |       upload: [Object],
web           |       user: [Object],
web           |       delete_or_unsubscribe_from_brain: [Object],
web           |       knowledge: [Object],
web           |       external_api_definition: [Object]
web           |     }
web           |   },
web           |   ignoreJSONStructure: true
web           | }
backend-core  | INFO:     127.0.0.1:41654 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:41916 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:33966 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:38510 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:33372 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:39376 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:45078 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:60120 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:45350 - "GET /healthz HTTP/1.1" 200 OK
beat          | [2024-05-07 07:45:00,000: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-05-07 07:45:00,014: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[f97dacb7-309f-4e3b-8a89-2bd57c67a392] received
worker        | [2024-05-07 07:45:00,088: INFO/ForkPoolWorker-58] 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-05-07 07:45:00,092: INFO/ForkPoolWorker-58] Task celery_worker.process_integration_brain_sync[f97dacb7-309f-4e3b-8a89-2bd57c67a392] succeeded in 0.06444071093574166s: None
backend-core  | INFO:     127.0.0.1:38640 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:40282 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:50128 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:44592 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:43968 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:39140 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:54838 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:50410 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:47612 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:56654 - "GET /healthz HTTP/1.1" 200 OK
beat          | [2024-05-07 07:50:00,000: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-05-07 07:50:00,009: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[bcafd622-9427-48f0-8169-124a5c33b81b] received
worker        | [2024-05-07 07:50:00,077: INFO/ForkPoolWorker-58] 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-05-07 07:50:00,081: INFO/ForkPoolWorker-58] Task celery_worker.process_integration_brain_sync[bcafd622-9427-48f0-8169-124a5c33b81b] succeeded in 0.06418380001559854s: None
backend-core  | INFO:     127.0.0.1:42752 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:43490 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:56192 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:40650 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:50974 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:60008 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:36326 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:41380 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:53122 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:60786 - "GET /healthz HTTP/1.1" 200 OK
beat          | [2024-05-07 07:55:00,000: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-05-07 07:55:00,008: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[ea7bb2f4-a906-42f1-a338-eb4c035ecada] received
worker        | [2024-05-07 07:55:00,077: INFO/ForkPoolWorker-58] 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-05-07 07:55:00,081: INFO/ForkPoolWorker-58] Task celery_worker.process_integration_brain_sync[ea7bb2f4-a906-42f1-a338-eb4c035ecada] succeeded in 0.0660426109097898s: None
backend-core  | INFO:     127.0.0.1:56606 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:49926 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:35052 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:41498 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:37388 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:54498 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:35352 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:44404 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:54980 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:54752 - "GET /healthz HTTP/1.1" 200 OK
beat          | [2024-05-07 08:00:00,000: INFO/MainProcess] Scheduler: Sending due task ping_telemetry (celery_worker.ping_telemetry)
beat          | [2024-05-07 08:00:00,004: INFO/MainProcess] Scheduler: Sending due task process_integration_brain_sync (celery_worker.process_integration_brain_sync)
worker        | [2024-05-07 08:00:00,012: INFO/MainProcess] Task celery_worker.ping_telemetry[773ea4f0-eb0f-44b9-b8a3-419a973bd856] received
worker        | [2024-05-07 08:00:00,024: INFO/MainProcess] Task celery_worker.process_integration_brain_sync[407413c9-8ea3-4150-8c8b-27d639e460de] received
worker        | [2024-05-07 08:00:00,025: INFO/ForkPoolWorker-58] Task celery_worker.ping_telemetry[773ea4f0-eb0f-44b9-b8a3-419a973bd856] succeeded in 0.00500658992677927s: None
worker        | [2024-05-07 08:00:00,092: INFO/ForkPoolWorker-58] 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-05-07 08:00:00,096: INFO/ForkPoolWorker-58] Task celery_worker.process_integration_brain_sync[407413c9-8ea3-4150-8c8b-27d639e460de] succeeded in 0.06486844271421432s: None
worker        | [2024-05-07 08:00:03,632: INFO/ForkPoolWorker-58] HTTP Request: POST https://ovbvcnwemowuuuaebizd.supabase.co/functions/v1/telemetry "HTTP/1.1 200 OK"
backend-core  | INFO:     127.0.0.1:49062 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:47000 - "GET /healthz HTTP/1.1" 200 OK
redis         | 1:M 07 May 2024 08:01:07.496 * 100 changes in 300 seconds. Saving...
redis         | 1:M 07 May 2024 08:01:07.497 * Background saving started by pid 20
redis         | 20:C 07 May 2024 08:01:07.501 * DB saved on disk
redis         | 20:C 07 May 2024 08:01:07.502 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
redis         | 1:M 07 May 2024 08:01:07.598 * Background saving terminated with success
backend-core  | INFO:     127.0.0.1:53736 - "GET /healthz HTTP/1.1" 200 OK

Relevant log output

No response

Twitter / LinkedIn details

No response

StanGirard commented 1 month ago

Make sure to change the env variable specified in https://docs.quivr.app/deployment/digital_ocean part 9 ;)

dosubot[bot] commented 1 month ago

Hey there, @runningcd! 👋 I'm Dosu, a friendly bot here to assist you while we wait for a human maintainer to join. Whether it's squashing bugs, answering questions, or helping you contribute, I've got your back. Let's take a peek at your issue, shall we? I'll have a full answer for you shortly! 🤖

StanGirard commented 1 month ago

It should be 192.168.0.18 in your FRONTEND URL env variable

dosubot[bot] commented 1 month ago

To address the issue with JS and CSS resources not loading, consider the following steps:

  1. Check for Browser Extensions: Disable any extensions that might block resources, or try accessing the site in incognito mode or a different browser.

  2. Server CORS Policy: Ensure your backend service includes CORS headers to allow resources from the frontend service. For FastAPI, use CORSMiddleware to add CORS headers, specifying your frontend URL in allow_origins.

  3. Environment Variable: Confirm the NEXT_PUBLIC_FRONTEND_URL environment variable is correctly set to your frontend's URL in the .env file or directly in the docker-compose.yml under the frontend service.

  4. Redis Memory Overcommit Warning: This warning suggests the host system may not have enough memory for Redis. Consider increasing your system's memory or configuring Redis to use less memory.

  5. Celery Worker Running as Superuser: Running Celery with superuser privileges is not recommended. Create a dedicated user for running the Celery worker to mitigate potential security risks.

  6. LangChainDeprecationWarnings: Update your code to replace deprecated LangChain library features with their latest versions.

  7. Flower Inspection Issues: Check Flower's configuration and dashboard to ensure it's correctly monitoring Celery workers.

  8. Celery Deprecation Warning: Update your code according to the Celery documentation to address features that will be removed in future versions.

By following these steps, you should be able to resolve the loading issues with your JS and CSS resources.

#### Details **Sources** - [Error with Docker compose for backend ](https://github.com/QuivrHQ/quivr/issues/651) - [Localhost:3000 doesn't load the app](https://github.com/QuivrHQ/quivr/issues/281) - [Can't access frontend, it will remain loaded and cannot be accessed.](https://github.com/QuivrHQ/quivr/issues/217) - [docker-compose.yml](https://github.com/QuivrHQ/quivr/blob/main/docker-compose.yml) - [docker-compose.redis.yml](https://github.com/QuivrHQ/quivr/blob/main/docker-compose.redis.yml) - [backend/middlewares/cors.py](https://github.com/QuivrHQ/quivr/blob/main/backend/middlewares/cors.py) - [.env.example](https://github.com/QuivrHQ/quivr/blob/main/.env.example) - [docker-compose.dev.yml](https://github.com/QuivrHQ/quivr/blob/main/docker-compose.dev.yml) - [backend/celery_config.py](https://github.com/QuivrHQ/quivr/blob/main/backend/celery_config.py) - [backend/celery_worker.py](https://github.com/QuivrHQ/quivr/blob/main/backend/celery_worker.py)
**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.

runningcd commented 1 month ago

Make sure to change the env variable specified in https://docs.quivr.app/deployment/digital_ocean part 9 ;)

@StanGirard It works. Thank you for your help.