To set up a login that is persistant you need to do it in the template with the occ commands. Any user made in the appvm will not survive a reboot.
The nextcloud storage area needs to be made persistant using the qubes-bind-dirs directory in the appvm, the qubes docs cover that.
I am able to stay logged in with the nextcloud app and sync via webdav between reboots in this manner.
Are you also trying to sync other appvms?
Sorry my initial reply was the wrong answer.
To set up a login that is persistant you need to do it in the template with the occ commands. Any user made in the appvm will not survive a reboot.
The nextcloud storage area needs to be made persistant using the qubes-bind-dirs directory in the appvm, the qubes docs cover that.
I am able to stay logged in with the nextcloud app and sync via webdav between reboots in this manner.
Are you also trying to sync other appvms?
In qubes you have to specify the file path to occ(in the docs it lets you call occ by itself).
So for a typical fedora/apache/nc install in the template you would enter:
Sudo -u httpd(or apache) php /usr/share/nextcloud/occ [enter commands]
OCC is your main way of administering nextcloud in qubes so that link will help.
Qubes appvms do not keep anything outside of /rw so you would need to migrate the storage folder into /rw (https://help.nextcloud.com/t/howto-change-move-data-directory-after-installation/17170)
Or you can declare certian folders or files to be persistent. https://www.qubes-os.org/doc/bind-dirs/
This is done in the appvm. Dont designate all of nextcloud to be persistent or if someone hacks the nextcloud appvm its there forever. It is bad enough you are doing it to the file folder.
I assume you installed nextcloud in the template and set up an admin account in the process. So when you fire up the appvm anything you do in there will be erased until you add your users via occ in the template and preserve the file folder.
Once you do all that it will work fine from your home network, exposing it to the world is a bit of a pain and introduces an attack vector obviously.
OCC commands:
https://docs.nextcloud.com/server/16/admin_manual/configuration_server/occ_command.html#user-commands-label (...)
Hello,
I'd guess it's not directly Qubes related, maybe this problem:
https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/3