[PR #27] [MERGED] BUGFIX: Fixed permissions error when attempting write to /app/memory.json #5

Closed
opened 2026-02-15 20:17:03 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/openapi-servers/pull/27
Author: @DustyPullRequest
Created: 4/7/2025
Status: Merged
Merged: 4/8/2025
Merged by: @tjbck

Base: mainHead: patch-1


📝 Commits (2)

  • 608ec8f Fixed permissions error when attempting write to /app/memory.json
  • 451c207 Added data persistance to memory server

📊 Changes

3 files changed (+15 additions, -0 deletions)

View changed files

📝 compose.yaml (+4 -0)
📝 servers/memory/Dockerfile (+6 -0)
📝 servers/memory/compose.yaml (+5 -0)

📄 Description

When running as a docker container, the following error used to occur from the Python script:

PermissionError: [Errno 13] Permission denied: '/app/memory.json'

To resolve this, I moved memory.json to the /app/data folder, changed the ownership to appuser using the UID variable, and set the MEMORY_FILE_PATH env variable. Now, the error no longer occurs. I also made this folder a volume for data persistence as a QoL improvement. Something similar may be desirable for the filesystem server, but I don't use that server and just didn't work on it. 🙃


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/openapi-servers/pull/27 **Author:** [@DustyPullRequest](https://github.com/DustyPullRequest) **Created:** 4/7/2025 **Status:** ✅ Merged **Merged:** 4/8/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`608ec8f`](https://github.com/open-webui/openapi-servers/commit/608ec8fd72ccf2a41db5391b4034ece8a3150312) Fixed permissions error when attempting write to /app/memory.json - [`451c207`](https://github.com/open-webui/openapi-servers/commit/451c207592fd3d9e77352febe9fe4080282eb2e3) Added data persistance to memory server ### 📊 Changes **3 files changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `compose.yaml` (+4 -0) 📝 `servers/memory/Dockerfile` (+6 -0) 📝 `servers/memory/compose.yaml` (+5 -0) </details> ### 📄 Description When running as a docker container, the following error used to occur from the Python script: ```bash PermissionError: [Errno 13] Permission denied: '/app/memory.json' ``` To resolve this, I moved `memory.json` to the `/app/data` folder, changed the ownership to `appuser` using the `UID` variable, and set the `MEMORY_FILE_PATH` env variable. Now, the error no longer occurs. I also made this folder a volume for data persistence as a QoL improvement. Something similar may be desirable for the filesystem server, but I don't use that server and just didn't work on it. :upside_down_face: --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:17:03 -05:00
yindo closed this issue 2026-02-15 20:17:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/openapi-servers#5