Content-Encoding-Error after upgrade to 12.0.2

Nextcloud version: 12.0.0 to 12.0.2
Operating system and version : Linux QNAP-NAS 4.2.8 #1 SMP Thu Jul 27 01:09:44 CST 2017 x86_64
Apache or nginx version:: Apache 2.2
PHP version:: PHP Version 5.6.30
Is this the first time you’ve seen this error?: Yes! :roll_eyes:

Can you reliably replicate it? (If so, please outline steps):

Yes

The issue you are facing:

I tried to update Netxcloud 12.0.0 to 12.0.2 via webfrontend. The Update seems so went fine, I reached the maintenance screen, finally (Nextcloud will be updated, when finished you will be redirected to the login screen…or something similar)
After trying to reload the page after a while I got a “Content-Encoding-Error” only from the firefox.

The output of your Nextcloud log in Admin > Logging:

I tried to attach the updater.log and nextcloud.log but attachments of textfiles are not allowed be the system, nor the quotation (because only 2 links allowed for new users)… so how can I show you the logs?!

Any ideas?!

Thanks a lot for helping!!!

Tacitus

Here is the updater.log now… I replaced the “http” with “URL” to be able to post this log here!

2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] request to updater
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] currentStep()
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] show HTML page
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] current version: 12.0.0 build time: 2017-05-22T08:27:00+00:00 98e26f8b5c8b238e7f3556e900c524ce78bde95a
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] getUpdateServerResponse()
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] updaterServer: URLs://updates.nextcloud.org/updater_server/
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] releaseChannel: stable
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] internal version: 12.0.0.29
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] updateURL: URLs://updates.nextcloud.org/updater_server/?version=12x0x0x29xxxstablexx2017-05-22T08%3A27%3A00%2B00%3A00+98e26f8b5c8b238e7f3556e900c524ce78bde95ax5x6x30
2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] getUpdateServerResponse response: Array
(
[version] => 12.0.2.0
[versionstring] => Nextcloud 12.0.2
[url] => URLs://download.nextcloud.com/server/prereleases/nextcloud-12.0.2.zip
[web] => URLs://docs.nextcloud.com/server/11/admin_manual/maintenance/upgrade.html
[autoupdater] => 1
[signature] => nnONX64IyHDi5cVkFDqRL109KQKQcc3WdSZQ0+NUA3JT9r3qyzdACRRDrBj9x/Mt
qo0jXEcYyhBS5Mj74jJLWA8g+5SXWNwZKqnhv9ho5l9cApUXML0R3Za+nrOuJHMP
ysI7bxpunc9NT/oDngtrowTeQkhmtDdff6bsNJH4FdrbIrc0hfnpHgwSQUTkYy6z
mt5ISybwWmN0sqn3hy3HlOfMME88x7X4TtSVDxlQW86i+eKaLcgcLdZEyHXbLBnF
rGvgv80yeIkazhAXsaMDcjGtivmMhwk69B40tY1pU/fZxSPaMPxFVa/U5m5ApVxQ
2nojXLE71M7e7BIZFziJYA==
)

2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] checkForUpdate() Array
(
[version] => 12.0.2.0
[versionstring] => Nextcloud 12.0.2
[url] => URLs://download.nextcloud.com/server/prereleases/nextcloud-12.0.2.zip
[web] => URLs://docs.nextcloud.com/server/11/admin_manual/maintenance/upgrade.html
[autoupdater] => 1
[signature] => nnONX64IyHDi5cVkFDqRL109KQKQcc3WdSZQ0+NUA3JT9r3qyzdACRRDrBj9x/Mt
qo0jXEcYyhBS5Mj74jJLWA8g+5SXWNwZKqnhv9ho5l9cApUXML0R3Za+nrOuJHMP
ysI7bxpunc9NT/oDngtrowTeQkhmtDdff6bsNJH4FdrbIrc0hfnpHgwSQUTkYy6z
mt5ISybwWmN0sqn3hy3HlOfMME88x7X4TtSVDxlQW86i+eKaLcgcLdZEyHXbLBnF
rGvgv80yeIkazhAXsaMDcjGtivmMhwk69B40tY1pU/fZxSPaMPxFVa/U5m5ApVxQ
2nojXLE71M7e7BIZFziJYA==
)

2017-08-15T21:26:13+0800 QD4Ur5uY1J [info] end of checkForUpdate() Update to Nextcloud 12.0.2 available. (channel: “stable”)
Following file will be downloaded automatically: URLs://download.nextcloud.com/server/prereleases/nextcloud-12.0.2.zip
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] request to updater
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] currentStep()
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] POST request for step "1"
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] startStep(“1”)
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] checkForExpectedFilesAndFolders()
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] end of checkForExpectedFilesAndFolders()
2017-08-15T21:27:09+0800 n6eVmoxFz8 [info] endStep(“1”)
2017-08-15T21:27:11+0800 aWAe2WefMR [info] request to updater
2017-08-15T21:27:11+0800 aWAe2WefMR [info] currentStep()
2017-08-15T21:27:11+0800 aWAe2WefMR [info] Step 1 is in state “end”.
2017-08-15T21:27:11+0800 aWAe2WefMR [info] POST request for step "2"
2017-08-15T21:27:11+0800 aWAe2WefMR [info] startStep(“2”)
2017-08-15T21:27:11+0800 aWAe2WefMR [info] checkWritePermissions()
2017-08-15T21:27:11+0800 aWAe2WefMR [info] end of checkWritePermissions()
2017-08-15T21:27:11+0800 aWAe2WefMR [info] endStep(“2”)
2017-08-15T21:27:11+0800 B8XjWFA35N [info] request to updater
2017-08-15T21:27:11+0800 B8XjWFA35N [info] currentStep()
2017-08-15T21:27:11+0800 B8XjWFA35N [info] Step 2 is in state “end”.
2017-08-15T21:27:11+0800 B8XjWFA35N [info] POST request for step "3"
2017-08-15T21:27:11+0800 B8XjWFA35N [info] startStep(“3”)
2017-08-15T21:27:11+0800 B8XjWFA35N [info] setMaintenanceMode(“true”)
2017-08-15T21:27:11+0800 B8XjWFA35N [info] configFileName /share/MD0_DATA/Qweb/nextcloud/updater/…/config/config.php
2017-08-15T21:27:11+0800 B8XjWFA35N [info] end of setMaintenanceMode()
2017-08-15T21:27:11+0800 B8XjWFA35N [info] endStep(“3”)
2017-08-15T21:27:11+0800 3xLwgX2w76 [info] request to updater
2017-08-15T21:27:11+0800 3xLwgX2w76 [info] currentStep()
2017-08-15T21:27:11+0800 3xLwgX2w76 [info] Step 3 is in state “end”.
2017-08-15T21:27:11+0800 3xLwgX2w76 [info] POST request for step "4"
2017-08-15T21:27:11+0800 3xLwgX2w76 [info] startStep(“4”)
2017-08-15T21:27:11+0800 3xLwgX2w76 [info] createBackup()
2017-08-15T21:27:39+0800 3xLwgX2w76 [info] end of createBackup()
2017-08-15T21:27:39+0800 3xLwgX2w76 [info] endStep(“4”)
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] request to updater
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] currentStep()
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] Step 4 is in state “end”.
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] POST request for step "5"
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] startStep(“5”)
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] downloadUpdate()
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] getUpdateServerResponse()
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] updaterServer: URLs://updates.nextcloud.org/updater_server/
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] releaseChannel: stable
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] internal version: 12.0.0.29
2017-08-15T21:27:39+0800 4MbsSGwY07 [info] updateURL: URLs://updates.nextcloud.org/updater_server/?version=12x0x0x29xxxstablexx2017-05-22T08%3A27%3A00%2B00%3A00+98e26f8b5c8b238e7f3556e900c524ce78bde95ax5x6x30
2017-08-15T21:27:40+0800 4MbsSGwY07 [info] getUpdateServerResponse response: Array
(
[version] => 12.0.2.0
[versionstring] => Nextcloud 12.0.2
[url] => URLs://download.nextcloud.com/server/prereleases/nextcloud-12.0.2.zip
[web] => URLs://docs.nextcloud.com/server/11/admin_manual/maintenance/upgrade.html
[autoupdater] => 1
[signature] => nnONX64IyHDi5cVkFDqRL109KQKQcc3WdSZQ0+NUA3JT9r3qyzdACRRDrBj9x/Mt
qo0jXEcYyhBS5Mj74jJLWA8g+5SXWNwZKqnhv9ho5l9cApUXML0R3Za+nrOuJHMP
ysI7bxpunc9NT/oDngtrowTeQkhmtDdff6bsNJH4FdrbIrc0hfnpHgwSQUTkYy6z
mt5ISybwWmN0sqn3hy3HlOfMME88x7X4TtSVDxlQW86i+eKaLcgcLdZEyHXbLBnF
rGvgv80yeIkazhAXsaMDcjGtivmMhwk69B40tY1pU/fZxSPaMPxFVa/U5m5ApVxQ
2nojXLE71M7e7BIZFziJYA==
)

2017-08-15T21:27:49+0800 4MbsSGwY07 [info] end of downloadUpdate()
2017-08-15T21:27:49+0800 4MbsSGwY07 [info] endStep(“5”)
2017-08-15T21:27:49+0800 2L26zRQZht [info] request to updater
2017-08-15T21:27:49+0800 2L26zRQZht [info] currentStep()
2017-08-15T21:27:49+0800 2L26zRQZht [info] Step 5 is in state “end”.
2017-08-15T21:27:49+0800 2L26zRQZht [info] POST request for step "6"
2017-08-15T21:27:49+0800 2L26zRQZht [info] startStep(“6”)
2017-08-15T21:27:49+0800 2L26zRQZht [info] verifyIntegrity()
2017-08-15T21:27:49+0800 2L26zRQZht [info] getUpdateServerResponse()
2017-08-15T21:27:49+0800 2L26zRQZht [info] updaterServer: URLs://updates.nextcloud.org/updater_server/
2017-08-15T21:27:49+0800 2L26zRQZht [info] releaseChannel: stable
2017-08-15T21:27:49+0800 2L26zRQZht [info] internal version: 12.0.0.29
2017-08-15T21:27:49+0800 2L26zRQZht [info] updateURL: URLs://updates.nextcloud.org/updater_server/?version=12x0x0x29xxxstablexx2017-05-22T08%3A27%3A00%2B00%3A00+98e26f8b5c8b238e7f3556e900c524ce78bde95ax5x6x30
2017-08-15T21:27:50+0800 2L26zRQZht [info] getUpdateServerResponse response: Array
(
[version] => 12.0.2.0
[versionstring] => Nextcloud 12.0.2
[url] => URLs://download.nextcloud.com/server/prereleases/nextcloud-12.0.2.zip
[web] => URLs://docs.nextcloud.com/server/11/admin_manual/maintenance/upgrade.html
[autoupdater] => 1
[signature] => nnONX64IyHDi5cVkFDqRL109KQKQcc3WdSZQ0+NUA3JT9r3qyzdACRRDrBj9x/Mt
qo0jXEcYyhBS5Mj74jJLWA8g+5SXWNwZKqnhv9ho5l9cApUXML0R3Za+nrOuJHMP
ysI7bxpunc9NT/oDngtrowTeQkhmtDdff6bsNJH4FdrbIrc0hfnpHgwSQUTkYy6z
mt5ISybwWmN0sqn3hy3HlOfMME88x7X4TtSVDxlQW86i+eKaLcgcLdZEyHXbLBnF
rGvgv80yeIkazhAXsaMDcjGtivmMhwk69B40tY1pU/fZxSPaMPxFVa/U5m5ApVxQ
2nojXLE71M7e7BIZFziJYA==
)

2017-08-15T21:27:50+0800 2L26zRQZht [info] storage location: /share/MD0_DATA/nextcloud-data/updater-ocfyhe88gw6g/downloads/
2017-08-15T21:27:50+0800 2L26zRQZht [info] end of verifyIntegrity()
2017-08-15T21:27:50+0800 2L26zRQZht [info] endStep(“6”)
2017-08-15T21:27:50+0800 DYKISbNnaO [info] request to updater
2017-08-15T21:27:50+0800 DYKISbNnaO [info] currentStep()
2017-08-15T21:27:50+0800 DYKISbNnaO [info] Step 6 is in state “end”.
2017-08-15T21:27:50+0800 DYKISbNnaO [info] POST request for step "7"
2017-08-15T21:27:50+0800 DYKISbNnaO [info] startStep(“7”)
2017-08-15T21:27:50+0800 DYKISbNnaO [info] extractDownload()
2017-08-15T21:27:50+0800 DYKISbNnaO [info] storage location: /share/MD0_DATA/nextcloud-data/updater-ocfyhe88gw6g/downloads/
2017-08-15T21:28:09+0800 DYKISbNnaO [info] end of extractDownload()
2017-08-15T21:28:09+0800 DYKISbNnaO [info] endStep(“7”)
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] request to updater
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] currentStep()
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] Step 7 is in state “end”.
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] POST request for step "8"
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] startStep(“8”)
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replaceEntryPoints()
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replace index.php
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replace status.php
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replace remote.php
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replace public.php
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replace ocs/v1.php
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] replace ocs/v2.php
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] end of replaceEntryPoints()
2017-08-15T21:28:10+0800 XmmNPdbdMA [info] endStep(“8”)
2017-08-15T21:28:10+0800 4FAtmFPSoU [info] request to updater
2017-08-15T21:28:10+0800 4FAtmFPSoU [info] currentStep()
2017-08-15T21:28:10+0800 4FAtmFPSoU [info] Step 8 is in state “end”.
2017-08-15T21:28:10+0800 4FAtmFPSoU [info] POST request for step "9"
2017-08-15T21:28:10+0800 4FAtmFPSoU [info] startStep(“9”)
2017-08-15T21:28:10+0800 4FAtmFPSoU [info] deleteOldFiles()
2017-08-15T21:28:11+0800 4FAtmFPSoU [info] config sample exists
2017-08-15T21:28:11+0800 4FAtmFPSoU [info] thmes README exists
2017-08-15T21:28:13+0800 4FAtmFPSoU [info] end of deleteOldFiles()
2017-08-15T21:28:13+0800 4FAtmFPSoU [info] endStep(“9”)
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] request to updater
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] currentStep()
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] Step 9 is in state “end”.
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] POST request for step "10"
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] startStep(“10”)
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] moveNewVersionInPlace()
2017-08-15T21:28:13+0800 7xVltiK1Yj [info] storage location: /share/MD0_DATA/nextcloud-data/updater-ocfyhe88gw6g/downloads/nextcloud/
2017-08-15T21:28:14+0800 7xVltiK1Yj [info] end of moveNewVersionInPlace()
2017-08-15T21:28:14+0800 7xVltiK1Yj [info] endStep(“10”)
2017-08-15T21:55:29+0800 iZTT3ZG7LR [info] request to updater
2017-08-15T21:55:29+0800 iZTT3ZG7LR [info] currentStep()
2017-08-15T21:55:29+0800 iZTT3ZG7LR [info] Step 10 is in state “end”.
2017-08-15T21:55:29+0800 iZTT3ZG7LR [info] POST request for step "11"
2017-08-15T21:55:30+0800 iZTT3ZG7LR [info] startStep(“11”)
2017-08-15T21:55:30+0800 iZTT3ZG7LR [info] setMaintenanceMode(“false”)
2017-08-15T21:55:30+0800 iZTT3ZG7LR [info] configFileName /share/MD0_DATA/Qweb/nextcloud/updater/…/config/config.php
2017-08-15T21:55:30+0800 iZTT3ZG7LR [info] end of setMaintenanceMode()
2017-08-15T21:55:30+0800 iZTT3ZG7LR [info] endStep(“11”)
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] request to updater
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] currentStep()
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] Step 11 is in state “end”.
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] POST request for step "12"
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] startStep(“12”)
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] finalize()
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] storage location: /share/MD0_DATA/nextcloud-data/updater-ocfyhe88gw6g/downloads/nextcloud/
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] end of finalize()
2017-08-15T21:55:30+0800 y8SBE0HiYr [info] endStep(“12”)

content removed

exactly the same problem here with the same set-up.

2h of research, no positive results :frowning:

the only “useful” things i observed were:

  • if you change "zlib.output_compression"
    to “On” in /etc/config/php,ini you get an internal server error 500

  • also does the following command with & without changing the php.ini file:
    curl --compress --raw -i https://<server_domain>

  • nothing in the nextcloud log

  • fastcgi errors in php log (see further down below)

most likely it has something to do with a php module (zlib, gzip or fastcgi?)

I hope someone has an idea what is going on.

PHP-Log

[Tue Sep 05 21:13:59.653152 2017] [fastcgi:notice] [pid 2270:tid 140243505280896] FastCGI: process manager initialized (pid 2270)
[Tue Sep 05 21:13:59.673582 2017] [core:warn] [pid 2260:tid 140243505280896] AH00098: pid file /var/lock/apache.pid overwritten – Unclean shutdown of previous Apache run?
[Tue Sep 05 21:13:59.677669 2017] [mpm_worker:notice] [pid 2260:tid 140243505280896] AH00292: Apache/2.4.25 (Unix) OpenSSL/1.0.2k mod_fastcgi/2.4.7 configured – resuming normal operations
[Tue Sep 05 21:13:59.677757 2017] [mpm_worker:info] [pid 2260:tid 140243505280896] AH00293: Server built: Jul 27 2017 04:34:34
[Tue Sep 05 21:13:59.677899 2017] [core:notice] [pid 2260:tid 140243505280896] AH00094: Command line: ‘/usr/local/apache/bin/apache -c PidFile /var/lock/apache.pid -f /etc/config/apache/apache.conf’
[Tue Sep 05 21:14:19.234630 2017] [ssl:info] [pid 2281:tid 140242838636288] [client <client_ip>:52104] AH01964: Connection to child 6 established (server <server_domain>:443)
[Tue Sep 05 21:14:20.160134 2017] [fastcgi:error] [pid 2281:tid 140243191129856] (104)Connection reset by peer: [client <client_ip>:52104] FastCGI: comm with server “/php.mod_fastcgi” aborted: read failed
[Tue Sep 05 21:14:20.160936 2017] [core:error] [pid 2281:tid 140243191129856] [client <client_ip>:52104] AH00524: Handler for fastcgi-script returned invalid result code 1
[Tue Sep 05 21:14:27.636156 2017] [ssl:info] [pid 2282:tid 140242745022208] [client 192.168.0.101:49523] AH01964: Connection to child 73 established (server <server_domain>:443)
[Tue Sep 05 21:14:28.484431 2017] [fastcgi:error] [pid 2282:tid 140242745022208] (104)Connection reset by peer: [client 192.168.0.101:49523] FastCGI: comm with server “/php.mod_fastcgi” aborted: read failed
[Tue Sep 05 21:14:28.485778 2017] [fastcgi:error] [pid 2282:tid 140242745022208] [client 192.168.0.101:49523] FastCGI: incomplete headers (0 bytes) received from server “/php.mod_fastcgi”

Info: Nextcloud 12.0.0 doesn’t produce the fastcgi module related errors, only v.12.0.2 does

Scanning through the logs quickly, I didn’t see an obvious error. So it seems as if it placed the new code correctly. I would now try to run the occ-command to upgrade. Change into the nextcloud-folder via terminal and execute:

sudo -u webserver-user php occ upgrade

I don’t know the webserver user for QNAP, if your updater was run on the browser, it should be the same as the owner of the files withing your nextcloud-folder.

Thank you so much tflidd!

Over the CLI, whose way i didn’t know beforehand, it worked to finish the update process.

I did the following, with your help:

/etc/init.d/Qthttpd.sh stop
cd <path-to-nextcloud>/nextcloud/
sudo -u httpdusr /mnt/ext/opt/apache/bin/php occ upgrade
/etc/init.d/Qthttpd.sh start