ExifTool fails after upgrading to Nextcloud 28

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Crossposting from Nextcloud's discourse if anyone else have the same issue


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
Code:
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**:
Code:
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!):
Code:
<?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/____`:
Code:
[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'
 
Top