Skip to content

Nextcloud 14: Uncaught error, Call to a member function getLogger() on null when attempting installation #11298

@brokkr

Description

@brokkr

Steps to reproduce

  1. Download and extract Nextcloud 14.0 to docker volume. Chown to www-data:www-data.
  2. Mount volume to both nginx and php-fpm containers and run containers in dedicated subnet (alongside mariadb container) with nginx's port 80 published to host.
  3. Enter host in browser

Expected behaviour

Nextcloud's install page should show up

Actual behaviour

The following text is displayed in browser:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the webserver log.
<br />
<b>Fatal error</b>:  Uncaught Error: Call to a member function getLogger() on null in /nextcloud/index.php:72
Stack trace:
#0 {main}
  thrown in <b>/nextcloud/index.php</b> on line <b>72</b><br />"

After enabling

php_flag[display_errors] = on

in www.conf, php-fpm output changed from simply reporting http status 500 to reporting 500 AND including the same (but no more) output as above.

The expected behaviour is seen using volumes with older releases:

  • 12.0.11 (albeit with php-fpm 7.1)
  • 13.0.6

A standard phpinfo.php status page inserted into the Nextcloud 14 folder web root is accessible and does display. The status page confirms that all required (https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html) modules are installed.

The behaviour of 14.0 does not change with older php-fpm releases (7.1, 7.0)

Server configuration

Operating system:

  • Docker host: Ubuntu 18.04
  • php-fpm container: Debian stretch
  • nginx container: Debian stretch
  • mariadb container: Ubuntu 18.04

Web server: Nginx 1.14 ('nginx:stable')

Database: Mariadb 10.3.9

PHP version: 7.2.10

Nextcloud version: 14.0

Updated from an older Nextcloud/ownCloud or fresh install: No

Where did you install Nextcloud from: https://download.nextcloud.com/server/releases/nextcloud-14.0.0.tar.bz2

Signing status:
Not available

List of activated apps:

App list
Nextcloud is not installed - only a limited number of commands are available

                                      
  Command "app:list" is not defined.  
                                      
  Did you mean this?                  
      app:check-code                  

Nextcloud configuration:

Config report
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
The current PHP memory limit is below the recommended value of 512MB.
Nextcloud is not installed - only a limited number of commands are available

                                                            
  There are no commands defined in the "config" namespace.  

Are you using external storage, if yes which one: No

Are you using encryption: On NC files? No. I have a proxy setup on docker host that encrypts traffic to the host and proxy_pass'es request to the container. The results are the same when accessing the container through the proxy (https) and when accessing it directly (http) on the published host port.

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/67.0.3396.99 Chrome/67.0.3396.99 Safari/537.36"

Operating system: Ubuntu 17.10

Logs

Web server error log

Web server error log
nc_phpfpm     | [18-Sep-2018 23:42:31] WARNING: [pool www] child 8 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to a member function getLogger() on null in /nextcloud/index.php:72"
nc_nginx      | 2018/09/18 23:42:31 [error] 7#7: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function getLogger() on null in /nextcloud/index.php:72
nc_nginx      | Stack trace:
nc_nginx      | #0 {main}
nc_nginx      |   thrown in /nextcloud/index.php on line 72" while reading upstream, client: 10.0.6.1, server: xxxxx, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://10.0.6.4:9000", host: "xxxxx", referrer: "https://xxxxx/"
nc_phpfpm     | [18-Sep-2018 23:42:31] WARNING: [pool www] child 8 said into stderr: "Stack trace:"
nc_phpfpm     | [18-Sep-2018 23:42:31] WARNING: [pool www] child 8 said into stderr: "#0 {main}"
nc_phpfpm     | 10.0.6.2 -  18/Sep/2018:23:42:31 +0200 "GET " 500
nc_phpfpm     | [18-Sep-2018 23:42:31] WARNING: [pool www] child 8 said into stderr: "  thrown in /nextcloud/index.php on line 72"
nc_nginx      | 10.0.6.1 - - [18/Sep/2018:23:42:31 +0200] "GET /index.php HTTP/1.1" 500 508 "https://xxxxx/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/67.0.3396.99 Chrome/67.0.3396.99 Safari/537.36"

Nextcloud log (data/nextcloud.log)

Nextcloud log
n/a

Browser log

Browser log
Request-URL: https://xxxxx/index.php
Request-metode: GET
Fjern-adresse: xx.xx.xx.xx:443
Statuskode:
500
Version:
	
Response-headers (225 B)	
Connection	
keep-alive
Content-Type	
text/plain; charset=utf-8
Date	
Wed, 19 Sep 2018 11:11:17 GMT
Server	
nginx/1.14.0 (Ubuntu)
Transfer-Encoding	
chunked
X-Powered-By	
PHP/7.2.10

Request-headers (414 B)	
Accept	
text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8
Accept-Encoding	
gzip, deflate, br
Accept-Language	
da,en-US;q=0.7,en;q=0.3
Cache-Control	
max-age=0
Connection	
keep-alive
DNT	
1
Host	
xxxxx
Referer	
https://xxxxx/
Upgrade-Insecure-Requests	
1
User-Agent	
Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/62.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds infostaleTicket or PR with no recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions