Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Sporadically issue with Zowe editor (An unknown error occured: undefined) #981

Closed
lv198 opened this issue Dec 11, 2023 · 18 comments
Closed
Labels
bug Something isn't working new not yet triaged priority-medium An issue that isn't very important so it will be planned in the PI, once there are no more important severity-medium A bug where workaround exists or that doesn't prevent the usage of the Zowe or the use case, just ma

Comments

@lv198
Copy link

lv198 commented Dec 11, 2023

Describe the bug
Sporadically after stopping/starting Zowe, I get the following error message in the Zowe editor:
"An unknown error occured: undefined" as seen in the screenshot . The issue can only be resolved with restarting Zowe (sometimes several times). In the Zowe log, I get the following message: failed to verify signature with status 53817348 - Signature is not correct

Steps to Reproduce
Still not really sure as it only occurs sporadically.

Expected behavior
Editor should work as expected.

Screenshots (if needed)
grafik

Logs

I can get Logs if needed...

Describe your environment

  • Zowe version number (Check the Desktop login screen, or manifest.json in the Zowe install folder): 2.11.0
  • Install method (pax, smpe, kubernetes, github clone): SMPE
  • Operating system (z/OS, kubernetes, etc) and OS version: z/OS 3.1
  • Node.js version number (Shown in logs, or via node --version): v18.18.2
  • Java version number (Shown in logs, or via java -version): 1.8.0_341
  • z/OSMF version: 3.1
  • Browser: Mozilla Firefox
  • Are you accessing the Desktop from the APIML Gateway? (Recommended): YES
  • What is the output of log message ZWES1014I: ZWES1014I ZIS status - 'Ok' (name='ZWESIS_STD ', cmsRC='0', description='Ok', clientVersion='2')
  • Environment variables in use:

Additional context

@lv198 lv198 added bug Something isn't working new not yet triaged severity-medium A bug where workaround exists or that doesn't prevent the usage of the Zowe or the use case, just ma labels Dec 11, 2023
@lv198 lv198 changed the title Issue Issue: Sporadically issue with Zowe editor Dec 11, 2023
@lv198 lv198 changed the title Issue: Sporadically issue with Zowe editor Issue: Sporadically issue with Zowe editor (An unknown error occured: undefined) Dec 11, 2023
@1000TurquoisePogs
Copy link
Member

Please open the developer console of the browser (usually, f12) and check the network tab.
Whenever this issue occurs, see if there is a failed network request associated with the failure.
This looks like a failure to reach ZSS, for some reason, but the screenshot does not say why.

@lv198
Copy link
Author

lv198 commented Dec 11, 2023

Here is a censored screenshot after the issue occured:
grafik

@lv198
Copy link
Author

lv198 commented Dec 15, 2023

@1000TurquoisePogs is the screenshot helpful? Do you have any idea how to solve the problem?

@1000TurquoisePogs
Copy link
Member

Hi yes it is helpful.
You are getting HTTP 401 on calls to the ZSS server.
That happens when ZSS cannot verify your login session - such as an expired cookie or no cookie in the browser, or maybe some new issue.
Try clicking the user icon at the bottom right of the desktop to do a logout, then log back in. Does it change the behavior?

@lv198
Copy link
Author

lv198 commented Dec 22, 2023

Hi @1000TurquoisePogs
performing a logout and logging in again does not change the behaviour - even deleting all Browser Data (cookies etc.) is not helpful. The only possibility to solve this is restating Zowe and even that does not solve the problem with a probability of 100% - sometimes it takes more than one restart until it works again.

What else can I check?

@1000TurquoisePogs 1000TurquoisePogs moved this to Medium Priority in WebUI planning board Jan 25, 2024
@DivergentEuropeans DivergentEuropeans added the priority-medium An issue that isn't very important so it will be planned in the PI, once there are no more important label Feb 23, 2024
@Sam-Explorer
Copy link

Hi, Did your issue with Zowe editor got fixed?
Was it working initially, any thing need to be checked in zowe.yaml for Zowe Editor to work ?

@1000TurquoisePogs
Copy link
Member

Hi apologies for the long wait on this one but, are either of you using a high-availability configuration in which there might be more than one copy of ZSS or app-server running at the same time? We had bugs in the past where cookies would not be usable between multiple servers, causing one to be okay with a request, and the other to think of it as unauthenticated. That particular bug is to be fixed in v2.15.0 releasing shortly.

@Sam-Explorer
Copy link

Hi, thank you for replying, we are not using high-availability configuration.
however when I check the logs I see the below messages

BPXTLS failed: rc=-1, return code=139, reason code=0x0be802af
for this I found update in - zowe/docs-site#705 - Was thinking to try

also, I see ZWED0070I - User=undefined (org.zowe.zlux.auth.trivial): Session authenticate successful

MVS-Explorer and USS-Explorer works, its just MVS-Editor which has issue ' An unknown error occurred: undefined '.

In Developer console of the browser, I see
Http failure response for https://zowetest.com: 403 OK
Refused to apply style from 'https://zowetest.com' because its MIME type ('application/json') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Any advice on this issue?

Thanks

@1000TurquoisePogs
Copy link
Member

Okay that's a very interesting error you get.
reason code according to IBM documentation is:

02AF 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.

And, ZSS, the server that's being used, is a program-controlled server. So, why did it lose program control status? Not sure but, I'm going to open an issue there to research further.
zowe/zss#692

@1000TurquoisePogs
Copy link
Member

By chance, is the file zowe/components/zss/bin/zssServer NOT program controlled ( https://www.ibm.com/docs/en/zos/2.1.0?topic=authorizations-program-control )
ZSS must be, and as the doc recommends the way to add it would be extattr +p zowe/components/zss/bin/zssServer but, it is distributed in that form so I normally would expect it already has that set.

@Sam-Explorer
Copy link

Exactly, we did refer to the below link and checked it seems to be ok
https://www.ibm.com/docs/en/zos/2.2.0?topic=installation-establishing-program-control

@1000TurquoisePogs
Copy link
Member

Not sure if this is whats happening to you, but I learned that some programs can interfere with the program control state of another running program such as Zowe.
Do you see any ICH or BPX messages in the logs / syslog about program control?
For example,
ICH422I THE ENVIRONMENT CANNOT BECOME UNCONTROLLED.
BPXP014I ENVIRONMENT MUST REMAIN CONTROLLED FOR SERVER (BPX.SERVER)
PROCESSING.

@Sam-Explorer
Copy link

Hi, thank you very much for helping on the issue and sorry for the delay in reply.
After we updated the file owner of Zowe to Zowe ID and recycle the Zowe STC issue got fixed.
Now we are able to access the Zowe Editor.

@JoeNemo
Copy link

JoeNemo commented Mar 13, 2024

So is this resolved as a config/privilege issue?

@lv198 - is this resolution satisfactory??

@JoeNemo
Copy link

JoeNemo commented Mar 13, 2024

@1000TurquoisePogs can you elaborate on the program trying to "uncontrol" zowe?

@lv198
Copy link
Author

lv198 commented Jun 19, 2024

So is this resolved as a config/privilege issue?

@lv198 - is this resolution satisfactory??

Hello @1000TurquoisePogs

Yes solution is satisfactory, was a privilege problem.
Thank you for your help.

@github-project-automation github-project-automation bot moved this from Backlog to Closed in WebUI planning board Jun 21, 2024
@rudatp
Copy link

rudatp commented Jul 2, 2024

Hi, thank you very much for helping on the issue and sorry for the delay in reply. After we updated the file owner of Zowe to Zowe ID and recycle the Zowe STC issue got fixed. Now we are able to access the Zowe Editor.

What file owner? I'm getting the same issue every time in Editor, both for USS and MVS files

@rudatp
Copy link

rudatp commented Jul 2, 2024

I just switched the configuration to ATTLS and Editor is working. What could be the reason, that it fails with TLS, but not with ATTLS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new not yet triaged priority-medium An issue that isn't very important so it will be planned in the PI, once there are no more important severity-medium A bug where workaround exists or that doesn't prevent the usage of the Zowe or the use case, just ma
Projects
Archived in project
Development

No branches or pull requests

6 participants