Server not found at this address

[Internal Server Error Support]

[/details]

Nextcloud version: 24.0.9.2
Operating system and version: Raspbian GNU/Linux 11 (bullseye):
Apache or nginx version: Apache,
PHP version: 8.1`

The issue you are facing:
I am fairly new to all of this, but through videos and forums, I had a functional instance on my local network for a few months. After getting comfortable with that, I got cocky and tried to make my instance accessible from outside my network with a domain - I then tried to access Nextcloud server remotely and it didn’t work - I also tried to access it via the localhost and I would get an “Internal Server Error” on the screen with it telling me to check the error log. After searching the forums and trying different stuff to fix this, I am now getting a 404 error and I can’t get anything else to come up. Any kind of help anyone can give to get my Nextcloud back online without having to erase anything (I have photos, videos and files stored in the file system that I don’t want to risk losing) would be greatly appreciated. Thank you so much!

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

Steps to replicate it:

  1. Try to make your Nextcloud server accessible from outside your network
  2. Fail.
  3. Lose access to your server altogether.

The output of your Nextcloud log in Admin > Logging:

Can't Access

The output of config.php file in /var/www/nextcloud/config/:

<?php
$CONFIG = array (
  'instanceid' => 'oc8tte51dn1b',
  'passwordsalt' => '',
  'secret' => ',
  'trusted_domains' =>"MYDOMAIN"
  array (
    0 => '192.168.1.87',
    1 => '192.168.1.38',
  ),3 => '104.58.185.103',
  'datadirectory' => '/var/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.9.2',
  'overwrite.cli.url' => '',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => '',
  'installed' => true,
  'mail_domain' => ' '
  'mail_from_address' => 'Admin',
  'mail_smtpmode' => 'smtp',

The output of Apache system log in /var/log/apache2/:

[Wed Jun 28 06:32:08.627889 2023] [mpm_prefork:notice] [pid 493] AH00163: Apache/2.4.56 (Raspbian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Jun 28 06:32:08.628122 2023] [core:notice] [pid 493] AH00094: Command line: '/usr/sbin/apache2'


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{“reqId”:“x3G894Rc6Qdk8pYpHrAE”,“level”:3,“time”:“2023-06-03T01:17:41+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/”,“me>{“reqId”:“x3G894Rc6Qdk8pYpHrAE”,“level”:3,“time”:“2023-06-03T01:17:41+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/“,“me>{“reqId”:“x3G894Rc6Qdk8pYpHrAE”,“level”:3,“time”:“2023-06-03T01:17:41+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–”,“app”:“base”,“method”:“GET”,“url”:“/nextcloud/”,“m>{“reqId”:“JGtnHBQDxS3Qy9xLxQu8”,“level”:3,“time”:“2023-06-03T01:17:42+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/index>{“reqId”:“JGtnHBQDxS3Qy9xLxQu8”,“level”:3,“time”:“2023-06-03T01:17:42+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/index>{“reqId”:“JGtnHBQDxS3Qy9xLxQu8”,“level”:3,“time”:“2023-06-03T01:17:42+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“base”,“method”:“GET”,“url”:”/nextcloud/inde>{“reqId”:“K1vibfJCwJ0Fhg8ZkOUo”,“level”:3,“time”:“2023-06-03T01:18:09+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/statu>{“reqId”:“K1vibfJCwJ0Fhg8ZkOUo”,“level”:3,“time”:“2023-06-03T01:18:09+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/statu>{“reqId”:“K1vibfJCwJ0Fhg8ZkOUo”,“level”:3,“time”:“2023-06-03T01:18:09+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“base”,“method”:“GET”,“url”:“/nextcloud/stat>{“reqId”:“meAVVXXoslYNGF1x95qi”,“level”:3,“time”:“2023-06-03T01:18:56+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/“,“me>{“reqId”:“meAVVXXoslYNGF1x95qi”,“level”:3,“time”:“2023-06-03T01:18:56+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/”,“me>{“reqId”:“meAVVXXoslYNGF1x95qi”,“level”:3,“time”:“2023-06-03T01:18:56+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“base”,“method”:“GET”,“url”:”/nextcloud/“,“m>{“reqId”:“i6UZGExMH7ni2FmnkOtM”,“level”:3,“time”:“2023-06-03T01:18:57+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/index>{“reqId”:“i6UZGExMH7ni2FmnkOtM”,“level”:3,“time”:“2023-06-03T01:18:57+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/index>{“reqId”:“i6UZGExMH7ni2FmnkOtM”,“level”:3,“time”:“2023-06-03T01:18:57+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“base”,“method”:“GET”,“url”:“/nextcloud/inde>{“reqId”:“ejQZ19OyjqB4z6rZ55uD”,“level”:3,“time”:“2023-06-03T01:20:11+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/statu>{“reqId”:“ejQZ19OyjqB4z6rZ55uD”,“level”:3,“time”:“2023-06-03T01:20:11+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/statu>{“reqId”:“ejQZ19OyjqB4z6rZ55uD”,“level”:3,“time”:“2023-06-03T01:20:11+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“base”,“method”:“GET”,“url”:”/nextcloud/stat>{“reqId”:“OS8p4DGFMfWaVVjk5oXZ”,“level”:3,“time”:“2023-06-03T01:23:17+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/statu>{“reqId”:“OS8p4DGFMfWaVVjk5oXZ”,“level”:3,“time”:“2023-06-03T01:23:17+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/statu>{“reqId”:“OS8p4DGFMfWaVVjk5oXZ”,“level”:3,“time”:“2023-06-03T01:23:17+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“base”,“method”:“GET”,“url”:“/nextcloud/stat>{“reqId”:“0PpOHlusPr0XFIpYaPdY”,“level”:3,“time”:“2023-06-03T01:27:25+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/statu>{“reqId”:“0PpOHlusPr0XFIpYaPdY”,“level”:3,“time”:“2023-06-03T01:27:25+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/statu>{“reqId”:“0PpOHlusPr0XFIpYaPdY”,“level”:3,“time”:“2023-06-03T01:27:25+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“base”,“method”:“GET”,“url”:”/nextcloud/stat>{“reqId”:“ydSQtZ17WgDkJzabaVLZ”,“level”:3,“time”:“2023-06-03T01:32:35+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/statu>{“reqId”:“ydSQtZ17WgDkJzabaVLZ”,“level”:3,“time”:“2023-06-03T01:32:35+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/statu>{“reqId”:“ydSQtZ17WgDkJzabaVLZ”,“level”:3,“time”:“2023-06-03T01:32:35+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“base”,“method”:“GET”,“url”:“/nextcloud/stat>{“reqId”:“YkgyQyrzggSGWBLy38wu”,“level”:3,“time”:“2023-06-03T01:32:43+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/index>{“reqId”:“YkgyQyrzggSGWBLy38wu”,“level”:3,“time”:“2023-06-03T01:32:43+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/index>{“reqId”:“YkgyQyrzggSGWBLy38wu”,“level”:3,“time”:“2023-06-03T01:32:43+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“base”,“method”:“GET”,“url”:”/nextcloud/inde>{“reqId”:“2s7AXBL8pQOyEX7iWSF5”,“level”:3,“time”:“2023-06-03T01:33:59+00:00”,“remoteAddr”:“192.168.1.95”,“user”:“–”,“app”:“PHP”,“method”:“GET”,“url”:“/nextcloud/index>{“reqId”:“2s7AXBL8pQOyEX7iWSF5”,“level”:3,“time”:“2023-06-03T01:33:59+00:00”,“remoteAddr”:“192.168.1.95”,“user”:”–“,“app”:“PHP”,“method”:“GET”,“url”:”/nextcloud/index>

hi @Thuswinburn welcome to the forum :handshake:

let’s start with an obvious issue. You config file is broken. Likely you tried to add the domain but did it wrong:

it must be formated like this:

  'trusted_domains' =>
  array (
    0 => '192.168.1.87',
    1 => '192.168.1.38',
    3 => '104.58.185.103',
    4 => "MYDOMAIN"
  ),

additionally your logs are truncated after 167 characters. please upload full log if required.