Skip to main content
Version: Any 26

Troubleshooting

Read-only file system error (Debian)​

Problem​

On Debian, the services (Tomcat, JBoss, etc.) run in a sandboxed environment that restricts write access. This causes an error when creating content:

Error: Read-only file system

Solution​

Configure the systemd service to allow writing in the Any storage directory.

1. Locate the service file:

# For Tomcat 9
/lib/systemd/system/tomcat9.service

# For Tomcat 10
/lib/systemd/system/tomcat10.service

# For JBoss
/lib/systemd/system/jboss.service

2. Edit the file:

sudo nano /lib/systemd/system/tomcat9.service

3. Add the line allowing writing:

Find the [Service] section and add or update:

[Service]
Type=notify
User=tomcat
ReadWritePaths=<local_path>

Replace <local_path> with the path configured in settings.json (fslocal-content / local_path).

Example:

ReadWritePaths=/var/any/data

4. Reload systemd and restart the service:

sudo systemctl daemon-reload
sudo systemctl restart tomcat9

Check​

Test that Any can create content. The error should be resolved.