BUG // protobuf #139

Open
opened 2026-02-15 19:16:14 -05:00 by yindo · 0 comments
Owner

Originally created by @nfparham on GitHub (Oct 13, 2024).

Bug Report

Installation Method

  1. docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  2. docker run -d -p 9099:9099 --add-host=host.docker.internal:host-gateway -v pipelines:/app/pipelines --name pipelines --restart always ghcr.io/open-webui/pipelines:main

Environment

ProductName: macOS
ProductVersion: 15.0.1
BuildVersion: 24A348

  • Open WebUI Version: main
  • Operating System: macOS 15.0.1 (24A348)
  • Browser: Chrome Version 129.0.6668.100 (Official Build) (x86_64)

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

The pipeline will persist and be available in the web interface when uploaded successfully via a .py file.

Actual Behavior:

The pipelines are not persisting in the web interface when uploaded successfully via a .py file.

Description

Bug Summary:
A pipeline (.py) uploaded using the web interface disappears even though a green "successfully added" message displays.

Reproduction Details

Steps to Reproduce:

  1. Install using the two provided commands in "Installation Method"
  2. Navigate to settings > pipelines and upload a pipeline using the .py method.

Logs and Screenshots

Docker Container Logs:
2024-10-12 12:56:36 Error loading module: text2sql
2024-10-12 12:56:36 Descriptors cannot be created directly.
2024-10-12 12:56:36 If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
2024-10-12 12:56:36 If you cannot immediately regenerate your protos, some other possible workarounds are:
2024-10-12 12:56:36 1. Downgrade the protobuf package to 3.20.x or lower.
2024-10-12 12:56:36 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
2024-10-12 12:56:36
2024-10-12 12:56:36 More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Additional Information

I have been able to resolve this bug by running "pip install protobuf==3.20.*" in the pipelines container and then restarting it.

Originally created by @nfparham on GitHub (Oct 13, 2024). # Bug Report ## Installation Method 1. docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main 2. docker run -d -p 9099:9099 --add-host=host.docker.internal:host-gateway -v pipelines:/app/pipelines --name pipelines --restart always ghcr.io/open-webui/pipelines:main ## Environment ProductName: macOS ProductVersion: 15.0.1 BuildVersion: 24A348 - **Open WebUI Version:** main - **Operating System:** macOS 15.0.1 (24A348) - **Browser:** Chrome Version 129.0.6668.100 (Official Build) (x86_64) **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: The pipeline will persist and be available in the web interface when uploaded successfully via a .py file. ## Actual Behavior: The pipelines are not persisting in the web interface when uploaded successfully via a .py file. ## Description **Bug Summary:** A pipeline (.py) uploaded using the web interface disappears even though a green "successfully added" message displays. ## Reproduction Details **Steps to Reproduce:** 1. Install using the two provided commands in "Installation Method" 2. Navigate to settings > pipelines and upload a pipeline using the .py method. ## Logs and Screenshots **Docker Container Logs:** 2024-10-12 12:56:36 Error loading module: text2sql 2024-10-12 12:56:36 Descriptors cannot be created directly. 2024-10-12 12:56:36 If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. 2024-10-12 12:56:36 If you cannot immediately regenerate your protos, some other possible workarounds are: 2024-10-12 12:56:36 1. Downgrade the protobuf package to 3.20.x or lower. 2024-10-12 12:56:36 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). 2024-10-12 12:56:36 2024-10-12 12:56:36 More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates ## Additional Information I have been able to resolve this bug by running "pip install protobuf==3.20.*" in the pipelines container and then restarting it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#139