<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ollama: permissions issue when using volume storage]]></title><description><![CDATA[<p dir="auto">I've got OpenWebUI running successfully, but I can't get the local Ollama server running right. I have been able to connect the Anthropic API, so the problem is not with the interface in general.</p>
<p dir="auto">In OpenWebUI's Connections settings, when I try to add a model via Ollama (<a href="http://127.0.0.1:11434" target="_blank" rel="noopener noreferrer nofollow ugc">http://127.0.0.1:11434</a>), I get "Failed to fetch models" and "Server Connection Error."</p>
<p dir="auto">Here's some output I'm getting on the server:</p>
<pre><code># ps -af | grep -w "ollama"
root         242     108  0 03:21 pts/1    00:00:00 grep --color=auto -w ollama
# ollama ls
Error: could not connect to ollama app, is it running?
# ollama serve
Couldn't find '/root/.ollama/id_ed25519'. Generating new private key.
Error: could not create directory mkdir /root/.ollama: read-only file system
</code></pre>
<p dir="auto">There seems to be a filesystem permissions issue here. The problem does <em>not</em> occur under the default app settings. But it does when I use the recommended path of creating a separate volume for the models.</p>
<p dir="auto">As instructed <a href="https://docs.cloudron.io/apps/openwebui/#model-storage" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>, I created a volume in the Filesystem at <code>/media/ollama-vol</code>. It is set up under the Storage settings for the app with "Read and Write" permissions. I have tried both <code>chmod 775</code> and <code>chmod 777</code> on that directory. In either case, when I start up the app, a <code>models/</code> directory is created in there. As instructed, I have added to <code>env.sh</code> this line:</p>
<pre><code>export OLLAMA_MODELS=/media/ollama-vol/models
</code></pre>
<p dir="auto">Have other succeeded in getting this working by following these steps?</p>
<p dir="auto">Thanks in advance for any help you can offer.</p>
]]></description><link>https://forum.cloudron.io/topic/13644/ollama-permissions-issue-when-using-volume-storage</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 23:06:56 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13644.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Apr 2025 03:41:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Wed, 04 Jun 2025 16:52:43 GMT]]></title><description><![CDATA[<p dir="auto">I'm struggling with the same issue, using an EXT4 disk as volume (additional disk passed to cloudron via proxmox).<br />
Any hints on how the directory for the volume needs to be configured (permissions/ownership)?</p>
]]></description><link>https://forum.cloudron.io/post/108162</link><guid isPermaLink="true">https://forum.cloudron.io/post/108162</guid><dc:creator><![CDATA[abuyuy]]></dc:creator><pubDate>Wed, 04 Jun 2025 16:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Sat, 19 Apr 2025 17:25:26 GMT]]></title><description><![CDATA[<p dir="auto">Question: What should be the correct directory ownership and permissions setting for the <code>ollama-home</code> folder on a mounted Volume?</p>
]]></description><link>https://forum.cloudron.io/post/105981</link><guid isPermaLink="true">https://forum.cloudron.io/post/105981</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Sat, 19 Apr 2025 17:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Wed, 16 Apr 2025 13:08:39 GMT]]></title><description><![CDATA[<p dir="auto">As I said above, I'm using the Filesystem mode for the volume. Should I use another?</p>
]]></description><link>https://forum.cloudron.io/post/105821</link><guid isPermaLink="true">https://forum.cloudron.io/post/105821</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Wed, 16 Apr 2025 13:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Wed, 16 Apr 2025 06:55:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ntnsndr" aria-label="Profile: ntnsndr">@<bdi>ntnsndr</bdi></a> the Local Directory is something like /opt/ollama-models . You have to create this directory on the server manually . This prevents admins from mounting random paths (the idea being that only a person with SSH access can "create" paths).</p>
<p dir="auto">In your initial post, what kind of volume are you using? I wonder if it's CIFS and it doesn't support file permissions ?</p>
]]></description><link>https://forum.cloudron.io/post/105782</link><guid isPermaLink="true">https://forum.cloudron.io/post/105782</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Wed, 16 Apr 2025 06:55:54 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Tue, 15 Apr 2025 15:22:28 GMT]]></title><description><![CDATA[<p dir="auto">Huh <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=cb8b82e1523" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:1.4em;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /><br />
Then there must be something really strange going on.<br />
Either perimissions on the server itself or some other ghost in the shell.</p>
]]></description><link>https://forum.cloudron.io/post/105746</link><guid isPermaLink="true">https://forum.cloudron.io/post/105746</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Tue, 15 Apr 2025 15:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Tue, 15 Apr 2025 15:08:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: BrutalBirdie">@<bdi>BrutalBirdie</bdi></a> yes, as noted above: "The problem does not occur under the default app settings. But it does when I use the recommended path of creating a separate volume for the models."</p>
]]></description><link>https://forum.cloudron.io/post/105744</link><guid isPermaLink="true">https://forum.cloudron.io/post/105744</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Tue, 15 Apr 2025 15:08:17 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Tue, 15 Apr 2025 15:05:01 GMT]]></title><description><![CDATA[<p dir="auto">Did you ever try without the volume if it is working at all?<br />
If no, that should be done first to minimize the error potential.</p>
]]></description><link>https://forum.cloudron.io/post/105742</link><guid isPermaLink="true">https://forum.cloudron.io/post/105742</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Tue, 15 Apr 2025 15:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Tue, 15 Apr 2025 14:40:28 GMT]]></title><description><![CDATA[<p dir="auto">Relatedly (I am trying to try again with another volume), does anyone see if I'm doing something wrong here?</p>
<p dir="auto"><img src="/assets/uploads/files/1744727981186-05615ed6-2e26-4b40-995f-184b1adb391f-image.png" alt="image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">To create the <code>/media/ollama-vol</code> directory before I had to <code>mkdir</code> it manually before adding the volume.</p>
<p dir="auto">Could there be something screwy with my filesystem permissions in general?</p>
]]></description><link>https://forum.cloudron.io/post/105740</link><guid isPermaLink="true">https://forum.cloudron.io/post/105740</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Tue, 15 Apr 2025 14:40:28 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Tue, 15 Apr 2025 14:33:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> I was only try to run ollama manually to understand why it is not starting on its own when the app boots.</p>
<p dir="auto">So, when I reboot the app with the <code>/media/ollama-vol</code> directory at 777 permissions, here is what I get:</p>
<pre><code>Apr 15 08:31:05 2025-04-15 14:31:05,744 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
Apr 15 08:31:05 2025-04-15 14:31:05,744 INFO Included extra file "/etc/supervisor/conf.d/ollama.conf" during parsing
Apr 15 08:31:05 2025-04-15 14:31:05,744 INFO Included extra file "/etc/supervisor/conf.d/openwebui.conf" during parsing
Apr 15 08:31:05 2025-04-15 14:31:05,748 INFO RPC interface 'supervisor' initialized
Apr 15 08:31:05 2025-04-15 14:31:05,748 CRIT Server 'unix_http_server' running without any HTTP authentication checking
Apr 15 08:31:05 2025-04-15 14:31:05,749 INFO supervisord started with pid 1
Apr 15 08:31:06 2025-04-15 14:31:06,752 INFO spawned: 'ollama' with pid 25
Apr 15 08:31:06 2025-04-15 14:31:06,755 INFO spawned: 'openwebui' with pid 26
Apr 15 08:31:06 2025/04/15 14:31:06 routes.go:1231: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:2048 OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/media/ollama-vol/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
Apr 15 08:31:06 Error: mkdir /media/ollama-vol/models/blobs: permission denied
Apr 15 08:31:06 2025-04-15 14:31:06,790 WARN exited: ollama (exit status 1; not expected)
Apr 15 08:31:07 2025-04-15 14:31:07,792 INFO spawned: 'ollama' with pid 33
Apr 15 08:31:07 2025-04-15 14:31:07,793 INFO success: openwebui entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs)
Apr 15 08:31:07 2025/04/15 14:31:07 routes.go:1231: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:2048 OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/media/ollama-vol/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
Apr 15 08:31:07 Error: mkdir /media/ollama-vol/models/blobs: permission denied
Apr 15 08:31:07 2025-04-15 14:31:07,823 WARN exited: ollama (exit status 1; not expected)
Apr 15 08:31:09 2025-04-15 14:31:09,828 INFO spawned: 'ollama' with pid 43
Apr 15 08:31:09 2025/04/15 14:31:09 routes.go:1231: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:2048 OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/media/ollama-vol/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
Apr 15 08:31:09 Error: mkdir /media/ollama-vol/models/blobs: permission denied
Apr 15 08:31:09 2025-04-15 14:31:09,862 WARN exited: ollama (exit status 1; not expected)
Apr 15 08:31:10 =&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.16.191:8080
</code></pre>
]]></description><link>https://forum.cloudron.io/post/105739</link><guid isPermaLink="true">https://forum.cloudron.io/post/105739</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Tue, 15 Apr 2025 14:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Tue, 15 Apr 2025 07:23:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ntnsndr" aria-label="Profile: ntnsndr">@<bdi>ntnsndr</bdi></a> think we are missing something.</p>
<ul>
<li>why are you trying to run ollama serve manually on web terminal?</li>
<li>when you start via supervisor, you still get same error as readonlyfs in <code>/root/.ollama</code> ?</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/105688</link><guid isPermaLink="true">https://forum.cloudron.io/post/105688</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Tue, 15 Apr 2025 07:23:16 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Mon, 14 Apr 2025 17:31:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> Yep, many times! Any other ideas?</p>
]]></description><link>https://forum.cloudron.io/post/105673</link><guid isPermaLink="true">https://forum.cloudron.io/post/105673</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Mon, 14 Apr 2025 17:31:16 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Mon, 14 Apr 2025 14:54:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ntnsndr" aria-label="Profile: ntnsndr">@<bdi>ntnsndr</bdi></a> the supervisor config file in the package sets additional env vars like HOME and NTLK_DATA . Have you tried restarting the app (which ends up restarting supervisor) ?</p>
]]></description><link>https://forum.cloudron.io/post/105670</link><guid isPermaLink="true">https://forum.cloudron.io/post/105670</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 14 Apr 2025 14:54:05 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Mon, 14 Apr 2025 14:21:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: BrutalBirdie">@<bdi>BrutalBirdie</bdi></a> Thanks for sharing your experience—I'm using just the Filesystem mode in hopes that it would be most compatible.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> Shouldn't the app automatically run ollama rather than requiring me to do it? And why wouldn't it work on the filesystem volume even when it is set up on <code>chmod 777</code>?</p>
<p dir="auto">Thanks all!</p>
]]></description><link>https://forum.cloudron.io/post/105667</link><guid isPermaLink="true">https://forum.cloudron.io/post/105667</guid><dc:creator><![CDATA[ntnsndr]]></dc:creator><pubDate>Mon, 14 Apr 2025 14:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Mon, 14 Apr 2025 08:33:40 GMT]]></title><description><![CDATA[<p dir="auto">You have to run ollama server as cloudron user. Like <code>gosu cloudron ollama serve</code></p>
]]></description><link>https://forum.cloudron.io/post/105654</link><guid isPermaLink="true">https://forum.cloudron.io/post/105654</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 14 Apr 2025 08:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ollama: permissions issue when using volume storage on Mon, 14 Apr 2025 08:24:05 GMT]]></title><description><![CDATA[<p dir="auto">What are you using for the Volume?<br />
I am using a sub-account of my Hetzner Storage box with CIFS and I know that some apps do not like this at all.<br />
Some just work and some refuse to work.<br />
If I remember correctly I also had issues with permissions in my case. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=cb8b82e1523" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:1.4em;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /><br />
But that is some time ago.</p>
]]></description><link>https://forum.cloudron.io/post/105651</link><guid isPermaLink="true">https://forum.cloudron.io/post/105651</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Mon, 14 Apr 2025 08:24:05 GMT</pubDate></item></channel></rss>