Nextcloud 19-21 fail to install…php dumps core and removing owncloud.db does nothing

PHP 7.4.19 (cli) (built: May  8 2021 07:20:42) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.19, Copyright (c), by Zend Technologies

nginx version: nginx/1.20.0

FreeBSD 11.4-STABLE i386

sqlite3 -version 3.35.5 2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98faalt1

something seems broken in how Nextcloud operates…the install process exits with a damaged database and a php.core file. This applies to v 19 through 21, either as zip files or installed through FreeBSD’s ports system.

Any ideas how I can debug this?

I guess log-files would help, as mentioned in the in the template when you create a forum post. Also the detailed error message that you get during install might help

Well, it seems to work, more or less, this morning. Perhaps I will never know why it didn’t. I left log lines and other specifics in other related posts: they all seem to complain about upstream timeouts. Hard to make out what’s wrong if other services running the same toolchain (nginx/php-fpm) work without issue.

2021/05/09 07:25:29 [error] 40129#101287: *1404 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.0.10, server: [REDACTED], request: "MOVE /remote.php/dav/uploads/admin/4194023056/.file HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock", host: "[REDACTED]"
2021/05/09 07:25:41 [error] 40129#101287: *1408 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.0.10, server: [REDACTED], request: "MOVE /remote.php/dav/uploads/admin/1738896410/.file HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock", host: "[REDACTED]"

Well, that didn’t last long. It failed to sync using the desktop client and is now casters up. What do I make of this cryptic error message?

If this happens again, please send the technical details below to the server administrator.
[…]
* Request ID: T5f2mLxIVLyCaJXS0xs5

I am the server administrator and I have no idea how to parse or decode that. I also have these entrails to ponder…

2021/05/09 07:56:57 [error] 40129#101287: *2519 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.0.10, server: [REDACTED], request: "MOVE /remote.php/dav/uploads/paul/897809811/.file HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock", host: "[REDACTED]"
2021/05/09 08:01:24 [error] 40129#101287: *2523 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.0.10, server: [REDACTED], request: "MOVE /remote.php/dav/uploads/paul/104475673/.file HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock", host: "[REDACTED]"

I think there is a quota issue mentioned in some of the error messages but with the server unresponsive, I don’t know if I can address it. Apparently the file system filled up. That seems odd as well. But fixable.