langflow 无法定位由xxx标识的修订

xwmevbvl  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(35)

Bug Description

[2024-07-24 03:11:41 +0000] [1] [INFO] Starting gunicorn 21.2.0
[2024-07-24 03:11:41 +0000] [1] [INFO] Listening at: http://0.0.0.0:7860 (1)
[2024-07-24 03:11:41 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2024-07-24 03:11:41 +0000] [31] [INFO] Booting worker with pid: 31
[2024-07-24 03:11:41 +0000] [31] [INFO] Started server process [31]
[2024-07-24 03:11:41 +0000] [31] [INFO] Waiting for application startup.
[07/24/24 03:11:41] INFO 2024-07-24 03:11:41 - info: service.py:142
service - Alembic already
initialized
INFO 2024-07-24 03:11:41 - info: service.py:150
service - Running DB migrations in
/home/user/.local/lib/python3.10/sit
e-packages/langflow/alembic
WARNING 2024-07-24 03:11:41 - WARNING - utils utils.py:43

  • Wrong revision in DB, deleting
    alembic_version table and running
    migrations again
    INFO 2024-07-24 03:11:41 - info: service.py:142
    service - Alembic already
    initialized
    INFO 2024-07-24 03:11:41 - info: service.py:150
    service - Running DB migrations in
    /home/user/.local/lib/python3.10/sit
    e-packages/langflow/alembic
    ERROR 2024-07-24 03:11:41 - ERROR - utils utils.py:216
  • Can't locate revision identified by
    'bc804d8e7a18'
    [2024-07-24 03:11:41 +0000] [31] [ERROR] (Traceback most recent call last):
    File "/home/user/.local/lib/python3.10/site-packages/alembic/script/base.py", line 251, in catch_revision_errors yield
    File "/home/user/.local/lib/python3.10/site-packages/alembic/script/base.py", line 314, in get_revisions
    self.revision_map.get_revisions(id
    ),
    File "/home/user/.local/lib/python3.10/site-packages/alembic/revision.py", line 543, in get_revisions
    return sum([self.get_revisions(id_elem) for id_elem in id], ()),
    File "/home/user/.local/lib/python3.10/site-packages/alembic/revision.py, line 543, in return sum([self.get_revisions(id_elem) for id_elem in id], ()),
    File "/home/user/.local/lib/python3.10/site-packages/alembic/revision.py, line 566, in get_revisions
    return tuple(
    File "/home/user/.local/lib/python3.10/site-packages/alembic/revision.py, line 567, in self._revision_for_ident(rev_id, branch_label)
    raise ResolutionError(
    alembic.script.revision.ResolutionError: No such revision or branch 'bc804d8e7a18'
    The above exception was the direct cause of the following exception:
    Traceback (most recent call last):
    File "langflow/services/database/service.py", line 153, in run_migrations command.check(alembic_cfg)
    File "langflow/services/database/service.py", line 99, in check
    from langflow import models # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it's used here to avoid circular import errors # noqa is not needed on PyPI but it't
    无法定位由'bc804d8e7a18'标识的修订版本。
    无法找到指定的修订版本或分支'bc804d8e7a18'。
    无法定位由'bc804d8e7a18'标识的修订版本。

[2024-07-24 03:11:41 +0000] [31] [ERROR] 应用程序启动失败。退出。
[2024-07-24 03:11:41 +0000] [31] [INFO] 工作进程退出(pid: 31)
[2024-07-24 03:11:42 +0000] [1] [ERROR] 工作进程(pid:31)以代码3退出
[2024-07-24 03:11:42 +0000] [1] [ERROR] 关闭中:主节点
[2024-07-24 03:11:42 +0000] [1] [ERROR] 原因:工作进程启动失败。

重现问题

从0.6.10升级到1.0.12出现问题。
尝试运行langflow migration --fix,但仍然出现此错误。

预期行为

正确启动。

求助对象

  • 无响应*

操作系统

Docker镜像

Langflow版本

1.0.12

Python版本

None

643ylb08

643ylb081#

要解决在从0.6.10版本升级到1.0.12版本后尝试启动Langflow时出现的错误 "Can't locate revision identified by 'bc804d8e7a18'" ,你应该通过删除缓存文件夹的内容来清除缓存。当新版本无法覆盖缓存目录中的langflow-pre.db时,会出现此错误。

缓存文件夹的位置如下:

  • Linux或WSL2在Windows上: home/<username>/.cache/langflow/
  • MacOS: /Users/<username>/Library/Caches/langflow/

如果你想保留文件,请在清空文件夹之前备份它们。
此外,如果你遇到错误 "Something went wrong running migrations. Please, run 'langflow migration --fix'",按照上述方法清除缓存应该可以解决1(https://github.com/langflow-ai/langflow/blob/dev/docs/docs/getting-started/possible-installation-issues.mdx)2(https://github.com/langflow-ai/langflow/blob/main/docs/docs/getting-started/possible-installation-issues.mdx)3(https://github.com/langflow-ai/langflow/blob/dev/docs/docs/migration/possible-installation-issues.mdx)问题。

  • 要继续与Dosu交谈,请提及@dosu。*

相关问题