Internal Server Error after SD Card Backup

Hi to all,

after doing a backup of my Raspberry Pi SD Card with WIn32DiskImager and reinstalling the SD Card to the PI4 I am not able to access Nextcloud any longer.

I get the following message:
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

nextcloud.log is empty

apache2 log:
[Sun Aug 02 00:00:00.750035 2020] [ssl:warn] [pid 844:tid 3069731344] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 02 00:00:00.751351 2020] [mpm_event:notice] [pid 844:tid 3069731344] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Aug 02 00:00:00.751375 2020] [core:notice] [pid 844:tid 3069731344] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Aug 02 07:50:40.586992 2020] [ssl:warn] [pid 670:tid 3069452816] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 02 07:50:40.619233 2020] [ssl:warn] [pid 844:tid 3069452816] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Aug 02 07:50:40.624881 2020] [mpm_event:notice] [pid 844:tid 3069452816] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Aug 02 07:50:40.625022 2020] [core:notice] [pid 844:tid 3069452816] AH00094: Command line: ‘/usr/sbin/apache2’

MySQOl log:
2020-08-02 11:34:51 0 [Warning] The parameter innodb_file_format is deprecated and has no effect. It may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/
2020-08-02 11:34:51 0 [Note] InnoDB: Using Linux native AIO
2020-08-02 11:34:51 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-08-02 11:34:51 0 [Note] InnoDB: Uses event mutexes
2020-08-02 11:34:51 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-08-02 11:34:51 0 [Note] InnoDB: Number of pools: 1
2020-08-02 11:34:51 0 [Note] InnoDB: Using generic crc32 instructions
2020-08-02 11:34:51 0 [Note] InnoDB: Initializing buffer pool, total size = 768M, instances = 1, chunk size = 128M
2020-08-02 11:34:51 0 [Note] InnoDB: Completed initialization of buffer pool
2020-08-02 11:34:51 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-08-02 11:34:51 0 [ERROR] InnoDB: Missing MLOG_CHECKPOINT at 51586701 between the checkpoint 51586701 and the end 51586560.
2020-08-02 11:34:51 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-08-02 11:34:52 0 [Note] InnoDB: Starting shutdown…
2020-08-02 11:34:53 0 [ERROR] Plugin ‘InnoDB’ init function returned error.
2020-08-02 11:34:53 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2020-08-02 11:34:53 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2020-08-02 11:34:53 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-08-02 11:34:53 0 [ERROR] Aborting

Config.php
<?php
$CONFIG = array (

  • ‘passwordsalt’ => ‘REMOVED’,*
  • ‘secret’ => ‘REMOVED’,*
  • ‘trusted_domains’ => *
  • array (*
  • 0 => ‘localhost’,*
  • 5 => ‘nextcloudpi.local’,*
  • 7 => ‘nextcloudpi’,*
  • 8 => ‘nextcloudpi.lan’,*
  • 11 => ‘REMOVED’,*
  • 1 => ‘192.168.178.39’,*
  • 20 => ‘https://nextcloud.domain.com’,*
  • 12 => ‘nextcloud.domain.com’,*
  • ),*
  • ‘datadirectory’ => ‘/media/myCloudDrive/ncdata’,*
  • ‘dbtype’ => ‘mysql’,*
  • ‘version’ => ‘18.0.3.0’,*
  • ‘overwrite.cli.url’ => ‘https://nextcloud.domain.com/’,*
  • ‘dbname’ => ‘nextcloud’,*
  • ‘dbhost’ => ‘localhost’,*
  • ‘dbport’ => ‘’,*
  • ‘dbtableprefix’ => ‘oc_’,*
  • ‘mysql.utf8mb4’ => true,*
  • ‘dbuser’ => ‘ncadmin’,*
  • ‘dbpassword’ => ‘REMOVED’,*
  • ‘installed’ => true,*
  • ‘instanceid’ => ‘ocrnfg5r4p1o’,*
  • ‘memcache.local’ => ‘\OC\Memcache\Redis’,*
  • ‘memcache.locking’ => ‘\OC\Memcache\Redis’,*
  • ‘redis’ => *
  • array (*
  • ‘host’ => ‘/var/run/redis/redis.sock’,*
  • ‘port’ => 0,*
  • ‘timeout’ => 0.0,*
  • ‘password’ => ‘REMOVED’,*
  • ),*
  • ‘tempdirectory’ => ‘/media/myCloudDrive/ncdata/tmp’,*
  • ‘mail_smtpmode’ => ‘sendmail’,*
  • ‘mail_smtpauthtype’ => ‘LOGIN’,*
  • ‘mail_from_address’ => ‘admin’,*
  • ‘mail_domain’ => ‘ownyourbits.com’,*
  • ‘preview_max_x’ => ‘2048’,*
  • ‘preview_max_y’ => ‘2048’,*
  • ‘jpeg_quality’ => ‘60’,*
  • ‘overwriteprotocol’ => ‘https’,*
  • ‘maintenance’ => false,*
  • ‘logfile’ => ‘/media/myCloudDrive/ncdata/nextcloud.log’,*
  • ‘loglevel’ => ‘2’,*
  • ‘log_type’ => ‘file’,*
    );

Do you have an idea what could be the reason for this and how to fix it?

Cheers,
Christian

I’d try again with the Linux native dd command.

Examples here

Thanks for your response.
I will try the next time.

But how can I fix the issue now?