20.0. 6 Restore Nextcloud after failed Update

So my Problem is that if I update my Nextcloud, that it wont work anymore after reboot.
My question is: How can I restore my Nextcloud to the backup which the Nextcloud automatically makes before updating? Does anyone know where the updater stores those backups?
In my standard backup directory is only my old backup.
Of course I have made manuell backups, but they are a few days old, the Backup made by the updater should be the newest.

Nextcloud version : 20.0.6 (Before update 20.0.4)
Operating system and version: Linux. I used the raspberrypi image from ownyourbits.com
Apache or nginx version: Apache 2 I think. Don’t know what that is tbh.
PHP version: I don’t know, but updated yesterday
I don’t know how to access these logs, I hope they are not relevant for restoring a backup.

Is this the first time you’ve seen this error? No

  1. Make update over the Nextcloud Panel
  2. Update “succesfull”
  3. Reboot Nextcloud, only SSH available, Nextcloud is not online.

Hi @Taddl,
Can you give more details about your nextcloud error ( web page error, log, …)?
to see the log of nextcloud : ( in a terminal )
In your VM , search nextcloud.log inside user data directory of your nextcloud

Maybe we can repair your nextcloud without a restoration.

1 Like

All,

Problems with the latest 20.0.6 are being reported all over the place. Just cruise this forum.

Same as 20.0.5.

When I updated to 20.0.5 from 20.0.4 I kept getting “Internal server error”.

I simply re-installed 20.0.4 and it now works no problem.

I always check here now, before updating to see if anyone is having any problems.

And 20.0.6 was released, I figure, as a fix for the 20.0.5 :bomb: update.

That’s 2 in a row…

Do they even test these updates before releasing?

Cheers

toolmanz

1 Like

Hey thanks for your comment :slight_smile:

After I made the update everything seemed normal, i got no error.
And all the other updates i made in the WebUI (OCC) were successfull and caused no problems. I have checked it out, the problem must be caused by the update.
I have several times completely reinstalled my raspberry, alway using a image from ownyourbits.com.
The problem doesn’t occures when I make updates in the WebUI, only when doing it in the Nextcloud interface! (I mean this

)

In my ncp.log are no entries created after or while the update. The ncp-errog.log, other_vhosts_access.log and ncp-access.log also haven’t generated any entries since the update. They seem inactive/down.
When I try to open the nextcloud via my domains nothing happens. No erro code or something

After I made the update everything seemed normal, i got no error.

I am really greatful for any help! this thing begins to annoy me (4th reinstallation).

Here are the logs:

This is the updater log in /media/myCloudDrive/ncdata

2021-01-25T22:51:50+0000 ibGEFHIyow [info] request to updater
2021-01-25T22:51:50+0000 ibGEFHIyow [info] currentStep()
2021-01-25T22:51:50+0000 ibGEFHIyow [info] show HTML page
2021-01-25T22:51:50+0000 ibGEFHIyow [info] current version: 20.0.4 build time: 2020-12-15T20:53:34+00:00 7789d1db23b1b2312a83c988a65c4ed8149bbb61
2021-01-25T22:51:51+0000 ibGEFHIyow [info] getUpdateServerResponse()
2021-01-25T22:51:51+0000 ibGEFHIyow [info] updaterServer: https://updates.nextcloud.com/updater_server/
2021-01-25T22:51:51+0000 ibGEFHIyow [info] releaseChannel: stable
2021-01-25T22:51:51+0000 ibGEFHIyow [info] internal version: 20.0.4.0
2021-01-25T22:51:51+0000 ibGEFHIyow [info] updateURL: https://updates.nextcloud.com/updater_server/?version=20x0x4x0xxxstablexx2020-12-15T20%3A53%3A34%2B00%3A00+7789d1db23b1b2312a83c988a65c4ed8149bbb61x7x3x19
2021-01-25T22:51:51+0000 ibGEFHIyow [info] getUpdateServerResponse response: Array
(
    [version] => 20.0.6.1
    [versionstring] => Nextcloud 20.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-20.0.6.zip
    [web] => https://docs.nextcloud.com/server/20/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=20.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => eYbh6c/JNurIpiywXw2lppQZyWpJZNJFJRF0rkvtXZAIZ4HU1PdSaI7CPVv/E5FG
XHJszKSNOogtgAQQkUbK6yj+j6qJDHgH8NkzTMBdS6OVEJtOo+caO0gKwgblvCz7
dgyVSQPscobXl+kp1E9jCCetoBfiltMQqq3DSk77wTeVvS8GLisUYow6hwoFKxi+
uQBDSVw2P5XZLrTRAzH62NKaLDPtUc0zN6xOvHpSr3TbNWn3CB4eAmR5rSING98L
Sx4OJIxY7G8fPfHfmji0/JFb1z7dO/6gT9c2GeW7qsf1RnpyCvH3zirEEOCMSe+O
TpH79EpHPSAeCOQoUClI1A==
)

2021-01-25T22:51:51+0000 ibGEFHIyow [info] checkForUpdate() Array
(
    [version] => 20.0.6.1
    [versionstring] => Nextcloud 20.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-20.0.6.zip
    [web] => https://docs.nextcloud.com/server/20/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=20.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => eYbh6c/JNurIpiywXw2lppQZyWpJZNJFJRF0rkvtXZAIZ4HU1PdSaI7CPVv/E5FG
XHJszKSNOogtgAQQkUbK6yj+j6qJDHgH8NkzTMBdS6OVEJtOo+caO0gKwgblvCz7
dgyVSQPscobXl+kp1E9jCCetoBfiltMQqq3DSk77wTeVvS8GLisUYow6hwoFKxi+
uQBDSVw2P5XZLrTRAzH62NKaLDPtUc0zN6xOvHpSr3TbNWn3CB4eAmR5rSING98L
Sx4OJIxY7G8fPfHfmji0/JFb1z7dO/6gT9c2GeW7qsf1RnpyCvH3zirEEOCMSe+O
TpH79EpHPSAeCOQoUClI1A==
)

2021-01-25T22:51:51+0000 ibGEFHIyow [info] getChangelogURL()
2021-01-25T22:51:51+0000 ibGEFHIyow [info] end of checkForUpdate() Update to Nextcloud 20.0.6 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light"$
2021-01-25T22:52:00+0000 R8B7vss771 [info] request to updater
2021-01-25T22:52:00+0000 R8B7vss771 [info] currentStep()
2021-01-25T22:52:00+0000 R8B7vss771 [info] POST request for step "1"
2021-01-25T22:52:00+0000 R8B7vss771 [info] startStep("1")
2021-01-25T22:52:00+0000 R8B7vss771 [info] checkForExpectedFilesAndFolders()
2021-01-25T22:52:00+0000 R8B7vss771 [info] end of checkForExpectedFilesAndFolders()
2021-01-25T22:52:00+0000 R8B7vss771 [info] endStep("1")
2021-01-25T22:52:00+0000 6ytJZcn8F2 [info] request to updater
2021-01-25T22:52:00+0000 6ytJZcn8F2 [info] currentStep()
2021-01-25T22:52:00+0000 6ytJZcn8F2 [info] Step 1 is in state "end".
2021-01-25T22:52:00+0000 6ytJZcn8F2 [info] POST request for step "2"
2021-01-25T22:52:01+0000 6ytJZcn8F2 [info] startStep("2")
2021-01-25T22:52:01+0000 6ytJZcn8F2 [info] checkWritePermissions()
2021-01-25T22:52:01+0000 6ytJZcn8F2 [info] end of checkWritePermissions()
2021-01-25T22:52:01+0000 6ytJZcn8F2 [info] endStep("2")
2021-01-25T22:52:01+0000 1EHHtLaWQr [info] request to updater
2021-01-25T22:52:01+0000 1EHHtLaWQr [info] currentStep()
2021-01-25T22:53:30+0000 RZhJngLqvt [info] Step 3 is in state "end".
2021-01-25T22:53:30+0000 RZhJngLqvt [info] POST request for step "4"
2021-01-25T22:53:31+0000 RZhJngLqvt [info] startStep("4")
2021-01-25T22:53:31+0000 RZhJngLqvt [info] downloadUpdate()
2021-01-25T22:53:31+0000 RZhJngLqvt [info] getUpdateServerResponse()
2021-01-25T22:53:31+0000 RZhJngLqvt [info] updaterServer: https://updates.nextcloud.com/updater_server/
2021-01-25T22:53:31+0000 RZhJngLqvt [info] releaseChannel: stable
2021-01-25T22:53:31+0000 RZhJngLqvt [info] internal version: 20.0.4.0
2021-01-25T22:53:31+0000 RZhJngLqvt [info] updateURL: https://updates.nextcloud.com/updater_server/?version=20x0x4x0xxxstablexx2020-12-15T20%3A53%3A34%2B00%3A00+7789d1db23b1b2312a83c988a65c4ed8149bbb61x7x3x19
2021-01-25T22:53:31+0000 RZhJngLqvt [info] getUpdateServerResponse response: Array
(
    [version] => 20.0.6.1
    [versionstring] => Nextcloud 20.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-20.0.6.zip
    [web] => https://docs.nextcloud.com/server/20/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=20.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => eYbh6c/JNurIpiywXw2lppQZyWpJZNJFJRF0rkvtXZAIZ4HU1PdSaI7CPVv/E5FG
XHJszKSNOogtgAQQkUbK6yj+j6qJDHgH8NkzTMBdS6OVEJtOo+caO0gKwgblvCz7
dgyVSQPscobXl+kp1E9jCCetoBfiltMQqq3DSk77wTeVvS8GLisUYow6hwoFKxi+
uQBDSVw2P5XZLrTRAzH62NKaLDPtUc0zN6xOvHpSr3TbNWn3CB4eAmR5rSING98L
Sx4OJIxY7G8fPfHfmji0/JFb1z7dO/6gT9c2GeW7qsf1RnpyCvH3zirEEOCMSe+O
TpH79EpHPSAeCOQoUClI1A==
)

2021-01-25T22:53:55+0000 RZhJngLqvt [info] end of downloadUpdate()
2021-01-25T22:53:55+0000 RZhJngLqvt [info] endStep("4")
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] request to updater
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] currentStep()
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] Step 4 is in state "end".
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] POST request for step "5"
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] startStep("5")
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] verifyIntegrity()
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] getUpdateServerResponse()
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] updaterServer: https://updates.nextcloud.com/updater_server/
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] releaseChannel: stable
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] internal version: 20.0.4.0
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] updateURL: https://updates.nextcloud.com/updater_server/?version=20x0x4x0xxxstablexx2020-12-15T20%3A53%3A34%2B00%3A00+7789d1db23b1b2312a83c988a65c4ed8149bbb61x7x3x19
2021-01-25T22:53:55+0000 1YOv9ipu1R [info] getUpdateServerResponse response: Array
(
    [version] => 20.0.6.1
    [versionstring] => Nextcloud 20.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-20.0.6.zip
    [web] => https://docs.nextcloud.com/server/20/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=20.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => eYbh6c/JNurIpiywXw2lppQZyWpJZNJFJRF0rkvtXZAIZ4HU1PdSaI7CPVv/E5FG
XHJszKSNOogtgAQQkUbK6yj+j6qJDHgH8NkzTMBdS6OVEJtOo+caO0gKwgblvCz7
dgyVSQPscobXl+kp1E9jCCetoBfiltMQqq3DSk77wTeVvS8GLisUYow6hwoFKxi+
uQBDSVw2P5XZLrTRAzH62NKaLDPtUc0zN6xOvHpSr3TbNWn3CB4eAmR5rSING98L
Sx4OJIxY7G8fPfHfmji0/JFb1z7dO/6gT9c2GeW7qsf1RnpyCvH3zirEEOCMSe+O
TpH79EpHPSAeCOQoUClI1A==
)

2021-01-25T22:53:55+0000 1YOv9ipu1R [info] storage location: /media/myCloudDrive/ncdata/updater-ocwn0g3teaag/downloads/
2021-01-25T22:53:58+0000 1YOv9ipu1R [info] end of verifyIntegrity()
2021-01-25T22:53:59+0000 1YOv9ipu1R [info] endStep("5")
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] request to updater
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] currentStep()
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] Step 5 is in state "end".
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] POST request for step "6"
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] startStep("6")
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] extractDownload()
2021-01-25T22:53:59+0000 9nOyy2ibJ4 [info] storage location: /media/myCloudDrive/ncdata/updater-ocwn0g3teaag/downloads/
2021-01-25T22:54:37+0000 9nOyy2ibJ4 [info] end of extractDownload()
2021-01-25T22:54:38+0000 9nOyy2ibJ4 [info] endStep("6")
2021-01-25T22:54:38+0000 c64fmqbQuF [info] request to updater
2021-01-25T22:54:38+0000 c64fmqbQuF [info] currentStep()
2021-01-25T22:54:38+0000 c64fmqbQuF [info] Step 6 is in state "end".
2021-01-25T22:54:38+0000 c64fmqbQuF [info] POST request for step "7"
2021-01-25T22:54:38+0000 c64fmqbQuF [info] startStep("7")
2021-01-25T22:54:38+0000 c64fmqbQuF [info] setMaintenanceMode("true")
2021-01-25T22:54:38+0000 c64fmqbQuF [info] configFileName /var/www/nextcloud/updater/../config/config.php
2021-01-25T22:54:38+0000 c64fmqbQuF [info] end of setMaintenanceMode()
2021-01-25T22:54:38+0000 c64fmqbQuF [info] endStep("7")
2021-01-25T22:54:38+0000 nb3Vutq85B [info] request to updater
2021-01-25T22:54:38+0000 nb3Vutq85B [info] currentStep()
2021-01-25T22:54:38+0000 nb3Vutq85B [info] Step 7 is in state "end".
2021-01-25T22:54:38+0000 nb3Vutq85B [info] POST request for step "8"
2021-01-25T22:54:38+0000 nb3Vutq85B [info] startStep("8")
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replaceEntryPoints()
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replace index.php
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replace status.php
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replace remote.php
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replace public.php
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replace ocs/v1.php
2021-01-25T22:54:38+0000 nb3Vutq85B [info] replace ocs/v2.php
2021-01-25T22:54:38+0000 nb3Vutq85B [info] end of replaceEntryPoints()
2021-01-25T22:54:38+0000 nb3Vutq85B [info] endStep("8")
2021-01-25T22:54:38+0000 bL69Gl2ICQ [info] request to updater
2021-01-25T22:54:38+0000 bL69Gl2ICQ [info] currentStep()
2021-01-25T22:54:38+0000 bL69Gl2ICQ [info] Step 8 is in state "end".
2021-01-25T22:54:38+0000 bL69Gl2ICQ [info] POST request for step "9"
2021-01-25T22:54:38+0000 bL69Gl2ICQ [info] startStep("9")
2021-01-25T22:54:38+0000 bL69Gl2ICQ [info] deleteOldFiles()
2021-01-25T22:54:41+0000 bL69Gl2ICQ [info] config sample exists
2021-01-25T22:54:41+0000 bL69Gl2ICQ [info] themes README exists
2021-01-25T22:54:46+0000 bL69Gl2ICQ [info] end of deleteOldFiles()
2021-01-25T22:54:46+0000 bL69Gl2ICQ [info] endStep("9")
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] request to updater
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] currentStep()
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] Step 9 is in state "end".
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] POST request for step "10"
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] startStep("10")
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] moveNewVersionInPlace()
2021-01-25T22:54:47+0000 fIr3fbSXmZ [info] storage location: /media/myCloudDrive/ncdata/updater-ocwn0g3teaag/downloads/nextcloud/
2021-01-25T22:57:41+0000 fIr3fbSXmZ [info] end of moveNewVersionInPlace()
2021-01-25T22:57:41+0000 fIr3fbSXmZ [info] endStep("10")
2021-01-25T23:02:25+0000 GJWixenUKI [info] request to updater
2021-01-25T23:02:25+0000 GJWixenUKI [info] currentStep()
2021-01-25T23:02:25+0000 GJWixenUKI [info] Step 10 is in state "end".
2021-01-25T23:02:25+0000 GJWixenUKI [info] POST request for step "11"
2021-01-25T23:02:25+0000 GJWixenUKI [info] startStep("11")
2021-01-25T23:02:25+0000 GJWixenUKI [info] setMaintenanceMode("false")
2021-01-25T23:02:25+0000 GJWixenUKI [info] configFileName /var/www/nextcloud/updater/../config/config.php
2021-01-25T23:02:25+0000 GJWixenUKI [info] end of setMaintenanceMode()
2021-01-25T23:02:25+0000 GJWixenUKI [info] endStep("11")
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] request to updater
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] currentStep()
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] Step 11 is in state "end".
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] POST request for step "12"
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] startStep("12")
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] finalize()
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] storage location: /media/myCloudDrive/ncdata/updater-ocwn0g3teaag/downloads/nextcloud/
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] call opcache_reset()
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] end of finalize()
2021-01-25T23:02:25+0000 Ih75gH7VsD [info] endStep("12")

This is the error.log in apache2**

 [Mon Jan 25 20:08:07.979816 2021] [proxy_fcgi:error] [pid 902:tid 548373991824] (104)Connection reset by peer: [client [My IP Adress (deleted)].23:59266] AH01075: Error dispatching request to :4443:
[Mon Jan 25 20:08:10.176808 2021] [mpm_event:notice] [pid 898:tid 548609910128] AH00491: caught SIGTERM, shutting down
[Mon Jan 25 20:08:39.866736 2021] [ssl:warn] [pid 684:tid 548054766960] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 20:08:39.901474 2021] [ssl:error] [pid 684:tid 548054766960] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8F$
[Mon Jan 25 20:08:39.901599 2021] [ssl:error] [pid 684:tid 548054766960] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Jan 25 20:08:40.027745 2021] [ssl:warn] [pid 954:tid 548054766960] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 20:08:40.028262 2021] [ssl:error] [pid 954:tid 548054766960] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8F$
[Mon Jan 25 20:08:40.028312 2021] [ssl:error] [pid 954:tid 548054766960] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Jan 25 20:08:40.035291 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Mon Jan 25 20:08:40.035484 2021] [core:notice] [pid 954:tid 548054766960] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 25 20:08:42.322497 2021] [proxy:error] [pid 955:tid 547785236880] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (*) failed
[Mon Jan 25 20:08:42.322773 2021] [proxy_fcgi:error] [pid 955:tid 547785236880] [client [My IP Adress (deleted)].23:59558] AH01079: failed to make connection to backend: httpd-UDS
[Mon Jan 25 20:11:56.993459 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Jan 25 20:11:57.038075 2021] [ssl:warn] [pid 954:tid 548054766960] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 20:11:57.038489 2021] [ssl:error] [pid 954:tid 548054766960] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8F$
[Mon Jan 25 20:11:57.038539 2021] [ssl:error] [pid 954:tid 548054766960] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Jan 25 20:11:57.040673 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Mon Jan 25 20:11:57.040737 2021] [core:notice] [pid 954:tid 548054766960] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 25 20:12:07.280208 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Jan 25 20:12:07.326285 2021] [ssl:warn] [pid 954:tid 548054766960] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 20:12:07.326699 2021] [ssl:error] [pid 954:tid 548054766960] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8F$
[Mon Jan 25 20:12:07.326748 2021] [ssl:error] [pid 954:tid 548054766960] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Jan 25 20:12:07.328728 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Mon Jan 25 20:12:07.328792 2021] [core:notice] [pid 954:tid 548054766960] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 25 20:12:10.495131 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Jan 25 20:12:10.541237 2021] [ssl:warn] [pid 954:tid 548054766960] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 20:12:10.541673 2021] [ssl:error] [pid 954:tid 548054766960] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8F$
[Mon Jan 25 20:12:10.541730 2021] [ssl:error] [pid 954:tid 548054766960] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Jan 25 20:12:10.543915 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Mon Jan 25 20:12:10.544049 2021] [core:notice] [pid 954:tid 548054766960] AH00094: Command line: '/usr/sbin/apache2'

**`Arround this time i began to download and install the update, via the web installer in the nextcloud configurations`**

[Mon Jan 25 23:10:20.166195 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Jan 25 23:10:20.283843 2021] [ssl:warn] [pid 954:tid 548054766960] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 23:10:20.290278 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Mon Jan 25 23:10:20.290368 2021] [core:notice] [pid 954:tid 548054766960] AH00094: Command line: '/usr/sbin/apache2'

[Mon Jan 25 23:11:51.028717 2021] [proxy_fcgi:error] [pid 7168:tid 547751190928] [client [My IP Adress (deleted)].50:61667] AH01067: Failed to read FastCGI header
[Mon Jan 25 23:11:51.028962 2021] [proxy_fcgi:error] [pid 7168:tid 547751190928] (104)Connection reset by peer: [client.50:61667] AH01075: Error dispatching request to :4443:
[Mon Jan 25 23:11:51.377952 2021] [mpm_event:notice] [pid 954:tid 548054766960] AH00491: caught SIGTERM, shutting down
[Mon Jan 25 23:12:19.763961 2021] [ssl:warn] [pid 698:tid 548021822832] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 23:12:19.829983 2021] [ssl:warn] [pid 891:tid 548021822832] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 25 23:12:19.837707 2021] [mpm_event:notice] [pid 891:tid 548021822832] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Mon Jan 25 23:12:19.837887 2021] [core:notice] [pid 891:tid 548021822832] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jan 26 13:08:56.054774 2021] [mpm_event:notice] [pid 891:tid 548021822832] AH00491: caught SIGTERM, shutting down
[Tue Jan 26 13:09:19.583368 2021] [ssl:warn] [pid 735:tid 548246496624] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Jan 26 13:09:19.638226 2021] [ssl:warn] [pid 897:tid 548246496624] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Jan 26 13:09:19.645545 2021] [mpm_event:notice] [pid 897:tid 548246496624] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Jan 26 13:09:19.645796 2021] [core:notice] [pid 897:tid 548246496624] AH00094: Command line: '/usr/sbin/apache2'

This is my old config.php (I have finally found the backup :slight_smile:

<?php
$CONFIG = array (
  'passwordsalt' => xxx,
  'secret' => 'FA/fhDxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    11 => STATIC IP,
    1 => 'NCP IP
    20 => 'DOMAIN 1
    21 => NCP IP
    3 => DOMAIN 1
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'overwrite.cli.url' => 'httpsxxx/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => xxx=',
  'installed' => true,
  'instanceid' => 'oxxxg',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'fxxx =',
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'defaultlinkopen',
    1 => 'files_clipboard',
  ),
  'updater.secret' => 'xxx/YxxxG',
);

This is the new config.php, i have marked the changes. The IP adress has changed because i have activated “stactic ip”, to see what happens, didn’t have a specific reason. I have marked everything that has changed.

> **<?php
> **$CONFIG = array (
> **  'passwordsalt' => 'xxx',
> **  'secret' => 'xxx',
> **  'trusted_domains' => 
> **  array (
> **    0 => 'localhost',
> **    5 => 'nextcloudpi.local',
> **    7 => 'nextcloudpi',
> **    8 => 'nextcloudpi.lan',
> **    11 => 'xxx',
> **    1 => '192.168.1.130',
> **    20 => 'domain1,
> **    21 => 'NCP IP,
> **    3 => 'domain1,
> **    12 => 'domain1,                         THIS HAS CHANGED
> **  ),
> **  'datadirectory' => '/media/myCloudDrive/ncdata',
> **  'dbtype' => 'mysql',
> **  'version' => '20.0.6.1',
> **  'overwrite.cli.url' => 'STATIC IP/',        THIS HAS CHANGED
> **  'dbname' => 'nextcloud',
> **  'dbhost' => 'localhost',
> **  'dbport' => '',
> **  'dbtableprefix' => 'oc_',
> **  'mysql.utf8mb4' => true,
> **  'dbuser' => 'ncadmin',
> **  'dbpassword' => 'XXX',
> **  'installed' => true,
> **  'instanceid' => 'xxx',
> **  'memcache.local' => '\\OC\\Memcache\\Redis',
> **  'memcache.locking' => '\\OC\\Memcache\\Redis',
> **  'redis' => 
> **  array (
> **    'host' => '/var/run/redis/redis.sock',
> **    'port' => 0,
> **    'timeout' => 0.0,
> **    'password' => 'xxx',
> **  ),
> **  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
> **  'mail_smtpmode' => 'sendmail',
> **  'mail_smtpauthtype' => 'LOGIN',
> **  'mail_from_address' => 'admin',
> **  'mail_domain' => 'ownyourbits.com',
> **  'preview_max_x' => '2048',
> **  'preview_max_y' => '2048',
> **  'jpeg_quality' => '60',
> **  'overwriteprotocol' => 'https',
> **  'maintenance' => true,                             THIS HAS CHANGED
> **  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
> **  'loglevel' => 2,
> **  'app_install_overwrite' => 
> **  array (
> **    0 => 'defaultlinkopen',
> **    1 => 'files_clipboard',
> **  ),
> **  'updater.secret' => 'xxx',                 THIS HAS CHANGED
> **  'theme' => '',
> **);

Thanks,
good to know!

But do you know how i can reinstall the old version?

How I did it was to do the step by step install process, manually through my Unraid command prompt not sure if the prompt in NC would let you do this (if your not on Unraid), only I substituted the “latest” in the

wget https://download.nextcloud.com/server/releases/latest.tar.bz2

with

wget https://download.nextcloud.com/server/releases/nextcloud-20.0.4.tar.bz2

from the Index of /server/releases NC repository.

It is quite far down the page. The releases are listed oldest to newest. I would just do a web page search for the version.

Then just follow the steps as normal and the version has been reverted.

As a caveat, this could result in some error messages around indices etc. on the update page. But easily fixed it is working again. :grin:

Hope this helps

Cheers

toolmanz

1 Like

I’m so stupid.
The problem was always that “static-ip” was enabled. Thanks for the help @Mageunic and @toolmanz

1 Like

Ok, your problem seems to be solved.
But: Your question isn’ t answered:

I have the same question for going back, if update fails. I have my own backup/restore scripts which work very good, but they backup the whole data folder (120 GB…). It’s about 1h for backup and 1h for restore…

I am on V 23.0.5.

I have found the folder where the copies of the nextcloud folder are copied:
“nextcloud-data-folder/updater-ocvgax/backups”

But where is the database backup?

How can I use the automatically backups made by updates for a quick complete restore of the nextcloud files and database?

Best regards
DZ