Upgrade 9.1 - 10 command line hang at Updating <dav>

Steps to reproduce

  1. sudo -u apache ./occ upgrade -v
    2.
    3.

Expected behaviour

Tell us what should happen

Actual behaviour

Just hangs at Updating ...

Server configuration

**Operating system" Centos7

Web server: Apache 2.4.6

Database: mysql 5.5.56-MariaDB MariaDB Server

PHP version: 7.1.9

ownCloud version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install: updated from 9.1

Where did you install ownCloud from: /var/html/owncloud

Signing status (ownCloud 9.0 and above): ? dont understand

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste cd results into https://gist.github.com/ and puth the link here.

The content of config/config.php:
{
"system": {
"datadirectory": "\/data\/owncloud",
"dbtype": "mysql",
"version": "9.1.6.2",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"lastupdatedat": "1335563618.3532",
"instanceid": "507c568457b02",
"maintenance": true,
"theme": "",
"\u2018forcessl\u2019": true,
"forcessl": false,
"trusted_domains": [
"rlj14.ieh.ohsu.edu",
"10.95.71.45"
],
"mail_from_address": "mohanj",
"mail_smtpmode": "smtp",
"mail_domain": "stccmop.org",
"mail_smtpsecure": "tls",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "ambcs03.stccmop.org",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"loglevel": 0,
"mail_smtpport": "587",
"updatechecker": false,
"htaccess.RewriteBase": "\/owncloud"
}

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

{
    "system": {
        "datadirectory": "\/data\/owncloud",
        "dbtype": "mysql",
        "version": "9.1.6.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "lastupdatedat": "1335563618.3532",
        "instanceid": "507c568457b02",
        "maintenance": true,
        "theme": "",
        "\u2018forcessl\u2019": true,
        "forcessl": false,
        "trusted_domains": [
            "rlj14.ieh.ohsu.edu",
            "10.95.71.45"
        ],
        "mail_from_address": "mohanj",
        "mail_smtpmode": "smtp",
        "mail_domain": "stccmop.org",
        "mail_smtpsecure": "tls",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "ambcs03.stccmop.org",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "mail_smtpport": "587",
        "updatechecker": false,
        "htaccess.RewriteBase": "\/owncloud"
    }

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

You may use your browser or the occ upgrade command to do the upgrade
Enabled:
- activity: 2.3.6
- comments: 0.3.0
- configreport: 0.1.1
- dav: 0.2.7
- federatedfilesharing: 0.3.1
- federation: 0.1.0
- files: 1.5.1
- files_external: true
- files_pdfviewer: 0.8.2
- files_sharing: 0.10.0
- files_texteditor: 2.2.1
- files_trashbin: 0.9.0
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 16.0.2
- market: true
- notifications: 0.3.0
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- templateeditor: 0.1
- updatenotification: 0.2.1
Disabled:
- encryption
- external
- files_antivirus
- theme-example
- user_external

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/... NO

Are you using encryption: yes/no NO

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... NO

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

sudo -u apache php ./occ ldap:show-config
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

                                                                  
  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  There are no commands defined in the "ldap" namespace.          
                                                                  


Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
CHrom
Operating system: Mac OSX High Sierra

Logs

Web server error log

Fri Sep 29 11:23:09.627674 2017] [so:warn] [pid 21065] AH01574: module php7_module is already loaded, skipping
[Fri Sep 29 11:23:09.631935 2017] [auth_digest:notice] [pid 21065] AH01757: generating secret for digest authentication ...
[Fri Sep 29 11:23:09.632619 2017] [lbmethod_heartbeat:notice] [pid 21065] AH02282: No slotmem from mod_heartmonitor
[Fri Sep 29 11:23:09.663681 2017] [mpm_prefork:notice] [pid 21065] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.1.9 configured -- resuming normal operations
[Fri Sep 29 11:23:09.663708 2017] [core:notice] [pid 21065] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Sep 29 13:20:08.043599 2017] [mpm_prefork:notice] [pid 21065] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Sep 29 13:20:09.156471 2017] [suexec:notice] [pid 24872] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Sep 29 13:20:09.188975 2017] [so:warn] [pid 24872] AH01574: module php7_module is already loaded, skipping
AH00112: Warning: DocumentRoot [/var/www/html/owncloud] does not exist
[Fri Sep 29 13:20:09.193536 2017] [auth_digest:notice] [pid 24872] AH01757: generating secret for digest authentication ...
[Fri Sep 29 13:20:09.194248 2017] [lbmethod_heartbeat:notice] [pid 24872] AH02282: No slotmem from mod_heartmonitor
[Fri Sep 29 13:20:09.225974 2017] [mpm_prefork:notice] [pid 24872] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.1.9 configured -- resuming normal operations
[Fri Sep 29 13:20:09.226026 2017] [core:notice] [pid 24872] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Sep 29 13:22:01.151235 2017] [php7:error] [pid 24874] [client 10.133.40.24:52906] script '/var/www/html/index.php' not found or unable to stat
[Fri Sep 29 13:22:19.922255 2017] [php7:error] [pid 24879] [client 10.133.40.24:52910] script '/var/www/html/index.php' not found or unable to stat
[Fri Sep 29 13:23:30.861597 2017] [mpm_prefork:notice] [pid 24872] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Sep 29 13:24:03.247171 2017] [suexec:notice] [pid 25030] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Sep 29 13:24:03.277597 2017] [so:warn] [pid 25030] AH01574: module php7_module is already loaded, skipping
AH00112: Warning: DocumentRoot [/var/www/html/owncloud] does not exist
[Fri Sep 29 13:24:03.282034 2017] [auth_digest:notice] [pid 25030] AH01757: generating secret for digest authentication ...
[Fri Sep 29 13:24:03.282736 2017] [lbmethod_heartbeat:notice] [pid 25030] AH02282: No slotmem from mod_heartmonitor
[Fri Sep 29 13:24:03.313869 2017] [mpm_prefork:notice] [pid 25030] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.1.9 configured -- resuming normal operations
[Fri Sep 29 13:24:03.313899 2017] [core:notice] [pid 25030] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND':q!
:q!

Insert your webserver log here

ownCloud log (data/owncloud.log)

{"reqId":"Wc5-tJM27pjeGwdbnXn7hQAAAAI","level":2,"time":"2017-09-29T17:15:32+00:00","remoteAddr":"106.45.0.253","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"106.45.0.253\" tried to access using \"137.53.238.27:443\" as host."}
{"reqId":"Wc6EuOZOfi1qAkor3BwbswAAAAE","level":3,"time":"2017-09-29T17:36:56+00:00","remoteAddr":"10.133.40.24","user":"--","app":"index","method":"GET","url":"\/owncloud\/index.php\/core\/js\/oc.js?v=477834b3020a6bc842b5da2858a77ad4","message":"Exception: {\"Exception\":\"OC\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/legacy\\/app.php(121): OC_App::loadApp('dav')\n#1 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/legacy\\/util.php(145): OC_App::loadApps(Array)\n#2 \\/var\\/www\\/html\\/owncloud\\/lib\\/base.php(927): OC_Util::setupFS()\n#3 \\/var\\/www\\/html\\/owncloud\\/index.php(56): OC::handleRequest()\n#4 {main}\",\"File\":\"\\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/legacy\\/app.php\",\"Line\":162}"}
{"reqId":"DzW6j8JIC5XSbZEcvBZ1","level":0,"time":"2017-09-29T17:45:24+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 9.1.6.2 to 10.0.3.3"}
{"reqId":"Wc6PmRzx8VKiHMiRwzNrswAAAAE","level":3,"time":"2017-09-29T18:23:21+00:00","remoteAddr":"10.133.40.24","user":"--","app":"index","method":"GET","url":"\/owncloud\/index.php\/core\/js\/oc.js?v=477834b3020a6bc842b5da2858a77ad4","message":"Exception: {\"Exception\":\"OC\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/app.php(121): OC_App::loadApp('dav')\n#1 \\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/util.php(145): OC_App::loadApps(Array)\n#2 \\/var\\/www\\/owncloud\\/lib\\/base.php(927): OC_Util::setupFS()\n#3 \\/var\\/www\\/owncloud\\/index.php(56): OC::handleRequest()\n#4 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/app.php\",\"Line\":162}"}
{"reqId":"L0zD3zuk14NQ2aFuxJjh","level":0,"time":"2017-09-29T18:28:51+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 9.1.6.2 to 10.0.3.3"}
{"reqId":"j53EZBKVlhr9cy4tlMpt","level":0,"time":"2017-09-29T19:43:59+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 9.1.6.2 to 10.0.3.3"}
{"reqId":"Wc6sFTAErLFzD7EcCyZfqAAAAAQ","level":3,"time":"2017-09-29T20:24:54+00:00","remoteAddr":"10.133.40.24","user":"--","app":"index","method":"GET","url":"\/owncloud\/index.php\/core\/js\/oc.js?v=477834b3020a6bc842b5da2858a77ad4","message":"Exception: {\"Exception\":\"OC\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/app.php(121): OC_App::loadApp('dav')\n#1 \\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/util.php(145): OC_App::loadApps(Array)\n#2 \\/var\\/www\\/owncloud\\/lib\\/base.php(927): OC_Util::setupFS()\n#3 \\/var\\/www\\/owncloud\\/index.php(56): OC::handleRequest()\n#4 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/lib\\/private\\/legacy\\/app.php\",\"Line\":162}"}

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Hi,

can you tell me how you wanted to upgrade?

or what guide were you following