"Fixed": ExifTool fails after upgrading to 28

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 28.0.2
Operating system and version (eg, Ubuntu 20.04): FreeBSD 13.2 jail on TrueNAS Core
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.58 (FreeBSD)
PHP version (eg, 7.4): PHP 8.2.15

The issue you are facing:
After update to 28, Admin > Memories say “exiftool failed test: failed to run exiftool: /tmp//exiftool-ocp51imgw9ge-12.70-3873b8d7 -ver.”

Manually running su -m www -c "perl /usr/local/www/nextcloud/apps/memories/bin-ext/exiftool/exiftool /tmp//exiftool-ocp51imgw9ge-12.70-3873b8d7 -ver" gives a proper output

12.70
ExifTool Version Number         : 12.70
File Name                       : exiftool-ocp51imgw9ge-12.70-3873b8d7
Directory                       : /tmp
File Size                       : 319 kB
File Modification Date/Time     : 2024:02:22 15:18:36+01:00
File Access Date/Time           : 2024:02:22 15:34:40+01:00
File Inode Change Date/Time     : 2024:02:22 15:18:36+01:00
File Permissions                : -rwxr-xr-x
File Type                       : perl script
File Type Extension             : pl
MIME Type                       : text/x-perl

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Open Admin > Memories

The output of your Nextcloud log in Admin > Logging:

Error	memories	
Indexing exception: failed to run exiftool: /tmp//exiftool-ocp51imgw9ge-12.70-3873b8d7 -ver
Feb 22, 2024, 4:25:00 PM	
Error	PHP	
proc_open(): Exec failed: No such file or directory at /usr/local/www/nextcloud/apps/memories/lib/Exif.php#429
Feb 22, 2024, 4:25:00 PM	
Error	memories	
Indexing exception: failed to run exiftool: /tmp//exiftool-ocp51imgw9ge-12.70-3873b8d7 -ver
Feb 22, 2024, 4:25:00 PM	
Error	PHP	
proc_open(): Exec failed: No such file or directory at /usr/local/www/nextcloud/apps/memories/lib/Exif.php#429
Feb 22, 2024, 4:25:00 PM

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

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => '',
  ),
  'trusted_proxies' =>
  array (
    0 => '',
  ),
  'forwarded-for-headers' =>
  array (
    0 => 'HTTP_X_FORWARDED_FOR',
  ),
  'datadirectory' => '/mnt/',
  'tempdirectory' => '/tmp/nextcloudtemp',
  'overwrite.cli.url' => '',
  'htacess.RewriteBasei' => '/',
  'dbtype' => 'mysql',
  'version' => '28.0.2.5',
  'default_phone_region' => 'SE',
  'dbname' => '',
  'dbhost' => 'localhost:/tmp/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_from_address' => '',
  'mail_domain' => '',
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'mail_smtpsecure' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'maintenance_window_start' => '1',
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'data-fingerprint' => '',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'memories.vod.path' => '/usr/local/www/nextcloud/apps/memories/bin-ext/go-vod-amd64',
  'memories.vod.ffmpeg' => '/usr/local/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/local/bin/ffprobe',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\HEIC',
    2 => 'OC\\Preview\\TIFF',
  ),
  'memories.gis_type' => 1,
  'memories.exiftool' => '/usr/local/www/nextcloud/apps/memories/bin-ext/exiftool/exiftool',
);

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

[Thu Feb 22 15:16:55.173416 2024] [core:notice] [pid 29551:tid 34378686464] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Thu Feb 22 15:18:08.910325 2024] [mpm_event:notice] [pid 29551:tid 34378686464] AH00491: caught SIGTERM, shutting down
[Thu Feb 22 15:18:08.974002 2024] [ssl:warn] [pid 29597:tid 34378686464] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Feb 22 15:18:08.975485 2024] [mpm_event:notice] [pid 29597:tid 34378686464] AH00489: Apache/2.4.58 (FreeBSD) OpenSSL/1.1.1t-freebsd configured -- resuming normal operations
[Thu Feb 22 15:18:08.975511 2024] [core:notice] [pid 29597:tid 34378686464] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Thu Feb 22 15:43:53.585397 2024] [mpm_event:notice] [pid 29597:tid 34378686464] AH00491: caught SIGTERM, shutting down
[Thu Feb 22 15:43:53.649043 2024] [ssl:warn] [pid 30170:tid 34378686464] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Feb 22 15:43:53.650604 2024] [mpm_event:notice] [pid 30170:tid 34378686464] AH00489: Apache/2.4.58 (FreeBSD) OpenSSL/1.1.1t-freebsd configured -- resuming normal operations
[Thu Feb 22 15:43:53.650628 2024] [core:notice] [pid 30170:tid 34378686464] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

I managed to get it to work by toggling use system perl multiple time in Memories settings, manuallt adding it to config.php and restarting Apache didnt work… I literal have no clue why its working now…