Open-webui error at start

Hi,

Please find the error I have at start of open-webui:

Below the content of “/nix/store/sx2qlci2gfmgx0fqk8jj4p27xv4pxz2x-open-webui-0.5.12/lib/python3.12/site-packages/open_webui/data/readme.txt’”

pip install dir for backend files (db, documents, etc.)

:sweat_smile:

I also added:

services.open-webui.enable = true;

I don’t know what to do.

I forget to say I use Nixos unstable

OSError: [Errno 30] Read-only file system: '/nix/store/sx2qlci2gfmgx0fqk8jj4p27xv4pxz2x-open-webui-0.5.12/lib/python3.12/site-packages/open_webui/data/readme.txt'

That sounds like an issue in the module, if the state dir isn’t configured correctly (or worse, if it’s trying to write to the readme?)

EDIT: Actually the module sets it properly, are you running it using the systemd service in the module or?

Not sure to understand your question, I try to reformulated my issue:

I added:

services.open-webui.enable = true;

I restarted the PC and I run:

open-webui serve

And I had the error already posted.

You should just be able to access <ip address>:port after enabling open-webui and rebuilding. Services like this start a systemd service automatically when enabled. You don’t have to run open-webui serve.

Here’s my config. I updated the port to not conflict with another service.

# Open-WebUI
{
  pkgs,
  ...
}:{
  services.open-webui = {
    package = pkgs.unstable.open-webui;
    enable = true;
    port = 8083;
  };
}
2 Likes

Ok thank you firecat53.
I just had to remove “unstable” as I am already on unstable branch and it works :+1:

Well, it looks it’s port = 8080 right now
For reasons… :man_shrugging: