From b3fa58937c7d41d54929df1db31eda6f4f48d736 Mon Sep 17 00:00:00 2001 From: Shawn8901 Date: Mon, 30 Oct 2023 22:59:13 +0100 Subject: [PATCH 1/2] docs: Add nixos section to get automatic indexer running When installing nextcloud (and possibly memories also) via nixos modules system, there is some nixos specific extra setup needed, otherwise the automatic indexer is not working. This is kind of a downstream issue, as for FHS distros its common to having perl available at `/usr/bin/perl` (and thus at PATH) but for nixos there is extra work needed. --- docs/troubleshooting.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index d8b243f1..4e8518e0 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -129,3 +129,16 @@ occ config:system:delete memories.vod.ffmpeg occ config:system:delete memories.vod.ffprobe occ maintenance:repair ``` + +### Getting Memories: Indexing exception: failed to run exiftool on NixOS via automatic indexer + +When using the nixos modules system for installation the indexer may fail on execution. In case the error is either `perl not found` or `failed to run exiftool: ...` it might be that the created nextcloud-cron services does not have access to a perl interpreter. + +In that case adding perl to the path of the nextcloud-cron service might solve the issue. +It can be archived by adding the following snippet to the configuration.nix + +```nix +systemd.services.nextcloud-cron = { + path = [pkgs.perl]; +}; +``` From 2241ad4b4d0815cba18f297baea4180dd9b5f015 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 30 Oct 2023 18:18:15 -0700 Subject: [PATCH 2/2] docs: rearrange troubleshooting Signed-off-by: Varun Patil --- docs/troubleshooting.md | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 4e8518e0..c0daaa17 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -72,6 +72,21 @@ app: occ config:system:set memories.exiftool.tmp --value /path/to/temp/dir ``` +## Issues with NixOS + +### Background index fails + +When using the NixOS modules system for installation the indexer may fail on execution. In case the error is either `perl not found` or `failed to run exiftool: ...` it might be that the created `nextcloud-cron` services does not have access to a perl interpreter. + +In that case adding perl to the path of the `nextcloud-cron` service might solve the issue. +It can be archived by adding the following snippet to the `configuration.nix` + +```nix +systemd.services.nextcloud-cron = { + path = [pkgs.perl]; +}; +``` + ## Reverse Geocoding (Places) You need to have a MySQL / MariaDB / Postgres database for reverse geocoding to work. SQLite is not supported. @@ -118,9 +133,9 @@ DROP INDEX IF EXISTS memories_parent_mimetype; The reset will clean up all data associated with Memories. While this is safe and will not delete your files, it can sometimes have unintended side effects, such as some files appearing as duplicates in the mobile apps when you reinstall. Try running `occ memories:index --force` before attempting a reset. -### Moving from x86 to ARM or vice versa +### Instruction set change -In this case you need to reset the paths to the architecture specific binaries. +If you move from x86 to ARM or vice versa, you need to reset the paths to the architecture specific binaries. ```bash occ config:system:delete memories.exiftool @@ -129,16 +144,3 @@ occ config:system:delete memories.vod.ffmpeg occ config:system:delete memories.vod.ffprobe occ maintenance:repair ``` - -### Getting Memories: Indexing exception: failed to run exiftool on NixOS via automatic indexer - -When using the nixos modules system for installation the indexer may fail on execution. In case the error is either `perl not found` or `failed to run exiftool: ...` it might be that the created nextcloud-cron services does not have access to a perl interpreter. - -In that case adding perl to the path of the nextcloud-cron service might solve the issue. -It can be archived by adding the following snippet to the configuration.nix - -```nix -systemd.services.nextcloud-cron = { - path = [pkgs.perl]; -}; -```