2

I am trying to run an CLI command from one of my packages installed in a Bitbucket Pipeline in a cloud hosted server which I do not have access to. That command should push a bunch of files to a remote server.

The pipeline always fail with

Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

I have seen the following post on bitbucket and stack overflow SSL Connection fail

Unable to execute outbound SSL

Error - trustAnchors parameter must be non-empty

And it looks like I need to execute some command on the server, but as my hosting is cloud, and since I do not quite fully understand what this is (it looks like JAVA ? but on my machine the command work and I do not have JAVA installed ?) I wonder what could I do to make it works, I have no knowledge in this domain.

I contacted bitbucket, which pointed me to Here telling me to use You need to use the properties javax.net.debug=all and javax.net.ssl.trustStore=/path/to/Truststore to debug the issue.

but again, I do not have java installed in my machine, and it works. also I am using a simple image image: circleci/node:12-browsers which do not include java, so java/javax command are no found. And I am stuck.

Thank your for your help.

kriegaex
  • 63,017
  • 15
  • 111
  • 202
Bobby
  • 4,372
  • 8
  • 47
  • 103
  • It seems the image has java installed. Can you tell me what commands you are trying to run? ``` Andreis-MacBook-Pro:my-first-app adumitrescu$ docker run --rm -it circleci/node:12-browsers bash _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. circleci@8d33d7921d27:/$ java -version openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-1bpo91) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Debian-1bpo91, mixed mode, sharing) circleci@8d33d7921d27:/$ ``` – Andrei Dumitrescu-Tudor Jul 15 '21 at 07:31
  • I actually solved this by using this image instead https://hub.docker.com/r/nathanfriend/java-node-git/ I wish there was an official image with this – Bobby Jul 15 '21 at 08:48
  • I do not know the command that run inside the cli command, but just `java -version` was doing c>command not found with `node:12` – Bobby Jul 15 '21 at 08:49
  • I see in docker hub pretty much all the circleCI:node images are updated 12 hr ago, maybe re-pull the image or try to use a different one, e.g. circleci/node:16.5-browsers – LarryX Jul 21 '21 at 12:44

0 Answers0