No login fields when accessing over domain/web. Locally it works fine

Nextcloud version: 21.0.4.1
Operating system and version: Linux 5.10.52-v7l+ armv7l (Raspbian)
Apache or nginx version: Apache 2.4.38
PHP version: 7.3
NextcloudPI Version: v1.38.5

The issue you are facing:

When i try to access Nextcloud via Domain name / externally, there are no Login fields shown. Only (sometimes) the Nextcloud-Logo and the blue Background and Footer Line.
Looks like the site is not served the JavaScript.
After some time on the blue screen with logo Browser-Console shows some errors:
OC / OCA not defined
jQuery is not defined

When I Access ist per local IP, everything works fine.

I tried different Browsers, different devices → all the same
I played around with the overwrite.cli.url parameter
I played around with the original Certificates and Let’sEncryptCertificates
I checked all logs i could find
I checked, that port 80 and 443 are open and forwarded in my router
(Trying to put my PI to the web via Hotspot on my cellphone resulted in major problems)
Nextcloud Android App is not working properly as well (stuck in connect- screen with )
I tried to switch from strato (*.de-Domain) to no-ip-domain

I tried to find similar posts in different forums, but they didn’t get me further:
e.g.

which is similar, but got no helping answer (didn’t want to reopen the old post)

I’m a bit desperate :wink:

Thanks a lot for helping!

Is this the first time you’ve seen this error? Y

Steps to replicate it:

go to [Domain] → showing blue page with logo and Footer no login fields

ncp-report:

NextCloudPi diagnostics
NextCloudPi version  v1.38.5
NextCloudPi image    NextCloudPi_12-20-19
distribution         Raspbian GNU/Linux 10 \n \l
automount            yes
USB devices          sda
datadir              /media/SSD-RaspiCloudE4/ncdata
data in SD           no
data filesystem      ext2/ext3
data disk usage      9,0G/135G
rootfs usage         7,3G/13G
swapfile             none
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    21.0.4.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
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               1:04

Nextcloud configuration
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "11": "2a01:c23:8410:7800:9135:53f8:bd5a:ae3a",
            "1": "192.168.1.100",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "20": "[DOMAIN].de",
            "21": "www.[DOMAIN].de",
            "12": "[DOMAIN].de",
            "13": "www.[DOMAIN].de",
            "22": "[DOMAIN].ddns.net",
            "3": "[DOMAIN].ddns.net"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "21.0.4.1",
        "overwrite.cli.url": "https:\/\/www.[DOMAIN].de",
        "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***"
        },
        "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,
        "tempdirectory": "\/media\/SSD-RaspiCloudE4\/ncdata\/tmp",
        "logfile": "\/media\/SSD-RaspiCloudE4\/ncdata\/nextcloud.log",
        "loglevel": 0,
        "log_type": "file",
        "theme": "",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "default_phone_region": "DE",
        "hide_login_form": false,
        "debug": true
    }
}
HTTPd logs
[Fri Aug 20 12:07:11.342675 2021] [authz_host:error] [pid 3395] [client 192.168.1.139:57172] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:11.342675 2021] [authz_host:error] [pid 3447] [client 192.168.1.139:65000] AH01753: access check of 'localhost' to /img/toggle.svg failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:11.347274 2021] [authz_host:error] [pid 3447] [client 192.168.1.139:65000] AH01753: access check of 'localhost' to /img/ncp-logo.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/
[Fri Aug 20 12:07:11.390298 2021] [authz_host:error] [pid 3390] [client 192.168.1.139:57175] AH01753: access check of 'localhost' to /img/poweroff.svg failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:11.390310 2021] [authz_host:error] [pid 3400] [client 192.168.1.139:57174] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/
[Fri Aug 20 12:07:11.445384 2021] [authz_host:error] [pid 3447] [client 192.168.1.139:65000] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.445480 2021] [authz_host:error] [pid 3452] [client 192.168.1.139:57173] AH01753: access check of 'localhost' to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.445759 2021] [authz_host:error] [pid 3395] [client 192.168.1.139:57172] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.446044 2021] [authz_host:error] [pid 3390] [client 192.168.1.139:57175] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.446372 2021] [authz_host:error] [pid 3400] [client 192.168.1.139:57174] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.447063 2021] [authz_host:error] [pid 3452] [client 192.168.1.139:57173] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.447599 2021] [authz_host:error] [pid 3395] [client 192.168.1.139:57172] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.452993 2021] [authz_host:error] [pid 3472] [client 192.168.1.139:57176] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.100:4443/css/ncp.css
[Fri Aug 20 12:07:11.486341 2021] [authz_host:error] [pid 3447] [client 192.168.1.139:65000] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:11.556237 2021] [authz_host:error] [pid 3452] [client 192.168.1.139:57173] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:11.784047 2021] [authz_host:error] [pid 3395] [client 192.168.1.139:57172] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:19.696507 2021] [authz_host:error] [pid 3452] [client 192.168.1.139:57173] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Aug 20 12:07:19.719465 2021] [authz_host:error] [pid 3452] [client 192.168.1.139:57173] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
find: '/etc/letsencrypt/live/': No such file or directory
Sorry, user www-data is not allowed to execute '/usr/bin/php /var/www/nextcloud/occ maintenance:mode' as www-data on nextcloudpi.
Database logs
2021-08-20 11:23:05 0 [Note] InnoDB: Uses event mutexes
2021-08-20 11:23:05 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-20 11:23:05 0 [Note] InnoDB: Number of pools: 1
2021-08-20 11:23:05 0 [Note] InnoDB: Using generic crc32 instructions
2021-08-20 11:23:05 0 [Note] InnoDB: Initializing buffer pool, total size = 896M, instances = 1, chunk size = 128M
2021-08-20 11:23:05 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-20 11:23:05 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-08-20 11:23:05 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-08-20 11:23:05 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-08-20 11:23:05 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-08-20 11:23:05 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-08-20 11:23:05 0 [Note] InnoDB: 10.3.29 started; log sequence number 2422086479; transaction id 13497769
2021-08-20 11:23:05 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-08-20 11:23:05 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-08-20 11:23:05 0 [Note] Server socket created on IP: '127.0.0.1'.
2021-08-20 11:23:05 0 [Note] Reading of all Master_info entries succeeded
2021-08-20 11:23:05 0 [Note] Added new Master_info '' to hash table
2021-08-20 11:23:05 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.29-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Raspbian 10
2021-08-20 11:23:06 0 [Note] InnoDB: Buffer pool(s) load completed at 210820 11:23:06
Nextcloud logs
{"reqId":"YR@DDalcjiizM-qlhboEJQAAAAw","level":0,"time":"2021-08-20T10:25:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DDalcjiizM-qlhboEJQAAAAw","level":0,"time":"2021-08-20T10:25:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DK7tj5AxenPG-s8uQbgAAAAQ","level":0,"time":"2021-08-20T10:25:47+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"contacts","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DK7tj5AxenPG-s8uQbgAAAAQ","level":0,"time":"2021-08-20T10:25:47+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DK7tj5AxenPG-s8uQbgAAAAQ","level":0,"time":"2021-08-20T10:25:47+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DSbOjl6VksEltm3Ln4AAAAAM","level":0,"time":"2021-08-20T10:26:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"contacts","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DSbOjl6VksEltm3Ln4AAAAAM","level":0,"time":"2021-08-20T10:26:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DSbOjl6VksEltm3Ln4AAAAAM","level":0,"time":"2021-08-20T10:26:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DZygPOBiKUT@5FK5XGAAAAAk","level":0,"time":"2021-08-20T10:26:47+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"contacts","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DZygPOBiKUT@5FK5XGAAAAAk","level":0,"time":"2021-08-20T10:26:47+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DZygPOBiKUT@5FK5XGAAAAAk","level":0,"time":"2021-08-20T10:26:47+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DhUAQiHrirfKnHHqLugAAAAA","level":0,"time":"2021-08-20T10:27:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"contacts","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DhUAQiHrirfKnHHqLugAAAAA","level":0,"time":"2021-08-20T10:27:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"YR@DhUAQiHrirfKnHHqLugAAAAA","level":0,"time":"2021-08-20T10:27:17+00:00","remoteAddr":"192.168.1.139","user":"ncp-admin","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"21.0.4.1"}
{"reqId":"rzv8cC8njfkC4HCGnIvg","level":0,"time":"2021-08-20T10:27:18+00:00","remoteAddr":"","user":"--","app":"contacts","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"}
{"reqId":"rzv8cC8njfkC4HCGnIvg","level":0,"time":"2021-08-20T10:27:18+00:00","remoteAddr":"","user":"--","app":"files_external","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"}
{"reqId":"rzv8cC8njfkC4HCGnIvg","level":0,"time":"2021-08-20T10:27:18+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"}
{"reqId":"WAQl7fQJ8oTGNPAqezqh","level":0,"time":"2021-08-20T10:27:26+00:00","remoteAddr":"","user":"--","app":"contacts","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"}
{"reqId":"WAQl7fQJ8oTGNPAqezqh","level":0,"time":"2021-08-20T10:27:26+00:00","remoteAddr":"","user":"--","app":"files_external","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"}
{"reqId":"WAQl7fQJ8oTGNPAqezqh","level":0,"time":"2021-08-20T10:27:26+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"}

NCP 1.38.5 is still stable at NC 20.0.12
Why and how did you upgrade to NC 21.0.4
Also noticed your OS is 32 bits (armv7), not sure if that can be origin of your issue tho…

This looks like a permissions error on the document root.

Try

sudo stat /var/www/nextcloud/occ

the fourth line should look something like this:

Access: (0751/-rwxr-x--x)  Uid: (   33/www-data)   Gid: (   33/www-data)

if it is not owned by www-data, you can fix it with

sudo chown www-data:www-data /var/www/nextcloud/occ

From what I know, the whole nextcloud folder should be owned by www-data, so perhaps check that it is and run the same chown command with the -R recursive flag if it isn’t.

Ther’s some autz_host error as well which could point to the autz_host module not loading properly. I would investigate the permissions error first tho.

I tried through all the recent stable versions.
Since, nothing really helped, I decided to give the NC 21.0.4 a try and updated it through the nextcloud admin page. Everything works fine (locally :wink: ). But it didn’t fix my “login-over-web” problem…

I based my installation on the nextcloudpi-image from ownyourbits. To my knowledge, currently there is is no arm64-based version of this image. (Using Raspi 4B 4Gb with an SSD installed)

I came across some threads, that sayed permissions could be a problem.
Therefore i played around with the permissins and ownership recently (forgot to mention it in the original post). Problem is, i don’t really know the correct permissions of these folders…

stat of /var/www/nextcloud/occ gives me he readout (german version :wink: )

Zugriff: (0755/-rwxr-xr-x)  Uid: (   33/www-data)   Gid: (   33/www-data)

to me, that looks ok

stat of /var/www/nextcloud folder gives me

Zugriff: (0750/drwxr-x---)  Uid: (   33/www-data)   Gid: (   33/www-data)

(no permisssions for other users → could this be a problem??)

Incorrect, afaik, there is no 32 bits image for the rpi anymore, you can still try the curl installer on a clean Rasp/Deb 10 tho.

The line abovewas from my own install which works fine under user permissions 751.

try

sudo chown -R www-data:www-data /var/www/nextcloud
sudo chmod 751 /var/www/nextcloud

Then restart apache, clear your browser cache and see if it solved anything.


Otherwise, try googling authz_host:error reason: unable to get the remote host name

You could also try again on a arm64 curl install on top of preferred 64bit os q:

So i’ve come some steps further. (here’s what I did, for other readers)

I had a new look into the logs and found another interesting error:
AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do.

looking into the access.log, I saw that i only got http1.0 communication
I fixed it with changeing some modules for apache regarding to this page:
https://http2.co/how-to-fix-ah10034-the-mpm-module-prefork-c-is-not-supported-by-mod_http2/

Afterwards i had issues with the basic certificate, which gave me the error
AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate!

After renewing my Let’s encrypt-certificate this error was gone as well…

Soooo… Website is accessible from the outside now including app. (Using 4G on my cellphone)
Problem is i cannot access via Domain locally (via IP owrks). I’m currently playing around with dnsmasq (https://blogging.dragon.org.uk/howto-setup-dnsmasq-as-dns-dhcp/), but I already figured out, that my Router cannot do NAT loopback.

Maybe if i have some spare time, i will try to install nextcloud on an “clean” arm64 image. But since i’m running other stuff on the pi as well, it will be some work.

Thanks for the help!

1 Like

Cool. I got lost in the mpm prefork / http2 / fpm wormhole a while back too, I’m glad you made it out alive!

One way to make sure you connect straight to the server when your on the same local network is to map the public domain to the local IP in a hostfile or using a pihole to do this for all devices on the network. But this is outside of the scope for this thread q:

i’m afraid this marks the solution of your first question. great you found out yourself and shared your experiences with the forum.

for the other part and all next question (e.g)

pls re-check the forum or open an new thread