From eae5a0ebc740864a5ca0c0938b18d75a8055b42e Mon Sep 17 00:00:00 2001 From: claude Date: Mon, 1 Jun 2026 15:41:18 +0000 Subject: [PATCH] Store published presentations on the writable data volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default published-presentations folder resolved to the app dir (/overleaf/services/web/data/published), which isn't writable by the runtime user → EACCES on publish. Point it at the Overleaf data volume in the production config (Path.join(DATA_DIR, 'published') = /var/lib/overleaf/data/ published), alongside compiles/output, where the app user can write (and which persists when a volume is mounted). Overridable via PUBLISHED_PRESENTATIONS_PATH. --- server-ce/config/settings.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server-ce/config/settings.js b/server-ce/config/settings.js index 7d9fd7702e..864b62261c 100644 --- a/server-ce/config/settings.js +++ b/server-ce/config/settings.js @@ -173,6 +173,12 @@ const settings = { clsiCacheDir: Path.join(DATA_DIR, 'cache'), // Where to write the output files to disk after running LaTeX outputDir: Path.join(DATA_DIR, 'output'), + // Where to store published-presentation snapshots served at /p/:token. + // Lives on the data volume so it is writable by the app user (and, with a + // persistent volume, survives restarts). + publishedPresentationsFolder: + process.env.PUBLISHED_PRESENTATIONS_PATH || + Path.join(DATA_DIR, 'published'), }, // Server Config