Nextcloud 15.0.4 to version 15.0.5 auto updater issues

Hi Team,

I am running nextcloud version 15.0.4 on centos7 with nginx. I am trying to use the auto update feature in nextcloud to update to version 15.0.5 but I keep getting the following errors:

The logs of next cloud shown below.
Clould anyone assist please. I have disabled logging and deleted the logs and tried as suggested in another post but that did not work.

regards,

rajbps

sorry logs attached now:

2019-03-24T10:43:32+0000 0s94fdRrLs [info] request to updater
2019-03-24T10:43:32+0000 0s94fdRrLs [info] currentStep()
2019-03-24T10:43:32+0000 0s94fdRrLs [info] POST request for step “2”
2019-03-24T10:43:32+0000 0s94fdRrLs [info] startStep(“2”)
2019-03-24T10:43:32+0000 0s94fdRrLs [info] checkWritePermissions()
2019-03-24T10:43:32+0000 0s94fdRrLs [error] POST request failed with UpdateException
2019-03-24T10:43:32+0000 0s94fdRrLs [error] Exception: UpdateException
Message:
Code:0
Trace:
#0 /usr/share/nginx/html/nextcloud/updater/index.php(1316): Updater->checkWritePermissions()
#1 {main}
File:/usr/share/nginx/html/nextcloud/updater/index.php
Line:408
Data:
Array
(
[0] => /usr/share/nginx/html/nextcloud/updater/…/console.php
[1] => /usr/share/nginx/html/nextcloud/updater/…/version.php
[2] => /usr/share/nginx/html/nextcloud/updater/…/COPYING
[3] => /usr/share/nginx/html/nextcloud/updater/…/AUTHORS
[4] => /usr/share/nginx/html/nextcloud/updater/…/index.php
[5] => /usr/share/nginx/html/nextcloud/updater/…/status.php
[6] => /usr/share/nginx/html/nextcloud/updater/…/robots.txt
[7] => /usr/share/nginx/html/nextcloud/updater/…/occ
[8] => /usr/share/nginx/html/nextcloud/updater/…/remote.php
[9] => /usr/share/nginx/html/nextcloud/updater/…/cron.php
[10] => /usr/share/nginx/html/nextcloud/updater/…/index.html
[11] => /usr/share/nginx/html/nextcloud/updater/…/public.php
)

2019-03-24T10:43:32+0000 0s94fdRrLs [info] rollbackChanges(“2”)
2019-03-24T10:43:32+0000 0s94fdRrLs [info] unlink .step
2019-03-24T10:43:32+0000 0s94fdRrLs [info] end of rollbackChanges()
2019-03-24T10:43:40+0000 7MMvKl9evk [info] request to updater
2019-03-24T10:43:40+0000 7MMvKl9evk [info] currentStep()
2019-03-24T10:43:40+0000 7MMvKl9evk [info] show HTML page
2019-03-24T10:43:40+0000 7MMvKl9evk [info] current version: 15.0.4 build time: 2019-02-07T10:54:37+00:00 81339c7e23672b7d87e1c6dbaaf586153b260f03
2019-03-24T10:43:40+0000 7MMvKl9evk [info] getUpdateServerResponse()
2019-03-24T10:43:40+0000 7MMvKl9evk [info] updaterServer: https://updates.nextcloud.org/updater_server/
2019-03-24T10:43:40+0000 7MMvKl9evk [info] releaseChannel: stable
2019-03-24T10:43:40+0000 7MMvKl9evk [info] internal version: 15.0.4.0
2019-03-24T10:43:40+0000 7MMvKl9evk [info] updateURL: https://updates.nextcloud.org/updater_server/?version=15x0x4x0xxxstablexx2019-02-07T10%3A54%3A37%2B00%3A00+81339c7e23672b7d87e1c6dbaaf586153b260f03x7x0x33
2019-03-24T10:43:41+0000 7MMvKl9evk [info] getUpdateServerResponse response: Array
(
[version] => 15.0.5.3
[versionstring] => Nextcloud 15.0.5
[url] => https://download.nextcloud.com/server/releases/nextcloud-15.0.5.zip
[web] => https://docs.nextcloud.com/server/15/admin_manual/maintenance/upgrade.html
[changes] => https://updates.nextcloud.com/changelog_server/?version=15.0.5
[autoupdater] => 1
[eol] => 0
[signature] => agNeQvwNXkDCorrAQLBKn7s82D7HLCm0Q52hpp8dmrYQALZsSekiMXkMc/vN8H98
AzCoT3U2IeTDChMgc5oxV1I9JrD7o+zaqb2DNCBVEQ98ecqRlj6hs0+Kqxd9Zv3e
1p4NOc0VB//edxXr5vkIhnovja/gF+Z7cr6h2Jrshcgx6FZ1JNZfn51VHOrXPB5v
eD7LLOJWcP5nZ+HWDmrRrK16rcy86a+bcLY0Al2jdgzVKQJCVvvGloRa7GG5e/3P
HtmYIIKyDRMQb473PRDApXfVXUNqGrZ2XiDXlz2VmESmOEs3eiecNlVacZVkL7fW
jKugmbHOVnqP+CSJk4ID7Q==
)

2019-03-24T10:43:41+0000 7MMvKl9evk [info] checkForUpdate() Array
(
[version] => 15.0.5.3
[versionstring] => Nextcloud 15.0.5
[url] => https://download.nextcloud.com/server/releases/nextcloud-15.0.5.zip
[web] => https://docs.nextcloud.com/server/15/admin_manual/maintenance/upgrade.html
[changes] => https://updates.nextcloud.com/changelog_server/?version=15.0.5
[autoupdater] => 1
[eol] => 0
[signature] => agNeQvwNXkDCorrAQLBKn7s82D7HLCm0Q52hpp8dmrYQALZsSekiMXkMc/vN8H98
AzCoT3U2IeTDChMgc5oxV1I9JrD7o+zaqb2DNCBVEQ98ecqRlj6hs0+Kqxd9Zv3e
1p4NOc0VB//edxXr5vkIhnovja/gF+Z7cr6h2Jrshcgx6FZ1JNZfn51VHOrXPB5v
eD7LLOJWcP5nZ+HWDmrRrK16rcy86a+bcLY0Al2jdgzVKQJCVvvGloRa7GG5e/3P
HtmYIIKyDRMQb473PRDApXfVXUNqGrZ2XiDXlz2VmESmOEs3eiecNlVacZVkL7fW
jKugmbHOVnqP+CSJk4ID7Q==
)

2019-03-24T10:43:41+0000 7MMvKl9evk [info] end of checkForUpdate() Update to Nextcloud 15.0.5 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-15.0.5.zip
2019-03-24T10:43:46+0000 lajG2rhb39 [info] request to updater
2019-03-24T10:43:46+0000 lajG2rhb39 [info] currentStep()
2019-03-24T10:43:46+0000 lajG2rhb39 [info] POST request for step “1”
2019-03-24T10:43:46+0000 lajG2rhb39 [info] startStep(“1”)
2019-03-24T10:43:46+0000 lajG2rhb39 [info] checkForExpectedFilesAndFolders()
2019-03-24T10:43:46+0000 lajG2rhb39 [info] end of checkForExpectedFilesAndFolders()
2019-03-24T10:43:46+0000 lajG2rhb39 [info] endStep(“1”)
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] request to updater
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] currentStep()
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] Step 1 is in state “end”.
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] POST request for step “2”
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] startStep(“2”)
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] checkWritePermissions()
2019-03-24T10:43:46+0000 9GQAw6fdh1 [error] POST request failed with UpdateException
2019-03-24T10:43:46+0000 9GQAw6fdh1 [error] Exception: UpdateException
Message:
Code:0
Trace:
#0 /usr/share/nginx/html/nextcloud/updater/index.php(1316): Updater->checkWritePermissions()
#1 {main}
File:/usr/share/nginx/html/nextcloud/updater/index.php
Line:408
Data:
Array
(
[0] => /usr/share/nginx/html/nextcloud/updater/…/console.php
[1] => /usr/share/nginx/html/nextcloud/updater/…/version.php
[2] => /usr/share/nginx/html/nextcloud/updater/…/COPYING
[3] => /usr/share/nginx/html/nextcloud/updater/…/AUTHORS
[4] => /usr/share/nginx/html/nextcloud/updater/…/index.php
[5] => /usr/share/nginx/html/nextcloud/updater/…/status.php
[6] => /usr/share/nginx/html/nextcloud/updater/…/robots.txt
[7] => /usr/share/nginx/html/nextcloud/updater/…/occ
[8] => /usr/share/nginx/html/nextcloud/updater/…/remote.php
[9] => /usr/share/nginx/html/nextcloud/updater/…/cron.php
[10] => /usr/share/nginx/html/nextcloud/updater/…/index.html
[11] => /usr/share/nginx/html/nextcloud/updater/…/public.php
)

2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] rollbackChanges(“2”)
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] unlink .step
2019-03-24T10:43:46+0000 9GQAw6fdh1 [info] end of rollbackChanges()
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] request to updater
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] currentStep()
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] POST request for step “2”
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] startStep(“2”)
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] checkWritePermissions()
2019-03-24T10:44:46+0000 ynhOpUzj8j [error] POST request failed with UpdateException
2019-03-24T10:44:46+0000 ynhOpUzj8j [error] Exception: UpdateException
Message:
Code:0
Trace:
#0 /usr/share/nginx/html/nextcloud/updater/index.php(1316): Updater->checkWritePermissions()
#1 {main}
File:/usr/share/nginx/html/nextcloud/updater/index.php
Line:408
Data:
Array
(
[0] => /usr/share/nginx/html/nextcloud/updater/…/console.php
[1] => /usr/share/nginx/html/nextcloud/updater/…/version.php
[2] => /usr/share/nginx/html/nextcloud/updater/…/COPYING
[3] => /usr/share/nginx/html/nextcloud/updater/…/AUTHORS
[4] => /usr/share/nginx/html/nextcloud/updater/…/index.php
[5] => /usr/share/nginx/html/nextcloud/updater/…/status.php
[6] => /usr/share/nginx/html/nextcloud/updater/…/robots.txt
[7] => /usr/share/nginx/html/nextcloud/updater/…/occ
[8] => /usr/share/nginx/html/nextcloud/updater/…/remote.php
[9] => /usr/share/nginx/html/nextcloud/updater/…/cron.php
[10] => /usr/share/nginx/html/nextcloud/updater/…/index.html
[11] => /usr/share/nginx/html/nextcloud/updater/…/public.php
)

2019-03-24T10:44:46+0000 ynhOpUzj8j [info] rollbackChanges(“2”)
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] unlink .step
2019-03-24T10:44:46+0000 ynhOpUzj8j [info] end of rollbackChanges()
2019-03-24T10:44:48+0000 Avs4AEhRqe [info] request to updater
2019-03-24T10:44:48+0000 Avs4AEhRqe [info] currentStep()
2019-03-24T10:44:48+0000 Avs4AEhRqe [info] POST request for step “2”
2019-03-24T10:44:49+0000 Avs4AEhRqe [info] startStep(“2”)
2019-03-24T10:44:49+0000 Avs4AEhRqe [info] checkWritePermissions()
2019-03-24T10:44:49+0000 Avs4AEhRqe [error] POST request failed with UpdateException
2019-03-24T10:44:49+0000 Avs4AEhRqe [error] Exception: UpdateException
Message:
Code:0
Trace:
#0 /usr/share/nginx/html/nextcloud/updater/index.php(1316): Updater->checkWritePermissions()
#1 {main}
File:/usr/share/nginx/html/nextcloud/updater/index.php
Line:408
Data:
Array
(
[0] => /usr/share/nginx/html/nextcloud/updater/…/console.php
[1] => /usr/share/nginx/html/nextcloud/updater/…/version.php
[2] => /usr/share/nginx/html/nextcloud/updater/…/COPYING
[3] => /usr/share/nginx/html/nextcloud/updater/…/AUTHORS
[4] => /usr/share/nginx/html/nextcloud/updater/…/index.php
[5] => /usr/share/nginx/html/nextcloud/updater/…/status.php
[6] => /usr/share/nginx/html/nextcloud/updater/…/robots.txt
[7] => /usr/share/nginx/html/nextcloud/updater/…/occ
[8] => /usr/share/nginx/html/nextcloud/updater/…/remote.php
[9] => /usr/share/nginx/html/nextcloud/updater/…/cron.php
[10] => /usr/share/nginx/html/nextcloud/updater/…/index.html
[11] => /usr/share/nginx/html/nextcloud/updater/…/public.php
)

2019-03-24T10:44:49+0000 Avs4AEhRqe [info] rollbackChanges(“2”)
2019-03-24T10:44:49+0000 Avs4AEhRqe [info] unlink .step
2019-03-24T10:44:49+0000 Avs4AEhRqe [info] end of rollbackChanges()

So did you check the write permissions for the named files?

under what user should that be please?

user and group should be www-data

even though I am using nginx?

image

That folder does not has much in though, are you supposed to down the new version in there or doe sit do it by itself please.

Sorry new to nextcloud so just trying to find my way around

If user/group is nginx and this user doesn’t have write permissions I guess it’s the wrong user. So you should do some searching for nginx user and group here in the forum or the web.

ok this was the issue:

So I ran this :

chcon -R -t httpd_sys_rw_content_t /usr/share/nginx/html/nextcloud

And that fixed the issue just in case someone else has a similar issue with nextcloud on centos7 with ngnix.

Rajbps