I am using phantomjs 2.1.1. And karma-phantomjs-launcher@1.0.1.
I am trying to use karma runner to run phantomjs on Jenkins. The os is Unix.
But it fails due to Auto configuration failed
139631766058784:error:0200100D:system library:fopen:Permission denied:bss_file.c:169:fopen('/etc/ssl/openssl.cnf','rb')
139631766058784:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:174:
139631766058784:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.c:199:**
Anyone is being through this? is it a bug of phantomJs?
Here is the build log:
21:52:25 + npm install
21:52:28 npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
21:52:59
21:52:59 > phantomjs-prebuilt@2.1.12 install angular-js-karma-unittest-temp/java_ui/node_modules/phantomjs-prebuilt
21:52:59 > node install.js
21:52:59
21:52:59 PhantomJS not found on PATH
21:52:59 Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
21:52:59 Verified checksum of previously downloaded file
21:52:59 Extracting tar contents (via spawned process)
21:53:03 Removing javaui/angular-js-karma-unittest-temp/java_ui/node_modules/phantomjs-prebuilt/lib/phantom
21:53:03 Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1472608379727/phantomjs-2.1.1-linux-x86_64 -> /jenkins/workspace/javaui/angular-js-karma-unittest-temp/java_ui/node_modules/phantomjs-prebuilt/lib/phantom
21:53:03 Writing location.js file
21:53:03 Done. Phantomjs binary available at /jenkins/workspace/javaui/angular-js-karma-unittest-temp/java_ui/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
22:09:03 [EnvInject] - Injecting environment variables from a build step.
22:09:03 [EnvInject] - Injecting as environment variables the properties content
**22:09:03 PATH=/var/lib/jenkins/.gvm/bin:/usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/local/pyenv/shims:/usr/local/pyenv/bin:/usr/local/maven-3/bin:/usr/local/bin:/bin:/usr/bin:/opt/fortify/bin:/opt/monit/bin:/var/lib/jenkins/.rvm/bin:$WORKSPACE/java_ui/node_modules/phantomjs-prebuilt/lib/phantom/bin
22:09:03 PHANTOMJS_BIN=$WORKSPACE/java_ui/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs**
22:09:03
22:09:03 [EnvInject] - Variables injected successfully.
22:09:04 [angular-js-karma-unittest-temp] $ /bin/sh -xe /tmp/hudson616596242528942759.sh
22:09:04 + cd /jenkins/workspace/javaui/angular-js-karma-unittest-temp/java_ui
22:09:04 + node_modules/karma/bin/karma start karma.conf.js
22:09:05 [33m30 08 2016 22:09:05.371:WARN [reporter]: [39mCan not load "coverage", it is not registered!
22:09:05 Perhaps you are missing some plugin?
22:09:05 [32m30 08 2016 22:09:05.481:INFO [karma]: [39mKarma v0.13.22 server started at http://localhost:9896/
22:09:05 [32m30 08 2016 22:09:05.508:INFO [launcher]: [39mStarting browser PhantomJS
**22:09:05 [31m30 08 2016 22:09:05.548:ERROR [phantomjs.launcher]: [39mAuto configuration failed
22:09:05 139631766058784:error:0200100D:system library:fopen:Permission denied:bss_file.c:169:fopen('/etc/ssl/openssl.cnf','rb')
22:09:05 139631766058784:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:174:
22:09:05 139631766058784:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.c:199:**
22:09:05
22:09:05 [31m30 08 2016 22:09:05.555:ERROR [launcher]: [39mCannot start PhantomJS
22:09:05
22:09:05 [32m30 08 2016 22:09:05.569:INFO [launcher]: [39mTrying to start PhantomJS again (1/2).
22:09:05 [31m30 08 2016 22:09:05.599:ERROR [phantomjs.launcher]: [39mAuto configuration failed
22:09:05 140579193042720:error:0200100D:system library:fopen:Permission denied:bss_file.c:169:fopen('/etc/ssl/openssl.cnf','rb')
22:09:05 140579193042720:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:174:
22:09:05 140579193042720:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.c:199:
22:09:05
22:09:05 [31m30 08 2016 22:09:05.601:ERROR [launcher]: [39mCannot start PhantomJS
22:09:05
22:09:05 [32m30 08 2016 22:09:05.603:INFO [launcher]: [39mTrying to start PhantomJS again (2/2).
22:09:05 [31m30 08 2016 22:09:05.632:ERROR [phantomjs.launcher]: [39mAuto configuration failed
22:09:05 139795129825056:error:0200100D:system library:fopen:Permission denied:bss_file.c:169:fopen('/etc/ssl/openssl.cnf','rb')
22:09:05 139795129825056:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:174:
22:09:05 139795129825056:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.c:199:
22:09:05
22:09:05 [31m30 08 2016 22:09:05.633:ERROR [launcher]: [39mCannot start PhantomJS
22:09:05
22:09:05 [31m30 08 2016 22:09:05.637:ERROR [launcher]: [39mPhantomJS failed 2 times (cannot start). Giving up.
22:09:05 Build step 'Execute shell' marked build as failure
22:09:06 Archiving artifacts
22:09:06 No prior successful build to compare, so performing full copy of artifacts
22:09:06 Recording test results
22:09:06 Finished: FAILURE
Aucun commentaire:
Enregistrer un commentaire