Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Status: 500 Error: documentStoreServices.insertIntoVectorStore - SQLITE_READONLY: attempt to write a readonly database

Open SCHAT-spec opened this issue 2 years ago • 2 comments

2024-10-14 14 37 32 2024-10-14 14 37 44 When I select 2024-10-14 14 41 13 I get this STatus Status: 500 Error: documentStoreServices.insertIntoVectorStore - SQLITE_READONLY: attempt to write a readonly database

Setup

  • npx flowise start
  • Flowise Version 2.1.2
  • Windows
  • chrome

Also Unable to 'Add New Document Store'

SCHAT-spec avatar Oct 14 '24 12:10 SCHAT-spec

The error you're encountering may be related to the location where the SQLite database file is being saved. I experienced a similar issue in a localhost environment due to the following environment configuration:

DATABASE_PATH=/root/.flowise
APIKEY_PATH=/root/.flowise
SECRETKEY_PATH=/root/.flowise
LOG_PATH=/root/.flowise/logs
BLOB_STORAGE_PATH=/root/.flowise/storage

To resolve this issue, I recommend modifying the paths to a location where your application has the necessary read and write permissions. After adjusting the paths accordingly, the problem should be resolved.

Additionally, ensure that:

  1. The specified directories exist and have the correct permissions.
  2. Your application has sufficient privileges to access and modify these locations.
  3. There are no conflicts with other processes or applications using the same paths.

If you continue to experience issues after making these changes, please provide more details about your specific environment and the exact error message you're receiving.

thanks @AndersonNascimentoDosSantos ! Yes, you need to have read write permission to the database.

HenryHengZJ avatar Oct 21 '24 15:10 HenryHengZJ