Skip to content

starter projects can not be loaded into database #11145

@Simonzhaohui

Description

@Simonzhaohui

Bug Description

When I deploy Langflow 1.7.1 on Kubernetes cluster, the starter projects can't be loaded into database.
This issue is found with both of postgresql and sqlite database.

NOTES: No similar issue with langflow 1.6.9

When I enable debug log, get below messages:

2025-12-25T09:25:33.292882Z [debug    ] Creating/updating starter projects
2025-12-25T09:25:33.299716Z [debug    ] Loading starter projects
2025-12-25T09:25:33.350651Z [debug    ] Loaded 33 starter projects
2025-12-25T09:25:33.351025Z [debug    ] Updating starter projects
2025-12-25T09:25:33.359197Z [debug    ]
Node: ChatInput was updated with the following changes:
- metadata: {'code_hash': '7a26c54d89ed', 'dependencies': {'dependencies': [{'name': 'lfx', 'version': None}], 'total_dependencies': 1}, 'module': 'lfx.components.input_output.chat.ChatInput'} -> {'code_hash': '7a26c54d89ed', 'dependencies': {'dependencies': [{'name': 'lfx', 'version': '0.2.1'}], 'total_dependencies': 1}, 'module': 'lfx.components.input_output.chat.ChatInput'}

Node: ChatOutput was updated with the following changes:
- metadata: {'code_hash': '8c87e536cca4', 'dependencies': {'dependencies': [{'name': 'orjson', 'version': '3.10.15'}, {'name': 'fastapi', 'version': '0.123.0'}, {'name': 'lfx', 'version': None}], 'total_dependencies': 3}, 'module': 'lfx.components.input_output.chat_output.ChatOutput'} -> {'code_hash': '8c87e536cca4', 'dependencies': {'dependencies': [{'name': 'orjson', 'version': '3.10.15'}, {'name': 'fastapi', 'version': '0.123.0'}, {'name': 'lfx', 'version': '0.2.1'}], 'total_dependencies': 3}, 'module': 'lfx.components.input_output.chat_output.ChatOutput'}
2025-12-25T09:25:33.361128Z [error    ] An error occurred during the session scope.
2025-12-25T09:25:33.362057Z [warning  ] Failed to acquire lock for starter projects: [Errno 30] Read-only file system: '/app/.venv/lib/python3.12/site-packages/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json'. Starter projects may not be created or updated.
2025-12-25T09:25:33.362367Z [debug    ] Starting telemetry service
2025-12-25T09:25:33.362650Z [debug    ] started telemetry service in 0.00s
2025-12-25T09:25:33.362906Z [debug    ] Starting MCP Composer service
2025-12-25T09:25:33.363100Z [debug    ] Create service ServiceType.MCP_COMPOSER_SERVICE
2025-12-25T09:25:33.363284Z [debug    ] MCP Composer is enabled in settings. OAuth authentication will be enabled for MCP Servers.
2025-12-25T09:25:33.363530Z [debug    ] started MCP Composer service in 0.00s
2025-12-25T09:25:33.363765Z [debug    ] Loading flows
2025-12-25T09:25:33.364140Z [debug    ] Create service ServiceType.JOB_QUEUE_SERVICE
2025-12-25T09:25:33.364224Z [debug    ] JobQueueService started: periodic cleanup task initiated.
2025-12-25T09:25:33.364353Z [debug    ] Flows loaded in 0.00s
2025-12-25T09:25:33.365305Z [debug    ] Total initialization time: 2.87s

Reproduction

  1. Run langflow with statefulset on Kube v1.33 (the below part is securityContext of statefulset)
          securityContext:
            allowPrivilegeEscalation: false
            capabilities:
              drop:
                - ALL
            privileged: false
            readOnlyRootFilesystem: true
            runAsGroup: 1000
            runAsNonRoot: true
            runAsUser: 1000
            seccompProfile:
              type: RuntimeDefault

If I set readOnlyRootFilesystem with false, this issue is disappeared.

Expected behavior

starter projects can be loaded into database, display from web console

Who can help?

No response

Operating System

Kubernetes Cluster

Langflow Version

1.7.1

Python Version

3.12

Screenshot

No response

Flow File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions