Open MartiniMoe opened 1 month ago
[PHP] Error: proc_open(): posix_spawn() failed: No such file or directory at /nix/store/dwsf1q72543bcv6qfswz47ax08b90fzj-nextcloud-app-memories-7.3.1/lib/Exif.php#435
This seems like some program is missing in $PATH.
[PHP] Error: proc_open(): posix_spawn() failed: No such file or directory at /nix/store/dwsf1q72543bcv6qfswz47ax08b90fzj-nextcloud-app-memories-7.3.1/lib/Exif.php#435
This seems like some program is missing in $PATH.
Thank you! I'm sorry, I am kind of clueless here. Do you have any idea what is missing, how to add it or how to narrow the problem down somehow?
The mentioned line in Exif.php
is:
self::$staticProc = proc_open(array_merge(self::getExiftool(), ['-stay_open', 'true', '-@', '-']), [
So maybe it has something to do with Exiftool? I tried adding
systemd.services."phpfpm-nextcloud" = {
path = [ pkgs.exiftool ];
};
to my config, but the error persists. I'm not even sure if that is the right service and right way to configure the path?
So the code here is... kinda interesting: https://github.com/pulsejet/memories/blob/13b81d02955195a6dde6603eee4d48abd0ed8698/lib/Service/BinExt.php#L120C32-L120C58
If memories.exiftool_no_local
is true
, it does perl ...
which may be one explanation (no perl in $PATH of the service).
it should work if memories.exiftool_no_local
is false
and memories.exiftool
points to lib.getExe pkgs.exiftool
. Both values can be set via services.nextcloud.settings
.
Can you report if that solves your problem, please?
But, what a mess. We should probably patch out the entire hackery in there and make it use pkgs.exiftool
.
Thank you! I now have added the following to my config:
services.nextcloud = {
settings = {
memories = {
exiftool_no_local = false;
exiftool = "${lib.getExe pkgs.exiftool}";
};
};
};
But the posix_spawn()
error still appears in the logs :(
Describe the bug
In Nextclouds Log Viewer I can see multiple errors related to the Memories App:
In Memories Admin Page I can see that the automatic indexing does not seem to work properly: (The App is already installed on my instance for weeks)
Steps To Reproduce
I installed Nextcloud and activated the Memories App like this:
Expected behavior
I expect the automatic indexing to work properly and the Memories App to not fill my error logs.
Notify maintainers
@Ma27 @onny @teto
Metadata
Add a :+1: reaction to issues you find important.