Skip to content

Internal server error 500 at issue image upload

Summary

We cant upload a file to issue or issue comment, on our Omnibus instance.

Steps to reproduce

Try to upload a normal jpg file, by drag-and-drop into text-input or using the "Attach files" link.

I tried this in latest OmniBus version 11.9.6-ce.0.el7 and 11.10.0-ce

Problem does NOT exist:

  • when pasting a screenshot into issue comment from clipboard.
  • on gitlab.com itself (running 11.10.0-ee)

What is the current bug behavior?

Message Internal server error in red below text input.

What is the expected correct behavior?

Image gets attached.

Relevant logs and/or screenshots

image

Note the exiftool: no such file or directory in here:

$ sudo gitlab-ctl tail

==> /var/log/gitlab/gitlab-workhorse/current <==
2019-04-23_12:58:43.41860 time="2019-04-23T14:58:43+02:00" level=info msg="running exiftool to remove any metadata" correlation_id=6NhTNG2wwA8 filename=1.jpg
2019-04-23_12:58:43.41938 time="2019-04-23T14:58:43+02:00" level=error msg=error correlation_id=6NhTNG2wwA8 error="handleFileUploads: extract files from multipart: failed to start EXIF metadata cleaner: start [exiftool -all= --IPTC:all --XMP-iptcExt:all -tagsFromFile @ -ResolutionUnit -XResolution -YResolution -YCbCrSubSampling -YCbCrPositioning -BitsPerSample -ImageHeight -ImageWidth -ImageSize -Copyright -CopyrightNotice -Orientation -]: fork/exec /opt/gitlab/embedded/bin/exiftool: no such file or directory" method=POST uri=/foo/bar/uploads
2019-04-23_12:58:43.41941 gitlab.local 127.0.0.1:0 - - [2019/04/23:14:58:43 +0200] "POST /foo/bar/uploads HTTP/1.1" 500 22 "https://gitlab.local/foo/bar/issues/429" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0" 0.112

==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.0.153 - - [23/Apr/2019:14:58:43 +0200] "POST /foo/bar/uploads HTTP/2.0" 500 22 "https://gitlab.local/foo/bar/issues/429" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0"

(ips and paths are anonymized)

A path exists. On a hunch also tested perl path, dont know if ok/relevant.

$ head /opt/gitlab/embedded/bin/exiftool
#!/usr/bin/perl -w
#------------------------------------------------------------------------------
# File:         exiftool
#
# Description:  Read/write meta information
#
# Revisions:    Nov. 12/03 - P. Harvey Created
#               (See html/history.html for revision history)
#
# References:   ATV - Alexander Vonk, private communication

$ head /usr/bin/perl
head: cannot open ‘/usr/bin/perl’ for reading: No such file or directory

$ perl
-bash: perl: command not found

Results of GitLab environment info

Expand for output related to GitLab environment info Tested with these two OmniBus versions: - gitlab-ce.x86_64 0:11.9.6-ce.0.el7 - gitlab-ce.x86_64 0:11.10.0-ce.0.el7 (currently latest stable)
Edited by Barry Staes