404 Not Found Nginx Please Help

Hi everyone,

really hoping you can help me get back into my data as unfortunatly i encrytped my data within nextcloud and now i cant access any of it :frowning:

so ive moved house and have a different set of network paramiters at the new place, ive got most things working but nextcloud im really struggling with, im not running starlink so i cant push to web anymore but im trying to access my nextcloud instance internally wihin my network, i keep getting 404 not found nginx,

so my server was off for about a year, i believe i was running nexcloud v20, when my server booted up it updated the docker image and then told me it couldnt start nextcloud as it has skipped a major update. i managed to roll back the docker image and got nextcloud to start but now this 404 issue.

the docker log keeps pinging me this " Could not open input file: /app/www/public/cron.php "

a copy of my config.php file as it stands now

$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => '',
    1 => 'cloud.1a*************t.com',
    2 => 'localhost',
  'trusted_proxies' => 
  array (
    0 => 'swag',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
  'overwrite.cli.url' => '',
  'overwritehost' => '',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '*********',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'updater.release.channel' => 'stable',
  'encryption.legacy_format_support' => true,
  'encryption.key_storage_migrated' => false,
  'app_install_overwrite' => 
  array (
    0 => 'end_to_end_encryption',
    1 => 'printer',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => 'mic********k',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'ft*****es*******@gmail.com',
  'mail_smtppassword' => '*********',
  'mail_smtpauthtype' => 'LOGIN',

i would really appreciate some help to get this working again so i can extract my data and rebuild my home server again, as right now i feel like ive lost my data :frowning:

thanks in advance, FYI im happy to pay for a remote support session as i am at a total loss right now

Many Thanks


Just one thing, before you change anything, try to make a full backup of your current setup, so can come back all the time to this state of the setup.

First step: You data folder is at /data, so for each user, you see the file and folder structure but everything is encrypted? Did you use client-side encryption or the server-side encryption (for server-side encryption, under /data/username/ there is not only a files folder, but also files-keys, file-encryption or something like that with the encrypted decryption keys.)?

If you just want to access your previously encrypted data, you may want to use the encryption-recovery-tools process which does so independently of your server installation:

Of course for any encryption recovery you’ll need:

  • your original config.php
  • your raw data folder contents

And, if it was E2EE (not server-side) you’ll also need your original client-entered mnemonic.