File system is read-only

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. snap install nextcloud
  2. nano /snap/nextcloud/4371/htdocs/config/config.php

Hello,
My nextcloud is running / working but i actually want to add trusted domains.

Here is my issue, I go to /snap/nextcloud/4371/htdocs/config/config.php as root (Maybe the wrong config.php?),

I cant edit the file and have these errors : “File system is read-only” or “you are trying to save a file on read only disk”

The fact is that i can edit other files like ssh/sshd_config etc, I also tried a rescue mod with mount -o remount,rw / it didnt solve.

Notice that my nextcloud is a snap install and is on a only one disk the same as the system.

Thank you for help!

1 Like

Did you ever get this resolved? I’m in the EXACT same situation right now.

Snap does not work like this. Please read the docu:

Configuration could be done via command, or by editing config.php:

Beyond the typical Nextcloud configuration (either by using nextcloud.occ or editing /var/snap/nextcloud/current/nextcloud/config/config.php ), the snap exposes extra configuration options via the snap set command.

–> Read more about:

You can even enable writable mode for it: