[GH-ISSUE #7471] Cannot generate id_ed25519 - read-only file system #30509

Closed
opened 2026-04-22 10:11:48 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @duhow on GitHub (Nov 2, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7471

What is the issue?

Running the service systemctl start ollama cannot run due to immutable system , using https://github.com/ublue-os/bazzite . User ollama with default $HOME in /usr/share/ollama cannot write there.

Performed normal setup with sudo rather than user-based.

curl -fsSL https://ollama.com/install.sh | sudo sh

📝 Output:

nov 02 10:34:04 geekom ollama[227009]: Couldn't find '/usr/share/ollama/.ollama/id_ed25519'. Generating new private key.
nov 02 10:34:04 geekom ollama[227009]: Error: could not create directory mkdir /usr/share/ollama: read-only file system

    Process: 241387 ExecStart=/usr/local/bin/ollama serve (code=exited, status=1/FAILURE)
   Main PID: 241387 (code=exited, status=1/FAILURE)

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

0.3.14

Originally created by @duhow on GitHub (Nov 2, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7471 ### What is the issue? Running the service `systemctl start ollama` cannot run due to **immutable system** , using https://github.com/ublue-os/bazzite . User `ollama` with default `$HOME` in `/usr/share/ollama` cannot write there. Performed normal setup with `sudo` rather than user-based. ```sh curl -fsSL https://ollama.com/install.sh | sudo sh ``` :memo: Output: ``` nov 02 10:34:04 geekom ollama[227009]: Couldn't find '/usr/share/ollama/.ollama/id_ed25519'. Generating new private key. nov 02 10:34:04 geekom ollama[227009]: Error: could not create directory mkdir /usr/share/ollama: read-only file system Process: 241387 ExecStart=/usr/local/bin/ollama serve (code=exited, status=1/FAILURE) Main PID: 241387 (code=exited, status=1/FAILURE) ``` ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version 0.3.14
GiteaMirror added the bug label 2026-04-22 10:11:48 -05:00
Author
Owner

@rick-github commented on GitHub (Nov 2, 2024):

Add HOME=/some/path/in/writeable/file/system to the server environment.

<!-- gh-comment-id:2452950333 --> @rick-github commented on GitHub (Nov 2, 2024): Add `HOME=/some/path/in/writeable/file/system` to the [server environment](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server).
Author
Owner

@duhow commented on GitHub (Nov 2, 2024):

As a workaround, I can modify the home of the user ollama in /etc/passwd to wherever I need, but the setup did not fail when creating the home directory.

<!-- gh-comment-id:2452951460 --> @duhow commented on GitHub (Nov 2, 2024): ✅ As a workaround, I can modify the `home` of the user `ollama` in `/etc/passwd` to wherever I need, but the setup did not fail when creating the home directory.
Author
Owner

@kth8 commented on GitHub (Nov 3, 2024):

Bazzite has podman installed by default so you can use that to run Ollama as a substitute for Docker. It also includes distrobox which is a wrapper for podman. Applications in Bazzite are installed using flatpaks so you can use Alpaca which has a built in Ollama instance. Another option is to install Ollama manually as your local user by downloading and extracting the ollama-linux-amd64.tgz tarball.

<!-- gh-comment-id:2453349328 --> @kth8 commented on GitHub (Nov 3, 2024): Bazzite has `podman` installed by default so you can use that to run Ollama as a substitute for Docker. It also includes `distrobox` which is a wrapper for `podman`. Applications in Bazzite are installed using flatpaks so you can use [Alpaca](https://flathub.org/apps/com.jeffser.Alpaca) which has a built in Ollama instance. Another option is to install Ollama manually as your local user by downloading and extracting the `ollama-linux-amd64.tgz` tarball.
Author
Owner

@nikhil-swamix commented on GitHub (Nov 6, 2024):

will chmod +w path... work? or it is not writable by some other rules?
or add ollama user to your ssh user group?

<!-- gh-comment-id:2458977932 --> @nikhil-swamix commented on GitHub (Nov 6, 2024): will `chmod +w path...` work? or it is not writable by some other rules? or add ollama user to your ssh user group?
Author
Owner

@kth8 commented on GitHub (Nov 6, 2024):

@nikhil-swamix Bazzite is an immutable distro like Fedora Silverblue so /usr is read-only.

<!-- gh-comment-id:2459106265 --> @kth8 commented on GitHub (Nov 6, 2024): @nikhil-swamix Bazzite is an immutable distro like Fedora Silverblue so `/usr` is read-only.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30509