Nextcloud version (eg, 20.0.5): Latest Stable
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.2 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache version 2.4.52
PHP version (eg, 7.4): 8.1
The issue you are facing:
Nextcloud has been working fine for months. I wanted to be able to see HEIC previews so added the following to my config.php file
‘enabledPreviewProviders’ =>
array (
‘OC\Preview\Image’,
),
The nextcloud webpage came up with an internal server error.
I removed the above from the config.php file, and still got the internal server error.
I tried restarting Apache, I even tried rebooting
Same error
I cannot see anything in the apache error logs.
When I tried to use occ to repair the config, I get:
Could not open input file: occ
I am not sure where to go now.
Is this the first time you’ve seen this error? (Y/N):Yes
The output of your Nextcloud log in Admin > Logging:
unable to open nextcloud instance
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => ‘xxxxxxx’,
'passwordsalt' => ‘xxxxxxxx’,
'secret' => ‘xxx’xxxxxx,
'trusted_domains' =>
array (
0 => ‘xxxx’,
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '25.0.3.2',
'overwrite.cli.url' => 'http://xxxxx’,
'dbname' => ‘xxxx’,
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => ‘xxxxx’,
'dbpassword' => ‘xxxxxxx’,
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'info',
'mail_domain' => 'jxxxxx’,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => ‘xxxxxx’,
'mail_smtpport' => '465',
'mail_smtpname' => ‘xxxxxx’,
'mail_smtppassword' => ‘xxxxxx’,
'default_phone_region' => 'CA',
'overwriteprotocol' => 'https',
'maintenance' => false,
'memories.exiftool' => '/var/www/html/nextcloud/apps/memories/exiftool-bin/exiftool-amd64-glibc',
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => 'false',
);```
The output of your Apache/nginx/system log in `/var/log/____`:
[Sat Feb 18 12:10:52.287051 2023] [core:notice] [pid 1147:tid 140334170593152] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Feb 18 12:10:52.286681 2023] [mpm_event:notice] [pid 1147:tid 140334170593152] AH00489: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Sat Feb 18 12:07:45.073704 2023] [mpm_event:notice] [pid 5376:tid 140668522080128] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Feb 18 11:16:34.446739 2023] [core:notice] [pid 5376:tid 140668522080128] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Feb 18 11:16:34.446548 2023] [mpm_event:notice] [pid 5376:tid 140668522080128] AH00489: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Sat Feb 18 11:16:34.381438 2023] [mpm_event:notice] [pid 1132:tid 140001593902976] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Feb 18 11:07:10.544539 2023] [core:notice] [pid 1132:tid 140001593902976] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Feb 18 11:07:10.542388 2023] [mpm_event:notice] [pid 1132:tid 140001593902976] AH00489: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Sat Feb 18 11:03:54.091614 2023] [mpm_event:notice] [pid 1824088:tid 140684019177344] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Feb 18 11:03:10.678737 2023] [core:notice] [pid 1824088:tid 140684019177344] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Feb 18 11:03:10.678570 2023] [mpm_event:notice] [pid 1824088:tid 140684019177344] AH00489: Apache/2.4.52 (Ubuntu) configured – resuming normal operations
[Sat Feb 18 11:03:10.572367 2023] [mpm_event:notice] [pid 16810:tid 139779393095552] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Feb 18 00:00:01.959665 2023] [core:notice] [pid 16810:tid 139779393095552] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Feb 18 00:00:01.959635 2023] [mpm_event:notice] [pid 16810:tid 139779393095552] AH00489: Apache/2.4.52 (Ubuntu) configured – resuming normal operations