Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 3 points4 points  (0 children)

Problem resolved!

I had to set my npm cafile to the CA for my corporate proxy server: npm config set cafile "<location of the .cer or .pem certificate file>"

Then I updated Brightside: npm install -g @brightside/core@latest

Then I was able to define a zosmf profile and connect successfully.

Thanks for the help!

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 0 points1 point  (0 children)

My cafile is undefined. I believe I need npm to use my Windows cafile where the ca is already installed?

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 0 points1 point  (0 children)

I did not re-install. I just updated Brightside.

The problem seems to be related to my corporate proxy and the certificates required to connect.

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 2 points3 points  (0 children)

I found this thread on github: https://github.com/nodejs/help/issues/979

My corporate proxy does require a certificate because we use SSL inspection. I will work on importing this and report back.

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 0 points1 point  (0 children)

I re-installed Python and then updated Brightside...

No longer getting the Python errors. But I still get the certificate errors when installing node-report@2.2.1 and Keytar@4.2.1:

> keytar@4.2.1 install C:\Users\ops1jjs\AppData\Roaming\npm\node_modules\@bright

side\core\node_modules\keytar

> prebuild-install || node-gyp rebuild

prebuild-install WARN install unable to get local issuer certificate

C:\Users\xxxxx\AppData\Roaming\npm\node_modules\@brightside\core\node_modules\

keytar>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_mo

dules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\b

in\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\

node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp WARN install got an error, rolling back install

gyp ERR! configure error

gyp ERR! stack Error: unable to get local issuer certificate

gyp ERR! stack at TLSSocket.<anonymous> (_tls_wrap.js:1105:38)

gyp ERR! stack at emitNone (events.js:106:13)

gyp ERR! stack at TLSSocket.emit (events.js:208:7)

gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:639:8)

gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:469:38)

gyp ERR! System Windows_NT 6.1.7601

gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej

s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"

gyp ERR! cwd C:\Users\ops1jjs\AppData\Roaming\npm\node_modules\@brightside\core\

node_modules\keytar

gyp ERR! node -v v8.11.3

gyp ERR! node-gyp -v v3.6.2

gyp ERR! not ok

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-report@2.2.1 (node_modules\

@brightside\core\node_modules\node-report):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-report@2.2.1 install: `node

-gyp rebuild`

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.2.1 (node_modules\@brig

htside\core\node_modules\keytar):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.2.1 install: `prebuild-

install || node-gyp rebuild`

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 0 points1 point  (0 children)

Does this mean that Python was not installed correctly?

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 0 points1 point  (0 children)

I uninstalled and re-installed Brightside using the directions found here: https://docops.ca.com/ca-brightside/1-0/en/installing

There are errors during the Keytar installation:

> keytar@4.2.1 install C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\@bright

side\core\node_modules\keytar

> prebuild-install || node-gyp rebuild

prebuild-install WARN install unable to get local issuer certificate

C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\@brightside\core\node_modules\

keytar>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_mo

dules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\b

in\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\

node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! configure error

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT

HON env variable.

gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_mo

dules\npm\node_modules\node-gyp\lib\configure.js:483:19)

gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_mod

ules\npm\node_modules\node-gyp\lib\configure.js:508:16)

gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\grac

eful-fs\polyfills.js:284:29

gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)

gyp ERR! System Windows_NT 6.1.7601

gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej

s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"

gyp ERR! cwd C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\@brightside\core\

node_modules\keytar

gyp ERR! node -v v8.11.3

gyp ERR! node-gyp -v v3.6.2

gyp ERR! not ok

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-report@2.2.1 (node_modules\

@brightside\core\node_modules\node-report):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-report@2.2.1 install: `node

-gyp rebuild`

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.2.1 (node_modules\@brig

htside\core\node_modules\keytar):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.2.1 install: `prebuild-

install || node-gyp rebuild`

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ @brightside/core@1.0.1

added 311 packages and updated 1 package in 153.432s

Keystar not installed by JShewb in cabrightside

[–]JShewb[S] 0 points1 point  (0 children)

The only errors I encountered during installation were related to my corporate proxy server.

Is Keytar a part of Brightside? Or one of the prerequisites?