Cannot connect to server via IOs app/browser on Wifi

Hi,

I have had a NextCloud server running for the past few months and loved it.

I recently tried to install Plex and Subsonic on the same machine and this is where the problems began (perhaps this was not a great move to begin with). I now cannot access my server anymore through the IOS app when on Wifi (4G works fine). I have since then removed Plex and Subsonic, but the issues still remain.

On the browser on my PC (on wifi) it works fine still and also if I am not on wifi on my phone.

I am not too technical, but suspecting the message below may be the issue. I tried to google a solution, but as I have a Snap install the solution don’t work for me.

  • Sep 18 10:04:24 hockettserver nextcloud.apache[6991]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message

Hope someone could help me out here, it would be much appreciated as I would rather not reinstall the whole thing.

Thanks,

Setup:
Nextcloud 19.0.3
snap 2.46.1
snapd 2.46.1
series 16
ubuntu 20.04
kernel 5.4.0-47-generic

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

{
    "system": {
        "apps_paths": [
            {
                "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
                "url": "\/extra-apps",
                "writable": true
            }
        ],
        "supportedDatabases": [
            "mysql"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "192.168.1.253",
            "hockettserver.mooo.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "19.0.3.1",
        "overwrite.cli.url": "http:\/\/localhost",
        "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***",
        "maintenance": false,
        "loglevel": 2
    },



The output of your Apache/nginx/system log in /var/log/____:

nap.nextcloud.apache.service - Service for snap application nextcloud.apache
     Loaded: loaded (/etc/systemd/system/snap.nextcloud.apache.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-09-18 10:04:21 BST; 35min ago
   Main PID: 6360 (run-httpd)
      Tasks: 111 (limit: 9342)
     Memory: 18.9M
     CGroup: /system.slice/snap.nextcloud.apache.service
             ├─6360 /bin/sh /snap/nextcloud/23171/bin/run-httpd -k start -DFOREGROUND
             ├─6949 /bin/sh /snap/nextcloud/23171/bin/httpd-wrapper -k start -DFOREGROUND
             ├─6991 httpd -d /snap/nextcloud/23171 -DEnableHTTPS -DEnableHSTS -k start -DFOREGROUND
             ├─6992 httpd -d /snap/nextcloud/23171 -DEnableHTTPS -DEnableHSTS -k start -DFOREGROUND
             ├─6993 httpd -d /snap/nextcloud/23171 -DEnableHTTPS -DEnableHSTS -k start -DFOREGROUND
             ├─6994 httpd -d /snap/nextcloud/23171 -DEnableHTTPS -DEnableHSTS -k start -DFOREGROUND
             └─7154 httpd -d /snap/nextcloud/23171 -DEnableHTTPS -DEnableHSTS -k start -DFOREGROUND

Sep 18 10:04:22 hockettserver nextcloud.apache[6634]: System config value redis => port set to integer 0
Sep 18 10:04:23 hockettserver nextcloud.apache[6694]: System config value memcache.locking set to string \OC\Memcache\Redis
Sep 18 10:04:23 hockettserver nextcloud.apache[6752]: System config value memcache.local set to string \OC\Memcache\Redis
Sep 18 10:04:23 hockettserver nextcloud.apache[6811]: No such app enabled: updatenotification
Sep 18 10:04:23 hockettserver nextcloud.apache[6403]: Making sure nextcloud is fully upgraded...
Sep 18 10:04:24 hockettserver nextcloud.apache[6932]: Nextcloud is already latest version
Sep 18 10:04:24 hockettserver nextcloud.apache[6360]: All set! Running httpd...
Sep 18 10:04:24 hockettserver nextcloud.apache[6949]: Certificates have been activated: using HTTPS only
Sep 18 10:04:24 hockettserver nextcloud.apache[6949]: Certificates look to be in order: enabling HSTS
Sep 18 10:04:24 hockettserver nextcloud.apache[6991]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

I managed to resolve this issue myself. I think Subsonic changed my router settings, so I did a factory reset on my router which solved the issue.