The requested URL /owncloud/status.php was not found on this server

I’ve run Nextcloud on a home server for years but following a recent upgrade I cannot connect to it with any app or browser.

Nextcloud version (eg, 12.0.2): 11.. I can’t run occ to find more detail, just get
Could not open input file: occ

Operating system and version _Ubuntu 16.04.4 LTS
Apache or Nginx version _Apache 2.4.18
PHP version _7.0.28

The issue you are facing:

Following a recent upgrade on my home server (just a routine apt update, apt upgrade, not a distro version change) I cannot make contact with Nextcloud via any app or browser.

The server used to have a self-signed SSL cert but I replaced that with LetsEncrypt about a month ago, it has worked since then though so that may not be relevant.

ps ux shows nextcloud is running

SSL test site at ssllabs.com returns satisfactory status

The URl and DNS work (https://philthane.ddns.net)

Other server apps on the same machine work eg CherryMusic and rsync

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

I can't get to the Nextcloud page!

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

There are 2 paths to nextcloud. In  ~/snap/nextcloud there are three directories ' 5629' 'common' 'current' all are empty.

In /snap/nextcloud there are four '4959' '5126' '5629' 'current' I assume the numbers refer to earlier versions for rollback? in 'current' the config.php is as follows

?php

$snap_name = getenv('SNAP_NAME');

$CONFIG = array(
/**
 * Use the ``apps_paths`` parameter to set the location of the Apps directory,
 * which should be scanned for available apps, and where user-specific apps
 * should be installed from the Apps store. The ``path`` defines the absolute
 * file system path to the app folder. The key ``url`` defines the HTTP web path
 * to that folder, starting from the Nextcloud web root. The key ``writable``
 * indicates if a web server can write files to that folder.
 */
'apps_paths' => array(
        /**
         * These are the default apps shipped with Nextcloud. They are read-only.
         */
        array(
                'path'=> '/snap/'.$snap_name.'/current/htdocs/apps',
                'url' => '/apps',
                'writable' => false,
        ),

        /**
         * This directory is writable, meant for apps installed by the user.
         */
        array(
                'path'=> '/var/snap/'.$snap_name.'/current/nextcloud/extra-apps',
                'url' => '/extra-apps',
                'writable' => true,
        ),
),

/**
 * Database types that are supported for installation.
 *
 * Available:
 *      - sqlite (SQLite3 - Not in Enterprise Edition)
 *      - mysql (MySQL)

                'writable' => false,
        ),

        /**
         * This directory is writable, meant for apps installed by the user.
         */
        array(
                'path'=> '/var/snap/'.$snap_name.'/current/nextcloud/extra-apps',
                'url' => '/extra-apps',
                'writable' => true,
        ),
),

/**
 * Database types that are supported for installation.
 *
 * Available:
 *      - sqlite (SQLite3 - Not in Enterprise Edition)
 *      - mysql (MySQL)
 *      - pgsql (PostgreSQL)
 *      - oci (Oracle - Enterprise Edition Only)
 */
'supportedDatabases' => array(
        'mysql',
),

'memcache.locking' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
    'host' => getenv('REDIS_SOCKET'),
    'port' => 0,
),
);



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

There isn't a 'system log' output of error.log below

[Thu Apr 05 07:35:06.595083 2018] [mpm_event:notice] [pid 1412:tid 3074434816] AH00489: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Thu Apr 05 07:35:06.595146 2018] [core:notice] [pid 1412:tid 3074434816] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 05 10:29:17.792166 2018] [ssl:error] [pid 22842:tid 3057646400] [client 64.41.200.107:55642] AH02042: rejecting client initiated renegotiation

I found syslog it’s 59363 lines, do you really want all of it?

I think apache/ssl related entries are sufficient, e.g.
journalctl -t apache2
Or the related logs within /var/log/apache2/_

From /var/log/apache2 access log consists of a lot of similar lines containing links and this forum prohibits me from posting more than four links, so here is the first few lines:

192.168.1.1 - - [06/Apr/2018:07:35:22 +0100] “PROPFIND /remote.php/dav/calendars/phil/phil_calendar/ HTTP/1.1” 405 3914 “-” "CalDAV Sync Adapter (Android) https://github.com/ggg$
192.168.1.1 - - [06/Apr/2018:07:35:22 +0100] “PROPFIND /remote.php/dav/calendars/phil/phil_calendar/ HTTP/1.1” 405 806 “-” "CalDAV Sync Adapter (Android) https://github.com/ggga$
46.17.47.102 - - [06/Apr/2018:07:40:33 +0100] “GET / HTTP/1.1” 200 15078 “-” "libwww-perl/6.31"
192.168.1.1 - - [06/Apr/2018:07:57:36 +0100] “PROPFIND /remote.php/dav/calendars/phil/phil_calendar/ HTTP/1.1” 405 3914 “-” "CalDAV Sync Adapter (Android) https://github.com/ggg$

Error log follows:

[Fri Apr 06 07:35:06.276243 2018] [mpm_event:notice] [pid 1412:tid 3074434816] AH00489: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Fri Apr 06 07:35:06.276304 2018] [core:notice] [pid 1412:tid 3074434816] AH00094: Command line: ‘/usr/sbin/apache2’

Beginning to think it’s time to remove apache, certbot/letsencrypt and NC and start again…