problems with web updater in nextcloud jail (version 15.0.0) - "Possible CSRF attack. Connection will be closed."

w.reidlinger

Dabbler
Joined
Nov 23, 2018
Messages
10
Got problems with the web updater after updating my Nextcloud jail.
Running Nextcloud 14.0.3 on a FreeNAS-11.2-RELEASE-U1 and did a upgrade via the FreeNAS web-shell to Nextcloud Version 15.0.0.
How I did the update of the Nextcloud jail.

Code:
iocage upgrade nextcloud


This worked fine, but now i got stuck in the webupater.

Possible CSRF attack. Connection will be closed.

Screenshot from 2019-01-18 12-34-52.png


Screenshot from 2019-01-18 12-35-31.png


Then I switched to shell, having more issues:
Code:
root@nextcloud:/usr/local/www/nextcloud # chmod +x occ

root@nextcloud:/usr/local/www/nextcloud # ./occ upgrade
Console has to be executed with the user that owns the file config/config.php
Current user: root
Owner of config.php: www
Try adding 'sudo -u www ’ to the beginning of the command (without the single quotes)

root@nextcloud:/usr/local/www/nextcloud # su www ./occ upgrade
This account is currently not available.


Any suggestions? I don’t want to change to much via the shell and also don’t want to change the ownership of the config.php because it might break even more stuff!

On the Internet I found nothing useful…
https://forum.owncloud.org/viewtopic.php?t=31068
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html
https://docs.nextcloud.com/server/9/admin_manual/configuration_server/occ_command.html

Here are my other posts in the Nextcloud forum and the FreeNAS Bug portal.
https://help.nextcloud.com/t/any-problems-with-web-updater-on-15-0-0-rc1/45164/11
 
Top