Issue Type: [BUG]
Summary: Carbonio Docs Editor opens a blank page because nginx proxy temp directory is created with incorrect permissions
Affected Components: Carbonio Proxy / nginx / Carbonio Docs Editor
Description:
On a Carbonio CE installation, document preview worked correctly, but opening a DOCX file in Edit mode resulted in a completely blank editor window.
All Carbonio Docs-related services were running and reported as active.
The problem was eventually traced to the nginx proxy temporary directory:
/opt/zextras/data/tmp/nginx/proxy
Its ownership and permissions were:
nobody:zextras
mode 0755
With these permissions, the nginx worker handling the request did not have write access to the proxy temporary directory.
As a consequence, nginx could not correctly create/use a proxy temporary file while serving resources required by the Docs Editor. In the browser this manifested itself as the editor JavaScript bundle not being delivered correctly, while document preview continued to work.
This is especially confusing because all Docs services remain active and no obvious error is displayed in the Carbonio web interface.
After correcting the permissions/ownership of the nginx proxy temporary directory so that the nginx worker could write to it, the same document opened normally in the editor.
Server OS:
[insert output of /etc/os-release]
Carbonio Version:
[insert output of: su - zextras -c "zmcontrol -v"]
Current Behavior:
-
Carbonio services are running.
-
DOCX preview works.
-
Clicking Edit opens the Docs Editor.
-
The editor remains blank.
-
Required web resources are not delivered correctly.
-
nginx reports a permission problem related to its proxy temporary directory.
-
/opt/zextras/data/tmp/nginx/proxyhas ownershipnobody:zextrasand mode0755.
Expected Behavior:
The Carbonio package installation, upgrade scripts, systemd/tmpfiles configuration, or Carbonio permission repair mechanism should always create the nginx temporary directories with ownership and permissions compatible with the actual nginx worker user.
A fresh installation or service restart should never leave:
/opt/zextras/data/tmp/nginx/proxy
in a state where nginx cannot write to it.
Steps to Reproduce:
-
Install/update Carbonio CE normally.
-
Verify that Carbonio Docs services are active.
-
Upload or select a DOCX document.
-
Open the document preview — preview works.
-
Click Edit.
-
Observe a blank editor window.
-
Inspect nginx logs and browser network requests.
-
Check:
stat -c '%A %a %U:%G %n' /opt/zextras/data/tmp/nginx/proxy -
Observe:
nobody:zextraswith mode0755. -
Correct the directory permissions/ownership so that the nginx worker can write to it.
-
Retry Edit.
-
The document editor now loads successfully.
Workaround:
Manually correct the ownership/permissions of:
/opt/zextras/data/tmp/nginx/proxy
so that the nginx worker process can create proxy temporary files.
Suggested Fix:
Please check the package post-installation scripts, systemd tmpfiles configuration and any Carbonio permission-fixing logic responsible for /opt/zextras/data/tmp/nginx/.
The directory should be automatically created with ownership and mode matching the nginx runtime user, and the correct permissions should survive:
-
fresh installation;
-
package upgrade;
-
Carbonio restart;
-
host reboot;
-
permission repair procedures.
Impact:
This effectively disables document editing while giving the administrator the impression that the Docs infrastructure is healthy, because all related services remain active and document preview still works.
🇬🇧 ENGLISH VERSION
Hello,
I would like to share my experience regarding a similar issue encountered on three independent production servers running Carbonio Community Edition.
On November 30, 2026, we experienced the same problems across three installations, including systems running Carbonio CE 26.6.2 and 26.9.2.
Symptoms
-
Unable to forward certain emails.
-
Unable to save forwarded emails as drafts.
-
Unable to upload attachments.
-
HTTP 500 errors on
SaveDraftRequest. -
Permission deniederrors in Nginx logs.
Error identified in Nginx logs
open() "/opt/zextras/data/tmp/nginx/client/0000000072" failed (13: Permission denied)
request: "POST /service/soap/SaveDraftRequest HTTP/1.1"
Investigation
After several checks, we confirmed that Nginx processes were running as the zextras user.
However, some temporary directories were owned by nobody:zextras, with permissions set to 0755.
The affected directories were:
/opt/zextras/data/tmp/nginx/client
/opt/zextras/data/tmp/nginx/proxy
/opt/zextras/data/tmp/nginx/fastcgi
These permissions prevented Nginx from writing to the directories required to process certain HTTP requests.
We also checked the following configuration file:
/usr/lib/tmpfiles.d/carbonio-nginx.conf
This file correctly specifies zextras:zextras ownership for these directories.
Solution applied
After confirming the Nginx process user, we corrected the directory ownership using:
chown zextras:zextras /opt/zextras/data/tmp/nginx/{client,proxy,fastcgi}
The correction immediately restored the affected functionality.
Tests performed on the three servers confirmed:
-
Attachment uploads: OK.
-
Email sending: OK.
-
Email forwarding: OK.
-
Previously failing draft-saving operations: OK.
No service restart was required.
Possible underlying cause
Our investigation led us to an interesting hypothesis.
Running nginx -t or nginx -T as ROOT may, under certain configurations, change the ownership of Nginx temporary directories.
This behavior has previously been documented in the Nginx issue tracker.
We cannot conclusively prove that this caused the initial issue on all three servers, but it is consistent with our observations.
Suggestion for the Carbonio development team
It would be useful to review how Nginx temporary directory permissions are managed, particularly after:
-
Configuration validation.
-
Carbonio package upgrades.
-
Service restarts.
-
Server reboots.
Automatically checking and restoring the correct directory ownership could help prevent similar incidents.
I am sharing this experience in the hope that it will help other Carbonio CE administrators encountering similar HTTP 500 errors.
Best regards.
-----------------------------------------------------------------------
🇫🇷 VERSION FRANÇAISE
Bonjour,
Je souhaite apporter mon témoignage concernant un problème similaire rencontré sur trois serveurs de production indépendants utilisant Carbonio Community Edition.
Le 30 novembre 2026, nous avons constaté les mêmes dysfonctionnements sur trois installations, notamment avec Carbonio CE 26.6.2 et 26.9.2.
Problèmes rencontrés
-
Impossibilité de transférer certains emails.
-
Échec de l'enregistrement des messages transférés dans les brouillons.
-
Impossibilité d'ajouter des pièces jointes.
-
Erreur HTTP 500 lors des requêtes
SaveDraftRequest. -
Erreurs
Permission denieddans les journaux Nginx.
Erreur identifiée dans les journaux
open() "/opt/zextras/data/tmp/nginx/client/0000000072" failed (13: Permission denied)
request: "POST /service/soap/SaveDraftRequest HTTP/1.1"
Diagnostic
Après plusieurs vérifications, nous avons constaté que les processus Nginx fonctionnaient sous l'utilisateur zextras.
Cependant, certains répertoires temporaires appartenaient à nobody:zextras, avec des permissions 755.
Les répertoires concernés étaient :
/opt/zextras/data/tmp/nginx/client
/opt/zextras/data/tmp/nginx/proxy
/opt/zextras/data/tmp/nginx/fastcgi
Cette configuration empêchait Nginx d'écrire dans les répertoires nécessaires au traitement de certaines requêtes HTTP.
Nous avons également vérifié le fichier :
/usr/lib/tmpfiles.d/carbonio-nginx.conf
Celui-ci prévoit pourtant que ces répertoires appartiennent à zextras:zextras.
Solution appliquée
Après avoir confirmé l'utilisateur d'exécution de Nginx, nous avons corrigé les propriétaires avec la commande suivante :
chown zextras:zextras /opt/zextras/data/tmp/nginx/{client,proxy,fastcgi}
La correction a immédiatement rétabli les fonctionnalités défaillantes.
Les tests effectués sur les trois serveurs ont confirmé :
-
Ajout des pièces jointes : OK.
-
Envoi des emails : OK.
-
Transfert des messages : OK.
-
Enregistrement des brouillons précédemment défaillants : OK.
Aucun redémarrage des services n'a été nécessaire.
Origine probable du problème
Notre investigation nous a conduits à une hypothèse intéressante.
L'exécution des commandes nginx -t ou nginx -T sous l'utilisateur ROOT peut, dans certaines configurations, modifier les propriétaires des répertoires temporaires Nginx.
Ce comportement a déjà été documenté dans le système de suivi des anomalies de Nginx.
Nous ne pouvons pas affirmer avec certitude qu'il s'agit de la cause initiale sur nos trois serveurs, mais cette explication correspond aux anomalies observées.
Suggestion aux développeurs Carbonio
Il serait intéressant de vérifier la gestion des permissions des répertoires temporaires Nginx, notamment après :
-
Une vérification de configuration.
-
Une mise à jour des paquets Carbonio.
-
Un redémarrage des services.
-
Un redémarrage du serveur.
Une vérification automatique des propriétaires pourrait permettre d'éviter ce type d'incident.
Je partage ce retour d'expérience dans l'espoir qu'il puisse aider d'autres administrateurs Carbonio CE confrontés aux mêmes erreurs HTTP 500.
Cordialement.
