Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ide chart : cannot working backend sts with sqlite #21

Open
suminhong opened this issue Dec 17, 2024 · 4 comments
Open

ide chart : cannot working backend sts with sqlite #21

suminhong opened this issue Dec 17, 2024 · 4 comments

Comments

@suminhong
Copy link

Hi, I'm simply trying to install this langflow-ide chart on my company's Kubernetes.

I used the value file below.

langflow:
  backend:
    replicaCount: 1
    service:
      type: ClusterIP
      port: 7860
    backendOnly: true
    numWorkers: 1
    image:
      tag: v1.1.1
    sqlite:
      enabled: true
      volume:
        size: "10Gi"
        existingStorageClassName: "gp3"
    env:
      - name: LANGFLOW_PORT
        value: "7860"
  
  frontend:
    enabled: true
    replicaCount: 1
    service:
      type: ClusterIP
      port: 8080
    image:
      tag: v1.1.1

But the following error occurs.

                             │                                     │
                             │    618 │                            │
                             │    619 │   def connect(self, *cargs │
                             │    620 │   │   # inherits the docst │
                             │ ❱  621 │   │   return self.loaded_d │
                             │    622 │                            │
                             │    623 │   def create_connect_args( │
                             │    624 │   │   # inherits the docst │
                             ╰─────────────────────────────────────╯
                             OperationalError: unable to open
                             database file
                             The above exception was the direct
                             cause of the following exception:
                             ╭─ Traceback (most recent call last) ─╮
                             │ /app/.venv/lib/python3.12/site-pack │
                             │ ages/sqlalchemy/engine/default.py:6 │
                             │ 21 in connect                       │
                             │                                     │
                             │    618 │                            │
                             │    619 │   def connect(self, *cargs │
                             │    620 │   │   # inherits the docst │
                             │ ❱  621 │   │   return self.loaded_d │
                             │    622 │                            │
                             │    623 │   def create_connect_args( │
                             │    624 │   │   # inherits the docst │
                             ╰─────────────────────────────────────╯
                             OperationalError:
                             (sqlite3.OperationalError) unable to
                             open database file
                             (Background on this error at:
                             https://sqlalche.me/e/20/e3q8)

Can you tell me what the problem might be? frontend pod is fine.

@dkpvw
Copy link

dkpvw commented Dec 24, 2024

I am also facing the same when i try to deploy this on AKS. Kindly help

@elolivier
Copy link

Hi @suminhong / @dkpvw take a look at this comment in the values.yaml, could be the existingStorageClassName you are using.

@suminhong
Copy link
Author

@elolivier
Hi. It's true that I want to use an already existing storage class. What's the problem with this?

@elolivier-nxp
Copy link

@suminhong There is no problem (or at least it shouldn't) just that I think you need to provide the storageClass configuration since you're not using default one. This storage class determines how k8s provisions the underlying storage for SQLite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants