Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.4):
The issue you are facing:
I’ve installed NextCloud several times using a step by step document I wrote and everything always worked perfectly. But this time I’m facing an issue I’ve never had before. The first time I try to navigate through my files or even when I log into my Nextcloud and see the “Suggested files” widget, the loading image shows and the page never actually loads. When I check my system, I have nearly all my RAM taken by a process in the /tmp folder called appimage_[random numbers and letters]. After trying and reinstalling several times, I realized that the problem was the preview generation. If I don’t explicitely set enable_previews to false, the problem occurs. That’s on a fresh install with no extensions and the default files. If I set enable_previews to false, all is good. But if I don’t set it at all or leave it set to true then this happens.
I then tried installing the Preview Generator app and used the command to generate all the previews “occ preview:generate-all” but that never ends either. The command starts but never ends. But there are no PHP errors and litterally nothing in my nextcloud.log file. So it just sort of loads, takes up all the memory which blocks the app and that all.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install Nextcloud
The output of your Nextcloud log in Admin > Logging:
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'instanceid' => ** REMOVED **, 'passwordsalt' => ** REMOVED **, 'secret' => ** REMOVED **, 'trusted_domains' => array ( 0 => ** REMOVED **, ), 'datadirectory' => ** REMOVED **, 'dbtype' => 'mysql', 'version' => '22.214.171.124', 'overwrite.cli.url' => ** REMOVED **, 'dbname' => ** REMOVED **, 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => ** REMOVED **, 'mysql.utf8mb4' => true, 'dbuser' => ** REMOVED **, 'dbpassword' => ** REMOVED **, 'installed' => true, 'default_phone_region' => 'CA', 'filelocking.enabled' => true, 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '127.0.0.1', 'port' => 6379, ), 'allow_local_remote_servers' => true, 'enable_previews' => true, 'ffmpeg' => '/usr/bin/ffmpeg', 'preview_libreoffice_path' => '/usr/bin/libreoffice', 'enabledPreviewProviders' => array ( 'OC\Preview\PNG', 'OC\Preview\HEIC', 'OC\Preview\GIF', 'OC\Preview\TIFF', 'OC\Preview\BMP', 'OC\Preview\XBitmap', 'OC\Preview\MP3', 'OC\Preview\TXT', 'OC\Preview\MarkDown', 'OC\Preview\Krita', 'OC\Preview\MSOffice2003', 'OC\Preview\MSOffice2007', 'OC\Preview\MSOfficeDoc', 'OC\Preview\PDF', 'OC\Preview\SVG', 'OC\Preview\Movie', 'OC\Preview\Font', 'OC\Preview\MKV', 'OC\Preview\MP4', 'OC\Preview\AVI', 'OC\Preview\Photoshop', 'OC\Preview\CSV', 'OC\Preview\OpenDocument', 'OC\Preview\Image', ), 'htaccess.RewriteBase' => '/', );
Can anyone help me or does anyone have the same issue? I could just disable the previews I know but I want them enabled and NC has been built for it to work so there must be a way.