I think community bitnami`s file attach has a bug. The attachment file is missing again…
I think the PDF file has no problem.
Here is another pdf file.
http://www.africau.edu/images/default/sample.pdf
Started GET "/redmine/issues/5" for 127.0.0.1 at 2022-03-22 18:12:10 +0900
Processing by IssuesController#show as HTML
Parameters: {"id"=>"5"}
Current user: user (id=1)
Rendering issues/show.html.erb within layouts/base
Rendered issues/_action_menu.html.erb (4.1ms)
Rendered attachments/_links.html.erb (1.3ms)
Rendered issue_relations/_form.html.erb (0.6ms)
Rendered issues/_relations.html.erb (0.9ms)
Rendered issues/_action_menu.html.erb (2.0ms)
Rendered issues/_trackers_description.html.erb (0.2ms)
Rendered issues/_form_custom_fields.html.erb (0.0ms)
Rendered issues/_attributes.html.erb (5.0ms)
Rendered issues/_form.html.erb (11.5ms)
Rendered attachments/_form.html.erb (0.8ms)
Rendered issues/_edit.html.erb (16.9ms)
Rendered issues/_action_menu_edit.html.erb (19.1ms)
Rendered issues/_sidebar.html.erb (1.8ms)
Rendered watchers/_watchers.html.erb (0.9ms)
Rendered issues/show.html.erb within layouts/base (55.4ms)
Completed 200 OK in 96ms (Views: 58.0ms | ActiveRecord: 15.9ms)
Started GET "/redmine/attachments/thumbnail/9" for 127.0.0.1 at 2022-03-22 18:12:10 +0900
Processing by AttachmentsController#thumbnail as HTML
Parameters: {"id"=>"9"}
Current user: user (id=1)
Creating thumbnail failed (pid 368 exit 1):
Command: "C:\Bitnami\redmine-4.2.3-4\imagemagick\bin\convert.exe" "C:/Bitnami/redmine-4.2.3-4/apps/redmine/htdocs/files/2022/03/220322181006_sample.pdf[0]" -thumbnail "100x100>" "png:C:/Bitnami/redmine-4.2.3-4/apps/redmine/htdocs/tmp/thumbnails/8decc8571946d4cd70a024949e033a2a2a54377fe9f1c1b944c20f9ee11a9e51_3028_100.thumb"
Completed 404 Not Found in 66ms (ActiveRecord: 3.2ms)
The file exists.
C:\>dir "C:/Bitnami/redmine-4.2.3-4/apps/redmine/htdocs/files/2022/03/"
Volume in drive C has no label.
Volume Serial Number is 9205-C1AF
Directory of C:\Bitnami\redmine-4.2.3-4\apps\redmine\htdocs\files\2022\03
2022-03-22 PM 06:10 <DIR> .
2022-03-22 PM 06:10 <DIR> ..
2022-03-17 PM 11:08 79,031 220317230824_3e0ac85a599b062fbf1c1a18fa8bc09a.xlsx
2022-03-17 PM 11:08 3,257,986 220317230857_kroki_cheatsheet_20210515_v1.1_EN.pdf
2022-03-17 PM 11:20 35,038 220317232016_AAP8IjI.jpg
2022-03-18 PM 09:54 97,942 220318215452_I-20-sample.pdf
2022-03-20 AM 09:52 6,488 220320095257_darknight.jpg
2022-03-22 PM 06:10 3,028 220322181006_sample.pdf
6 File(s) 3,479,513 bytes
2 Dir(s) 33,057,202,176 bytes free
But “convert.exe” has the same error.
C:\>"C:\Bitnami\redmine-4.2.3-4\imagemagick\bin\convert.exe" "C:/Bitnami/redmine-4.2.3-4/apps/redmine/htdocs/files/2022/03/220322181006_sample.pdf[0]" -thumbnail "100x100>" "png:C:/Bitnami/redmine-4.2.3-4/apps/redmine/htdocs/tmp/thumbnails/8decc8571946d4cd70a024949e033a2a2a54377fe9f1c1b944c20f9ee11a9e51_3028_100.thumb"
convert.exe: UnableToOpenConfigureFile `magic.xml' @ warning/configure.c/GetConfigureOptions/714.
convert.exe: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/714.
convert.exe: FailedToExecuteCommand `"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/Users/NEXTEP/AppData/Local/Temp/magick-5292Oa7ilwFyq2PS%d" "-fC:/Users/NEXTEP/AppData/Local/Temp/magick-5292GO4KgrIk9-3P" "-fC:/Users/NEXTEP/AppData/Local/Temp/magick-5292v4i0ZzhJgB6Q"' (The system cannot find the file specified.) @ error/delegate.c/ExternalDelegateCommand/459.
convert.exe: PDFDelegateFailed `The system cannot find the file specified.' @ error/pdf.c/ReadPDFImage/794.
convert.exe: NoImagesDefined `png:C:/Bitnami/redmine-4.2.3-4/apps/redmine/htdocs/tmp/thumbnails/8decc8571946d4cd70a024949e033a2a2a54377fe9f1c1b944c20f9ee11a9e51_3028_100.thumb' @ error/convert.c/ConvertImageCommand/3275.
BTW, I have tried to find “magic.xml”, “delegates.xml” but the files do not exist.
Where should I find the files?
Or
What should I do to be sure that the “converter.exe” is working?