Vscode-extension-for-zowe: Error loading Base Profile Created via Zowe CLI Within Zowe Explorer

Created on 18 Nov 2020  路  18Comments  路  Source: zowe/vscode-extension-for-zowe

I'm using a base profile and am getting the following errors within Zowe Explorer:

Retrieving response from zowe.GetJobs Error: Expect Error: Required object must be defined
Error: Profile Name test is inactive. Please check if your Zowe server is active or if the URL and port in your profile is correct.

Describe the bug

To Reproduce

  1. Start with no profiles
  2. zowe auth login apiml and respond to prompts
  3. zowe profiles create zosmf test --host xxx --base-path api/v1 --dd
  4. verify zowe jobs list jobs is succesful
  5. attempt to browse jobs or data sets in Zowe Explorer

Expected behavior

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Zowe Explorer Version: 1.10.1
  • (Optional) Zowe CLI Version: 7.0.0...@next
  • (Optional) Are you using Secure Credential Store? yes

Additional context

bug

All 18 comments

Can you try to do 2 things?

  • Click the Refresh Icon then try again. If this doesn't work.
  • Try to reload VSC?

Thanks @jellypuno - I get the same results trying those two things.

I tried it and it is working for me

@jellypuno - you are using the same versions of Zowe Explorer and Zowe CLI as @dkelosky ?

@venkatzhub I'm using Zowe CLI 6.23.0. I'll try to upgrade to 7.0

Now, I'm having trouble with zowe auth 馃槩

C:\Users
位 zowe auth login apiml
Command Error:
Command failed due to improper syntax
Command entered: "zowe auth login apiml"
Unknown group: auth
Did you mean:  plugins list?
Use "zowe --help" to view groups, commands, and options.

C:\Users
位 zowe -V
7.0.0-next.202003271736

I'm also using 7.0.0-next.202003271736 - however, I built from source on https://github.com/zowe/zowe-cli/tree/next

Apparently - this isn't published on npm 馃槩 . Hopefully, it will be "soon" along with the daemon work.

Here is the requested information to diagnose the issue:

Zowe Explorer Version => 1.10.1
Zowe CLI Version => 6.23.0

zowe.log
imperative.log

@venkatzhub this is the error:

[2020/11/18 15:11:15.047] [DEBUG] [extension.js:73] Validate Error - Invalid Profile: Error: z/OSMF REST API Error:
http(s) request error event called
Error: self signed certificate in certificate chain

I want to confirm if you are connecting to apiml? if yes, please make sure that reject unauthorized is set to true and basepath is equal to APIML basepath

The customer was indeed connecting using APIML. Here is what I got in an earlier email:

zowe auth login apiml --host ${zowehost} --port ${zomwemlport} --user ${myuser} --password ${mypassticket}-ru false

zowe profiles create zosmf maint-zosmf --base-path api/v1 --disable-defaults

@venkatzhub ok. great. reject unauthorized should be set to true if connecting through apiml

@jellypuno - based on the tests you did, is it fair to say that ru is not influencing the behavior?

In this case @jellypuno, would we want false for rejectUnauthorized since there are self signed certs in play?

From @zFernand0 :
zowe profiles update base default --ru false

This still doesn't answer how / why zowe jobs list jobs runs without also getting a certificate error.

@venkatzhub - can you request the user test zowe zos-jobs list jobs --zosmf-p maint-zosmf (explicitly qualify the newly created profile)? Perhaps the command works by picking up another, working default.

@dkelosky - done!

So the customer with this particular issue came back and everything is working now. @dkelosky, shall I keep it open for what you experienced?

I didn't resolve this on my end yet, but I'll close until I can try to revalidate this again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jellypuno picture jellypuno  路  5Comments

zdmullen picture zdmullen  路  3Comments

zFernand0 picture zFernand0  路  3Comments

phaumer picture phaumer  路  5Comments

fritzc1 picture fritzc1  路  3Comments