Nextcloud crashes after checking files

Nextcloud version: 14.0.4
Operating system and version: Ubuntu 16.04.3 LTS
Apache or nginx version : Apache/2.4.18
PHP version: 7.0.32

The issue you are facing:
After a reinstall of my laptop im trying to sync back all the data in my synced directory.
The Nextcloud software is acting really unstable and becomes “Not Responding” alot.
It managed to download about half on the files but then it crashed. And now it checks all the files (Several hours of checking) and as soon as it should start downloading the files it chrashes…

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

Steps to replicate it:

  1. Reinstall computer
  2. Try to sync back data

The output of your Nextcloud log in Admin > Logging:

|Warning|core|Login failed: 'marin' (Remote IP: '213.65.106.228')|2019-01-02T23:15:30+0100|
|---|---|---|---|
|Info|updater|\OC\Updater::resetLogLevel: Reset log level to Warning(2)|2018-12-29T22:17:36+0100|
|Info|updater|\OC\Updater::maintenanceDisabled: Turned off maintenance mode|2018-12-29T22:17:36+0100|
|Info|updater|\OC\Updater::updateEnd: Update successful|2018-12-29T22:17:36+0100|
|Info|updater|\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check|2018-12-29T22:17:36+0100|
|Info|updater|\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...|2018-12-29T22:17:28+0100|
|Info|updater|\OC\Repair::info: Repair info: No need to repair pending cron jobs.|2018-12-29T22:17:28+0100|
|Info|updater|\OC\Repair::step: Repair step: Repair pending cron jobs|2018-12-29T22:17:28+0100|
|Info|updater|\OC\Repair::step: Repair step: Queue a one-time job to cleanup old backups of the updater|2018-12-29T22:17:28+0100|
|Info|updater|\OC\Repair::step: Repair step: Add preview background cleanup job|2018-12-29T22:17:28+0100|
|Info|updater|\OC\Repair::info: Repair info: JS cache cleared|2018-12-29T22:17:28+0100|
|Info|updater|\OC\Repair::info: Repair info: SCSS cache cleared|2018-12-29T22:17:19+0100|

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

$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => ',
  'trusted_domains' =>
  array (
    0 => '213.65.106.228',
  ),
  'datadirectory' => '/media/Storage',
  'overwrite.cli.url' => 'https://217.212.198.142/nextcloud',
  'dbtype' => 'mysql',
  'version' => '14.0.4.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'user',
  'dbpassword' => 'pass',
  'installed' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'mail_from_address' => 'martin',
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'krelab.se',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',

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

[Wed Jan 02 07:35:05.584492 2019] [ssl:warn] [pid 1878] AH01906: 217.212.198.142:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jan 02 07:35:05.584875 2019] [ssl:error] [pid 1878] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=martin@krelab.se,CN=217.212.198.142,O=Internet Widgits Pty Ltd,L=Raa,ST=Skane,C=SE / issuer: emailAddress=martin@krelab.se,CN=217.212.198.142,O=Internet Widgits Pty Ltd,L=Raa,ST=Skane,C=SE / serial: B5680376D284AD23 / notbefore: Feb  8 10:52:28 2018 GMT / notafter: Feb  8 10:52:28 2019 GMT]
[Wed Jan 02 07:35:05.584893 2019] [ssl:error] [pid 1878] AH02604: Unable to configure certificate 217.212.198.142:443:0 for stapling
[Wed Jan 02 07:35:05.585028 2019] [mpm_prefork:notice] [pid 1878] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Jan 02 07:35:05.585042 2019] [core:notice] [pid 1878] AH00094: Command line: '/usr/sbin/apache2'