Can't access nextcloudpi client after update

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Output from ncp-report:
<–! Paste this in GitHub report -->

NextCloudPi diagnostics

NextCloudPi version  v1.29.8
NextCloudPi image    NextCloudPi_docker_07-20-19
distribution         Debian GNU/Linux 10 \n \l
automount            no
USB devices          none
datadir              /data/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      23G/59G
rootfs usage         23G/59G
swapfile             /var/swap
dbdir                /data/database
Nextcloud check      ok
Nextcloud version    19.0.2.2
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       no
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               6:53

Nextcloud configuration

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "11": "113.172.53.102",
            "1": "172.17.0.2",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "3": "p14host.hopto.org",
            "2": "p14host.hopto.org",
            "6": "192.168.1.31",
            "20": "192.168.1.222"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "17.0.4.2",
        "overwrite.cli.url": "https:\/\/p14host.hopto.org\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/var\/www\/nextcloud\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "htaccess.RewriteBase": "\/",
        "theme": "",
        "loglevel": 2
    }
}

HTTPd logs

[Fri Sep 04 07:01:45.027250 2020] [authz_host:error] [pid 96:tid 2765472800] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /js/ncp.js failed, reason: unable to get the remote host name
[Fri Sep 04 07:01:45.028872 2020] [authz_host:error] [pid 96:tid 2799043616] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name
[Fri Sep 04 07:01:45.054633 2020] [authz_host:error] [pid 96:tid 2757080096] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Sep 04 07:01:45.097326 2020] [authz_host:error] [pid 96:tid 2773865504] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 04 07:01:45.310237 2020] [authz_host:error] [pid 96:tid 2765472800] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Fri Sep 04 07:01:53.435612 2020] [authz_host:error] [pid 96:tid 2773865504] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 04 07:01:54.492510 2020] [authz_host:error] [pid 96:tid 2773865504] [client 192.168.1.7:62665] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 04 07:19:01.615093 2020] [proxy_fcgi:error] [pid 96:tid 2757080096] [client 192.168.1.7:62665] AH01067: Failed to read FastCGI header
[Fri Sep 04 07:19:01.615304 2020] [proxy_fcgi:error] [pid 96:tid 2757080096] (104)Connection reset by peer: [client 192.168.1.7:62665] AH01075: Error dispatching request to :4443:
[Fri Sep 04 07:19:06.707418 2020] [authz_host:error] [pid 97:tid 2757080096] [client 192.168.1.7:62916] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Sep 04 07:35:19.960356 2020] [authz_core:error] [pid 97:tid 2705306656] [client 102.165.30.13:49533] AH01630: client denied by server configuration: /var/www/ncp-web/
[Fri Sep 04 07:38:53.005290 2020] [authz_host:error] [pid 97:tid 2765472800] [client 192.168.1.7:63072] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Fri Sep 04 07:41:49.030406 2020] [authz_host:error] [pid 97:tid 2765472800] [client 115.74.36.173:63989] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 04 07:41:49.030569 2020] [authz_core:error] [pid 97:tid 2765472800] [client 115.74.36.173:63989] AH01630: client denied by server configuration: /var/www/ncp-web/
[Fri Sep 04 07:41:49.086219 2020] [authz_host:error] [pid 97:tid 2765472800] [client 115.74.36.173:63989] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unable to get the remote host name
[Fri Sep 04 07:41:49.086324 2020] [authz_core:error] [pid 97:tid 2765472800] [client 115.74.36.173:63989] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.ico
[Fri Sep 04 10:49:39.550846 2020] [authz_host:error] [pid 97:tid 2757080096] [client 115.74.36.173:33098] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 04 10:49:39.550973 2020] [authz_core:error] [pid 97:tid 2757080096] [client 115.74.36.173:33098] AH01630: client denied by server configuration: /var/www/ncp-web/
[Fri Sep 04 10:49:39.606769 2020] [authz_host:error] [pid 97:tid 2757080096] [client 115.74.36.173:33098] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unable to get the remote host name
[Fri Sep 04 10:49:39.606854 2020] [authz_core:error] [pid 97:tid 2757080096] [client 115.74.36.173:33098] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.ico

Database logs

2020-09-04  6:55:08 0 [Note] InnoDB: Uses event mutexes
2020-09-04  6:55:08 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-04  6:55:08 0 [Note] InnoDB: Number of pools: 1
2020-09-04  6:55:08 0 [Note] InnoDB: Using generic crc32 instructions
2020-09-04  6:55:08 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2020-09-04  6:55:08 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-04  6:55:08 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-09-04  6:55:08 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-04  6:55:08 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-04  6:55:08 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-04  6:55:08 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-09-04  6:55:08 0 [Note] InnoDB: 10.3.23 started; log sequence number 1259767339; transaction id 5855678
2020-09-04  6:55:08 0 [Note] InnoDB: Loading buffer pool(s) from /data/database/ib_buffer_pool
2020-09-04  6:55:08 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-04  6:55:08 0 [Note] Server socket created on IP: '127.0.0.1'.
2020-09-04  6:55:09 0 [Note] Reading of all Master_info entries succeeded
2020-09-04  6:55:09 0 [Note] Added new Master_info '' to hash table
2020-09-04  6:55:09 0 [Note] mysqld: ready for connections.
Version: '10.3.23-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2020-09-04  6:55:11 0 [Note] InnoDB: Buffer pool(s) load completed at 200904  6:55:11


The issue you are facing:
After updating nextcloud, I’ve got this error:
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 server log.

I renewed No-ip hostname after updating.
Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

Log from letsencrypt.log:
Traceback (most recent call last):
File “/usr/bin/letsencrypt”, line 11, in
load_entry_point(‘certbot==0.31.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1365, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1250, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 121, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 410, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 353, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 389, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 168, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 239, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. p14host.hopto.org (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://p14host.hopto.org/.well-known/acme-challenge/ao7iUe0QSU7tF-R0-bmiGaqXaYUQQ7zhIkAdQ710FBs: Error getting validation data
2020-09-04 08:47:58,142:DEBUG:certbot.main:certbot version: 0.31.0
2020-09-04 08:47:58,143:DEBUG:certbot.main:Arguments: []
2020-09-04 08:47:58,146:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2020-09-04 08:47:58,167:DEBUG:certbot.log:Root logging level set at 20
2020-09-04 08:47:58,168:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log