Update Button not working
Steps to reproduce
- Pressing "Open updater" (tested with Firefox 47.0.1, Edge and IE 11)
Expected behaviour
The updater opens.
Actual behaviour
Nothing happens.
Server configuration
Operating system: Solaris Unix (Hosted by Strato)
Web server: Apache 2.2
Database: MySQL 5.5.48
PHP version: 5.6
ownCloud version: 9.0.3
Updated from an older ownCloud or fresh install: Manual Update from 9.0.2
Where did you install ownCloud from: https://owncloud.org
Signing status (ownCloud 9.0 and above):
No errors have been found.
config.php
<?php
$CONFIG = array (
'datadirectory' => '/mnt/web024/a2/74/12345678/htdocs/owncloud_data',
'tempdirectory' => '/mnt/web024/a2/74/12345678/htdocs/owncloud/temp',
'instanceid' => '---',
'passwordsalt' => '---',
'secret' => '---',
'dbtype' => 'mysql',
'version' => '9.1.0.15',
'dbname' => '---',
'dbhost' => 'rdbms.strato.de',
'dbtableprefix' => 'oc_',
'dbuser' => '---',
'dbpassword' => '---',
'logtimezone' => 'UTC',
'log_rotate_size' => 31457280,
'installed' => true,
'forcessl' => true,
'maintenance' => false,
'trusted_domains' =>
array (
0 => 'www.abc.de',
),
'theme' => '',
'loglevel' => 2,
'htaccess.RewriteBase' => '/owncloud',
);
ownCloud log (data/owncloud.log)
{"reqId":"pofC0ks8HCdrs5XWn99O","remoteAddr":"x.x.x.x","app":"PHP","message":"Undefined index: REQUEST_URI at \/mnt\/web024\/a2\/74\/12345678\/htdocs\/owncloud\/lib\/base.php#179","level":3,"time":"2016-07-21T14:39:19+00:00","method":"--","url":"--","user":"--"}
error-log
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Could not parse a response for config:list --private. Please check if the current shell user can run occ command. Raw output:
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-Powered-By: PHP/5.6.22
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Set-Cookie: ocenobfbc2kr=0rm1cem36gkl3qgv0n92vvkgc6; path=/; HttpOnly
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Expires: Thu, 19 Nov 1981 08:52:00 GMT
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Pragma: no-cache
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Set-Cookie: oc_sessionPassphrase=xAsNtMWn37bC45F2yjbuYohfMyjR0z3xDvHH%2BXJdVRTEfhYDt9QgEPhNMhckA4AJdmzHY%2Fcws3TRSREBVMgAsKfA4YKqvHvsqyiXtuXPojBIRiyl7sOFmBbK627GBA0g; path=/; httponly
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Content-Security-Policy:default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-XSS-Protection: 1; mode=block
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-Content-Type-Options: nosniff
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-Frame-Options: Sameorigin
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-Robots-Tag: none
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-Download-Options: noopen
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] X-Permitted-Cross-Domain-Policies: none
21.07.2016 16:56:27 abc.de [client xxx.xxx.xxx.xxx] Content-type: text/html; charset=UTF in /mnt/web024/a2/74/12345678/htdocs/owncloud/updater/src/Utils/OccRunner.php on line 59
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Could not parse a response for config:list --private. Please check if the current shell user can run occ command. Raw output:
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-Powered-By: PHP/5.6.22
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Set-Cookie: ocenobfbc2kr=4oi38ip9ao7cg1lvn694br0rf3; path=/; HttpOnly
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Expires: Thu, 19 Nov 1981 08:52:00 GMT
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Pragma: no-cache
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Set-Cookie: oc_sessionPassphrase=4l5HEAGE1Ek5U9PItbqVM4u5mynS3xFIh79r6avh%2Bs%2ByzfoN6hhvakR1rzBPzdmXGLS%2F%2FtUNIsXdefEprihKlPQBxOZVn1QizTZ3qtsOWkPSP484G0PvT4uSjMAtL3NI; path=/; httponly
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Content-Security-Policy:default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-XSS-Protection: 1; mode=block
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-Content-Type-Options: nosniff
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-Frame-Options: Sameorigin
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-Robots-Tag: none
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-Download-Options: noopen
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] X-Permitted-Cross-Domain-Policies: none
21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Content-type: text/html; charset in /mnt/web024/a2/74/12345678/htdocs/owncloud/updater/src/Utils/OccRunner.php on line 59
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Could not parse a response for config:list --private. Please check if the current shell user can run occ command. Raw output:
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-Powered-By: PHP/5.6.22
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Set-Cookie: ocenobfbc2kr=v31jombl1pjn85fu5efchgi616; path=/; HttpOnly
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Expires: Thu, 19 Nov 1981 08:52:00 GMT
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Pragma: no-cache
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Set-Cookie: oc_sessionPassphrase=QIEBdz8SH4ySsOxxrbozEcEPNJfwTjDR2bcfJS51rbesyr6xk95cGM%2Fe2m1Ck8wiusylxTmOC6gRhzA0irnSi47rE2v8mM48LEWIvBAfBIalP24nzlEvr%2BI2rCEc3qvp; path=/; httponly
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Content-Security-Policy:default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-XSS-Protection: 1; mode=block
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-Content-Type-Options: nosniff
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-Frame-Options: Sameorigin
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-Robots-Tag: none
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-Download-Options: noopen
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] X-Permitted-Cross-Domain-Policies: none
21.07.2016 16:56:30 abc.de [client xxx.xxx.xxx.xxx] Content-type: text/html; charset=UTF in /mnt/web024/a2/74/12345678/htdocs/owncloud/updater/src/Utils/OccRunner.php on line 59
"21.07.2016 16:56:29 abc.de [client xxx.xxx.xxx.xxx] Expires: Thu, 19 Nov 1981 08:52:00 GMT"
That's a tad past expiration date, one might think.
Is there a way to manually open the Updater? A link or s.th. like that?
Someone reported this on IRC today, please check the error_log and owncloud.log.
Your setup must allow running php from the CLI for the update to be possible.
@VicDeo we need to make the updater show an actual error message in such cases.
@PVince81 I added owncloud and error logs for this event (cleared the log and pressed the button (for owncloud.log, that is.))
Your setup must allow running php from the CLI for the update to be possible.
I think it worked before. Might have been a different server, though.
Out of curiosity, was it a bad idea to post the "oc_sessionPassphrase=..." like I did?
Same here. Nothing happens. Want to update from 9.0.2 to 9.0.4. How frustrating. A lot of "tam tam" ("Hey everyone out there, here is the new 9.0.4, finally!" - and then update doesn´t work. Bravo). By the way: Nothing in owncloud.log. Tested IE11 and FF 47.0.1.
same problem here, no log entrys or workaround found...
See also here: https://github.com/owncloud/updater/issues/365
So what next? Will there be a fix, a patch, a workaround...??? 9.0.5? 9.1.1?
@dergilb99 please post data/update.log content
For everyone else:
content of data/update.log (for 9.0.3+)
or updater/update.log (for 9.0.0 - 9.0.2)
is appreciated
Running 9.10 on Ubuntu 16.04, I have no data/update.log file. My /var/www/owncloud/data is empty, since I have configured 'datadirectory' => '/home/owncloud', in config/config.php.
The directory /home/owncloud only contains the following directorys and files:
- admin
- files_external
- user1
- user2
- ownbackup
- updater-data
- htaccesstest.txt
- news
- owncloud.log
- files_encryption
- index.html
- updater_backup
please post data/update.log content
There is no update.log. Only owncloud.log. But maybe here's some info: #25390
@VicDeo could this be a clue ?
Undefined index: REQUEST_URI at \/mnt\/web024\/a2\/74\/12345678\/htdocs\/owncloud\/lib\/base.php#179","level":3,"time":"2016-07-21T14:39:19+00:00","method":"--","url":"--","user":"--"}
Maybe in that PHP env some of the env variables are set differently ?
No progress so far? Do we need to wait for 9.0.5 on August 23rd? But wait... that update can´t fix this bug, cause there´s no update function... sounds like the circle of death to me. What would be a manual FIX for this (except "Well just do the update manually bro")?
@dergilb99 what happens when you open domain.tld/updater/ ?
possibly related to https://github.com/owncloud/core/pull/17491 Exact PHP version needed
@dergilb99 what happens when you open domain.tld/updater/ ?
updater.secret is undefined in config/config.php. Either browse the admin settings in your ownCloud and click "Open updater" or define a strong secret using
php -r 'echo password_hash("MyStrongSecretDoUseYourOwn!", PASSWORD_DEFAULT)."\n";'
and set this in the config.php.
I added the config.php in my initial post.
Exact PHP version needed
PHP Version 5.6.22
@dergilb99 what happens when you open domain.tld/updater/ ?
<?php
/**
* @author Victor Dubiniuk <[email protected]>
*
* @copyright Copyright (c) 2015, ownCloud, Inc.
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License, version 3,
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
use Owncloud\Updater\Controller\IndexController;
require __DIR__ . '/app/bootstrap.php';
$controller = new IndexController($container);
$response = $controller->dispatch();
echo $response;
PHP-Version: 5.6.24-0+deb8u1
updater.secret is undefined in config/config.php. Either browse the admin settings in your ownCloud and click "Open updater" or define a strong secret using php -r 'echo password_hash("MyStrongSecretDoUseYourOwn!", PASSWORD_DEFAULT)."\n";' and set this in the config.php.
That's the same code I get displayed when opening domain.tld/updater/
@bcutter in your case raw PHP is served instead executing it. Which means the server is not configured properly. Which webserver do you use?
@VicDeo nginx
File contents of "/etc/nginx/sites-enabled/default" mostly following OwnCloud recommendation (admin manual).
.PHP relevant sections:
location @webdav {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
include fastcgi_params;
}
location ~ ^/owncloud/(?:updater|ocs-provider)(?:$|/) {
try_files $uri/ =404;
index index.php;
}
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
try_files $script_name = 404;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_param HTTPS on;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi.conf;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
}
I guess it´s the
location ~ ^/owncloud/(?:updater|ocs-provider)(?:$|/) {
try_files $uri/ =404;
index index.php;
}
block, right?
@bcutter please test https://github.com/owncloud/documentation/pull/2551/files