community icon indicating copy to clipboard operation
community copied to clipboard

Install ZOWE 2.2.0

Open GilPen opened this issue 2 years ago • 29 comments

Hello

I'm trying to install the version 2.2.0. The installation seems to be good because I can see the API Mediation Layer page on a web browser and API CATALOG as well. But I can't connect to ZLUX page. I think it's a cerificate problem.

I ran the script "zwe init certificate -c ./zowe1.yaml --update-config" successfully and certificates have been generated in the directory "/usr/lpp/zowe/keystore". I added the update lines to my zowe.yaml configuration I used to start zowe.

When I start ZOWE, it seems ZOWE doesn't find a file /usr/lpp/zowe/keystore/local_ca/local_ca.cer. I supposed this file should be generate by the srcipt but it's not right.

I used the zowe1.yaml to generate the certificates I use zowe.yaml to start the ZWESLSTC ZOWE STC The appserver server is the log of the STC ZOWE starting.

Regards Gilles Peniguel appServer-2022-08-17-15-45.log zowe.yaml.txt zowe1.yaml.txt

GilPen avatar Aug 18 '22 06:08 GilPen

Hello

I corrected the certificate error in the log. In fact the script doesn't create a correct entry for certificateAuthorities in the yaml

But the ZLUX page doesn't appear yet.

I'm sorry, I resend the files in ascii format.

zowe.yaml.txt zowe1.yaml.txt appServer-2022-08-19-14-35.log

Regards Gilles

GilPen avatar Aug 19 '22 14:08 GilPen

@1000TurquoisePogs this looks like related to the app server, could you, please, have a look and potentially transfer to your repository?

anton-brezina avatar Aug 24 '22 12:08 anton-brezina

Hello

Thank you very much for your answer.

There were few p12 keystore files in the import directory. I let only the good one I put on the yaml file "zowe.certificate.pkcs12.import.keystore" and the certificates were generated correctly. Now the primary ZLUX page appears correctly.

Unfortunatly, I can't loggin in MVS explorer or USS explorer. This message appears "Unexpected token < in JSON at position 0"

Regards

GilPen avatar Aug 24 '22 13:08 GilPen

Hello

I send you an update of the last app-server.log. Should I transfer the ticket in a other repository ?

Regards Gilles Peniguel appServer-2022-08-25-14-18.log

GilPen avatar Aug 25 '22 15:08 GilPen

Hello

It seems I'm not alone to have this problem: https://bytemeta.vip/repo/zowe/zowe-cli/issues/1434

But I don't see the ticket in the zowe/community

GilPen avatar Aug 26 '22 08:08 GilPen

Hello

It seems to be strange I can't login to MVS explorer via the gateway. The Endpoints URL seems is not corect.

Regards Gilles Peniguel Error_MVS_EXPLORER

GilPen avatar Aug 26 '22 13:08 GilPen

Hi Gilles,

The URL pattern for V2 changed. You should be able to access it via /explorer-mvs/ui/v1

balhar-jakub avatar Aug 29 '22 13:08 balhar-jakub

Hello

Thank you very much for your answer

Unfortunatly the answser is the same .

Regards Gilles Error_MVS_EXPLORER_2

GilPen avatar Aug 29 '22 14:08 GilPen

Hello

I don't understand because it seems there is a certificate error: ZWED0040W - Callservice: Service call to sysa.dns21.socgen:8542/datasetMetadata/name/ZAS.**.INSTALL?detail=true&listMembers=true&addQualifiers=true failed. Error: self signed certificate in certificate chain

But if I write the URL on a browser

https://sysa.dns21.socgen:8542/datasetMetadata/name/ZAS.**.INSTALL?detail=true&listMembers=true&addQualifiers=true failed

I get the correct answer

{"_objectType":"com.rs.mvd.base.dataset.metadata","_metadataVersion":"1.1","hasMore":0,"datasets":[{"name":"ZAS.INSTALL.ZOWE ","csiEntryType":"A","volser":"SYS0T7","recfm":{"recordLength":"F","isBlocked":true,"carriageControl":"unknown"},"dsorg":{"organization":"partitioned","isPDSDir":true,"maxRecordLen":80,"totalBlockSize":9040},"members":[{"name":"AGRANZOW"},{"name":"ALLOCURL"},{"name":"CFZIVP "},{"name":"CFZRCUST"},{"name":"CFZSEC "},{"name":"CFZSUB "},{"name":"CHGSYM "},{"name":"CONV "},{"name":"DEFNVSM "},{"name":"DEPLOY "},{"name":"LISRESTO"},{"name":"RESTINS "},{"name":"RESTIN1 "},{"name":"RESTMVS "},{"name":"RESTOR "},{"name":"SAVBASH "},{"name":"SAVLOG "},{"name":"SAVPDS "},{"name":"SAVZOWE "},{"name":"UMNTCURL"},{"name":"UMNTGIT "},{"name":"UMNTNJS "},{"name":"UNMNZOWE"},{"name":"UNMOUNT "},{"name":"UNMTINST"},{"name":"ZFSBACH "},{"name":"ZFSEXTSO"},{"name":"ZFSGIT "},{"name":"ZFSJSWRK"},{"name":"ZFSMNTBA"},{"name":"ZFSMNTCU"},{"name":"ZFSMNTEX"},{"name":"ZFSMNTGT"},{"name":"ZFSMNTI "},{"name":"ZFSMNTJS"},{"name":"ZFSMNTPE"},{"name":"ZFSMNTZO"},{"name":"ZFSNODE "},{"name":"ZFSPERL "},{"name":"ZFSZOWE "}]}]}

GilPen avatar Aug 31 '22 08:08 GilPen

Hello

I regenerate with the install-app.sh so-auth plugin and clear the browser history.

Now if I put the URL https://sysa.dns21.socgen:8542/datasetMetadata/name/ZAS.**.INSTALL?detail=true&listMembers=true&addQualifiers=true in the browser

I get a message in the ZOWE sysout :

022-09-01 13:44:52.509 ZWEADS1:DiscoveryClient-CacheRefreshExecutor-0:33554598 ZWESVUS INFO (o.z.a.p.g.GatewayInstanceInitializer) GatewayInstanceInitializer has been initialized with Gateway instance on url: https://sysa.dns21.socgen:7554 BPXTLS failed: rc=-1, return code=139, reason code=0x0be802af
Error: service has no impersonation; make sure process user has sufficient authority:
z/OS: program control flag must be set, UPDATE access to BPX.SERVER and BPX.DAEMON SAF resources is required Other platforms: impersonation is not supported

$ bpxmtext 0be802af
BPXPTSEC 01/05/18
JREnvDirty: The specified function is not supported in an address space where a load was done that is not program controlled.

Action: Make sure that programs being loaded into this address space are
defined as program controlled.

So I suppose an attrib +p misses an a file.

I verified the STC owner has BPX.SERVER and BPX.DAEMON UPDATE flag.

Regards Gilles

GilPen avatar Sep 01 '22 13:09 GilPen

@GilPen does the issue persist?

anton-brezina avatar Sep 30 '22 13:09 anton-brezina

Hello

Sorry for the delay.

The problem is still alive.

Regards Gilles Peniguel

GilPen avatar Oct 10 '22 08:10 GilPen

@GilPen there is a new version of Zowe available - 2.4, could you please try to update and see if the problems persist? There are a lot of improvements in the installation

achmelo avatar Oct 24 '22 07:10 achmelo

Hello,

I upgrade in 2.4 version and now new problems occur :

/usr/lpp/zowe/bin/zwe internal start prepare --config "FILE(/usr/lpp/zowe/instance/zowe.yaml)" --ha-instance sysa InternalError: invalid opcode (op=0,pc=0)

ZWESVUS ERROR ZWEL0029E start component list is empty

Regards Gilles Peniguel

GilPen avatar Nov 09 '22 16:11 GilPen

@achmelo Could you please take a look, this looks like some issue either with Zowe launcher or Config Manager.

balhar-jakub avatar Nov 10 '22 11:11 balhar-jakub

@GilPen I was looking into your zowe.yaml file and I saw an issue in the hainstaces section. You need to uncomment # haInstances: and properly define the remaining parameters as described here: https://docs.zowe.org/stable/appendix/zowe-yaml-configuration/#yaml-configurations---hainstances

If you don't want to use the HA setup, you need to comment or remove the SYSA section.

achmelo avatar Nov 14 '22 09:11 achmelo

Hello Thank you for your answer

Now the section is comment as you described : .... £ £ HA instance ID
£ SYSA:
£ £ hostname where this instance will be started
£ hostname: sysa.dns21.socgen
£ £ Your &SYSNAME for this LPAR
£ £ This sysname will be used to route your JES command to target system.
£ sysname: SYSA
£ £ for this HA instance, we didn t customize "components", so it will use default value. .....

But the messages still appear in the sysout :

InternalError: invalid opcode (op=0, pc=0)

2022-11-14 14:39:42 ZWELNCH:16777462 ZWESVUS ERROR ZWEL0029E start component list is empty

GilPen avatar Nov 14 '22 15:11 GilPen

Hello

In the documentation: "The workspace directory is required to launch Zowe. It is automatically created when you start Zowe"

And when I list my workspace directory, It seems nothing is written except a launcher.stdin.txt file with 0 bytes

£ pwd
/usr/lpp/zowe/instance/workspace
£ ls -all
total 32
drwxrwx--x 2 ZWESVUS ZOWEADM 8192 Nov 14 16:55 .
drwxr-xr-x 4 ZWESVUS ZOWEADM 8192 Sep 2 11:34 ..
-rw-r--r-- 1 ZWESVUS ZOWEADM 0 Nov 14 16:56 launcher.stdin.txt

GilPen avatar Nov 14 '22 16:11 GilPen

Hello

Thank you very much for your answer

Unfortunatly the answser is the same .

Regards Gilles Error_MVS_EXPLORER_2

The explorer is hosted in a different way in v2. I recommend reading this page on v2 changes https://www.zowe.org/vnext among other docs.zowe.org content. Simply, the explorers are no longer independent servers, so that URL will not work, you want https://host:gatewayport/zlux/ui/v1/ZLUX/plugins/org.zowe.explorer-mvs/web/index.html#/

1000TurquoisePogs avatar Nov 15 '22 13:11 1000TurquoisePogs

Hello,

I upgrade in 2.4 version and now new problems occur :

/usr/lpp/zowe/bin/zwe internal start prepare --config "FILE(/usr/lpp/zowe/instance/zowe.yaml)" --ha-instance sysa InternalError: invalid opcode (op=0,pc=0)

ZWESVUS ERROR ZWEL0029E start component list is empty

Regards Gilles Peniguel

This is very likely because I see a @include: "/usr/lpp/zowe/bin/zowe1.yaml" line in your YAML. Zowe using configmgr does not support this. There's another way to group together multiple files, as described in https://docs.zowe.org/stable/user-guide/configmgr-using#splitting-configuration-into-multiple-files

1000TurquoisePogs avatar Nov 15 '22 14:11 1000TurquoisePogs

Hello

I regenerate with the install-app.sh so-auth plugin and clear the browser history.

Now if I put the URL https://sysa.dns21.socgen:8542/datasetMetadata/name/ZAS.**.INSTALL?detail=true&listMembers=true&addQualifiers=true in the browser

I get a message in the ZOWE sysout :

022-09-01 13:44:52.509 ZWEADS1:DiscoveryClient-CacheRefreshExecutor-0:33554598 ZWESVUS INFO (o.z.a.p.g.GatewayInstanceInitializer) GatewayInstanceInitializer has been initialized with Gateway instance on url: https://sysa.dns21.socgen:7554 BPXTLS failed: rc=-1, return code=139, reason code=0x0be802af Error: service has no impersonation; make sure process user has sufficient authority: z/OS: program control flag must be set, UPDATE access to BPX.SERVER and BPX.DAEMON SAF resources is required Other platforms: impersonation is not supported

$ bpxmtext 0be802af BPXPTSEC 01/05/18 JREnvDirty: The specified function is not supported in an address space where a load was done that is not program controlled.

Action: Make sure that programs being loaded into this address space are defined as program controlled.

So I suppose an attrib +p misses an a file.

I verified the STC owner has BPX.SERVER and BPX.DAEMON UPDATE flag.

Regards Gilles

Don't run install-app.sh in v2, you should not be using any zowe scripts other than zwe. zwe calls other scripts as needed, but if you use them directly you may break Zowe.

Everything that needs +p should have it upon a fresh install or when using zwe components install. Or, it will warn if it didnt have the permission necessary to do that. If you are lacking +p, you can try setting it on /components/zss/bin/zssServer and /components/zss/bin/zssServer64 When running, it may then give you errors if plugins of zss also are missing +p, but it would tell you the path of the files.

1000TurquoisePogs avatar Nov 15 '22 14:11 1000TurquoisePogs

Hello

To summarize, the version 2.2.0 didn't work for me and you told me to upgrade to 2.4.0.

So I don't use install-app.sh anymore but run the new script "zwe".

Once 2.4.0 version installation is finished, I tried to run the STC and got the error message "InternalError: invalid opcode (op=0, pc=0)"

And I also got the messageID ZWEL0029E which doesn't exist in any documentation.

So I tried to run the command with the root user and got the same error $ su
£ /usr/lpp/zowe/bin/zwe internal start prepare --config "FILE(/usr/lpp/zowe/instance/zowe.yaml)" --ha-instance sysa 2>&1 InternalError: invalid opcode (op=0, pc=0)

Regards Gilles Peniguel

GilPen avatar Nov 21 '22 15:11 GilPen

Can you edit your zowe.yaml to turn useConfigmgr: true to useConfigmgr: false and see if Zowe is working? The error message you see is coming from the configmgr code, but we cannot reproduce it so we'd like to know more about your environment.

Can you post your latest zowe.yaml & also run zwe support to verify environment info? Note: when using zwe support, as well as when using zwe with useConfigmgr: false, --config should just be a simple /path/to/a/file rather than being wrapped with FILE(). The FILE() syntax only works with useConfigmgr: true, which is the new default but just letting you know for this troubleshooting.

1000TurquoisePogs avatar Nov 22 '22 20:11 1000TurquoisePogs

zwe_support.txt

Hello

Thank you for your help. I just sent you the "zwe support" command result, the STC sysout and the zowe.yaml

It seems I have an error in the yaml but I build the yaml with the sample:

  • Output:
    Error: error reading input file: Map keys must be unique; "enabled" is repeated
    • Output:
      Error: error reading input file: Map keys must be unique; "enabled" is repeated

Regards Gilles Peniguel

GilPen avatar Nov 23 '22 07:11 GilPen

zwe_support.txt zowe_yaml.txt Hello

Thank you for the command 'zwe support'. I corrected the errors in the yaml.

The new zowe.yaml file and 'zwe support' command is in the attached files.

Regards Gilles Peniguel

ZWESLSTC.D231122.txt

GilPen avatar Nov 23 '22 10:11 GilPen

Can you run the command /usr/lpp/zowe/bin/zwe internal get-launch-components --config "FILE(/usr/lpp/zowe/instance/zowe.yaml)" --ha-instance sysa within a shell to see what it does? It's not clear from the logs, but that is the current command that is not working. It might be due to your current zowe.yaml. It looks like you commented out some things that need to be there. You do need zowe.externalDomains to have at least 1 entry. You also commented out explorer-mvs and explorer-uss. You an set them to enabled: false if you'd like, but don't comment them out. There may be other commented out things that shouldn't be versus the example file here https://github.com/zowe/zowe-install-packaging/blob/v2.x/master/example-zowe.yaml so you should review the differences to try and get the same properties existing.

1000TurquoisePogs avatar Dec 01 '22 14:12 1000TurquoisePogs

Hello

Thank you for your answer

I put the value to explorer-mvs and explorer-uss to false. And add the DNS value to externalDomains.

The command result is

£ zwe internal get-launch-components --config "FILE(/usr/lpp/zowe/instance/zowe.yaml)" --ha-instance sysa
ERROR: Validation of /usr/lpp/zowe/extensions/api-zaas-utilities/manifest.yaml against schema ttps://zowe.org/schemas/v2/server-com ponent-manifest found invalid JSON Schema data
ERROR: Validity Exceptions(s) with object at
ERROR: Validity Exceptions(s) with object at /build
ERROR: type 'string' not permitted at /build/timestamp

Regards Gilles Peniguel

GilPen avatar Dec 05 '22 09:12 GilPen

Hello,

Now the yaml is correct. Is it possible to mention the yaml line in error in the job sysout. It would be very useful

Regards Gilles Peniguel

GilPen avatar Dec 15 '22 13:12 GilPen