bwbohl / sencha-cmd

Dockerimage for building apps with Sencha Cmd
MIT License
5 stars 3 forks source link

SSL problem with phantomjs #48

Open valuedvision opened 12 months ago

valuedvision commented 12 months ago

Using version 7.5.1.20 I got an error from phantomjs:

C:\work\tmp\ssp>docker run --rm -it -v %cd%:/app --name sencha-cmd sencha-cmd sencha app build
Cannot use configured version 7.5.1.20
Sencha Cmd v7.5.1.20
[INF] Processing Build Descriptor : default (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /app/build/production/Portal/app.js
[INF] merging 270 input resources into /app/build/production/Portal/resources
[INF] merged 269 resources into /app/build/production/Portal/resources
[INF] merging 17 input resources into /app/build/production/Portal
[INF] merged 17 resources into /app/build/production/Portal
[INF] Writing content to /app/build/temp/production/Portal/slicer-temp/bootstrap.json
[INF] Writing content to /app/build/temp/production/Portal/slicer-temp/bootstrap.js
[INF] writing sass content to /app/build/temp/production/Portal/slicer-temp/Portal-example.scss.tmp
[INF] writing sass content to /app/build/temp/production/Portal/slicer-temp/config.rb
[LOG] Fashion build starting for /app/build/temp/production/Portal/slicer-temp/Portal-example.scss
[WRN] @theme-background-image: Theme image not found: images/tab/tab-navigation-close.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-left.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-right.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-top.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-bottom.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-more.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-more-left.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-plain-scroll-left.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-plain-scroll-right.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-plain-scroll-top.png
[WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-plain-scroll-bottom.png
[LOG] Fashion build complete for /app/build/temp/production/Portal/slicer-temp/Portal-example.scss
[LOG] Fashion build completed in 3.981 sec.
[INF] Capturing theme image
[ERR] Auto configuration failed
139984352294848:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
139984352294848:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139984352294848:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
139984352294848:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 1
[ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
[ERR] dAccessorImpl.java:62)
[ERR]
[ERR] Total time: 1 minute 21 seconds

[ERR] /opt/Sencha/Cmd/7.5.1/plugin.xml:333: The following error occurred while executing this line:
/opt/Sencha/Cmd/7.5.1/ant/build/app/build-impl.xml:341: The following error occurred while executing this line:
/opt/Sencha/Cmd/7.5.1/ant/build/app/slice-impl.xml:378: The following error occurred while executing this line:
/opt/Sencha/Cmd/7.5.1/ant/build/app/slice-impl.xml:379: The following error occurred while executing this line:
/opt/Sencha/Cmd/7.5.1/ant/build/app/slice-impl.xml:220: com.sencha.exceptions.ExProcess: phantomjs process exited with code 1
[ERR] A log is available in the file "/app/sencha-error-20231025.log"

I've solved it by adding OPENSSL_CONF=/Some Random String/:

C:\work\tmp\ssp>docker run --rm -it -v %cd%:/app --name sencha-cmd sencha-cmd OPENSSL_CONF=/dev/null sencha app build

bwbohl commented 11 months ago

Thanks for reporting! Could you also append the log mentioned, please?

Still wondering whether to just add this info to the README or if some code-fix would be in place, ideas?

bwbohl commented 11 months ago

Apparently, this is a phantomJS problem, that has already surfaced a. couple of years ago: https://github.com/drwetter/testssl.sh/issues/1117

valuedvision commented 11 months ago

You could just add: ENV OPENSSL_CONF=/dev/null to your dockerfile, that would solve it for now...