From b097efe94b7ac0975d8b0fe47c3dfb47316a62b2 Mon Sep 17 00:00:00 2001 From: Sam Arbid <36583694+Samk13@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:51:09 +0200 Subject: [PATCH] Docs: Clearing Cache to Resolve Setup Errors (#1802) docs: how to clear cache on error * Detailed description found here --- docs/docs/migration/possible-installation-issues.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/docs/migration/possible-installation-issues.mdx b/docs/docs/migration/possible-installation-issues.mdx index 522ca76ce..fbaa6b095 100644 --- a/docs/docs/migration/possible-installation-issues.mdx +++ b/docs/docs/migration/possible-installation-issues.mdx @@ -25,3 +25,15 @@ For this error to occur, two scenarios are possible: In this case, you might not be running the correct executable. To solve this issue, you can run the correct executable by running _`python -m langflow run`_ instead of _`langflow run`_ and if that doesn't work, you can try uninstalling langflow and reinstalling it using _`python -m pip install langflow --pre -U`_. 2. Some version conflicts might have occurred during the installation process. Run _`python -m pip install langflow --pre -U --force-reinstall`_ to reinstall langflow and its dependencies. + +## _`Something went wrong running migrations. Please, run 'langflow migration --fix'`_ + +TLDR; + +- Clear the cache by deleting the contents of the cache folder. +This folder can be found at: + - **Linux or WSL2 on Windows**: `home//.cache/langflow/` + - **MacOS**: `/Users//Library/Caches/langflow/` +If you wish to retain your files, ensure to back them up before clearing the folder. + +This error often occurs when upgrading Langflow, the new version can't override `langflow-pre.db in `.cache/langflow/`. Clearing the cache removes this file but will also erase your settings. \ No newline at end of file