Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL problem with phantomjs #48

Open
valuedvision opened this issue Oct 25, 2023 · 3 comments
Open

SSL problem with phantomjs #48

valuedvision opened this issue Oct 25, 2023 · 3 comments

Comments

@valuedvision
Copy link

valuedvision commented Oct 25, 2023

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
Copy link
Owner

bwbohl commented Nov 8, 2023

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
Copy link
Owner

bwbohl commented Nov 8, 2023

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

@valuedvision
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants