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

Backend Pod fails to start due to Pydanic parsing error in >v1.1 #18

Open
busbyjon opened this issue Dec 12, 2024 · 2 comments
Open

Backend Pod fails to start due to Pydanic parsing error in >v1.1 #18

busbyjon opened this issue Dec 12, 2024 · 2 comments

Comments

@busbyjon
Copy link

Logs from Backend Pod

│ │ data = { │ │
│ │ │ 'database_url': 'sqlite:////data/langflow.db', │ │
│ │ │ 'backend_only': 'true', │ │
│ │ │ 'host': '0.0.0.0', │ │
│ │ │ 'port': 'tcp://172.20.212.70:8080' │ │
│ │ } │ │
│ │ self = Settings() │ │
│ ╰───────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
ValidationError: 1 validation error for Settings
port
Input should be a valid integer, unable to parse string as an integer
[type=int_parsing, input_value='tcp://172.20.212.70:8080', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/int_parsing

It appears Pydantic is failing to parse the "port" value, despite this being required to read the frontend service.

Reverting to v1.0.18 solved the issue, however this will need to fixed upstream.

@suminhong
Copy link

hi. I also had the same problem, and I solved it by adding an environment variable as shown below.

langflow:
  backend:
    env:
      - name: LANGFLOW_PORT
        value: "7860"

@dkpvw
Copy link

dkpvw commented Dec 23, 2024

@suminhong where did you make this change? Kindly guide me

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

3 participants