langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
36.62k stars 4.96k forks source link

Can't open homepage because of a wrong linkage 127.0.0.1:9000 at 22:00 2024-06-29 #5751

Open Tommickey2020gmail opened 1 week ago

Tommickey2020gmail commented 1 week ago

Self Checks

Dify version

0.6.12

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. cd docker cp .env.example .env docker compose up -d
  2. open homepage
  3. check browse development page, some links forward to 127.0.0.1:9000

✔️ Expected Behavior

link to api:5001

❌ Actual Behavior

can not open homepage

takatost commented 1 week ago

Hey @Tommickey2020gmail, by default, you should be able to access the local deployment at http://127.0.0.1, with the default port being 80. If you have more info, pls share it with us!

Tommickey2020gmail commented 1 week ago

Hey @Tommickey2020gmail, by default, you should be able to access the local deployment at http://127.0.0.1, with the default port being 80. If you have more info, pls share it with us!

Please find the error information when open homepage:

搜狗截图20240630181853
Tommickey2020gmail commented 1 week ago

Hey @Tommickey2020gmail, by default, you should be able to access the local deployment at http://127.0.0.1, with the default port being 80. If you have more info, pls share it with us!

same issue: can not access 模型供应商 page,

搜狗截图20240630194809
takatost commented 1 week ago

Hey, can u paste the logs for the api service container? It'd help us pinpoint the issue.

Also, 0.6.12-fix1 is out! It fixes some bugs, so maybe try updating too.

Tommickey2020gmail commented 1 week ago

Hey, can u paste the logs for the api service container? It'd help us pinpoint the issue.

Also, 0.6.12-fix1 is out! It fixes some bugs, so maybe try updating too.


$ docker logs docker-api-1 Running migrations None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. Preparing database migration... Database migration skipped None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. [2024-06-30 13:37:54 +0000] [91] [INFO] Starting gunicorn 22.0.0 [2024-06-30 13:37:54 +0000] [91] [INFO] Listening at: http://0.0.0.0:5001 (91) [2024-06-30 13:37:54 +0000] [91] [INFO] Using worker: gevent [2024-06-30 13:37:54 +0000] [174] [INFO] Booting worker with pid: 174 2024-06-30 13:39:19,211.211 ERROR [Dummy-1] [app.py:838] - Exception on /console/api/apps [GET] Traceback (most recent call last): File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 146, in init self._dbapi_connection = engine.raw_connection() File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3300, in raw_connection return self.pool.connect() File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 449, in connect return _ConnectionFairy._checkout(self) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 712, in checkout rec = pool._do_get() File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get with util.safe_reraise(): File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in exit raise exc_value.with_traceback(exc_tb) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get return self._create_connection() File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection return _ConnectionRecord(self) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 674, in init self.connect() File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 900, in connect with util.safe_reraise(): File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in exit raise exc_value.with_traceback(exc_tb) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 896, in connect self.dbapi_connection = connection = pool._invoke_creator(self) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 643, in connect return dialect.connect(*cargs, *cparams) File "/app/api/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 620, in connect return self.loaded_dbapi.connect(cargs, **cparams) File "/app/api/.venv/lib/python3.10/site-packages/psycopg2/init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: could not translate host name "db" to address: Name or service not known

PKuebler commented 6 days ago

I have the same problem. The API does not start or writes the following error message. This means that the web frontend cannot access the API.

api-1         | None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
api-1         |
api-1         | Aborted!