Nextcloud not responding

I recently installed Debian 9.4 on my ProxMox server, then installed the latest of yunohost using the official script.
Then, I configured the server and users, and then added the application:

  • Rainloop
  • OpenSondage
  • NextCloud

Everything is working fine, except Nextcloud.
When I try to open Nextcloud from an internet browser, after few seconds, I receive the following message:

    _504 Gateway Time-out_
_    The server didn't respond in time._ 

With the nextcloud client, I receive error messages “502 Bad Gateway”.

I really do not know why Nextcloud is not working properly, and what I should investigate.

My diagnostic page:

{
    "host": "Debian 9.4",
    "kernel": "4.9.0-6-amd64",
    "packages": {
        "yunohost": {
            "repo": "stable",
            "version": "3.0.0.1"
        },
        "yunohost-admin": {
            "repo": "stable",
            "version": "3.0.0"
        },
        "moulinette": {
            "repo": "stable",
            "version": "3.0.0"
        },
        "ssowat": {
            "repo": "stable",
            "version": "3.0.0"
        }
    },
    "backports": [],
    "system": {
        "disks": {
            "sda1": "Mounted on /boot, 235.3MiB (199.0MiB free)",
            "dm-4": "Mounted on /, 17.4GiB (14.9GiB free)",
            "dm-2": "Mounted on /home/yunohost.app, 49.2GiB (22.0GiB free)",
            "dm-3": "Mounted on /var/mail, 3.9GiB (2.9GiB free)",
            "dm-0": "Mounted on /home, 3.9GiB (3.9GiB free)",
            "dm-1": "Mounted on /home/yunohost.backup, 3.9GiB (3.9GiB free)"
        },
        "memory": {
            "ram": "4.8GiB (4.2GiB free)",
            "swap": "2.0GiB (2.0GiB free)"
        }
    },
    "nginx": [
        "nginx: the configuration file /etc/nginx/nginx.conf syntax is ok",
        "nginx: configuration file /etc/nginx/nginx.conf test is successful"
    ],
    "services": {
        "glances": "running (enabled)",
        "nslcd": "running (enabled)",
        "metronome": "running (enabled)",
        "postfix": "exited (enabled)",
        "rspamd": "running (enabled)",
        "yunohost-firewall": "exited (enabled)",
        "nginx": "running (enabled)",
        "php7.0-fpm": "running (enabled)",
        "dnsmasq": "running (enabled)",
        "fail2ban": "running (enabled)",
        "yunohost-api": "running (enabled)",
        "mysql": "running (enabled)",
        "avahi-daemon": "running (enabled)",
        "dovecot": "running (enabled)",
        "redis-server": "running (enabled)",
        "slapd": "running (enabled)",
        "ssh": "running (enabled)"
    },
    "applications": {
        "opensondage": "OpenSondage",
        "rainloop": "Rainloop",
        "nextcloud": "Nextcloud"
    },
    "private": {
        "public_ip": {
            "IPv4": "82.x.y.z",
            "IPv6": null
        },
        "domains": [
            "dom1.tld",
            "dom2.tld"
        ],
        "regen_conf": {
            "dnsmasq": {
                "applied": {
                    "/etc/resolv.dnsmasq.conf": {
                        "status": "updated",
                        "diff": "@@ -1,13 +1,13 @@\n+nameserver 213.73.91.35\n+nameserver 80.67.169.12\n+nameserver 84.200.70.40\n+nameserver 89.233.43.71\n+nameserver 84.200.69.80\n+nameserver 141.255.128.101\n nameserver 89.234.141.66\n-nameserver 84.200.69.80\n-nameserver 89.233.43.71\n+nameserver 141.255.128.100\n nameserver 91.239.100.100\n+nameserver 85.214.20.141\n+nameserver 80.67.188.188\n nameserver 89.234.186.18\n-nameserver 84.200.70.40\n nameserver 80.67.169.40\n-nameserver 80.67.169.12\n-nameserver 80.67.188.188\n-nameserver 213.73.91.35\n-nameserver 141.255.128.101\n-nameserver 85.214.20.141\n-nameserver 141.255.128.100"
                    }
                },
                "pending": {}
            }
        }
    },
    "security": {
        "CVE-2017-5754": {
            "name": "meltdown",
            "vulnerable": false
        }
    }
}

The file /home/yunohost.app/nextcloud/data/nextcloud.log contains many errors like this:

{"reqId":"gXjmyjmoNsQIg0AnfBND","level":2,"time":"2018-06-27T15:54:20+00:00","remoteAddr":"192.168.112.1","user":"--","app":"user_ldap","method":"GET","url":"\/nextcloud\/index.php\/204","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0","version":"13.0.2.1"}
{"reqId":"1UV7EHh82Q4UoF7EPjJL","level":2,"time":"2018-06-27T15:54:20+00:00","remoteAddr":"192.168.112.1","user":"--","app":"user_ldap","method":"GET","url":"\/nextcloud\/index.php\/204","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0","version":"13.0.2.1"}
{"reqId":"gXjmyjmoNsQIg0AnfBND","level":2,"time":"2018-06-27T15:54:21+00:00","remoteAddr":"192.168.112.1","user":"--","app":"user_ldap","method":"GET","url":"\/nextcloud\/index.php\/204","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0","version":"13.0.2.1"}
{"reqId":"1UV7EHh82Q4UoF7EPjJL","level":2,"time":"2018-06-27T15:54:21+00:00","remoteAddr":"192.168.112.1","user":"--","app":"user_ldap","method":"GET","url":"\/nextcloud\/index.php\/204","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0","version":"13.0.2.1"}
{"reqId":"gXjmyjmoNsQIg0AnfBND","level":2,"time":"2018-06-27T15:54:21+00:00","remoteAddr":"192.168.112.1","user":"--","app":"core","method":"GET","url":"\/nextcloud\/index.php\/204","message":"Login failed: 'machine' (Remote IP: '192.168.112.1')","userAgent":"Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0","version":"13.0.2.1"}
{"reqId":"1UV7EHh82Q4UoF7EPjJL","level":2,"time":"2018-06-27T15:54:21+00:00","remoteAddr":"192.168.112.1","user":"--","app":"core","method":"GET","url":"\/nextcloud\/index.php\/204","message":"Login failed: 'machine' (Remote IP: '192.168.112.1')","userAgent":"Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0","version":"13.0.2.1"}

Here is one of them with identation for better readability:

{
 "reqId": "1UV7EHh82Q4UoF7EPjJL",
 "level": 2,
 "time": "2018-06-27T15:54:21+00:00",
 "remoteAddr": "192.168.112.1",
 "user": "--",
 "app": "core",
 "method": "GET",
 "url": "\/nextcloud\/index.php\/204",
 "message": "Login failed: 'machine' (Remote IP: '192.168.112.1')",
 "userAgent": "Mozilla\/5.0 (Android) Nextcloud-android\/3.0.0",
 "version": "13.0.2.1"
}

File /var/log/yunohost/yunohost-api.log:

2018-06-26 23:01:17,624 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-26 23:01:17] "GET /apps/nextcloud?raw&locale=fr HTTP/1.1" 200 3306 0.032968
2018-06-26 23:01:17,649 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-26 23:01:17,650 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-26 23:01:17,684 INFO     moulinette.actionsmap process - processing action [885.24]: yunohost.user.list
2018-06-26 23:01:17,685 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-26 23:01:17] "GET /users?locale=fr HTTP/1.1" 200 3391 0.036026
2018-06-26 23:01:21,123 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-26 23:01:21,123 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-26 23:01:21,139 INFO     moulinette.actionsmap process - processing action [885.25]: yunohost.app.info
2018-06-26 23:01:21,145 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-26 23:01:21] "GET /apps/nextcloud?raw&locale=fr HTTP/1.1" 200 3306 0.021652
2018-06-26 23:15:29,392 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-26 23:15:29] "GET /logout?locale=fr HTTP/1.1" 200 201 0.000688
2018-06-26 23:15:29,575 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-26 23:15:29] "GET /installed HTTP/1.1" 200 159 0.000266
2018-06-27 10:09:50,060 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:50] "GET /version?locale=fr HTTP/1.1" 200 357 0.198376
2018-06-27 10:09:50,062 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:50,063 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:50] "GET /users?locale=fr HTTP/1.1" 401 150 0.001269
2018-06-27 10:09:50,155 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:50] "GET /installed HTTP/1.1" 200 159 0.000266
2018-06-27 10:09:52,119 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:52,242 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:52] "POST /login HTTP/1.1" 200 410 0.122248
2018-06-27 10:09:52,498 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:52] "GET /version?locale=fr HTTP/1.1" 200 357 0.177177
2018-06-27 10:09:52,500 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:52,500 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:52,518 INFO     moulinette.actionsmap process - processing action [885.26]: yunohost.user.list
2018-06-27 10:09:52,520 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:52] "GET /users?locale=fr HTTP/1.1" 200 3391 0.020247
2018-06-27 10:09:52,609 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:52,610 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:52,626 INFO     moulinette.actionsmap process - processing action [885.27]: yunohost.tools.diagnosis
2018-06-27 10:09:53,604 INFO     moulinette.core translate - untranslated key 'service_description_php7.0-fpm' for locale 'fr'
2018-06-27 10:09:54,893 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:54] "GET /diagnosis?locale=fr HTTP/1.1" 200 1768 2.284270
2018-06-27 10:09:56,087 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:56,087 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:09:56,104 INFO     moulinette.actionsmap process - processing action [885.28]: yunohost.tools.diagnosis
2018-06-27 10:09:56,492 INFO     moulinette.core translate - untranslated key 'service_description_php7.0-fpm' for locale 'fr'
2018-06-27 10:09:57,385 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:09:57] "GET /diagnosis?locale=fr HTTP/1.1" 200 1768 1.298151
2018-06-27 10:10:18,842 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:10:18,843 WARNING  moulinette.authenticator.ldap is_authenticated - Error during ldap authentication process: 'NoneType' object has no attribute 'whoami_s'
2018-06-27 10:10:18,867 INFO     moulinette.actionsmap process - processing action [885.29]: yunohost.tools.diagnosis
2018-06-27 10:10:19,243 INFO     moulinette.core translate - untranslated key 'service_description_php7.0-fpm' for locale 'fr'
2018-06-27 10:10:27,896 SUCCESS  yunohost.service success - [885.29] La configuration du service « dnsmasq » aurait été mise à jour
2018-06-27 10:10:28,837 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-06-27 10:10:28] "GET /diagnosis?private&locale=fr HTTP/1.1" 200 2624 9.994920

File /var/log/yunohost/yunohost-cli.log:

2018-06-26 22:35:09,479 DEBUG    moulinette.interface __init__ - registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2018-06-26 22:35:10,201 DEBUG    moulinette.core acquire - lock has been acquired
2018-06-26 22:35:11,284 DEBUG    moulinette.actionsmap process - loading python module yunohost.firewall took 1.083s
2018-06-26 22:35:11,284 INFO     moulinette.actionsmap process - processing action [886.1]: yunohost.firewall.reload with args={'skip_upnp': False}
2018-06-26 22:35:17,908 DEBUG    yunohost.hook hook_list - [886.1] system hook folder not found for action 'post_iptable_rules' in /usr/share/yunohost/hooks/
2018-06-26 22:35:17,912 DEBUG    yunohost.hook hook_list - [886.1] custom hook folder not found for action 'post_iptable_rules' in /etc/yunohost/hooks.d/
2018-06-26 22:36:48,621 SUCCESS  yunohost.firewall success - [886.1] Le pare-feu a été rechargé
2018-06-26 22:36:48,625 DEBUG    moulinette.actionsmap process - action [886.1] executed in 97.341s
2018-06-26 22:36:48,625 DEBUG    moulinette.core release - lock has been released
2018-06-27 06:45:08,450 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2018-06-27 06:45:08,516 DEBUG    moulinette.actionsmap __init__ - extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
2018-06-27 06:45:08,516 DEBUG    moulinette.interface __init__ - initializing base actions map parser for cli
2018-06-27 06:45:08,517 DEBUG    moulinette.interface __init__ - registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2018-06-27 06:45:08,567 DEBUG    moulinette.core acquire - lock has been acquired
2018-06-27 06:45:08,798 DEBUG    moulinette.actionsmap process - loading python module yunohost.app took 0.231s
2018-06-27 06:45:08,798 INFO     moulinette.actionsmap process - processing action [19587.1]: yunohost.app.fetchlist with args={'url': None, 'name': None}
2018-06-27 06:45:10,503 DEBUG    yunohost.app app_fetchlist - [19587.1] Attempting to fetch list yunohost at https://app.yunohost.org/official.json
2018-06-27 06:45:10,518 DEBUG    requests.packages.urllib3.connectionpool _new_conn - Starting new HTTPS connection (1): app.yunohost.org
2018-06-27 06:45:10,654 DEBUG    requests.packages.urllib3.connectionpool _make_request - https://app.yunohost.org:443 "GET /official.json HTTP/1.1" 200 44611
2018-06-27 06:45:10,740 SUCCESS  yunohost.app success - [19587.1] La liste d’applications yunohost a Ă©tĂ© rĂ©cupĂ©rĂ©e
2018-06-27 06:45:10,741 DEBUG    moulinette.actionsmap process - action [19587.1] executed in 1.942s
2018-06-27 06:45:10,741 DEBUG    moulinette.core release - lock has been released
2018-06-27 10:10:25,456 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2018-06-27 10:10:25,465 DEBUG    moulinette.actionsmap __init__ - extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
2018-06-27 10:10:25,465 DEBUG    moulinette.interface __init__ - initializing base actions map parser for cli
2018-06-27 10:10:25,466 DEBUG    moulinette.interface __init__ - registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2018-06-27 10:10:25,620 DEBUG    moulinette.authenticator.ldap __init__ - initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
2018-06-27 10:10:25,778 DEBUG    moulinette.actionsmap process - loading python module yunohost.domain took 0.154s
2018-06-27 10:10:25,778 INFO     moulinette.actionsmap process - processing action [25578.1]: yunohost.domain.list with args={'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7f22ee45a290>}
2018-06-27 10:10:25,779 DEBUG    moulinette.actionsmap process - action [25578.1] executed in 0.000s
2018-06-27 10:10:25,982 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2018-06-27 10:10:25,991 DEBUG    moulinette.actionsmap __init__ - extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
2018-06-27 10:10:25,991 DEBUG    moulinette.interface __init__ - initializing base actions map parser for cli
2018-06-27 10:10:25,991 DEBUG    moulinette.interface __init__ - registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2018-06-27 10:10:26,038 DEBUG    moulinette.authenticator.ldap __init__ - initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
2018-06-27 10:10:26,068 DEBUG    moulinette.actionsmap process - loading python module yunohost.domain took 0.026s
2018-06-27 10:10:26,068 INFO     moulinette.actionsmap process - processing action [25598.1]: yunohost.domain.list with args={'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7fe9c49e8290>}
2018-06-27 10:10:26,069 DEBUG    moulinette.actionsmap process - action [25598.1] executed in 0.000s
2018-06-27 10:10:27,202 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2018-06-27 10:10:27,211 DEBUG    moulinette.actionsmap __init__ - extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
2018-06-27 10:10:27,211 DEBUG    moulinette.interface __init__ - initializing base actions map parser for cli
2018-06-27 10:10:27,211 DEBUG    moulinette.interface __init__ - registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2018-06-27 10:10:27,263 DEBUG    moulinette.authenticator.ldap __init__ - initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
2018-06-27 10:10:27,297 DEBUG    moulinette.actionsmap process - loading python module yunohost.domain took 0.029s
2018-06-27 10:10:27,297 INFO     moulinette.actionsmap process - processing action [25690.1]: yunohost.domain.list with args={'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7f560eee6290>}
2018-06-27 10:10:27,298 DEBUG    moulinette.actionsmap process - action [25690.1] executed in 0.000s

File /var/log/php7.0-fpm.log:

[27-Jun-2018 19:14:52] WARNING: [pool nextcloud] child 9432, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (6.285056 sec), logging
[27-Jun-2018 19:14:52] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:14:52] NOTICE: about to trace 9432
[27-Jun-2018 19:14:52] NOTICE: finished trace of 9432
[27-Jun-2018 19:14:53] WARNING: [pool nextcloud] child 7563, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (5.816298 sec), logging
[27-Jun-2018 19:14:53] NOTICE: child 7563 stopped for tracing
[27-Jun-2018 19:14:53] NOTICE: about to trace 7563
[27-Jun-2018 19:14:53] NOTICE: finished trace of 7563
[27-Jun-2018 19:15:07] WARNING: [pool nextcloud] child 10058 said into stderr: "ERROR: Unable to set php_value 'always_populate_raw_post_data'"
[27-Jun-2018 19:15:08] WARNING: [pool nextcloud] child 10062 said into stderr: "ERROR: Unable to set php_value 'always_populate_raw_post_data'"
[27-Jun-2018 19:15:12] WARNING: [pool nextcloud] child 10058, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (5.043157 sec), logging
[27-Jun-2018 19:15:12] WARNING: [pool nextcloud] child 8601, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (5.507576 sec), logging
[27-Jun-2018 19:15:12] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:15:12] NOTICE: about to trace 10058
[27-Jun-2018 19:15:12] NOTICE: finished trace of 10058
[27-Jun-2018 19:15:12] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:15:12] NOTICE: about to trace 8601
[27-Jun-2018 19:15:12] NOTICE: finished trace of 8601
[27-Jun-2018 19:15:18] WARNING: [pool nextcloud] child 7487, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (5.515449 sec), logging
[27-Jun-2018 19:15:18] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:15:18] NOTICE: about to trace 7487
[27-Jun-2018 19:15:18] NOTICE: finished trace of 7487
[27-Jun-2018 19:15:23] WARNING: [pool nextcloud] child 9432, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (5.975439 sec), logging
[27-Jun-2018 19:15:23] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:15:23] NOTICE: about to trace 9432
[27-Jun-2018 19:15:23] NOTICE: finished trace of 9432
...
... (a lot more like these)
...
[27-Jun-2018 19:25:02] WARNING: [pool nextcloud] child 10058, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (6.357571 sec), logging
[27-Jun-2018 19:25:02] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:25:02] NOTICE: about to trace 10058
[27-Jun-2018 19:25:02] NOTICE: finished trace of 10058
[27-Jun-2018 19:25:27] WARNING: [pool nextcloud] child 9432, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (5.969922 sec), logging
[27-Jun-2018 19:25:27] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:25:27] NOTICE: about to trace 9432
[27-Jun-2018 19:25:27] NOTICE: finished trace of 9432
[27-Jun-2018 19:25:32] WARNING: [pool nextcloud] child 8601, script '/var/www/nextcloud//remote.php' (request: "PROPFIND /nextcloud/remote.php") executing too slow (6.342695 sec), logging
[27-Jun-2018 19:25:32] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:25:32] NOTICE: about to trace 8601
[27-Jun-2018 19:25:32] NOTICE: finished trace of 8601

File /var/log/daemon.log:

un 27 14:08:02 mondomaine systemd[1]: apt-daily.timer: Adding 3h 40min 9.606532s random time.
Jun 27 14:08:02 mondomaine systemd[1]: apt-daily.timer: Adding 5h 47min 39.684748s random time.
Jun 27 14:09:00 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 14:09:00 mondomaine systemd[1]: Started Clean php session files.
Jun 27 14:39:00 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 14:39:00 mondomaine systemd[1]: Started Clean php session files.
Jun 27 15:09:00 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 15:09:00 mondomaine systemd[1]: Started Clean php session files.
Jun 27 15:39:00 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 15:39:01 mondomaine systemd[1]: Started Clean php session files.
Jun 27 16:09:01 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 16:09:01 mondomaine systemd[1]: Started Clean php session files.
Jun 27 16:39:01 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 16:39:01 mondomaine systemd[1]: Started Clean php session files.
Jun 27 17:09:01 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 17:09:01 mondomaine systemd[1]: Started Clean php session files.
Jun 27 17:39:01 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 17:39:01 mondomaine systemd[1]: Started Clean php session files.
Jun 27 18:09:01 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 18:09:01 mondomaine systemd[1]: Started Clean php session files.
Jun 27 18:39:01 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 18:39:02 mondomaine systemd[1]: Started Clean php session files.
Jun 27 19:09:02 mondomaine systemd[1]: Starting Clean php session files...
Jun 27 19:09:02 mondomaine systemd[1]: Started Clean php session files.
Jun 27 19:17:13 mondomaine systemd[1]: Created slice User Slice of root.
Jun 27 19:17:13 mondomaine systemd[1]: Starting User Manager for UID 0...
Jun 27 19:17:13 mondomaine systemd[1]: Started Session 153 of user root.
Jun 27 19:17:13 mondomaine systemd[10138]: Listening on GnuPG cryptographic agent and passphrase cache.
Jun 27 19:17:13 mondomaine systemd[10138]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jun 27 19:17:13 mondomaine systemd[10138]: Listening on GnuPG cryptographic agent (access for web browsers).
Jun 27 19:17:13 mondomaine systemd[10138]: Reached target Timers.
Jun 27 19:17:13 mondomaine systemd[10138]: Reached target Paths.
Jun 27 19:17:13 mondomaine systemd[10138]: Listening on GnuPG network certificate management daemon.
Jun 27 19:17:13 mondomaine systemd[10138]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jun 27 19:17:13 mondomaine systemd[10138]: Reached target Sockets.
Jun 27 19:17:13 mondomaine systemd[10138]: Reached target Basic System.
Jun 27 19:17:13 mondomaine systemd[10138]: Reached target Default.
Jun 27 19:17:13 mondomaine systemd[10138]: Startup finished in 9ms.
Jun 27 19:17:13 mondomaine systemd[1]: Started User Manager for UID 0.
Jun 27 19:17:37 mondomaine nslcd[1201]: [a5ee64] <passwd="*"> request denied by validnames option
Jun 27 19:20:06 mondomaine nslcd[1201]: [330624] <passwd="*"> request denied by validnames option
Jun 27 19:22:59 mondomaine nslcd[1201]: [ffca11] <passwd="*"> request denied by validnames option
Jun 27 19:24:44 mondomaine nslcd[1201]: [27709e] <passwd="*"> request denied by validnames option
Jun 27 19:25:31 mondomaine nslcd[1201]: [ea1109] <passwd="*"> request denied by validnames option
Jun 27 19:27:09 mondomaine nslcd[1201]: [0f59dc] <passwd="*"> request denied by validnames option

How can I fix this issue ?

All the dependencies are installed?

apt-get install php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7,0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-apcu php-mbstring php-xml php7.0-zip php7.0-mysql

:/var/log# apt-get install php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-apcu php-mbstring php-xml php7.0-zip php7.0-mysql
Lecture des listes de paquets
 Fait
Construction de l’arbre des dĂ©pendances
Lecture des informations d’état
 Fait
Note : sélection de « php-apcu » au lieu de « php7.0-apcu »
Note : sélection de « php-redis » au lieu de « php7.0-redis »
Note : sélection de « php-imagick » au lieu de « php7.0-imagick »
acl is already the newest version (2.2.52-3+b1).
acl passé en « installé manuellement ».
php-apcu is already the newest version (5.1.8+4.0.11-1).
php-apcu passé en « installé manuellement ».
php-mbstring is already the newest version (1:7.0+49).
php-mbstring passé en « installé manuellement ».
php-xml is already the newest version (1:7.0+49).
php-xml passé en « installé manuellement ».
php-imagick is already the newest version (3.4.3~rc2-2).
php-imagick passé en « installé manuellement ».
php-redis is already the newest version (3.1.1-1).
php-redis passé en « installé manuellement ».
php7.0-curl is already the newest version (7.0.27-0+deb9u1).
php7.0-curl passé en « installé manuellement ».
php7.0-gd is already the newest version (7.0.27-0+deb9u1).
php7.0-gd passé en « installé manuellement ».
php7.0-intl is already the newest version (7.0.27-0+deb9u1).
php7.0-intl passé en « installé manuellement ».
php7.0-json is already the newest version (7.0.27-0+deb9u1).
php7.0-json passé en « installé manuellement ».
php7.0-ldap is already the newest version (7.0.27-0+deb9u1).
php7.0-ldap passé en « installé manuellement ».
php7.0-mcrypt is already the newest version (7.0.27-0+deb9u1).
php7.0-mcrypt passé en « installé manuellement ».
php7.0-mysql is already the newest version (7.0.27-0+deb9u1).
php7.0-mysql passé en « installé manuellement ».
php7.0-zip is already the newest version (7.0.27-0+deb9u1).
php7.0-zip passé en « installé manuellement ».
tar is already the newest version (1.29b-1.1).
imagemagick is already the newest version (8:6.9.7.4+dfsg-11+deb9u4).
imagemagick passé en « installé manuellement ».
smbclient is already the newest version (2:4.5.12+dfsg-2+deb9u2).
smbclient passé en « installé manuellement ».
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

File /var/log/debug:

Jun 27 19:15:07 mondomaine imap: antispam: plugin initialising (2.0-notgit)
Jun 27 19:15:07 mondomaine imap: antispam: “Junk” is exact match spam folder
Jun 27 19:15:07 mondomaine imap: antispam: “SPAM” is exact match spam folder
Jun 27 19:15:07 mondomaine imap: antispam: no unsure folders
Jun 27 19:15:07 mondomaine imap: antispam: “Trash” is exact match trash folder
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend spam argument = learn_spam
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend not-spam argument = learn_ham
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program = /usr/bin/rspamc
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[0] = -h
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[1] = localhost:11334
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[2] = -P
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[3] = q1
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend tmpdir /tmp
Jun 27 19:15:07 mondomaine imap: antispam: plugin initialising (2.0-notgit)
Jun 27 19:15:07 mondomaine imap: antispam: “Junk” is exact match spam folder
Jun 27 19:15:07 mondomaine imap: antispam: “SPAM” is exact match spam folder
Jun 27 19:15:07 mondomaine imap: antispam: no unsure folders
Jun 27 19:15:07 mondomaine imap: antispam: “Trash” is exact match trash folder
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend spam argument = learn_spam
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend not-spam argument = learn_ham
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program = /usr/bin/rspamc
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[0] = -h
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[1] = localhost:11334
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[2] = -P
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend program arg[3] = q1
Jun 27 19:15:07 mondomaine imap: antispam: pipe backend tmpdir /tmp
Jun 27 19:17:33 mondomaine imap: antispam: plugin initialising (2.0-notgit)
Jun 27 19:17:33 mondomaine imap: antispam: “Junk” is exact match spam folder
Jun 27 19:17:33 mondomaine imap: antispam: “SPAM” is exact match spam folder
Jun 27 19:17:33 mondomaine imap: antispam: no unsure folders
Jun 27 19:17:33 mondomaine imap: antispam: “Trash” is exact match trash folder
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend spam argument = learn_spam
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend not-spam argument = learn_ham
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend program = /usr/bin/rspamc
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend program arg[0] = -h
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend program arg[1] = localhost:11334
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend program arg[2] = -P
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend program arg[3] = q1
Jun 27 19:17:33 mondomaine imap: antispam: pipe backend tmpdir /tmp
Jun 27 19:17:36 mondomaine imap: antispam: plugin initialising (2.0-notgit)
Jun 27 19:17:36 mondomaine imap: antispam: “Junk” is exact match spam folder
Jun 27 19:17:36 mondomaine imap: antispam: “SPAM” is exact match spam folder
Jun 27 19:17:36 mondomaine imap: antispam: no unsure folders
Jun 27 19:17:36 mondomaine imap: antispam: “Trash” is exact match trash folder
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend spam argument = learn_spam
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend not-spam argument = learn_ham
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend program = /usr/bin/rspamc
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend program arg[0] = -h
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend program arg[1] = localhost:11334
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend program arg[2] = -P
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend program arg[3] = q1
Jun 27 19:17:36 mondomaine imap: antispam: pipe backend tmpdir /tmp
Jun 27 19:22:07 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:22:07 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:22:44 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:22:44 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (gidNumber) not indexed
Jun 27 19:30:01 mondomaine slapd[6999]: <= mdb_equality_candidates: (uniqueMember) not indexed

File /var/log/nginx/nextcloud.slow.log:

[27-Jun-2018 19:35:09] [pool nextcloud] pid 7487
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2214ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2214bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2214af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2214a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2214960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2214870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2214770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2214690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22145e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2214390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2214270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2214160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

[27-Jun-2018 19:35:35] [pool nextcloud] pid 10062
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2216ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2216bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2216af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2216a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2216960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2216870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2216770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2216690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22165e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2216560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2216460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2216390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2216270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2216160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

[27-Jun-2018 19:35:40] [pool nextcloud] pid 8601
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2214ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2214bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2214af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2214a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2214960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2214870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2214770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2214690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22145e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2214390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2214270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2214160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

[27-Jun-2018 19:35:42] [pool nextcloud] pid 10058
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2214ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2214bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2214af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2214a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2214960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2214870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2214770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2214690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22145e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2214390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2214270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2214160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

[27-Jun-2018 19:36:07] [pool nextcloud] pid 9432
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2216ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2216bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2216af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2216a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2216960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2216870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2216770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2216690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22165e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2216560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2216460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2216390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2216270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2216160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

[27-Jun-2018 19:36:12] [pool nextcloud] pid 7487
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2214ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2214bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2214af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2214a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2214960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2214870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2214770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2214690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22145e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2214390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2214270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2214160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

[27-Jun-2018 19:36:14] [pool nextcloud] pid 10062
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2214ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2214bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2214af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2214a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2214960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2214870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2214770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2214690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22145e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2214390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2214270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2214160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

Please also show the php7.0 logs-fpm logs.

File /var/log/nginx/nextcloud.slow.log:

[27-Jun-2018 19:36:14] [pool nextcloud] pid 10062
script_filename = /var/www/nextcloud//remote.php
[0x00007f00e2214ca0] usleep() /var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php:281
[0x00007f00e2214bf0] sleepDelay() /var/www/nextcloud/lib/private/User/Session.php:396
[0x00007f00e2214af0] logClientIn() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:130
[0x00007f00e2214a40] validateUserPass() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php:105
[0x00007f00e2214960] check() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:253
[0x00007f00e2214870] auth() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php:155
[0x00007f00e2214770] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:201
[0x00007f00e2214690] check() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php:150
[0x00007f00e22145e0] beforeMethod() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214560] call_user_func_array() /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php:105
[0x00007f00e2214460] emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:466
[0x00007f00e2214390] invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php:254
[0x00007f00e2214270] exec() /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php:80
[0x00007f00e2214160] INCLUDE_OR_EVAL /var/www/nextcloud/remote.php:164

Here it is:

[27-Jun-2018 19:35:40] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.625209 sec), logging
[27-Jun-2018 19:35:40] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:35:40] NOTICE: about to trace 8601
[27-Jun-2018 19:35:40] NOTICE: finished trace of 8601
[27-Jun-2018 19:35:42] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.392570 sec), logging
[27-Jun-2018 19:35:42] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:35:42] NOTICE: about to trace 10058
[27-Jun-2018 19:35:42] NOTICE: finished trace of 10058
[27-Jun-2018 19:36:07] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.037118 sec), logging
[27-Jun-2018 19:36:07] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:36:07] NOTICE: about to trace 9432
[27-Jun-2018 19:36:07] NOTICE: finished trace of 9432
[27-Jun-2018 19:36:12] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.286613 sec), logging
[27-Jun-2018 19:36:12] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:36:12] NOTICE: about to trace 7487
[27-Jun-2018 19:36:12] NOTICE: finished trace of 7487
[27-Jun-2018 19:36:14] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.009620 sec), logging
[27-Jun-2018 19:36:14] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:36:14] NOTICE: about to trace 10062
[27-Jun-2018 19:36:14] NOTICE: finished trace of 10062
[27-Jun-2018 19:36:39] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.776776 sec), logging
[27-Jun-2018 19:36:39] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:36:39] NOTICE: about to trace 8601
[27-Jun-2018 19:36:39] NOTICE: finished trace of 8601
[27-Jun-2018 19:36:44] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.967350 sec), logging
[27-Jun-2018 19:36:44] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:36:44] NOTICE: about to trace 10058
[27-Jun-2018 19:36:44] NOTICE: finished trace of 10058
[27-Jun-2018 19:36:45] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.801162 sec), logging
[27-Jun-2018 19:36:45] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:36:45] NOTICE: about to trace 9432
[27-Jun-2018 19:36:45] NOTICE: finished trace of 9432
[27-Jun-2018 19:37:10] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.299069 sec), logging
[27-Jun-2018 19:37:10] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:37:10] NOTICE: about to trace 7487
[27-Jun-2018 19:37:10] NOTICE: finished trace of 7487
[27-Jun-2018 19:37:15] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.608479 sec), logging
[27-Jun-2018 19:37:15] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:37:15] NOTICE: about to trace 10062
[27-Jun-2018 19:37:15] NOTICE: finished trace of 10062
[27-Jun-2018 19:37:17] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.480405 sec), logging
[27-Jun-2018 19:37:17] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:37:17] NOTICE: about to trace 8601
[27-Jun-2018 19:37:17] NOTICE: finished trace of 8601
[27-Jun-2018 19:37:42] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.100121 sec), logging
[27-Jun-2018 19:37:42] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:37:42] NOTICE: about to trace 10058
[27-Jun-2018 19:37:42] NOTICE: finished trace of 10058
[27-Jun-2018 19:37:47] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.277933 sec), logging
[27-Jun-2018 19:37:47] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:37:47] NOTICE: about to trace 9432
[27-Jun-2018 19:37:47] NOTICE: finished trace of 9432
[27-Jun-2018 19:37:49] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.213031 sec), logging
[27-Jun-2018 19:37:49] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:37:49] NOTICE: about to trace 7487
[27-Jun-2018 19:37:49] NOTICE: finished trace of 7487
[27-Jun-2018 19:38:15] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.466503 sec), logging
[27-Jun-2018 19:38:15] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:38:15] NOTICE: about to trace 10062
[27-Jun-2018 19:38:15] NOTICE: finished trace of 10062
[27-Jun-2018 19:38:20] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.564563 sec), logging
[27-Jun-2018 19:38:20] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:38:20] NOTICE: about to trace 8601
[27-Jun-2018 19:38:20] NOTICE: finished trace of 8601
[27-Jun-2018 19:38:22] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.570048 sec), logging
[27-Jun-2018 19:38:22] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:38:22] NOTICE: about to trace 7487
[27-Jun-2018 19:38:22] NOTICE: finished trace of 7487
[27-Jun-2018 19:38:47] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.128819 sec), logging
[27-Jun-2018 19:38:47] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:38:47] NOTICE: about to trace 9432
[27-Jun-2018 19:38:47] NOTICE: finished trace of 9432
[27-Jun-2018 19:38:52] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.368641 sec), logging
[27-Jun-2018 19:38:52] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:38:52] NOTICE: about to trace 10058
[27-Jun-2018 19:38:52] NOTICE: finished trace of 10058
[27-Jun-2018 19:38:54] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.233576 sec), logging
[27-Jun-2018 19:38:54] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:38:54] NOTICE: about to trace 10062
[27-Jun-2018 19:38:54] NOTICE: finished trace of 10062
[27-Jun-2018 19:39:19] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.744931 sec), logging
[27-Jun-2018 19:39:19] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:39:19] NOTICE: about to trace 8601
[27-Jun-2018 19:39:19] NOTICE: finished trace of 8601
[27-Jun-2018 19:39:24] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.031757 sec), logging
[27-Jun-2018 19:39:24] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:39:24] NOTICE: about to trace 7487
[27-Jun-2018 19:39:24] NOTICE: finished trace of 7487
[27-Jun-2018 19:39:25] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.915337 sec), logging
[27-Jun-2018 19:39:25] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:39:25] NOTICE: about to trace 9432
[27-Jun-2018 19:39:25] NOTICE: finished trace of 9432
[27-Jun-2018 19:39:50] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.479341 sec), logging
[27-Jun-2018 19:39:50] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:39:50] NOTICE: about to trace 10058
[27-Jun-2018 19:39:50] NOTICE: finished trace of 10058
[27-Jun-2018 19:39:55] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.671220 sec), logging
[27-Jun-2018 19:39:55] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:39:55] NOTICE: about to trace 10062
[27-Jun-2018 19:39:55] NOTICE: finished trace of 10062
[27-Jun-2018 19:39:57] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.557022 sec), logging
[27-Jun-2018 19:39:57] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:39:57] NOTICE: about to trace 9432
[27-Jun-2018 19:39:57] NOTICE: finished trace of 9432
[27-Jun-2018 19:40:22] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.180410 sec), logging
[27-Jun-2018 19:40:22] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:40:22] NOTICE: about to trace 7487
[27-Jun-2018 19:40:22] NOTICE: finished trace of 7487
[27-Jun-2018 19:40:27] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.348962 sec), logging
[27-Jun-2018 19:40:27] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:40:27] NOTICE: about to trace 8601
[27-Jun-2018 19:40:27] NOTICE: finished trace of 8601
[27-Jun-2018 19:40:29] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.247492 sec), logging
[27-Jun-2018 19:40:29] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:40:29] NOTICE: about to trace 10058
[27-Jun-2018 19:40:29] NOTICE: finished trace of 10058
[27-Jun-2018 19:40:55] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.525647 sec), logging
[27-Jun-2018 19:40:55] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:40:55] NOTICE: about to trace 10062
[27-Jun-2018 19:40:55] NOTICE: finished trace of 10062
[27-Jun-2018 19:40:59] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.003931 sec), logging
[27-Jun-2018 19:40:59] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:40:59] NOTICE: about to trace 9432
[27-Jun-2018 19:40:59] NOTICE: finished trace of 9432
[27-Jun-2018 19:41:02] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.550804 sec), logging
[27-Jun-2018 19:41:02] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:41:02] NOTICE: about to trace 10058
[27-Jun-2018 19:41:02] NOTICE: finished trace of 10058
[27-Jun-2018 19:41:27] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.231277 sec), logging
[27-Jun-2018 19:41:27] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:41:27] NOTICE: about to trace 8601
[27-Jun-2018 19:41:27] NOTICE: finished trace of 8601
[27-Jun-2018 19:41:32] WARNING: [pool nextcloud] child 7487, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.285458 sec), logging
[27-Jun-2018 19:41:32] NOTICE: child 7487 stopped for tracing
[27-Jun-2018 19:41:32] NOTICE: about to trace 7487
[27-Jun-2018 19:41:32] NOTICE: finished trace of 7487
[27-Jun-2018 19:41:34] WARNING: [pool nextcloud] child 10058, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.221577 sec), logging
[27-Jun-2018 19:41:34] NOTICE: child 10058 stopped for tracing
[27-Jun-2018 19:41:34] NOTICE: about to trace 10058
[27-Jun-2018 19:41:34] NOTICE: finished trace of 10058
[27-Jun-2018 19:41:59] WARNING: [pool nextcloud] child 9432, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.878658 sec), logging
[27-Jun-2018 19:41:59] NOTICE: child 9432 stopped for tracing
[27-Jun-2018 19:41:59] NOTICE: about to trace 9432
[27-Jun-2018 19:41:59] NOTICE: finished trace of 9432
[27-Jun-2018 19:42:04] WARNING: [pool nextcloud] child 10062, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.021897 sec), logging
[27-Jun-2018 19:42:04] NOTICE: child 10062 stopped for tracing
[27-Jun-2018 19:42:04] NOTICE: about to trace 10062
[27-Jun-2018 19:42:04] NOTICE: finished trace of 10062
[27-Jun-2018 19:42:05] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (5.933347 sec), logging
[27-Jun-2018 19:42:05] NOTICE: child 8601 stopped for tracing
[27-Jun-2018 19:42:05] NOTICE: about to trace 8601
[27-Jun-2018 19:42:05] NOTICE: finished trace of 8601

Strange there is no error other then wrong credential. Can you show the nginx error log too under /var/log/nginx/ ?

The “504 Gateway Timeout” probably reveals performance issues which seem confirmed by php7.0-fpm.log:

[27-Jun-2018 19:35:40] WARNING: [pool nextcloud] child 8601, script ‘/var/www/nextcloud//remote.php’ (request: “PROPFIND /nextcloud/remote.php”) executing too slow (6.625209 sec), logging

On the other hand the “502 Bad Gateway” indicates that an error occured.

It would be helpful if you could tell us the times those 2 different errors occured so that we could match the relevant lines in all the logs you shared with us.

/var/log/nginx/domain1.tld-access.log

192.168.112.1 - user1 [27/Jun/2018:19:44:06 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:44:06 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:44:07 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:44:31 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:44:33 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:44:36 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:44:37 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:44:38 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:44:39 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:45:03 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:45:05 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:08 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:09 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:10 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:11 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:33 +0200] “PROPFIND /nextcloud/remote.php/dav/calendars/user1/personal/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Lightning/5.4.8”
192.168.112.1 - user2 [27/Jun/2018:19:45:35 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:45:37 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:40 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:41 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:42 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:45:43 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:46:07 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:46:09 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:12 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:13 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:14 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:15 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:46:39 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:46:41 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:44 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:45 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:46 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:46:48 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:47:11 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:47:13 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:16 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:18 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:18 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:19 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:47:43 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:47:45 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:48 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:49 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:50 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:47:51 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:48:15 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:48:17 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:20 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:21 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:22 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:23 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:48:47 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:48:49 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:52 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:53 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:54 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:48:55 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user2 [27/Jun/2018:19:48:56 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:24 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:25 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:26 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:29 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:56 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:58 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:59 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:49:59 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:50:28 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:50:29 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:50:30 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:50:32 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:00 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:02 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:02 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:03 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:32 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:33 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:34 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:51:35 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:04 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:05 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:06 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:07 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:36 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:37 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:38 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:52:39 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:08 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:09 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:10 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:11 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:40 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:41 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:42 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:53:43 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:12 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:13 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:14 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:15 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:44 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:45 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:46 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:54:47 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:16 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:17 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:18 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:19 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:48 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:49 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:50 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:55:51 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:56:20 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:56:21 +0200] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 499 0 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:56:22 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)”
192.168.112.1 - user1 [27/Jun/2018:19:56:23 +0200] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”

cat /var/log/nginx/domaine1.tld-error.log

2018/06/26 12:57:46 [error] 9757#9757: *1182 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrin

PHP message: PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverMa
2018/06/26 13:27:43 [error] 9455#9455: *6310 FastCGI sent in stderr: “PHP message: PHP Warning: error_log(/var/www/opensondage/app/inc/
/
/admin/stdout.log): failed to open stream: Permission denied in /var/www/opensondage/app/classes/Framadate/Services/LogService.php on line 21
PHP message: PHP Warning: error_log(/var/www/opensondage/app/inc/
/
/admin/stdout.log): failed to open stream: Permission denied in /var/www/opensondage/app/classes/Framadate/Services/LogService.php on line 21
PHP message: PHP Warning: error_log(/var/www/opensondage/app/inc/
/
/admin/stdout.log): failed to open stream: Permission denied in /var/www/opensondage/app/classes/Framadate/Services/LogService.php on line 21” while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “POST /date/create_classic_poll.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-opensondage.sock:”, host: “domain1.tld”, referrer: “https://domain1.tld/date/create_classic_poll.php”
2018/06/26 18:47:15 [error] 9454#9454: *69622 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:01:05 [error] 1396#1396: *2703 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:01:05 [error] 1397#1397: *2616 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:01:05 [error] 1397#1397: *2604 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:02:22 [error] 1396#1396: *2975 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:02:22 [error] 1396#1396: *2973 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:02:22 [error] 1396#1396: *2946 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:02:22 [error] 1397#1397: *2548 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.112.1, server: domain1.tld, request: “GET /yunohost/api/logout?locale=fr HTTP/1.1”, upstream: “http://127.0.0.1:6787/logout?locale=fr”, host: “domain1.tld”, referrer: “https://domain1.tld/yunohost/admin/”
2018/06/26 19:12:27 [error] 1157#1157: *1911 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:12:27 [error] 1157#1157: *1874 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:12:27 [error] 1157#1157: *1914 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 19:12:50 [error] 1157#1157: *1889 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 192.168.112.1, server: domain1.tld, request: “GET /yunohost/api/messages HTTP/1.1”, upstream: “http://127.0.0.1:6787/messages”, host: “domain1.tld”
2018/06/26 19:12:50 [error] 4784#4784: *1972 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 192.168.112.1, server: domain1.tld, request: “GET /yunohost/api/messages HTTP/1.1”, upstream: “http://127.0.0.1:6787/messages”, host: “domain1.tld”
2018/06/26 19:13:24 [error] 1107#1107: *45 [lua] helpers.lua:303: authenticate(): Connection failed for: user3, client: 192.168.112.1, server: domain1.tld, request: “GET /nextcloud/status.php HTTP/1.1”, host: “domain1.tld”
2018/06/26 19:13:56 [error] 1107#1107: *144 [lua] helpers.lua:303: authenticate(): Connection failed for: user3, client: 192.168.112.1, server: domain1.tld, request: “GET /nextcloud/status.php HTTP/1.1”, host: “domain1.tld”
2018/06/26 19:14:28 [error] 1107#1107: *256 [lua] helpers.lua:303: authenticate(): Connection failed for: user3, client: 192.168.112.1, server: domain1.tld, request: “GET /nextcloud/status.php HTTP/1.1”, host: “domain1.tld”
2018/06/26 19:15:00 [error] 1107#1107: *398 [lua] helpers.lua:303: authenticate(): Connection failed for: user3, client: 192.168.112.1, server: domain1.tld, request: “GET /nextcloud/status.php HTTP/1.1”, host: “domain1.tld”
2018/06/26 19:15:32 [error] 1106#1106: *497 [lua] helpers.lua:303: authenticate(): Connection failed for: user3, client: 192.168.112.1, server: domain1.tld, request: “GET /nextcloud/status.php HTTP/1.1”, host: “domain1.tld”
2018/06/26 21:25:34 [error] 1107#1107: *14243 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.112.1, server: domain1.tld, request: “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 22:34:22 [crit] 3245#3245: *13483 connect() to unix:/var/run/php/php7.0-fpm-nextcloud.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.112.1, server: domain1.tld, request: “PUT /nextcloud/remote.php/dav/files/user1/Photos-Famille/Islande-Aout2015/HuaweiHonor6/IMG_20150821_135451.jpg HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 22:34:22 [crit] 3244#3244: *13701 connect() to unix:/var/run/php/php7.0-fpm-nextcloud.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.112.1, server: domain1.tld, request: “PUT /nextcloud/remote.php/dav/files/user1/Photos-Famille/Islande-Aout2015/HuaweiHonor6/IMG_20150821_135445.jpg HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/26 22:34:24 [crit] 3244#3244: *13702 connect() to unix:/var/run/php/php7.0-fpm-nextcloud.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.112.1, server: domain1.tld, request: “PUT /nextcloud/remote.php/dav/files/user1/Photos-Famille/Islande-Aout2015/HuaweiHonor6/IMG_20150821_135453.jpg HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm-nextcloud.sock:”, host: “domain1.tld”
2018/06/27 11:54:26 [error] 1460#1460: *147921 [lua] helpers.lua:303: authenticate(): Connection failed for: user1, client: 192.168.112.1, server: domain1.tld, request: “POST /yunohost/sso/?r=aHR0cHM6Ly9sZXNjb3Jwc2RlcmV2ZS5zcGFjZS8= HTTP/1.1”, host: “domain1.tld”, referrer: “https://domain1.tld/yunohost/sso/?r=aHR0cHM6Ly9sZXNjb3Jwc2RlcmV2ZS5zcGFjZS8=”
2018/06/27 12:22:08 [error] 1460#1460: *153091 open() “/usr/share/nginx/html/.well-known/posh/xmpp-client.json” failed (2: No such file or directory), client: 192.168.112.1, server: domain1.tld, request: “GET /.well-known/posh/xmpp-client.json HTTP/1.1”, host: “domain1.tld”

I think that the real issue is with slapd, and that 504 Gateway Timeout occurs because of impossible authentication


Should I remove Nextcloud application, and try to reinstall it ?

You should try to upgrade first.

yunohost app upgrade -u https://github.com/YunoHost-Apps/nextcloud_ynh nextcloud --debug

Try to install the pdo_mysq package and see if its there first? The nextcloud is unable to connect to the database on the first look at the logs.

root@mondomaine1:/var/log/nginx# yunohost app upgrade -u https://github.com/YunoHost-Apps/nextcloud_ynh nextcloud --debug
89   DEBUG loading actions map namespace 'yunohost'
98   DEBUG extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
98   DEBUG initializing base actions map parser for cli
99   DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
147  DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
150  DEBUG lock has been acquired
165  DEBUG loading python module yunohost.app took 0.015s
165  INFO processing action [12695.1]: yunohost.app.upgrade with args={'url': 'https://github.com/YunoHost-Apps/nextcloud_ynh', 'app': ['nextcloud'], 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7f0d99214650>, 'file': None}
177  INFO Upgrading apps nextcloud
177  INFO Mise Ă  jour de l'application nextcloud...
198  DEBUG Téléchargement...
1356 DEBUG Extraction...
1388 DEBUG Terminé
2202 DEBUG Vérification des paquets requis pour nextcloud...
2394 DEBUG no arguments found for 'upgrade' in manifest
2500 DEBUG Exécution de la commande « sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=nextcloud YNH_CWD=/var/cache/yunohost/from_file/nextcloud_ynh-master/scripts YNH_APP_INSTANCE_NAME=nextcloud BASH_XTRACEFD=7 /bin/bash -x "./upgrade" nextcloud 7>&1 »...
2512 DEBUG + source _common.sh
2513 DEBUG ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient'
2513 DEBUG +++ lsb_release --codename --short
2546 DEBUG ++ '[' stretch '!=' jessie ']'
2547 DEBUG ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
2547 DEBUG + source /usr/share/yunohost/helpers
2637 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
2639 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2639 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
2639 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
2702 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2702 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
2703 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
2704 DEBUG +++ CAN_BIND=1
2704 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2705 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
2705 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
2705 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2705 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2705 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
2705 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2706 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2706 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2706 DEBUG ++ . /usr/share/yunohost/helpers.d/network
2706 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2706 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2706 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
2707 DEBUG +++ n_install_dir=/opt/node_n
2707 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
2707 DEBUG +++ export N_PREFIX=/opt/node_n
2707 DEBUG +++ N_PREFIX=/opt/node_n
2707 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2707 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
2708 DEBUG ++ . /usr/share/yunohost/helpers.d/package
2708 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2708 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
2708 DEBUG ++ . /usr/share/yunohost/helpers.d/print
2708 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2709 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
2709 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
2709 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2710 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2710 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
2710 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2710 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2711 DEBUG ++ . /usr/share/yunohost/helpers.d/string
2711 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2711 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
2711 DEBUG ++ . /usr/share/yunohost/helpers.d/system
2712 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2713 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2714 DEBUG ++ . /usr/share/yunohost/helpers.d/user
2714 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2714 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2714 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
2714 DEBUG + app=nextcloud
2714 DEBUG ++ ynh_app_setting_get nextcloud domain
2714 DEBUG ++ sudo yunohost app setting nextcloud domain --output-as plain --quiet
2934 DEBUG + domain=mondomaine1.tld
2935 DEBUG ++ ynh_app_setting_get nextcloud path
2935 DEBUG ++ sudo yunohost app setting nextcloud path --output-as plain --quiet
3137 DEBUG + path_url=/nextcloud
3137 DEBUG ++ ynh_app_setting_get nextcloud admin
3137 DEBUG ++ sudo yunohost app setting nextcloud admin --output-as plain --quiet
3334 DEBUG + admin=iwan
3334 DEBUG ++ ynh_app_setting_get nextcloud final_path
3334 DEBUG ++ sudo yunohost app setting nextcloud final_path --output-as plain --quiet
3539 DEBUG + final_path=/var/www/nextcloud
3539 DEBUG ++ ynh_app_setting_get nextcloud db_name
3540 DEBUG ++ sudo yunohost app setting nextcloud db_name --output-as plain --quiet
3734 DEBUG + db_name=nextcloud
3735 DEBUG ++ ynh_app_setting_get nextcloud user_home
3735 DEBUG ++ sudo yunohost app setting nextcloud user_home --output-as plain --quiet
3932 DEBUG + user_home=0
3932 DEBUG + '[' -z nextcloud ']'
3932 DEBUG + '[' -z /var/www/nextcloud ']'
3933 DEBUG ++ grep OC_VersionString /var/www/nextcloud/version.php
3934 DEBUG ++ cut '-d'\''' -f2
3935 DEBUG + current_version=13.0.2
3935 DEBUG + current_major_version=13
3935 DEBUG + '[' 13 -gt 11 ']'
3935 DEBUG + ynh_app_setting_set nextcloud backup_core_only 1
3936 DEBUG + sudo yunohost app setting nextcloud backup_core_only --value=1 --quiet
4141 DEBUG + ynh_backup_before_upgrade
4141 DEBUG + '[' '!' -e /etc/yunohost/apps/nextcloud/scripts/backup ']'
4142 DEBUG + backup_number=1
4142 DEBUG + local old_backup_number=2
4142 DEBUG + local app_bck=nextcloud
4142 DEBUG + NO_BACKUP_UPGRADE=0
4142 DEBUG + '[' 0 -eq 0 ']'
4143 DEBUG + sudo yunohost backup list
4143 DEBUG + grep -q nextcloud-pre-upgrade1
4516 DEBUG + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud --name nextcloud-pre-upgrade1
7258 WARNING Data dir will not be saved, because backup_core_only is set.
46295 DEBUG Sauvegarde terminée
46296 DEBUG name: nextcloud-pre-upgrade1
46296 DEBUG results:
46296 DEBUG   apps:
46296 DEBUG     nextcloud: Success
46296 DEBUG   system:
46296 DEBUG size: 188569122
46333 DEBUG + '[' 0 -eq 0 ']'
46334 DEBUG + sudo yunohost backup list
46335 DEBUG + grep -q nextcloud-pre-upgrade2
46553 DEBUG + ynh_abort_if_errors
46553 DEBUG + set -eu
46553 DEBUG + trap ynh_exit_properly EXIT
46554 DEBUG + ynh_handle_app_migration owncloud owncloud_migration
46554 DEBUG + old_app=nextcloud
46554 DEBUG + local old_app_id=nextcloud
46554 DEBUG + local old_app_number=1
46554 DEBUG + local migration_id=owncloud
46555 DEBUG + local migration_list=owncloud_migration
46555 DEBUG ++ cut '-d"' -f4
46555 DEBUG ++ grep '"id":' ../manifest.json
46555 DEBUG + local new_app_id=nextcloud
46555 DEBUG + '[' 1 -eq 1 ']'
46557 DEBUG + local new_app=nextcloud
46557 DEBUG + migration_process=0
46557 DEBUG + '[' nextcloud == nextcloud ']'
46557 DEBUG + echo 0
46558 DEBUG 0
46558 DEBUG + return 0
46558 DEBUG + '[' 0 -eq 1 ']'
46558 DEBUG ++ ynh_normalize_url_path /nextcloud
46558 DEBUG ++ local path_url=/nextcloud
46559 DEBUG ++ test -n /nextcloud
46559 DEBUG ++ '[' / '!=' / ']'
46559 DEBUG ++ '[' d == / ']'
46559 DEBUG ++ echo /nextcloud
46559 DEBUG + path_url=/nextcloud
46560 DEBUG + ynh_remove_nginx_config
46560 DEBUG + ynh_secure_remove /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
46560 DEBUG + local path_to_remove=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
46560 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
46561 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /etc/nginx/conf\.d/mondomaine1\.tld\.d/nextcloud\.conf ]]
46561 DEBUG + [[ /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf =~ ^/[[:alnum:]]+$ ]]
46561 DEBUG + [[ f = \/ ]]
46561 DEBUG + '[' -e /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf ']'
46561 DEBUG + sudo rm -R /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
46574 DEBUG + sudo systemctl reload nginx
46632 DEBUG + ynh_app_setting_delete nextcloud checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf
46632 DEBUG + sudo yunohost app setting -d nextcloud checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf --quiet
46832 DEBUG + is_url_handled https://mondomaine1.tld/.well-known/caldav
46832 DEBUG + output=($(curl -k -s -o /dev/null       -w 'x%{redirect_url} %{http_code}' "$1"))
46832 DEBUG ++ curl -k -s -o /dev/null -w 'x%{redirect_url} %{http_code}' https://mondomaine1.tld/.well-known/caldav
46912 DEBUG + local output
46912 DEBUG + [[ ! x =~ /yunohost/sso/ ]]
46912 DEBUG + [[ 404 != 404 ]]
46913 DEBUG + path_url_slash_less=/nextcloud
46913 DEBUG + ynh_replace_string __PATH__/ /nextcloud/ ../conf/nginx.conf
46913 DEBUG + local delimit=@
46913 DEBUG + local match_string=__PATH__/
46913 DEBUG + local replace_string=/nextcloud/
46914 DEBUG + local workfile=../conf/nginx.conf
46914 DEBUG + match_string=__PATH__/
46914 DEBUG + replace_string=/nextcloud/
46914 DEBUG + sudo sed --in-place s@__PATH__/@/nextcloud/@g ../conf/nginx.conf
46931 DEBUG + ynh_add_nginx_config
46931 DEBUG + finalnginxconf=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
46931 DEBUG + local others_var=
46932 DEBUG + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
46932 DEBUG + local file=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
46932 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf
46932 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf
46932 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf --output-as plain --quiet
47140 DEBUG + local checksum_value=
47141 DEBUG + '[' -n '' ']'
47141 DEBUG + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47160 DEBUG + test -n /nextcloud
47160 DEBUG + local path_url_slash_less=/nextcloud
47160 DEBUG + ynh_replace_string __PATH__/ /nextcloud/ /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47160 DEBUG + local delimit=@
47160 DEBUG + local match_string=__PATH__/
47160 DEBUG + local replace_string=/nextcloud/
47160 DEBUG + local workfile=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47161 DEBUG + match_string=__PATH__/
47161 DEBUG + replace_string=/nextcloud/
47161 DEBUG + sudo sed --in-place s@__PATH__/@/nextcloud/@g /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47180 DEBUG + ynh_replace_string __PATH__ /nextcloud /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47180 DEBUG + local delimit=@
47180 DEBUG + local match_string=__PATH__
47181 DEBUG + local replace_string=/nextcloud
47181 DEBUG + local workfile=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47182 DEBUG + match_string=__PATH__
47182 DEBUG + replace_string=/nextcloud
47182 DEBUG + sudo sed --in-place s@__PATH__@/nextcloud@g /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47197 DEBUG + test -n mondomaine1.tld
47197 DEBUG + ynh_replace_string __DOMAIN__ mondomaine1.tld /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47197 DEBUG + local delimit=@
47198 DEBUG + local match_string=__DOMAIN__
47198 DEBUG + local replace_string=mondomaine1.tld
47198 DEBUG + local workfile=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47198 DEBUG + match_string=__DOMAIN__
47198 DEBUG + replace_string=mondomaine1.tld
47198 DEBUG + sudo sed --in-place s@__DOMAIN__@mondomaine1.tld@g /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47215 DEBUG + test -n ''
47215 DEBUG + test -n nextcloud
47215 DEBUG + ynh_replace_string __NAME__ nextcloud /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47215 DEBUG + local delimit=@
47216 DEBUG + local match_string=__NAME__
47216 DEBUG + local replace_string=nextcloud
47216 DEBUG + local workfile=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47216 DEBUG + match_string=__NAME__
47216 DEBUG + replace_string=nextcloud
47216 DEBUG + sudo sed --in-place s@__NAME__@nextcloud@g /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47236 DEBUG + test -n /var/www/nextcloud
47236 DEBUG + ynh_replace_string __FINALPATH__ /var/www/nextcloud /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47236 DEBUG + local delimit=@
47237 DEBUG + local match_string=__FINALPATH__
47238 DEBUG + local replace_string=/var/www/nextcloud
47238 DEBUG + local workfile=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47238 DEBUG + match_string=__FINALPATH__
47238 DEBUG + replace_string=/var/www/nextcloud
47238 DEBUG + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47259 DEBUG + '[' /nextcloud '!=' / ']'
47259 DEBUG + ynh_replace_string '^#sub_path_only' '' /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47259 DEBUG + local delimit=@
47259 DEBUG + local 'match_string=^#sub_path_only'
47259 DEBUG + local replace_string=
47259 DEBUG + local workfile=/etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47259 DEBUG + match_string='^#sub_path_only'
47259 DEBUG + replace_string=
47260 DEBUG + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47275 DEBUG + ynh_store_file_checksum /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47275 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf
47276 DEBUG ++ cut '-d ' -f1
47277 DEBUG ++ sudo md5sum /etc/nginx/conf.d/mondomaine1.tld.d/nextcloud.conf
47308 DEBUG + ynh_app_setting_set nextcloud checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf 7bc010328be36a447ddd5640f34158cf
47308 DEBUG + sudo yunohost app setting nextcloud checksum__etc_nginx_conf.d_mondomaine1.tld.d_nextcloud.conf --value=7bc010328be36a447ddd5640f34158cf --quiet
47514 DEBUG + sudo systemctl reload nginx
47567 DEBUG + ynh_system_user_create nextcloud
47569 DEBUG + ynh_system_user_exists nextcloud
47569 DEBUG + getent passwd nextcloud
47581 DEBUG + ynh_add_fpm_config
47581 DEBUG + local fpm_config_dir=/etc/php/7.0/fpm
47581 DEBUG + local fpm_service=php7.0-fpm
47582 DEBUG ++ ynh_get_debian_release
47583 DEBUG +++ lsb_release --codename --short
47624 DEBUG ++ echo stretch
47625 DEBUG + '[' stretch == jessie ']'
47625 DEBUG + ynh_app_setting_set nextcloud fpm_config_dir /etc/php/7.0/fpm
47625 DEBUG + sudo yunohost app setting nextcloud fpm_config_dir --value=/etc/php/7.0/fpm --quiet
47831 DEBUG + ynh_app_setting_set nextcloud fpm_service php7.0-fpm
47832 DEBUG + sudo yunohost app setting nextcloud fpm_service --value=php7.0-fpm --quiet
48035 DEBUG + finalphpconf=/etc/php/7.0/fpm/pool.d/nextcloud.conf
48035 DEBUG + ynh_backup_if_checksum_is_different /etc/php/7.0/fpm/pool.d/nextcloud.conf
48035 DEBUG + local file=/etc/php/7.0/fpm/pool.d/nextcloud.conf
48035 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
48036 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
48036 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf --output-as plain --quiet
48245 DEBUG + local checksum_value=0ea535d3c58a711067615674add57e8d
48245 DEBUG + '[' -n 0ea535d3c58a711067615674add57e8d ']'
48246 DEBUG + echo '0ea535d3c58a711067615674add57e8d /etc/php/7.0/fpm/pool.d/nextcloud.conf'
48246 DEBUG + sudo md5sum -c --status
48264 DEBUG + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/nextcloud.conf
48285 DEBUG + ynh_replace_string __NAMETOCHANGE__ nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
48285 DEBUG + local delimit=@
48285 DEBUG + local match_string=__NAMETOCHANGE__
48285 DEBUG + local replace_string=nextcloud
48285 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
48285 DEBUG + match_string=__NAMETOCHANGE__
48286 DEBUG + replace_string=nextcloud
48286 DEBUG + sudo sed --in-place s@__NAMETOCHANGE__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
48304 DEBUG + ynh_replace_string __FINALPATH__ /var/www/nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
48304 DEBUG + local delimit=@
48304 DEBUG + local match_string=__FINALPATH__
48304 DEBUG + local replace_string=/var/www/nextcloud
48304 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
48304 DEBUG + match_string=__FINALPATH__
48305 DEBUG + replace_string=/var/www/nextcloud
48305 DEBUG + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
48333 DEBUG + ynh_replace_string __USER__ nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
48333 DEBUG + local delimit=@
48333 DEBUG + local match_string=__USER__
48333 DEBUG + local replace_string=nextcloud
48333 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
48333 DEBUG + match_string=__USER__
48333 DEBUG + replace_string=nextcloud
48333 DEBUG + sudo sed --in-place s@__USER__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
48355 DEBUG + sudo chown root: /etc/php/7.0/fpm/pool.d/nextcloud.conf
48375 DEBUG + ynh_store_file_checksum /etc/php/7.0/fpm/pool.d/nextcloud.conf
48376 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
48377 DEBUG ++ cut '-d ' -f1
48378 DEBUG ++ sudo md5sum /etc/php/7.0/fpm/pool.d/nextcloud.conf
48400 DEBUG + ynh_app_setting_set nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf 0ea535d3c58a711067615674add57e8d
48401 DEBUG + sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf --value=0ea535d3c58a711067615674add57e8d --quiet
48614 DEBUG + '[' -e ../conf/php-fpm.ini ']'
48614 DEBUG + finalphpini=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48614 DEBUG + ynh_backup_if_checksum_is_different /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48615 DEBUG + local file=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48615 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
48615 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
48615 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini --output-as plain --quiet
48815 DEBUG + local checksum_value=7cc18daa488e0a723d4d06d09a294dee
48816 DEBUG + '[' -n 7cc18daa488e0a723d4d06d09a294dee ']'
48816 DEBUG + sudo md5sum -c --status
48820 DEBUG + echo '7cc18daa488e0a723d4d06d09a294dee /etc/php/7.0/fpm/conf.d/20-nextcloud.ini'
48834 DEBUG + sudo cp ../conf/php-fpm.ini /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48850 DEBUG + sudo chown root: /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48864 DEBUG + ynh_store_file_checksum /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48865 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
48866 DEBUG ++ cut '-d ' -f1
48866 DEBUG ++ sudo md5sum /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
48881 DEBUG + ynh_app_setting_set nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini 7cc18daa488e0a723d4d06d09a294dee
48881 DEBUG + sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini --value=7cc18daa488e0a723d4d06d09a294dee --quiet
49092 DEBUG + sudo systemctl reload php7.0-fpm
49170 DEBUG + ynh_install_app_dependencies php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml
49170 DEBUG + local 'dependencies=php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
49171 DEBUG + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml'
49171 DEBUG + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml'
49171 DEBUG + local manifest_path=../manifest.json
49171 DEBUG + '[' '!' -e ../manifest.json ']'
49172 DEBUG ++ cut -d '"' -f 4
49173 DEBUG ++ grep '\"version\": ' ../manifest.json
49181 DEBUG + local version=13.0.2~ynh1
49181 DEBUG + '[' 11 -eq 0 ']'
49181 DEBUG + local dep_app=nextcloud
49181 DEBUG + cat
49182 DEBUG + ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control
49183 DEBUG + local controlfile=/tmp/nextcloud-ynh-deps.control
49183 DEBUG + ynh_package_is_installed equivs
49183 DEBUG + grep -c 'ok installed'
49185 DEBUG + dpkg-query -W -f '${Status}' equivs
49197 DEBUG ++ cut '-d ' -f 2
49198 DEBUG ++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control
49200 DEBUG + local pkgname=nextcloud-ynh-deps
49201 DEBUG ++ cut '-d ' -f 2
49202 DEBUG ++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control
49203 DEBUG + local pkgversion=13.0.2~ynh1
49204 DEBUG + [[ -z nextcloud-ynh-deps ]]
49204 DEBUG + [[ -z 13.0.2~ynh1 ]]
49204 DEBUG + ynh_package_update
49204 DEBUG + ynh_apt update
49205 DEBUG + DEBIAN_FRONTEND=noninteractive
49205 DEBUG + sudo apt-get -y update
49290 DEBUG Réception de:1 http://security.debian.org/debian-security stretch/updates InRelease [94,3 kB]
49317 DEBUG Atteint:2 http://forge.yunohost.org/debian stretch InRelease
49324 DEBUG Ign:3 http://debian.univ-lorraine.fr/debian stretch InRelease
49339 DEBUG Réception de:4 http://debian.univ-lorraine.fr/debian stretch-updates InRelease [91,0 kB]
49413 DEBUG Atteint:5 http://debian.univ-lorraine.fr/debian stretch Release
49647 DEBUG 185 ko réceptionnés en 0s (479 ko/s)
50276 DEBUG Lecture des listes de paquets

50306 DEBUG ++ mktemp -d
50307 DEBUG + local TMPDIR=/tmp/tmp.hETpqpJo1V
50307 DEBUG + echo 10
50307 DEBUG + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.hETpqpJo1V/control
50309 DEBUG + cd /tmp/tmp.hETpqpJo1V
50309 DEBUG + equivs-build ./control
51434 DEBUG + sudo dpkg --force-depends -i ./nextcloud-ynh-deps_13.0.2~ynh1_all.deb
54704 DEBUG (Lecture de la base de données... 53198 fichiers et répertoires déjà installés.)
54706 DEBUG Préparation du dépaquetage de .../nextcloud-ynh-deps_13.0.2~ynh1_all.deb ...
54759 DEBUG Dépaquetage de nextcloud-ynh-deps (13.0.2~ynh1) sur (13.0.2~ynh1) ...
54829 DEBUG Paramétrage de nextcloud-ynh-deps (13.0.2~ynh1) ...
54899 DEBUG + ynh_package_install -f
54900 DEBUG + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
54900 DEBUG + DEBIAN_FRONTEND=noninteractive
54900 DEBUG + sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
55045 DEBUG Lecture des listes de paquets

55188 DEBUG Construction de l'arbre des dépendances

55188 DEBUG Lecture des informations d'état

55305 DEBUG 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
55307 DEBUG + [[ -n /tmp/tmp.hETpqpJo1V ]]
55307 DEBUG + rm -rf /tmp/tmp.hETpqpJo1V
55309 DEBUG + ynh_package_is_installed nextcloud-ynh-deps
55309 DEBUG + dpkg-query -W -f '${Status}' nextcloud-ynh-deps
55310 DEBUG + grep -c 'ok installed'
55322 DEBUG + rm /tmp/nextcloud-ynh-deps.control
55323 DEBUG + ynh_app_setting_set nextcloud apt_dependencies php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml
55323 DEBUG + sudo yunohost app setting nextcloud apt_dependencies --value=php7.0-gd, --quiet
55536 DEBUG + source upgrade.d/upgrade.last.sh
55537 DEBUG ++ next_version=13.0.2
55537 DEBUG ++ nextcloud_source_sha256=7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d
55537 DEBUG ++ cp -a ../sources/patches_last_version/app-00-add-logout_url-conf.patch ../sources/patches_last_version/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch ../sources/patches
55538 DEBUG + last_version=13.0.2
55538 DEBUG + datadir=/home/yunohost.app/nextcloud/data
55538 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
57390 DEBUG + exec_occ -V
57390 DEBUG + cd /var/www/nextcloud
57390 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi -V
57390 DEBUG + local USER=nextcloud
57391 DEBUG + shift 1
57391 DEBUG ++ whoami
57410 DEBUG + [[ nextcloud = root ]]
57410 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi -V
57604 DEBUG Nextcloud 13.0.2
57615 DEBUG + '[' 13.0.2 '!=' 13.0.2 ']'
57615 DEBUG + ynh_backup_if_checksum_is_different /var/www/nextcloud/config/config.php
57616 DEBUG + local file=/var/www/nextcloud/config/config.php
57616 DEBUG + local checksum_setting_name=checksum__var_www_nextcloud_config_config.php
57616 DEBUG ++ ynh_app_setting_get nextcloud checksum__var_www_nextcloud_config_config.php
57616 DEBUG ++ sudo yunohost app setting nextcloud checksum__var_www_nextcloud_config_config.php --output-as plain --quiet
57821 DEBUG + local checksum_value=4151bb6ceb7766509be23acdc16ee04f
57821 DEBUG + '[' -n 4151bb6ceb7766509be23acdc16ee04f ']'
57821 DEBUG + sudo md5sum -c --status
57822 DEBUG + echo '4151bb6ceb7766509be23acdc16ee04f /var/www/nextcloud/config/config.php'
57838 DEBUG ++ date +%Y%m%d.%H%M%S
57839 DEBUG + local backup_file=/home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039
57840 DEBUG ++ dirname /home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039
57841 DEBUG + sudo mkdir -p /home/yunohost.conf/backup//var/www/nextcloud/config
57859 DEBUG + sudo cp -a /var/www/nextcloud/config/config.php /home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039
57876 DEBUG + echo 'File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in /home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039'
57876 DEBUG + echo /home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039
57876 DEBUG /home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039
57876 DEBUG + nc_conf=/var/www/nextcloud/config.json
57877 DEBUG + cp ../conf/config.json /var/www/nextcloud/config.json
57877 WARNING File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in /home/yunohost.conf/backup//var/www/nextcloud/config/config.php.backup.20180627.203039
57878 DEBUG + ynh_replace_string '#DOMAIN#' mondomaine1.tld /var/www/nextcloud/config.json
57878 DEBUG + local delimit=@
57878 DEBUG + local match_string=#DOMAIN#
57878 DEBUG + local replace_string=mondomaine1.tld
57878 DEBUG + local workfile=/var/www/nextcloud/config.json
57878 DEBUG + match_string='#DOMAIN#'
57878 DEBUG + replace_string=mondomaine1.tld
57878 DEBUG + sudo sed --in-place s@#DOMAIN#@mondomaine1.tld@g /var/www/nextcloud/config.json
57896 DEBUG + ynh_replace_string '#DATADIR#' /home/yunohost.app/nextcloud/data /var/www/nextcloud/config.json
57896 DEBUG + local delimit=@
57896 DEBUG + local match_string=#DATADIR#
57896 DEBUG + local replace_string=/home/yunohost.app/nextcloud/data
57896 DEBUG + local workfile=/var/www/nextcloud/config.json
57897 DEBUG + match_string='#DATADIR#'
57897 DEBUG + replace_string=/home/yunohost.app/nextcloud/data
57897 DEBUG + sudo sed --in-place s@#DATADIR#@/home/yunohost.app/nextcloud/data@g /var/www/nextcloud/config.json
57915 DEBUG + exec_occ app:disable updatenotification
57915 DEBUG + cd /var/www/nextcloud
57916 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi app:disable updatenotification
57916 DEBUG + local USER=nextcloud
57916 DEBUG + shift 1
57916 DEBUG ++ whoami
57917 DEBUG + [[ nextcloud = root ]]
57917 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi app:disable updatenotification
58100 DEBUG No such app enabled: updatenotification
58110 DEBUG + exec_occ app:enable user_ldap
58111 DEBUG + cd /var/www/nextcloud
58111 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi app:enable user_ldap
58111 DEBUG + local USER=nextcloud
58112 DEBUG + shift 1
58112 DEBUG ++ whoami
58112 DEBUG + [[ nextcloud = root ]]
58112 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi app:enable user_ldap
59142 DEBUG user_ldap enabled
59152 DEBUG + exec_occ config:import /var/www/nextcloud/config.json
59152 DEBUG + cd /var/www/nextcloud
59153 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi config:import /var/www/nextcloud/config.json
59153 DEBUG + local USER=nextcloud
59153 DEBUG + shift 1
59153 DEBUG ++ whoami
59154 DEBUG + [[ nextcloud = root ]]
59154 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi config:import /var/www/nextcloud/config.json
59345 DEBUG Config successfully imported from: /var/www/nextcloud/config.json
59356 DEBUG + rm -f /var/www/nextcloud/config.json
59357 DEBUG + exec_occ config:system:get logout_url
59357 DEBUG + cd /var/www/nextcloud
59358 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi config:system:get logout_url
59358 DEBUG + local USER=nextcloud
59358 DEBUG + shift 1
59358 DEBUG ++ whoami
59359 DEBUG + [[ nextcloud = root ]]
59359 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi config:system:get logout_url
59552 DEBUG + '[' 0 -eq 1 ']'
59553 DEBUG + ynh_store_file_checksum /var/www/nextcloud/config/config.php
59553 DEBUG + local checksum_setting_name=checksum__var_www_nextcloud_config_config.php
59554 DEBUG ++ sudo md5sum /var/www/nextcloud/config/config.php
59554 DEBUG ++ cut '-d ' -f1
59575 DEBUG + ynh_app_setting_set nextcloud checksum__var_www_nextcloud_config_config.php b057b3a58441d99a81c7f41268db2b55
59575 DEBUG + sudo yunohost app setting nextcloud checksum__var_www_nextcloud_config_config.php --value=b057b3a58441d99a81c7f41268db2b55 --quiet
59785 DEBUG + cron_path=/etc/cron.d/nextcloud
59785 DEBUG + cp -a ../conf/nextcloud.cron /etc/cron.d/nextcloud
59786 DEBUG + chown root: /etc/cron.d/nextcloud
59787 DEBUG + chmod 644 /etc/cron.d/nextcloud
59789 DEBUG + ynh_replace_string '#USER#' nextcloud /etc/cron.d/nextcloud
59789 DEBUG + local delimit=@
59789 DEBUG + local match_string=#USER#
59789 DEBUG + local replace_string=nextcloud
59789 DEBUG + local workfile=/etc/cron.d/nextcloud
59789 DEBUG + match_string='#USER#'
59790 DEBUG + replace_string=nextcloud
59790 DEBUG + sudo sed --in-place s@#USER#@nextcloud@g /etc/cron.d/nextcloud
59808 DEBUG + ynh_replace_string '#DESTDIR#' /var/www/nextcloud /etc/cron.d/nextcloud
59808 DEBUG + local delimit=@
59808 DEBUG + local match_string=#DESTDIR#
59808 DEBUG + local replace_string=/var/www/nextcloud
59809 DEBUG + local workfile=/etc/cron.d/nextcloud
59809 DEBUG + match_string='#DESTDIR#'
59809 DEBUG + replace_string=/var/www/nextcloud
59809 DEBUG + sudo sed --in-place s@#DESTDIR#@/var/www/nextcloud@g /etc/cron.d/nextcloud
59827 DEBUG + exec_occ background:cron
59827 DEBUG + cd /var/www/nextcloud
59827 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi background:cron
59827 DEBUG + local USER=nextcloud
59827 DEBUG + shift 1
59827 DEBUG ++ whoami
59828 DEBUG + [[ nextcloud = root ]]
59828 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi background:cron
60007 DEBUG Set mode for background jobs to 'cron'
60019 DEBUG + ynh_replace_string '#GROUP#' nextcloud ../hooks/post_user_create
60019 DEBUG + local delimit=@
60019 DEBUG + local match_string=#GROUP#
60019 DEBUG + local replace_string=nextcloud
60019 DEBUG + local workfile=../hooks/post_user_create
60020 DEBUG + match_string='#GROUP#'
60020 DEBUG + replace_string=nextcloud
60020 DEBUG + sudo sed --in-place s@#GROUP#@nextcloud@g ../hooks/post_user_create
60037 DEBUG + ynh_multimedia_build_main_dir
60038 DEBUG + local ynh_media_release=v1.0
60038 DEBUG + local checksum=4852c8607db820ad51f348da0dcf0c88
60038 DEBUG + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/v1.0.tar.gz
61008 WARNING 2018-06-27 20:30:42 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.0 [15907] -> "v1.0.tar.gz" [1]
61009 DEBUG + echo '4852c8607db820ad51f348da0dcf0c88 v1.0.tar.gz'
61009 DEBUG + md5sum -c --status
61010 DEBUG + mkdir yunohost.multimedia-master
61011 DEBUG + tar -xf v1.0.tar.gz -C yunohost.multimedia-master --strip-components 1
61015 DEBUG + ./yunohost.multimedia-master/script/ynh_media_build.sh
61469 WARNING ln: impossible de créer le lien symbolique '/home/user4/Multimedia': Aucun fichier ou dossier de ce type
61485 WARNING chown: utilisateur incorrect: « user4 »
63933 DEBUG hook: /etc/yunohost/hooks.d/post_user_create/50-ynh_media
64182 DEBUG hook: /etc/yunohost/hooks.d/post_user_delete/50-ynh_media
64249 DEBUG + exec_occ app:enable files_external
64250 DEBUG + cd /var/www/nextcloud
64250 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi app:enable files_external
64251 DEBUG + local USER=nextcloud
64251 DEBUG + shift 1
64251 DEBUG ++ whoami
64251 DEBUG + [[ nextcloud = root ]]
64251 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi app:enable files_external
64947 DEBUG files_external enabled
64958 DEBUG + create_external_storage '/home/yunohost.multimedia/$user' Multimedia
64958 DEBUG + local 'datadir=/home/yunohost.multimedia/$user'
64959 DEBUG + local mount_name=Multimedia
64959 DEBUG ++ exec_occ files_external:create --output=json Multimedia local null::null -c 'datadir=/home/yunohost.multimedia/$user'
64959 DEBUG ++ cd /var/www/nextcloud
64959 DEBUG ++ exec_as nextcloud php occ --no-interaction --no-ansi files_external:create --output=json Multimedia local null::null -c 'datadir=/home/yunohost.multimedia/$user'
64959 DEBUG ++ local USER=nextcloud
64959 DEBUG ++ shift 1
64960 DEBUG +++ whoami
64962 DEBUG ++ [[ nextcloud = root ]]
64962 DEBUG ++ sudo -u nextcloud php occ --no-interaction --no-ansi files_external:create --output=json Multimedia local null::null -c 'datadir=/home/yunohost.multimedia/$user'
65192 DEBUG + local mount_id=3
65193 DEBUG + [[ 3 =~ ^[0-9]+$ ]]
65193 DEBUG + exec_occ files_external:option 3 enable_sharing true
65193 DEBUG + cd /var/www/nextcloud
65193 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi files_external:option 3 enable_sharing true
65193 DEBUG + local USER=nextcloud
65194 DEBUG + shift 1
65194 DEBUG ++ whoami
65195 DEBUG + [[ nextcloud = root ]]
65195 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi files_external:option 3 enable_sharing true
65419 DEBUG + create_external_storage /home/yunohost.multimedia/share 'Shared multimedia'
65419 DEBUG + local datadir=/home/yunohost.multimedia/share
65419 DEBUG + local 'mount_name=Shared multimedia'
65421 DEBUG ++ exec_occ files_external:create --output=json 'Shared multimedia' local null::null -c datadir=/home/yunohost.multimedia/share
65422 DEBUG ++ cd /var/www/nextcloud
65423 DEBUG ++ exec_as nextcloud php occ --no-interaction --no-ansi files_external:create --output=json 'Shared multimedia' local null::null -c datadir=/home/yunohost.multimedia/share
65423 DEBUG ++ local USER=nextcloud
65424 DEBUG ++ shift 1
65424 DEBUG +++ whoami
65425 DEBUG ++ [[ nextcloud = root ]]
65425 DEBUG ++ sudo -u nextcloud php occ --no-interaction --no-ansi files_external:create --output=json 'Shared multimedia' local null::null -c datadir=/home/yunohost.multimedia/share
65639 DEBUG + local mount_id=4
65639 DEBUG + [[ 4 =~ ^[0-9]+$ ]]
65640 DEBUG + exec_occ files_external:option 4 enable_sharing true
65640 DEBUG + cd /var/www/nextcloud
65640 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi files_external:option 4 enable_sharing true
65640 DEBUG + local USER=nextcloud
65641 DEBUG + shift 1
65641 DEBUG ++ whoami
65641 DEBUG + [[ nextcloud = root ]]
65641 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi files_external:option 4 enable_sharing true
65849 DEBUG + ynh_multimedia_addaccess nextcloud
65849 DEBUG + local user_name=nextcloud
65850 DEBUG + groupadd -f multimedia
65850 DEBUG + usermod -a -G multimedia nextcloud
65908 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
66049 DEBUG + find /var/www/nextcloud/ -type f -print0
66049 DEBUG + xargs -0 chmod 0644
66146 DEBUG + find /var/www/nextcloud/ -type d -print0
66147 DEBUG + xargs -0 chmod 0755
66214 DEBUG + find /home/yunohost.app/nextcloud/data/ -type f -print0
66214 DEBUG + xargs -0 chmod 0640
66277 DEBUG + find /home/yunohost.app/nextcloud/data/ -type d -print0
66277 DEBUG + xargs -0 chmod 0750
66295 DEBUG + chmod 640 /var/www/nextcloud/config/config.php
66296 DEBUG + chmod 755 /home/yunohost.app
66298 WARNING Note that if you've installed some third-parties Nextcloud applications, they are probably disabled and you'll have to manually enable them again.
66298 DEBUG + echo 'Note that if you'\''ve installed some third-parties Nextcloud applications, they are probably disabled and you'\''ll have to manually enable them again.'
66298 DEBUG + ynh_use_logrotate --non-append
66299 DEBUG + local 'customtee=tee -a'
66299 DEBUG + '[' 1 -gt 0 ']'
66299 DEBUG + '[' --non-append == --non-append ']'
66299 DEBUG + customtee=tee
66299 DEBUG + shift
66300 DEBUG + '[' 0 -gt 0 ']'
66300 DEBUG + local 'logfile=/var/log/nextcloud/*.log'
66300 DEBUG + cat
66300 DEBUG ++ dirname '/var/log/nextcloud/*.log'
66300 DEBUG + sudo mkdir -p /var/log/nextcloud
66320 DEBUG + cat nextcloud-logrotate
66321 DEBUG + sudo tee /etc/logrotate.d/nextcloud
66345 DEBUG + ynh_app_setting_set nextcloud unprotected_uris /
66345 DEBUG + sudo yunohost app setting nextcloud unprotected_uris --value=/ --quiet
66551 DEBUG ++ sed 's/[\.\-]/\%&/g'
66552 DEBUG + ynh_app_setting_set nextcloud skipped_regex 'mondomaine1%.tld/%.well%-known/.*'
66552 DEBUG + sudo yunohost app setting nextcloud skipped_regex '--value=mondomaine1%.tld/%.well%-known/.*' --quiet
66756 DEBUG + systemctl reload nginx
66799 DEBUG + '[' 0 -eq 1 ']'
66799 DEBUG + ynh_exit_properly
66800 DEBUG + local exit_code=0
66800 DEBUG + '[' 0 -eq 0 ']'
66800 DEBUG + exit 0
66894 SUCCESS nextcloud a été mis à jour
66894 DEBUG system hook folder not found for action 'post_app_upgrade' in /usr/share/yunohost/hooks/
66894 DEBUG custom hook folder not found for action 'post_app_upgrade' in /etc/yunohost/hooks.d/
67034 SUCCESS La configuration de SSOwat a été générée
67035 SUCCESS Mise à jour terminée
67035 DEBUG action [12695.1] executed in 66.870s
67035 DEBUG lock has been released

Maybe increase the buffer-size.

buffer-size=65535

in /etc/php/7.0/fpm/conf.d/20-nextcloud.ini

Restart php7.0

service php7.0-fpm restart

For reinstall nextcloud, could you do this?
yunohost app remove nextcloud
yunohost app install nextcloud
For your information, all nextcloud datas are ever in /home/yunohost.app/nextcloud with this process.

I’ve upgraded Nextcloud, and then rebooted the server. It did not solve the issue.

a ‘apt-cache search pdo’ does not reveal any pdo_mysql ou mariadb package.

I’m going to uninstall and then reinstall Nextcloud using the CLI.

root@domaine1:~# yunohost app remove nextcloud
Attention : Removing database nextcloud
Attention : Remove the user nextcloud
SuccÚs ! nextcloud a été supprimé
SuccÚs ! La configuration de SSOwat a été générée
yunohost app install nextcloud --debug
84   DEBUG loading actions map namespace 'yunohost'
92   DEBUG extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
92   DEBUG initializing base actions map parser for cli
93   DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
143  DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
146  DEBUG lock has been acquired
162  DEBUG loading python module yunohost.app took 0.015s
162  INFO processing action [6404.1]: yunohost.app.install with args={'app': 'nextcloud', 'args': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7f1abe5d2110>, 'label': None, 'no_remove_on_failure': False}
169  DEBUG Téléchargement...
1462 DEBUG Extraction...
1474 DEBUG Terminé
1475 DEBUG Vérification des paquets requis pour nextcloud...
Domaines disponibles :
- domaine2.tld
- domaine1.tld
Choisissez un domaine pour Nextcloud (default: domaine1.tld) :    
Choisissez un chemin pour Nextcloud (default: /nextcloud) : 
Choisissez l'administrateur de Nextcloud (doit ĂȘtre un utilisateur YunoHost existant) : user1
Accéder au dossier personnel des utilisateurs depuis Nextcloud ? [0 | 1] (default: 0) : 
22828 DEBUG Exécution de la commande « sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts YNH_APP_ARG_USER_HOME=0 YNH_APP_INSTANCE_NAME=nextcloud YNH_APP_ARG_ADMIN=user1 YNH_APP_ID=nextcloud YNH_APP_ARG_PATH=/nextcloud YNH_APP_ARG_DOMAIN=domaine1.tld BASH_XTRACEFD=7 /bin/bash -x "./install" domaine1.tld /nextcloud user1 0 nextcloud 7>&1 »...
22838 DEBUG + source _common.sh
22839 DEBUG ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient'
22840 DEBUG +++ lsb_release --codename --short
22881 DEBUG ++ '[' stretch '!=' jessie ']'
22881 DEBUG ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
22882 DEBUG + source /usr/share/yunohost/helpers
22882 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
22884 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22884 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
22884 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
22885 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22885 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
22885 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
22885 DEBUG +++ CAN_BIND=1
22886 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22886 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
22887 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
22887 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22887 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
22887 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
22887 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
22888 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22888 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
22889 DEBUG ++ . /usr/share/yunohost/helpers.d/network
22889 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22889 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
22889 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
22889 DEBUG +++ n_install_dir=/opt/node_n
22889 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
22890 DEBUG +++ export N_PREFIX=/opt/node_n
22890 DEBUG +++ N_PREFIX=/opt/node_n
22890 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22890 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
22890 DEBUG ++ . /usr/share/yunohost/helpers.d/package
22890 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22890 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
22890 DEBUG ++ . /usr/share/yunohost/helpers.d/print
22891 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22891 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
22891 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
22892 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22893 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
22893 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
22893 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22893 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
22893 DEBUG ++ . /usr/share/yunohost/helpers.d/string
22893 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22893 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
22893 DEBUG ++ . /usr/share/yunohost/helpers.d/system
22894 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22894 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
22894 DEBUG ++ . /usr/share/yunohost/helpers.d/user
22894 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
22894 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
22894 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
22894 DEBUG + ynh_abort_if_errors
22894 DEBUG + set -eu
22894 DEBUG + trap ynh_exit_properly EXIT
22895 DEBUG + domain=domaine1.tld
22895 DEBUG + path_url=/nextcloud
22895 DEBUG + admin=user1
22895 DEBUG + user_home=0
22895 DEBUG + app=nextcloud
22895 DEBUG + final_path=/var/www/nextcloud
22895 DEBUG + test '!' -e /var/www/nextcloud
22895 DEBUG ++ ynh_normalize_url_path /nextcloud
22895 DEBUG ++ local path_url=/nextcloud
22896 DEBUG ++ test -n /nextcloud
22896 DEBUG ++ '[' / '!=' / ']'
22896 DEBUG ++ '[' d == / ']'
22896 DEBUG ++ echo /nextcloud
22896 DEBUG + path_url=/nextcloud
22896 DEBUG + ynh_webpath_available domaine1.tld /nextcloud
22896 DEBUG + local domain=domaine1.tld
22896 DEBUG + local path=/nextcloud
22897 DEBUG + sudo yunohost domain url-available domaine1.tld /nextcloud
23117 DEBUG True
23128 DEBUG + ynh_webpath_register nextcloud domaine1.tld /nextcloud
23128 DEBUG + local app=nextcloud
23128 DEBUG + local domain=domaine1.tld
23128 DEBUG + local path=/nextcloud
23129 DEBUG + sudo yunohost app register-url nextcloud domaine1.tld /nextcloud
23373 DEBUG + ynh_app_setting_set nextcloud domain domaine1.tld
23373 DEBUG + sudo yunohost app setting nextcloud domain --value=domaine1.tld --quiet
23566 DEBUG + ynh_app_setting_set nextcloud path /nextcloud
23566 DEBUG + sudo yunohost app setting nextcloud path --value=/nextcloud --quiet
23756 DEBUG + ynh_app_setting_set nextcloud admin user1
23756 DEBUG + sudo yunohost app setting nextcloud admin --value=user1 --quiet
23956 DEBUG + ynh_app_setting_set nextcloud user_home 0
23957 DEBUG + sudo yunohost app setting nextcloud user_home --value=0 --quiet
24157 DEBUG + ynh_install_app_dependencies php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml
24157 DEBUG + local 'dependencies=php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
24157 DEBUG + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml'
24158 DEBUG + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml'
24158 DEBUG + local manifest_path=../manifest.json
24158 DEBUG + '[' '!' -e ../manifest.json ']'
24159 DEBUG ++ grep '\"version\": ' ../manifest.json
24160 DEBUG ++ cut -d '"' -f 4
24161 DEBUG + local version=13.0.2~ynh1
24161 DEBUG + '[' 11 -eq 0 ']'
24161 DEBUG + local dep_app=nextcloud
24161 DEBUG + cat
24162 DEBUG + ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control
24162 DEBUG + local controlfile=/tmp/nextcloud-ynh-deps.control
24163 DEBUG + ynh_package_is_installed equivs
24163 DEBUG + grep -c 'ok installed'
24163 DEBUG + dpkg-query -W -f '${Status}' equivs
24174 DEBUG ++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control
24175 DEBUG ++ cut '-d ' -f 2
24176 DEBUG + local pkgname=nextcloud-ynh-deps
24177 DEBUG ++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control
24177 DEBUG ++ cut '-d ' -f 2
24179 DEBUG + local pkgversion=13.0.2~ynh1
24179 DEBUG + [[ -z nextcloud-ynh-deps ]]
24179 DEBUG + [[ -z 13.0.2~ynh1 ]]
24179 DEBUG + ynh_package_update
24179 DEBUG + ynh_apt update
24180 DEBUG + DEBIAN_FRONTEND=noninteractive
24180 DEBUG + sudo apt-get -y update
24278 DEBUG Réception de:1 http://security.debian.org/debian-security stretch/updates InRelease [94,3 kB]
24289 DEBUG Ign:2 http://debian.univ-lorraine.fr/debian stretch InRelease
24312 DEBUG Atteint:3 http://debian.univ-lorraine.fr/debian stretch-updates InRelease
24319 DEBUG Atteint:4 http://forge.yunohost.org/debian stretch InRelease
24327 DEBUG Atteint:5 http://debian.univ-lorraine.fr/debian stretch Release
24520 DEBUG Réception de:6 http://security.debian.org/debian-security stretch/updates/main Sources [145 kB]
24547 DEBUG Réception de:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [361 kB]
24681 DEBUG 601 ko réceptionnés en 0s (1 384 ko/s)
25641 DEBUG Lecture des listes de paquets

25668 DEBUG ++ mktemp -d
25670 DEBUG + local TMPDIR=/tmp/tmp.OH3RgWpxUH
25670 DEBUG + echo 10
25704 DEBUG + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.OH3RgWpxUH/control
25705 DEBUG + cd /tmp/tmp.OH3RgWpxUH
25706 DEBUG + equivs-build ./control
26813 DEBUG + sudo dpkg --force-depends -i ./nextcloud-ynh-deps_13.0.2~ynh1_all.deb
26899 DEBUG Sélection du paquet nextcloud-ynh-deps précédemment désélectionné.
26922 DEBUG (Lecture de la base de données... 53191 fichiers et répertoires déjà installés.)
26924 DEBUG Préparation du dépaquetage de .../nextcloud-ynh-deps_13.0.2~ynh1_all.deb ...
26936 DEBUG Dépaquetage de nextcloud-ynh-deps (13.0.2~ynh1) ...
26996 DEBUG Paramétrage de nextcloud-ynh-deps (13.0.2~ynh1) ...
27071 DEBUG + ynh_package_install -f
27071 DEBUG + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
27071 DEBUG + DEBIAN_FRONTEND=noninteractive
27072 DEBUG + sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
27212 DEBUG Lecture des listes de paquets

27333 DEBUG Construction de l'arbre des dépendances

27334 DEBUG Lecture des informations d'état

27439 DEBUG 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
27441 DEBUG + [[ -n /tmp/tmp.OH3RgWpxUH ]]
27441 DEBUG + rm -rf /tmp/tmp.OH3RgWpxUH
27442 DEBUG + ynh_package_is_installed nextcloud-ynh-deps
27443 DEBUG + grep -c 'ok installed'
27444 DEBUG + dpkg-query -W -f '${Status}' nextcloud-ynh-deps
27453 DEBUG + rm /tmp/nextcloud-ynh-deps.control
27455 DEBUG + ynh_app_setting_set nextcloud apt_dependencies php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml
27455 DEBUG + sudo yunohost app setting nextcloud apt_dependencies --value=php7.0-gd, --quiet
27660 DEBUG ++ ynh_sanitize_dbid nextcloud
27660 DEBUG ++ local dbid=nextcloud
27660 DEBUG ++ echo nextcloud
27660 DEBUG + db_name=nextcloud
27660 DEBUG + ynh_app_setting_set nextcloud db_name nextcloud
27661 DEBUG + sudo yunohost app setting nextcloud db_name --value=nextcloud --quiet
27855 DEBUG + ynh_mysql_setup_db nextcloud nextcloud
27855 DEBUG + local db_user=nextcloud
27855 DEBUG + local db_name=nextcloud
27855 DEBUG ++ ynh_string_random
27855 DEBUG ++ sed -n 's/\(.\{24\}\).*/\1/p'
27856 DEBUG ++ tr -c -d A-Za-z0-9
27856 DEBUG ++ dd if=/dev/urandom bs=1 count=200
27877 DEBUG + local new_db_pwd=y96WLKTvobh3uemNHg9qxLzC
27878 DEBUG + db_pwd=y96WLKTvobh3uemNHg9qxLzC
27878 DEBUG + ynh_mysql_create_db nextcloud nextcloud y96WLKTvobh3uemNHg9qxLzC
27878 DEBUG + local db=nextcloud
27878 DEBUG + local 'sql=CREATE DATABASE nextcloud;'
27878 DEBUG + [[ 3 -gt 1 ]]
27878 DEBUG + sql+=' GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'''
27878 DEBUG + [[ -n y96WLKTvobh3uemNHg9qxLzC ]]
27878 DEBUG + sql+=' IDENTIFIED BY '\''y96WLKTvobh3uemNHg9qxLzC'\'''
27879 DEBUG + sql+=' WITH GRANT OPTION;'
27879 DEBUG + ynh_mysql_execute_as_root 'CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'' IDENTIFIED BY '\''y96WLKTvobh3uemNHg9qxLzC'\'' WITH GRANT OPTION;'
27879 DEBUG ++ sudo cat /etc/yunohost/mysql
27895 DEBUG + ynh_mysql_connect_as root hj4hZ1zV8C ''
27895 DEBUG + mysql -u root --password=hj4hZ1zV8C -B ''
27901 DEBUG + ynh_app_setting_set nextcloud mysqlpwd y96WLKTvobh3uemNHg9qxLzC
27901 DEBUG + sudo yunohost app setting nextcloud mysqlpwd --value=y96WLKTvobh3uemNHg9qxLzC --quiet
28101 DEBUG + source upgrade.d/upgrade.last.sh
28101 DEBUG ++ next_version=13.0.2
28101 DEBUG ++ nextcloud_source_sha256=7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d
28101 DEBUG ++ cp -a ../sources/patches_last_version/app-00-add-logout_url-conf.patch ../sources/patches_last_version/app-01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch ../sources/patches
28102 DEBUG + cp ../conf/app.src.default ../conf/app.src
28104 DEBUG + ynh_replace_string __VERSION__ 13.0.2 ../conf/app.src
28104 DEBUG + local delimit=@
28104 DEBUG + local match_string=__VERSION__
28104 DEBUG + local replace_string=13.0.2
28104 DEBUG + local workfile=../conf/app.src
28105 DEBUG + match_string=__VERSION__
28105 DEBUG + replace_string=13.0.2
28105 DEBUG + sudo sed --in-place s@__VERSION__@13.0.2@g ../conf/app.src
28122 DEBUG + ynh_replace_string __SHA256_SUM__ 7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d ../conf/app.src
28123 DEBUG + local delimit=@
28123 DEBUG + local match_string=__SHA256_SUM__
28123 DEBUG + local replace_string=7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d
28123 DEBUG + local workfile=../conf/app.src
28123 DEBUG + match_string=__SHA256_SUM__
28123 DEBUG + replace_string=7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d
28123 DEBUG + sudo sed --in-place s@__SHA256_SUM__@7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d@g ../conf/app.src
28141 DEBUG + ynh_app_setting_set nextcloud final_path /var/www/nextcloud
28141 DEBUG + sudo yunohost app setting nextcloud final_path --value=/var/www/nextcloud --quiet
28342 DEBUG + ynh_setup_source /var/www/nextcloud
28342 DEBUG + local dest_dir=/var/www/nextcloud
28343 DEBUG + local src_id=app
28343 DEBUG ++ cut -d= -f2-
28343 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28345 DEBUG + local src_url=https://download.nextcloud.com/server/releases/nextcloud-13.0.2.tar.bz2
28346 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28346 DEBUG ++ cut -d= -f2-
28348 DEBUG + local src_sum=7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d
28348 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28349 DEBUG ++ cut -d= -f2-
28350 DEBUG + local src_sumprg=sha256sum
28351 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28351 DEBUG ++ cut -d= -f2-
28352 DEBUG + local src_format=tar.bz2
28353 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28354 DEBUG ++ cut -d= -f2-
28355 DEBUG + local src_extract=
28356 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28356 DEBUG ++ cut -d= -f2-
28358 DEBUG + local src_in_subdir=true
28358 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../conf/app.src
28359 DEBUG ++ cut -d= -f2-
28360 DEBUG + local src_filename=
28360 DEBUG + src_sumprg=sha256sum
28361 DEBUG + src_in_subdir=true
28361 DEBUG + src_format=tar.bz2
28361 DEBUG ++ tr '[:upper:]' '[:lower:]'
28361 DEBUG ++ echo tar.bz2
28363 DEBUG + src_format=tar.bz2
28363 DEBUG + src_extract=true
28363 DEBUG + '[' '' = '' ']'
28363 DEBUG + src_filename=app.tar.bz2
28363 DEBUG + local local_src=/opt/yunohost-apps-src/nextcloud/app.tar.bz2
28364 DEBUG + test -e /opt/yunohost-apps-src/nextcloud/app.tar.bz2
28364 DEBUG + wget -nv -O app.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-13.0.2.tar.bz2
32624 WARNING 2018-06-27 22:24:38 URL:https://download.nextcloud.com/server/releases/nextcloud-13.0.2.tar.bz2 [44842305/44842305] -> "app.tar.bz2" [1]
32625 DEBUG + sha256sum -c --status
32625 DEBUG + echo '7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d app.tar.bz2'
32872 DEBUG + mkdir -p /var/www/nextcloud
32873 DEBUG + true
32874 DEBUG + '[' tar.bz2 = zip ']'
32874 DEBUG + local strip=
32874 DEBUG + true
32874 DEBUG + strip='--strip-components 1'
32875 DEBUG + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]]
32875 DEBUG + tar -xf app.tar.bz2 -C /var/www/nextcloud --strip-components 1
38687 DEBUG ++ find /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../sources/patches/ -type f -name 'app-*.patch'
38688 DEBUG ++ wc -l
38706 DEBUG + ((  2 > 0  ))
38706 DEBUG ++ pwd
38707 DEBUG + local old_dir=/var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts
38707 DEBUG + cd /var/www/nextcloud
38707 DEBUG + for p in $YNH_CWD/../sources/patches/${src_id}-*.patch
38708 DEBUG + patch -p1
38749 DEBUG patching file core/Controller/LoginController.php
38749 DEBUG + for p in $YNH_CWD/../sources/patches/${src_id}-*.patch
38749 DEBUG + patch -p1
38750 DEBUG (Stripping trailing CRs from patch; use --binary to disable.)
38751 DEBUG patching file lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
38751 DEBUG Hunk #1 succeeded at 69 (offset 4 lines).
38751 DEBUG (Stripping trailing CRs from patch; use --binary to disable.)
38751 DEBUG patching file lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
38752 DEBUG Hunk #1 succeeded at 406 (offset 29 lines).
38752 DEBUG + cd /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts
38752 DEBUG + test -e /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/../sources/extra_files/app
38752 DEBUG + is_url_handled https://domaine1.tld/.well-known/caldav
38752 DEBUG + output=($(curl -k -s -o /dev/null       -w 'x%{redirect_url} %{http_code}' "$1"))
38753 DEBUG ++ curl -k -s -o /dev/null -w 'x%{redirect_url} %{http_code}' https://domaine1.tld/.well-known/caldav
38779 DEBUG + local output
38779 DEBUG + [[ ! xhttps://domaine1.tld/yunohost/sso/?r=aHR0cHM6Ly9sZXNjb3Jwc2RlcmV2ZS5zcGFjZS8ud2VsbC1rbm93bi9jYWxkYXY= =~ /yunohost/sso/ ]]
38779 DEBUG + path_url_slash_less=/nextcloud
38780 DEBUG + ynh_replace_string __PATH__/ /nextcloud/ ../conf/nginx.conf
38780 DEBUG + local delimit=@
38780 DEBUG + local match_string=__PATH__/
38780 DEBUG + local replace_string=/nextcloud/
38781 DEBUG + local workfile=../conf/nginx.conf
38781 DEBUG + match_string=__PATH__/
38781 DEBUG + replace_string=/nextcloud/
38781 DEBUG + sudo sed --in-place s@__PATH__/@/nextcloud/@g ../conf/nginx.conf
38798 DEBUG + ynh_add_nginx_config
38798 DEBUG + finalnginxconf=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
38799 DEBUG + local others_var=
38799 DEBUG + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
38799 DEBUG + local file=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
38799 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_domaine1.tld.d_nextcloud.conf
38799 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_nginx_conf.d_domaine1.tld.d_nextcloud.conf
38800 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_nginx_conf.d_domaine1.tld.d_nextcloud.conf --output-as plain --quiet
39029 DEBUG + local checksum_value=
39030 DEBUG + '[' -n '' ']'
39030 DEBUG + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39043 DEBUG + test -n /nextcloud
39044 DEBUG + local path_url_slash_less=/nextcloud
39044 DEBUG + ynh_replace_string __PATH__/ /nextcloud/ /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39044 DEBUG + local delimit=@
39046 DEBUG + local match_string=__PATH__/
39047 DEBUG + local replace_string=/nextcloud/
39047 DEBUG + local workfile=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39047 DEBUG + match_string=__PATH__/
39048 DEBUG + replace_string=/nextcloud/
39048 DEBUG + sudo sed --in-place s@__PATH__/@/nextcloud/@g /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39059 DEBUG + ynh_replace_string __PATH__ /nextcloud /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39060 DEBUG + local delimit=@
39060 DEBUG + local match_string=__PATH__
39060 DEBUG + local replace_string=/nextcloud
39060 DEBUG + local workfile=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39061 DEBUG + match_string=__PATH__
39061 DEBUG + replace_string=/nextcloud
39061 DEBUG + sudo sed --in-place s@__PATH__@/nextcloud@g /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39073 DEBUG + test -n domaine1.tld
39074 DEBUG + ynh_replace_string __DOMAIN__ domaine1.tld /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39074 DEBUG + local delimit=@
39075 DEBUG + local match_string=__DOMAIN__
39075 DEBUG + local replace_string=domaine1.tld
39075 DEBUG + local workfile=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39075 DEBUG + match_string=__DOMAIN__
39076 DEBUG + replace_string=domaine1.tld
39076 DEBUG + sudo sed --in-place s@__DOMAIN__@domaine1.tld@g /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39092 DEBUG + test -n ''
39093 DEBUG + test -n nextcloud
39093 DEBUG + ynh_replace_string __NAME__ nextcloud /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39093 DEBUG + local delimit=@
39093 DEBUG + local match_string=__NAME__
39093 DEBUG + local replace_string=nextcloud
39093 DEBUG + local workfile=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39093 DEBUG + match_string=__NAME__
39094 DEBUG + replace_string=nextcloud
39094 DEBUG + sudo sed --in-place s@__NAME__@nextcloud@g /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39108 DEBUG + test -n /var/www/nextcloud
39109 DEBUG + ynh_replace_string __FINALPATH__ /var/www/nextcloud /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39109 DEBUG + local delimit=@
39109 DEBUG + local match_string=__FINALPATH__
39109 DEBUG + local replace_string=/var/www/nextcloud
39109 DEBUG + local workfile=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39109 DEBUG + match_string=__FINALPATH__
39109 DEBUG + replace_string=/var/www/nextcloud
39110 DEBUG + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39129 DEBUG + '[' /nextcloud '!=' / ']'
39129 DEBUG + ynh_replace_string '^#sub_path_only' '' /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39129 DEBUG + local delimit=@
39129 DEBUG + local 'match_string=^#sub_path_only'
39129 DEBUG + local replace_string=
39130 DEBUG + local workfile=/etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39130 DEBUG + match_string='^#sub_path_only'
39130 DEBUG + replace_string=
39130 DEBUG + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39145 DEBUG + ynh_store_file_checksum /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39145 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_domaine1.tld.d_nextcloud.conf
39146 DEBUG ++ cut '-d ' -f1
39147 DEBUG ++ sudo md5sum /etc/nginx/conf.d/domaine1.tld.d/nextcloud.conf
39164 DEBUG + ynh_app_setting_set nextcloud checksum__etc_nginx_conf.d_domaine1.tld.d_nextcloud.conf 7bc010328be36a447ddd5640f34158cf
39164 DEBUG + sudo yunohost app setting nextcloud checksum__etc_nginx_conf.d_domaine1.tld.d_nextcloud.conf --value=7bc010328be36a447ddd5640f34158cf --quiet
39365 DEBUG + sudo systemctl reload nginx
39418 DEBUG + ynh_system_user_create nextcloud
39418 DEBUG + ynh_system_user_exists nextcloud
39418 DEBUG + getent passwd nextcloud
39419 DEBUG + '[' 1 -ge 2 ']'
39419 DEBUG + local user_home_dir=--no-create-home
39419 DEBUG + sudo useradd --no-create-home --system --user-group nextcloud --shell /usr/sbin/nologin
40853 DEBUG + ynh_add_fpm_config
40853 DEBUG + local fpm_config_dir=/etc/php/7.0/fpm
40853 DEBUG + local fpm_service=php7.0-fpm
40853 DEBUG ++ ynh_get_debian_release
40853 DEBUG +++ lsb_release --codename --short
40904 DEBUG ++ echo stretch
40904 DEBUG + '[' stretch == jessie ']'
40904 DEBUG + ynh_app_setting_set nextcloud fpm_config_dir /etc/php/7.0/fpm
40904 DEBUG + sudo yunohost app setting nextcloud fpm_config_dir --value=/etc/php/7.0/fpm --quiet
41130 DEBUG + ynh_app_setting_set nextcloud fpm_service php7.0-fpm
41130 DEBUG + sudo yunohost app setting nextcloud fpm_service --value=php7.0-fpm --quiet
41345 DEBUG + finalphpconf=/etc/php/7.0/fpm/pool.d/nextcloud.conf
41345 DEBUG + ynh_backup_if_checksum_is_different /etc/php/7.0/fpm/pool.d/nextcloud.conf
41345 DEBUG + local file=/etc/php/7.0/fpm/pool.d/nextcloud.conf
41345 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
41346 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
41346 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf --output-as plain --quiet
41546 DEBUG + local checksum_value=
41546 DEBUG + '[' -n '' ']'
41546 DEBUG + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/nextcloud.conf
41565 DEBUG + ynh_replace_string __NAMETOCHANGE__ nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
41565 DEBUG + local delimit=@
41566 DEBUG + local match_string=__NAMETOCHANGE__
41566 DEBUG + local replace_string=nextcloud
41566 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
41566 DEBUG + match_string=__NAMETOCHANGE__
41566 DEBUG + replace_string=nextcloud
41566 DEBUG + sudo sed --in-place s@__NAMETOCHANGE__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
41585 DEBUG + ynh_replace_string __FINALPATH__ /var/www/nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
41585 DEBUG + local delimit=@
41586 DEBUG + local match_string=__FINALPATH__
41586 DEBUG + local replace_string=/var/www/nextcloud
41586 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
41586 DEBUG + match_string=__FINALPATH__
41586 DEBUG + replace_string=/var/www/nextcloud
41586 DEBUG + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
41604 DEBUG + ynh_replace_string __USER__ nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
41604 DEBUG + local delimit=@
41604 DEBUG + local match_string=__USER__
41605 DEBUG + local replace_string=nextcloud
41605 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
41605 DEBUG + match_string=__USER__
41605 DEBUG + replace_string=nextcloud
41606 DEBUG + sudo sed --in-place s@__USER__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
41622 DEBUG + sudo chown root: /etc/php/7.0/fpm/pool.d/nextcloud.conf
41638 DEBUG + ynh_store_file_checksum /etc/php/7.0/fpm/pool.d/nextcloud.conf
41639 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
41640 DEBUG ++ sudo md5sum /etc/php/7.0/fpm/pool.d/nextcloud.conf
41643 DEBUG ++ cut '-d ' -f1
41652 DEBUG + ynh_app_setting_set nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf 0ea535d3c58a711067615674add57e8d
41652 DEBUG + sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf --value=0ea535d3c58a711067615674add57e8d --quiet
41856 DEBUG + '[' -e ../conf/php-fpm.ini ']'
41856 DEBUG + finalphpini=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
41857 DEBUG + ynh_backup_if_checksum_is_different /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
41857 DEBUG + local file=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
41857 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
41857 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
41857 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini --output-as plain --quiet
42057 DEBUG + local checksum_value=
42057 DEBUG + '[' -n '' ']'
42058 DEBUG + sudo cp ../conf/php-fpm.ini /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
42075 DEBUG + sudo chown root: /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
42092 DEBUG + ynh_store_file_checksum /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
42092 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
42093 DEBUG ++ sudo md5sum /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
42093 DEBUG ++ cut '-d ' -f1
42112 DEBUG + ynh_app_setting_set nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini 7cc18daa488e0a723d4d06d09a294dee
42112 DEBUG + sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini --value=7cc18daa488e0a723d4d06d09a294dee --quiet
42312 DEBUG + sudo systemctl reload php7.0-fpm
42341 DEBUG + datadir=/home/yunohost.app/nextcloud/data
42341 DEBUG + mkdir -p /home/yunohost.app/nextcloud/data
42343 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
43765 DEBUG ++ ynh_string_random 6
43766 DEBUG ++ dd if=/dev/urandom bs=1 count=200
43767 DEBUG ++ tr -c -d A-Za-z0-9
43767 DEBUG ++ sed -n 's/\(.\{6\}\).*/\1/p'
43769 DEBUG + exec_occ maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass y96WLKTvobh3uemNHg9qxLzC --admin-user admin --admin-pass 8aXFlM --data-dir /home/yunohost.app/nextcloud/data
43769 DEBUG + cd /var/www/nextcloud
43770 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass y96WLKTvobh3uemNHg9qxLzC --admin-user admin --admin-pass 8aXFlM --data-dir /home/yunohost.app/nextcloud/data
43770 DEBUG + local USER=nextcloud
43770 DEBUG + shift 1
43770 DEBUG ++ whoami
43771 DEBUG + [[ nextcloud = root ]]
43772 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass y96WLKTvobh3uemNHg9qxLzC --admin-user admin --admin-pass 8aXFlM --data-dir /home/yunohost.app/nextcloud/data
43843 DEBUG Nextcloud is not installed - only a limited number of commands are available
53218 DEBUG Nextcloud was successfully installed
53227 DEBUG + exec_occ app:disable updatenotification
53228 DEBUG + cd /var/www/nextcloud
53229 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi app:disable updatenotification
53229 DEBUG + local USER=nextcloud
53229 DEBUG + shift 1
53229 DEBUG ++ whoami
53230 DEBUG + [[ nextcloud = root ]]
53230 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi app:disable updatenotification
53428 DEBUG updatenotification disabled
53437 DEBUG + exec_occ app:enable user_ldap
53437 DEBUG + cd /var/www/nextcloud
53438 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi app:enable user_ldap
53438 DEBUG + local USER=nextcloud
53438 DEBUG + shift 1
53438 DEBUG ++ whoami
53439 DEBUG + [[ nextcloud = root ]]
53439 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi app:enable user_ldap
53821 DEBUG user_ldap enabled
53830 DEBUG + exec_occ ldap:create-empty-config
53830 DEBUG + cd /var/www/nextcloud
53830 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi ldap:create-empty-config
53831 DEBUG + local USER=nextcloud
53831 DEBUG + shift 1
53831 DEBUG ++ whoami
53832 DEBUG + [[ nextcloud = root ]]
53832 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi ldap:create-empty-config
54013 DEBUG Created new configuration with configID s01
54022 DEBUG + nc_conf=/var/www/nextcloud/config_install.json
54023 DEBUG + cp ../conf/config_install.json /var/www/nextcloud/config_install.json
54024 DEBUG + ynh_replace_string '#DOMAIN#' domaine1.tld /var/www/nextcloud/config_install.json
54024 DEBUG + local delimit=@
54024 DEBUG + local match_string=#DOMAIN#
54024 DEBUG + local replace_string=domaine1.tld
54024 DEBUG + local workfile=/var/www/nextcloud/config_install.json
54024 DEBUG + match_string='#DOMAIN#'
54024 DEBUG + replace_string=domaine1.tld
54025 DEBUG + sudo sed --in-place s@#DOMAIN#@domaine1.tld@g /var/www/nextcloud/config_install.json
54042 DEBUG + ynh_replace_string '#DATADIR#' /home/yunohost.app/nextcloud/data /var/www/nextcloud/config_install.json
54042 DEBUG + local delimit=@
54042 DEBUG + local match_string=#DATADIR#
54042 DEBUG + local replace_string=/home/yunohost.app/nextcloud/data
54042 DEBUG + local workfile=/var/www/nextcloud/config_install.json
54042 DEBUG + match_string='#DATADIR#'
54043 DEBUG + replace_string=/home/yunohost.app/nextcloud/data
54043 DEBUG + sudo sed --in-place s@#DATADIR#@/home/yunohost.app/nextcloud/data@g /var/www/nextcloud/config_install.json
54062 DEBUG + exec_occ config:import /var/www/nextcloud/config_install.json
54063 DEBUG + cd /var/www/nextcloud
54063 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi config:import /var/www/nextcloud/config_install.json
54063 DEBUG + local USER=nextcloud
54063 DEBUG + shift 1
54064 DEBUG ++ whoami
54065 DEBUG + [[ nextcloud = root ]]
54066 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi config:import /var/www/nextcloud/config_install.json
54227 DEBUG Config successfully imported from: /var/www/nextcloud/config_install.json
54236 DEBUG + rm -f /var/www/nextcloud/config_install.json
54237 DEBUG + nc_conf=/var/www/nextcloud/config_install.json
54237 DEBUG + cp ../conf/config.json /var/www/nextcloud/config_install.json
54239 DEBUG + exec_occ config:import /var/www/nextcloud/config_install.json
54239 DEBUG + cd /var/www/nextcloud
54239 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi config:import /var/www/nextcloud/config_install.json
54239 DEBUG + local USER=nextcloud
54240 DEBUG + shift 1
54240 DEBUG ++ whoami
54241 DEBUG + [[ nextcloud = root ]]
54241 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi config:import /var/www/nextcloud/config_install.json
54554 DEBUG Config successfully imported from: /var/www/nextcloud/config_install.json
54563 DEBUG + rm -f /var/www/nextcloud/config_install.json
54564 DEBUG + exec_occ ldap:test-config ''\'''\'''
54564 DEBUG + cd /var/www/nextcloud
54565 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi ldap:test-config ''\'''\'''
54565 DEBUG + local USER=nextcloud
54565 DEBUG + shift 1
54565 DEBUG ++ whoami
54566 DEBUG + [[ nextcloud = root ]]
54566 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi ldap:test-config ''\'''\'''
54732 DEBUG Invalid configID
54741 DEBUG + '[' 0 -eq 1 ']'
54741 DEBUG + exec_occ config:system:get logout_url
54742 DEBUG + cd /var/www/nextcloud
54742 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi config:system:get logout_url
54742 DEBUG + local USER=nextcloud
54742 DEBUG + shift 1
54742 DEBUG ++ whoami
54743 DEBUG + [[ nextcloud = root ]]
54744 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi config:system:get logout_url
54922 DEBUG + echo '
54923 DEBUG //-YunoHost-
54923 DEBUG // set logout_url according to main domain
54923 DEBUG $main_domain = exec('\''cat /etc/yunohost/current_host'\'');
54923 DEBUG $CONFIG['\''logout_url'\''] = '\''https://'\''.$main_domain.'\''/yunohost/sso/?action=logout'\'';
54923 DEBUG //-YunoHost-
54923 DEBUG '
54924 DEBUG + ynh_mysql_connect_as nextcloud y96WLKTvobh3uemNHg9qxLzC nextcloud
54924 DEBUG + mysql -u nextcloud --password=y96WLKTvobh3uemNHg9qxLzC -B nextcloud
54943 DEBUG + exec_occ user:delete admin
54943 DEBUG + cd /var/www/nextcloud
54944 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi user:delete admin
54944 DEBUG + local USER=nextcloud
54944 DEBUG + shift 1
54944 DEBUG ++ whoami
54946 DEBUG + [[ nextcloud = root ]]
54948 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi user:delete admin
55921 DEBUG The specified user was deleted
55932 DEBUG + ynh_store_file_checksum /var/www/nextcloud/config/config.php
55932 DEBUG + local checksum_setting_name=checksum__var_www_nextcloud_config_config.php
55932 DEBUG ++ sudo md5sum /var/www/nextcloud/config/config.php
55932 DEBUG ++ cut '-d ' -f1
55949 DEBUG + ynh_app_setting_set nextcloud checksum__var_www_nextcloud_config_config.php ff445dcba0f68fcbf9d59adbba73e2f2
55949 DEBUG + sudo yunohost app setting nextcloud checksum__var_www_nextcloud_config_config.php --value=ff445dcba0f68fcbf9d59adbba73e2f2 --quiet
56155 DEBUG + cron_path=/etc/cron.d/nextcloud
56155 DEBUG + cp -a ../conf/nextcloud.cron /etc/cron.d/nextcloud
56157 DEBUG + chown root: /etc/cron.d/nextcloud
56158 DEBUG + chmod 644 /etc/cron.d/nextcloud
56159 DEBUG + ynh_replace_string '#USER#' nextcloud /etc/cron.d/nextcloud
56159 DEBUG + local delimit=@
56159 DEBUG + local match_string=#USER#
56160 DEBUG + local replace_string=nextcloud
56160 DEBUG + local workfile=/etc/cron.d/nextcloud
56160 DEBUG + match_string='#USER#'
56160 DEBUG + replace_string=nextcloud
56160 DEBUG + sudo sed --in-place s@#USER#@nextcloud@g /etc/cron.d/nextcloud
56177 DEBUG + ynh_replace_string '#DESTDIR#' /var/www/nextcloud /etc/cron.d/nextcloud
56178 DEBUG + local delimit=@
56178 DEBUG + local match_string=#DESTDIR#
56178 DEBUG + local replace_string=/var/www/nextcloud
56178 DEBUG + local workfile=/etc/cron.d/nextcloud
56178 DEBUG + match_string='#DESTDIR#'
56179 DEBUG + replace_string=/var/www/nextcloud
56179 DEBUG + sudo sed --in-place s@#DESTDIR#@/var/www/nextcloud@g /etc/cron.d/nextcloud
56195 DEBUG + exec_occ background:cron
56196 DEBUG + cd /var/www/nextcloud
56196 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi background:cron
56196 DEBUG + local USER=nextcloud
56197 DEBUG + shift 1
56197 DEBUG ++ whoami
56197 DEBUG + [[ nextcloud = root ]]
56197 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi background:cron
56383 DEBUG Set mode for background jobs to 'cron'
56393 DEBUG + ynh_replace_string '#GROUP#' nextcloud ../hooks/post_user_create
56393 DEBUG + local delimit=@
56393 DEBUG + local match_string=#GROUP#
56393 DEBUG + local replace_string=nextcloud
56393 DEBUG + local workfile=../hooks/post_user_create
56394 DEBUG + match_string='#GROUP#'
56394 DEBUG + replace_string=nextcloud
56394 DEBUG + sudo sed --in-place s@#GROUP#@nextcloud@g ../hooks/post_user_create
56412 DEBUG + ynh_multimedia_build_main_dir
56412 DEBUG + local ynh_media_release=v1.0
56413 DEBUG + local checksum=4852c8607db820ad51f348da0dcf0c88
56413 DEBUG + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/v1.0.tar.gz
57397 WARNING 2018-06-27 22:25:03 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.0 [15907/15907] -> "v1.0.tar.gz" [1]
57397 DEBUG + echo '4852c8607db820ad51f348da0dcf0c88 v1.0.tar.gz'
57398 DEBUG + md5sum -c --status
57398 DEBUG + mkdir yunohost.multimedia-master
57399 DEBUG + tar -xf v1.0.tar.gz -C yunohost.multimedia-master --strip-components 1
57403 DEBUG + ./yunohost.multimedia-master/script/ynh_media_build.sh
58026 WARNING ln: impossible de créer le lien symbolique '/home/andre/Multimedia': Aucun fichier ou dossier de ce type
58047 WARNING chown: utilisateur incorrect: « andre »
60288 DEBUG hook: /etc/yunohost/hooks.d/post_user_create/50-ynh_media
60500 DEBUG hook: /etc/yunohost/hooks.d/post_user_delete/50-ynh_media
60557 DEBUG + exec_occ app:enable files_external
60558 DEBUG + cd /var/www/nextcloud
60558 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi app:enable files_external
60558 DEBUG + local USER=nextcloud
60558 DEBUG + shift 1
60558 DEBUG ++ whoami
60559 DEBUG + [[ nextcloud = root ]]
60559 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi app:enable files_external
61016 DEBUG files_external enabled
61025 DEBUG + create_external_storage '/home/yunohost.multimedia/$user' Multimedia
61025 DEBUG + local 'datadir=/home/yunohost.multimedia/$user'
61026 DEBUG + local mount_name=Multimedia
61026 DEBUG ++ exec_occ files_external:create --output=json Multimedia local null::null -c 'datadir=/home/yunohost.multimedia/$user'
61027 DEBUG ++ cd /var/www/nextcloud
61027 DEBUG ++ exec_as nextcloud php occ --no-interaction --no-ansi files_external:create --output=json Multimedia local null::null -c 'datadir=/home/yunohost.multimedia/$user'
61027 DEBUG ++ local USER=nextcloud
61027 DEBUG ++ shift 1
61028 DEBUG +++ whoami
61029 DEBUG ++ [[ nextcloud = root ]]
61030 DEBUG ++ sudo -u nextcloud php occ --no-interaction --no-ansi files_external:create --output=json Multimedia local null::null -c 'datadir=/home/yunohost.multimedia/$user'
61254 DEBUG + local mount_id=1
61254 DEBUG + [[ 1 =~ ^[0-9]+$ ]]
61255 DEBUG + exec_occ files_external:option 1 enable_sharing true
61255 DEBUG + cd /var/www/nextcloud
61255 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi files_external:option 1 enable_sharing true
61255 DEBUG + local USER=nextcloud
61255 DEBUG + shift 1
61255 DEBUG ++ whoami
61257 DEBUG + [[ nextcloud = root ]]
61257 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi files_external:option 1 enable_sharing true
61479 DEBUG + create_external_storage /home/yunohost.multimedia/share 'Shared multimedia'
61479 DEBUG + local datadir=/home/yunohost.multimedia/share
61479 DEBUG + local 'mount_name=Shared multimedia'
61480 DEBUG ++ exec_occ files_external:create --output=json 'Shared multimedia' local null::null -c datadir=/home/yunohost.multimedia/share
61480 DEBUG ++ cd /var/www/nextcloud
61480 DEBUG ++ exec_as nextcloud php occ --no-interaction --no-ansi files_external:create --output=json 'Shared multimedia' local null::null -c datadir=/home/yunohost.multimedia/share
61481 DEBUG ++ local USER=nextcloud
61481 DEBUG ++ shift 1
61481 DEBUG +++ whoami
61483 DEBUG ++ [[ nextcloud = root ]]
61483 DEBUG ++ sudo -u nextcloud php occ --no-interaction --no-ansi files_external:create --output=json 'Shared multimedia' local null::null -c datadir=/home/yunohost.multimedia/share
62119 DEBUG + local mount_id=2
62120 DEBUG + [[ 2 =~ ^[0-9]+$ ]]
62120 DEBUG + exec_occ files_external:option 2 enable_sharing true
62120 DEBUG + cd /var/www/nextcloud
62121 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi files_external:option 2 enable_sharing true
62121 DEBUG + local USER=nextcloud
62121 DEBUG + shift 1
62121 DEBUG ++ whoami
62122 DEBUG + [[ nextcloud = root ]]
62122 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi files_external:option 2 enable_sharing true
62334 DEBUG + ynh_multimedia_addaccess nextcloud
62334 DEBUG + local user_name=nextcloud
62334 DEBUG + groupadd -f multimedia
62335 DEBUG + usermod -a -G multimedia nextcloud
62401 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
62540 DEBUG + xargs -0 chmod 0644
62541 DEBUG + find /var/www/nextcloud/ -type f -print0
62713 DEBUG + find /var/www/nextcloud/ -type d -print0
62713 DEBUG + xargs -0 chmod 0755
62794 DEBUG + find /home/yunohost.app/nextcloud/data/ -type f -print0
62794 DEBUG + xargs -0 chmod 0640
62859 DEBUG + find /home/yunohost.app/nextcloud/data/ -type d -print0
62859 DEBUG + xargs -0 chmod 0750
62877 DEBUG + chmod 640 /var/www/nextcloud/config/config.php
62878 DEBUG + chmod 755 /home/yunohost.app
62879 DEBUG + ynh_use_logrotate /home/yunohost.app/nextcloud/data/nextcloud.log
62879 DEBUG + local 'customtee=tee -a'
62879 DEBUG + '[' 1 -gt 0 ']'
62879 DEBUG + '[' /home/yunohost.app/nextcloud/data/nextcloud.log == --non-append ']'
62879 DEBUG + '[' 1 -gt 1 ']'
62879 DEBUG + '[' 1 -gt 0 ']'
62880 DEBUG ++ echo log
62880 DEBUG + '[' log == log ']'
62880 DEBUG + local logfile=/home/yunohost.app/nextcloud/data/nextcloud.log
62880 DEBUG + cat
62882 DEBUG ++ dirname /home/yunohost.app/nextcloud/data/nextcloud.log
62882 DEBUG + sudo mkdir -p /home/yunohost.app/nextcloud/data
62902 DEBUG + cat nextcloud-logrotate
62902 DEBUG + sudo tee -a /etc/logrotate.d/nextcloud
62917 DEBUG + ynh_app_setting_set nextcloud unprotected_uris /
62917 DEBUG + sudo yunohost app setting nextcloud unprotected_uris --value=/ --quiet
63113 DEBUG ++ sed 's/[\.\-]/\%&/g'
63115 DEBUG + ynh_app_setting_set nextcloud skipped_regex 'domaine1%.space/%.well%-known/.*'
63115 DEBUG + sudo yunohost app setting nextcloud skipped_regex '--value=domaine1%.space/%.well%-known/.*' --quiet
63312 DEBUG + systemctl reload nginx
63350 DEBUG + ynh_exit_properly
63350 DEBUG + local exit_code=0
63350 DEBUG + '[' 0 -eq 0 ']'
63350 DEBUG + exit 0
63532 SUCCESS La configuration de SSOwat a été générée
63533 SUCCESS Installation terminée
63533 DEBUG system hook folder not found for action 'post_app_install' in /usr/share/yunohost/hooks/
63533 DEBUG custom hook folder not found for action 'post_app_install' in /etc/yunohost/hooks.d/
63533 DEBUG action [6404.1] executed in 63.371s
63533 DEBUG lock has been released

Once Nextcloud reinstalled, my nextcloud client restarted the synchronization for few seconds, and came back to the same error


I tried to add the “buffer-size=65535” to my /etc/php/7.0/fpm/conf.d/20-nextcloud.ini and then realized than my root partition was mounted read-only
 :-(:stuck_out_tongue_winking_eye:

So I rebooted, ran the required ‘fsck’ command, fixed all the disk errors, and then rebooted again.

It seems to be fixed, even if I’m still having huge IO disk delay.

However, it appears that my issue was certainly not a yunohost issue

Shame on me.

Thank you for your help, and I’ll keep you posted.
:pen:

2 Likes