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

[BUG]Undefined ZEBRA Login? #101

Closed
erictreid1 opened this issue Jun 14, 2022 · 8 comments
Closed

[BUG]Undefined ZEBRA Login? #101

erictreid1 opened this issue Jun 14, 2022 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@erictreid1
Copy link

Describe the bug
Maybe this is a documentation bug, maybe I'm an idiot.

Used the docker version of ZEBRA, and edited the docker-compose.yml file because I have some other services that interfere with the ports. I then copied Zconfig.template.json to Zconfig.json and edited the ports, zOS RMF IP's/logins, etc to match what I know.

docker-compose-build runs pretty clean (don't see any port conflicts...etc.). I do see:
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 657)

I am on Node.js 8.10.0.

When I point to the ZEBRA browser, I can see my sysplex names and such. However, if I go to Settings -> Config in the GUI, I get hit with a Login screen asking for a username and password. I can't see in the documentation what these should be, or where to set them. I tried:

Server username/password
DD2 username/password
MongoDb username/password (as set in the Zconfig.json file)

None of these work, and get a Login Fail error.

I even tried renaming the Zconfig file so that ZEBRA started without any Zconfig.json file (I checked this because no LPAR was defined in the GUI), and still get the login screen. The documentation makes it sound like this shouldn't be the case.

Expected behavior
I thought that this should not be login-protected, or the documentation should explain how to set the ZEBRA login. I actually don't see anywhere in the documentation where a login is required for ZEBRA itself, just for Mongo/Prometheus/Grafana.

Screenshots
See below for the login failure.

Desktop (please complete the following information):
Zebra running on Ubuntu 20.04 LTS server edition in a Windows Server 2019 Hyper-V Lenovo server.

Desktop is Windows 10 running a Mozilla Firefox browser.
zebra login

Additional context
Add any other context about the problem here.

@erictreid1 erictreid1 added the bug Something isn't working label Jun 14, 2022
@behives
Copy link
Member

behives commented Jun 15, 2022

Thanks @erictreid1 - I believe this is a known issue regardless of docker or not.

@salisbuk7897 can you take a look please?

@behives
Copy link
Member

behives commented Jun 15, 2022

@erictreid1 Also, you don't need to log-in to use ZEBRA APIs or dashboard. It only requires if you choose to use GUI for changing settings for configuration. You can still do most of config/settings in src/confif/Zconfig.json as well as metrics.json...hope this helps.

@erictreid1
Copy link
Author

For sure, it's not preventing me from using this (Amazing!) tool, just a bit more of a pain for the config.

@jsanter27
Copy link
Collaborator

Hi @erictreid1 , thanks for trying this tool! Just an update: We are currently in the process of converting this tool to TypeScript, and this issue should be fixed once that's released.

@behives
Copy link
Member

behives commented Sep 2, 2022

Getting following error message when tried to change PW after login using default Admin/Admin password.

createError is not defined ReferenceError: createError is not defined at /root/zebra_build_test/zebra/src/app.js:124:3 at Layer.handle [as handle_request] (/root/zebra_build_test/zebra/src/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/zebra_build_test/zebra/src/node_modules/express/lib/router/index.js:317:13) at /root/zebra_build_test/zebra/src/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/root/zebra_build_test/zebra/src/node_modules/express/lib/router/index.js:335:12) at next (/root/zebra_build_test/zebra/src/node_modules/express/lib/router/index.js:275:10) at SendStream.error (/root/zebra_build_test/zebra/src/node_modules/serve-static/index.js:121:7) at emitOne (events.js:116:13) at SendStream.emit (events.js:211:7) at SendStream.error (/root/zebra_build_test/zebra/src/node_modules/send/index.js:270:17) at SendStream.onStatError (/root/zebra_build_test/zebra/src/node_modules/send/index.js:421:12) at next (/root/zebra_build_test/zebra/src/node_modules/send/index.js:736:16) at onstat (/root/zebra_build_test/zebra/src/node_modules/send/index.js:725:14) at FSReqWrap.oncomplete (fs.js:152:21)

And this is the console message:

GET /v1/RPRT/rmf3/CHANNEL?resource=,RPRT,MVS_IMAGE 200 36.396 ms - 5753 POST /log_in 200 269.508 ms - 4167 GET /stylesheets/bootstrap/css/bootstrap.min.css 304 1.521 ms - - GET /stylesheets/style.css 304 0.791 ms - - GET /images/Zebralogo.png 304 0.728 ms - - GET /bootstrap/js/bootstrap.bundle.js 304 0.500 ms - - GET /favicon.ico 500 41.919 ms - 3338 POST /log_in 200 359.595 ms - 5257 GET /stylesheets/style.css 304 0.816 ms - - GET /stylesheets/bootstrap/css/bootstrap.min.css 304 0.592 ms - - GET /bootstrap/js/bootstrap.bundle.js 304 1.322 ms - - GET /images/Zebralogo.png 304 0.555 ms - - GET /favicon.ico 500 38.018 ms - 3338 GET /prommetric 200 3.511 ms - - POST /UpdatePasswordForm 302 236.651 ms - 62 GET /undefined 500 42.300 ms - 3419 GET /stylesheets/style.css 304 0.718 ms - - GET /stylesheets/bootstrap/css/bootstrap.min.css 304 0.481 ms - - GET /bootstrap/js/bootstrap.bundle.js 304 1.559 ms - - GET /images/Zebralogo.png 304 1.231 ms - -

@behives
Copy link
Member

behives commented Sep 2, 2022

https://github.com/zowe/zebra/blob/main/src/Auth.js is the routing with update the password form. Thanks @salisbuk7897 !

@salisbuk7897
Copy link
Contributor

Took a Look at the issue. Everything is working now. First time users can Login using Admin/Admin and change their password and username. A documentation on this is also provided under Documentation/User Documentation/Login.md @behives

@behives
Copy link
Member

behives commented Sep 9, 2022

Thank you @salisbuk7897 ! As we verified during our scrum , it working as designed and we can close this issue.

  • verified new install a userID of 'Admin' and password 'Admin' works. Once a user changes password or create new user using the panel, the server needs to restart to take it effect.

Will merge to main.
Thank you!

@behives behives closed this as completed Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants