I have NextCloud installed on Linux server, and I created some users as customer, and it was working fine, I wanted to shift the primary storage to Amazon S3, as I saw in this link I need to add some configurations to my config.php file at nextcloud/data
but that caused an error, all client users are returning the message " no connection to nextcloud as "localhost" error transferring "localhost/remote.php/dav/files/user" server replied: internal server error **(Home does not exit)**
in the log file I also have the exception Home does not exit Keep in mind, I have NextCloud version 12.0.4.3
Changing the Data Folder after Installation is not supported. Just today i stumbled upon the same question, and somebody explained why this is especially true when moving the Primary Storage to S3. There is a procedure to do this on a fresh install to follow, but sadly i can not find the thread at the moment. Try the search function youself, in the meantime i give you this Link:
There should be some Note in the Documentation, that you cannot change this after intial setup written in big fat neon letters.