FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
30.23k stars 15.62k forks source link

Flows and Credentials not persisting on huggingface #1577

Open lastenfahradwahn opened 8 months ago

lastenfahradwahn commented 8 months ago

Hi I am having a problem. I have used the documentation instructions to install flowise on huggingface. I have purchased persistence for the space, but my Flows and Credentials (API Keys) are not persisting across reboots. I am running 1.4.10, and do not seem to remember this issue existing with previous versions.

HenryHengZJ commented 8 months ago

we didn't make any changes to persisting credentials on 1.4.10, can you verify that previous version works?

bigsk1 commented 7 months ago

having same issue what was the fix @lastenfahradwahn the /data is persistant store but flowise saves to root/.flowise , so do we need to change the Dockerfile to /data/.flowise ?

BenGardiner123 commented 3 months ago

Same thing here, what ended up being the solution can I ask @bigsk1 and @lastenfahradwahn

BenGardiner123 commented 3 months ago

Leaving this here for anyone who has this issue. @bigsk1

The docs aren't right if you want to persist storage.

FROM node:18-alpine
USER root

# Arguments that can be passed at build time
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
ARG BASE_PATH=/data/.flowise
ARG DATABASE_PATH=$BASE_PATH
ARG APIKEY_PATH=$BASE_PATH
ARG SECRETKEY_PATH=$BASE_PATH
ARG LOG_PATH=$BASE_PATH/logs
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage

# Set the ARGs as ENV
ENV FLOWISE_PATH=$FLOWISE_PATH
ENV BASE_PATH=$BASE_PATH
ENV DATABASE_PATH=$DATABASE_PATH
ENV APIKEY_PATH=$APIKEY_PATH
ENV SECRETKEY_PATH=$SECRETKEY_PATH
ENV LOG_PATH=$LOG_PATH

# Install dependencies
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium

ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

# Install Flowise globally
RUN npm install -g flowise
# # Configure Flowise directories using the ARG
RUN mkdir -p $FLOWISE_PATH/uploads /data && chmod -R 777 $FLOWISE_PATH /data

WORKDIR /data

CMD ["sh", "-c", "mkdir -p $LOG_PATH && chmod -R 777 $LOG_PATH && npx flowise start"]

taken from https://huggingface.co/spaces/FlowiseAI/Flowise/discussions/1/files