FS#77692 - [gitlab] Unable to upload jpeg assets because exiftool not found in path
Attached to Project:
Community Packages
Opened by Caleb Maclennan (alerque) - Wednesday, 01 March 2023, 15:26 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:05 GMT
Opened by Caleb Maclennan (alerque) - Wednesday, 01 March 2023, 15:26 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:05 GMT
|
Details
I see exiftool is installed as a dependency, but the path to
the PERL module is not in the $PATH used by
gitlab-workhorse. As a result I am not able to upload JPG
images as comment and wiki attachments. Other file types
work fine.
I finally tracked this down in `journalctl -u gitlab-workhorse`: Mar 01 16:15:06 <host> gitlab-workhorse[731]: time="2023-03-01T16:15:06+01:00" level=error correlation_id=01GTEVVJKBZ83JPWY4ZHVV77YY error="handleFileUploads: extract files from multipart: start [exiftool -all= --IPTC:all --XMP-iptcExt:all -tagsFromFile @ -ResolutionUnit -XResolution -YResolution -YCbCrSubSampling -YCbCrPositioning -BitsPerSample -ImageHeight -ImageWidth -ImageSize -Copyright -CopyrightNotice -Orientation -]: exec: \"exiftool\": executable file not found in $PATH" method=POST uri=/api/v4/projects/<n>/wikis/attachments Mar 01 16:15:06 <host> gitlab-workhorse[731]: <mydomain> <myip> - - [2023/03/01:16:15:06 +0100] "POST /api/v4/projects/<n>/wikis/attachments HTTP/1.1" 500 22 "https://<mydomain>/<group>/<project>/-/wikis/home/edit" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0" 0 |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:05 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/gitlab/issues/3
Saturday, 25 November 2023, 20:05 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/gitlab/issues/3
sudo ln -s $(which exiftool) /usr/bin
The Perl vendor path it is in is in my user's PATH, but not the path for the gitlab user apparently.
[1] https://www.freedesktop.org/software/systemd/man/systemd.environment-generator.html
[2] /usr/lib/systemd/system-environment-generators/10-arch