insoler將在9月25日升級macOS Mojave 10.14正式版,並解決上傳EOS 5D Mark IV RAW檔的問題

insoler社群網站目前的伺服器主機,仍然是使用舊的OS X EI Capitan 10.11.6版,這是因為只要升級系統版本到macOS Sierra 10.12.5、macOS High Sierra 10.13.6版本以後,sips指令在執行RAW轉JPEG檔的時候,會產生全黑的JPEG圖檔,與許多的錯誤訊息!

詳細的說明,請參考這一篇:

在macOS 10.12、10.13 Server版,PHP呼叫系統的sips指令把RAW照片轉成JPEG會產生全黑圖檔與錯誤訊息

雖然我已經在macOS High Sierra 10.13.6上解決了sips指令在RAW轉JPEG檔錯誤,導致全黑JPEG圖片的問題,但是現在將insoler系統升級到macOS High Sierra 10.13.6似乎不切實際!

這是因為Apple將在明天的9月25日推出macOS Mojave 10.14正式版,所以我決定等到明天一口氣從OS X EI Capitan 10.11.6版,升級到最新的macOS Mojave 10.14。

由於跳過了10.12、10.13,直接從10.11升級到10.14,可能會遇到意想不到的其他問題,如果會有其他問題的話,我可能需要以macOS Mojave 10.14重新安裝整個insoler的Web Server主機,通常重新格式化SSD硬碟,再重新安裝乾淨的全新系統,會比較沒有問題。

也因此在明天的9月25日,insoler網站會有一段時間無法開啟網頁,這段時間可能會很短,大約30分鐘到1小時,也可能會需要花更多時間,大約2-3小時以上來重裝整個系統。

無論如何都請各位見諒、這是為了解決RAW轉JPEG檔,以及舊的OS X EI Capitan 10.11.6不支援EOS 5D Mark IV等新的數位相機的問題。

🍎insoler社群網站CEO、兼站長兼顧問兼工程師

可能要拿臺機器測試一下吧,Mac的相容性表現一直很可怕eyesight

我要成為幸運的一般會社員

非常感謝你的提醒。事實上這個畫面就可以證明,我使用一台Mac mini上安裝全新的macOS High Sierra 10.13.6來測試sips。為了避免從10.11.6舊版升級,可能會有其他的問題,所以我是重新格式化硬碟,再重新安裝10.13.6的方式。

現在sips最大的問題就是,在macOS 10.11.6只能使用方法A。在macOS 10.13.6只能使用方法B。

如果反過來,在macOS 10.11.6執行方法B的程式碼,會在Apache的error_log產生這樣的錯誤訊息:

execution error: An error of type -10810 has occurred

搜尋一下Google發現也有別人遇到相同的問題,例如...

The Infamous OS X execution error: An error of type -10810 has occurred. (-10810)

AppleScript: execution error -10810 when launching certain applications from shebang'ed scripts

有人說這個Bug已經在macOS 10.10.3修正了...

Update: The bug has been fixed in OSX 10.10.3.

The behavior observed is a bug in OSX 10.10 still unresolved as of OSX 10.10.2 (as of 10 Mar 2015):

Anyone interested in getting this fixed should file their own bug at bugreport.apple.com.

It applies to executable scripts that are directly or indirectly passed to osascript - whether:

  • explicitly (osascript launch-app) 
  • or implicitly, via the shebang line, by direct invocation (./launch-app) 

The specific form of the shebang line is irrelevant (whether #!/usr/bin/osascript or #!/usr/bin/env osascript or #!/usr/bin/env osascript -l JavaScript or ...), what matters is whether the file has the executable bit (permission) set (e.g., via chmod +x).

Workarounds:

  • As suggested by the OP, feed the file to osascript via stdin: osascript < launch-app

    • This has side effects; for instance, name of me will report msng instead of the name of the script.
  • Remove the executable bit from the script and invoke it explicitly with osascript:

    • chmod -x launch-app # a one-time operation
    • osascript launch-app # with the executable bit unset, this should work

但是,事實上OSX 10.10.3根本沒有修正,或是沒有完全修正好!我在macOS 10.11.6上面仍然會看到 type -10810 的錯誤訊息!

所以我主要是擔心在macOS 10.14可能會遇到新的問題,最糟糕的情況是方法A、方法B都不能使用!如果我一時找不到解決辦法,只好從10.11升級到10.13。至少這個版本可以使用方法B來支援Canon EOS 5D Mark IV等新的相機的RAW檔。

🍎insoler社群網站CEO、兼站長兼顧問兼工程師

好像還沒有upgrade上去undecided我好久沒有用sips了,說實在的您早日買一台二手HP/DELL機器,安個CentOS都比折騰MacOS簡單多了covermouth

我要成為幸運的一般會社員

非常感謝你的建議。因為macOS Mojave Server 10.14無法使用,所以目前insoelr網站是升級到macOS 10.13.6的最新版本,再降級PHP到5.5版(使用macOS 10.11的PHP版本)這是因為目前的海豚7.3.5不支援PHP 7。雖然網站已經可以正常使用,但還是有一些問題需要花時間解決。

詳細說明請參考這一篇:

macOS Mojave Server 10.14已不再是伺服器,insoler升級到macOS High Sierra 10.13.6

🍎insoler社群網站CEO、兼站長兼顧問兼工程師