Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Unable to Login #1916

Closed
arora22 opened this issue Jan 3, 2018 · 27 comments
Closed

Unable to Login #1916

arora22 opened this issue Jan 3, 2018 · 27 comments

Comments

@arora22
Copy link

arora22 commented Jan 3, 2018

image
image

I have created admin user. When I login it redirects me back to home screen

@subodhbattina
Copy link
Contributor

@romal22:
Could you please share the logs on Developer Tools Console.
If you are using Google Chrome: Go to View --> Developer --> Developer Tools. Thanks !

@arora22
Copy link
Author

arora22 commented Jan 5, 2018

@subodhbattina below is what i can see when i click login and try to login with my credentials.

:3003/#/login:1 [DOM] Found 2 elements with non-unique id #lg: (More info: https://goo.gl/9p2vKq) <form class=​"col-xs-10 col-xs-push-1 col-sm-8 col-sm-push-2 ng-pristine ng-invalid ng-invalid-required ng-valid-minlength" id=​"lg" name=​"lg" ng-submit=​"login(username, password)​" role=​"form" novalidate>​…​</form>​ <form class=​"col-xs-10 col-xs-push-1 col-sm-8 col-sm-push-2 ng-pristine ng-invalid ng-invalid-required ng-valid-minlength" id=​"lg" name=​"lg" ng-submit=​"login(username, password)​" role=​"form" novalidate>​…​</form>​ api-status.js:16 appinfo:2.0.5-SNAPSHOT :3003/#/login:1 This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.

@Ashissh021
Copy link

Ashissh021 commented Jan 5, 2018

@subodhbattina - Any error on API log (API command prompt)?

@arora22
Copy link
Author

arora22 commented Jan 5, 2018

@Ashissh021 No Errors in Api logs /command prompt. Checked in Authentication table in db. User admin is available as well.

@Ashissh021
Copy link

Ashissh021 commented Jan 5, 2018

@romal22 - Please let me know below mention points.

  1. When you say you have created admin user, can you please let me know how you created? (process)
  2. Are you using Mongo db? if yes can you restart once and try the below steps
    2.1) Restart the API and UI
    2.2) Try login and if its not working the Click on signup and create new login credentials and try login with new credentials.
    I had the same issue and restart had resolved it(that is my observation that i had face during the setup)
    hope this will work.

@arora22
Copy link
Author

arora22 commented Jan 5, 2018

@Ashissh021

  1. To Create Admin User id followed these steps -> Went to login page. Clicked Signup Button. Created user admin/myadminpassword.
  2. Yes I am using mongodb. Restarted db even my machine multiple times. Still unable to login.
  3. Restarted API and UI (By UI you means trigerring gulp serve? right?)
  4. Never logged in. Created 3 more logins already. Still Not logging in.

@rodrigocmn
Copy link

@romal22 - can you try to login using Chrome's incognito mode?

@beasknees
Copy link
Collaborator

beasknees commented Jan 8, 2018

@romal22 - please post a screenshot of your browser's console output.
Steps:
1: open dev console
2: attempt admin login
3: take screenshot
4: click 'network' in your dev tools
5: take screenshot no. 2

when you have the two screenshots post the information here.

@beasknees
Copy link
Collaborator

@romal22 - if you continue to have issues setting up Hygieia, please contact us on our gitter.im channel. For now, I'm closing this issue due to inactivity.

@rcsrao
Copy link

rcsrao commented Jul 11, 2018

Same issue with me ... any help?

@vishnuvangala
Copy link

Same issue.. Any help?
@rcsrao & @romal22 How did u resolve this?

@sundeep-paulraj
Copy link

this issue is occurring again and again .. some help in fixing this would be of great help . I have tried to rebuild the code multiple times and everytime the API is okay however unable to login after user creation part.

It reopens the login page again and again

@shubhamk0305
Copy link

shubhamk0305 commented Sep 9, 2019

HI team,

I am also facing same Login issue
I have created admin user. When I login it redirects me back to home screen.

I am using the 3.0.2 version.
I have created the admin user admin currently using MongoDB
while checking in DB my user created is there in DB.

@rvema
Copy link
Contributor

rvema commented Sep 9, 2019

@sundeepk1 and @shubhamk0305 please ensure you have the latest version of UI, fix should be part of this PR - #3129

@shubhamk0305
Copy link

shubhamk0305 commented Sep 9, 2019 via email

@rvema
Copy link
Contributor

rvema commented Sep 9, 2019

Can you share the link for latest UI code Get Outlook for Androidhttps://aka.ms/ghei36

________________________________ From: Ragha Vema notifications@github.com Sent: Monday, September 9, 2019 5:04:36 PM To: Hygieia/Hygieia Hygieia@noreply.github.com Cc: Shubham Kumar2 Shubham.Kumar2@igtsolutions.com; Mention mention@noreply.github.com Subject: Re: [Hygieia/Hygieia] Unable to Login (#1916) CAUTION::: THIS EMAIL HAS ORIGINATED FROM OUTSIDE OF IGT. DO NOT CLICK ON LINKS OR OPEN ATTACHMENTS UNLESS YOU RECOGNISE THE SENDER AND KNOW THE CONTENT IS SAFE..
________________________________ @sundeepk1https://github.com/sundeepk1 and @shubhamk0305https://github.com/shubhamk0305 please ensure you have the latest version of UI, fix should be part of this PR - #3129<#3129> — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#1916?email_source=notifications&email_token=AL74Q2SGTWWRIQISB4GGF3LQIZCWJA5CNFSM4EKGQ6H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6HPSBA#issuecomment-529463556>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL74Q2T7XCAXKJCBKNS5FRTQIZCWJANCNFSM4EKGQ6HQ. Privileged and Confidential e-mail from IGT The information contained in this communication (including any attachment(s) hereto) (collectively, “Communication”) is confidential, may be IGT privileged, may constitute inside information, and is intended only for the use of the addressee. It is the property of IGT Solutions Private Limited (“IGT”) and the intended recipient. Unauthorized use, disclosure or copying of this Communication or any part thereof is strictly prohibited and may be unlawful. If you have received this Communication in error, please notify us immediately by return e-mail, and destroy this Communication and all copies thereof. IGT is not liable for the improper transmission of this Communication or for any damages sustained as a result of this Communication. Please contact our IT Department on +91 124 4587600, +91 124 4587601 or e-mail helpdesk@igtsolutions.com for further assistance.

https://github.com/Hygieia/Hygieia (master branch) or https://github.com/Hygieia/Hygieia/releases/tag/v3.1.0

@shubhamk0305
Copy link

thank you for the link .

Do we need to compile it again?

@rvema
Copy link
Contributor

rvema commented Sep 9, 2019

@shubhamk0305 yes you would need to run mvn clean install on the UI project and relaunch the UI using gulp serve

@shubhamk0305
Copy link

ok i will do that but on current version i am getting below error while using gulp serve

[root@hygieia UI]# gulp serve
[11:14:36] Using gulpfile /home/hygieia/Latest_HYG/Hygieia-master/UI/gulpfile.js
[11:14:36] Starting 'build'...
[11:14:36] Starting 'clean'...
[11:14:36] Finished 'clean' after 59 ms
[11:14:36] Starting 'assets'...
[11:14:36] Starting 'themes'...
[11:14:36] Starting 'fonts'...
[11:14:36] Starting 'js'...
[11:14:36] Starting 'views'...
[11:14:36] Starting 'test-data'...
events.js:174
throw er; // Unhandled 'error' event
^

Error: EISDIR: illegal operation on a directory, read
Emitted 'error' event at:
at DestroyableTransform.onerror (/home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:558:12)
at DestroyableTransform.emit (events.js:198:13)
at onwriteError (/home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:250:10)
at onwrite (/home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:268:5)
at WritableState.onwrite (/home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:106:5)
at afterTransform (/home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:104:5)
at TransformState.afterTransform (/home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:79:12)
at /home/hygieia/Latest_HYG/Hygieia-master/UI/node_modules/vinyl-fs/lib/src/getContents/bufferFile.js:9:14
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:37:12)
[root@hygieia UI]#

@rvema
Copy link
Contributor

rvema commented Sep 9, 2019

what version of node are you using?

@shubhamk0305
Copy link

shubhamk0305 commented Sep 9, 2019 via email

@rvema
Copy link
Contributor

rvema commented Sep 9, 2019

@shubhamk0305 Unfortunately Hygieia is compatible with node v8 at this moment. Please try downgrading to v8.x and retry

@shubhamk0305
Copy link

shubhamk0305 commented Sep 9, 2019 via email

@shubhamk0305
Copy link

@rverma is it possible if i can share you webex session can you help me with this

@shubhamk0305
Copy link

@rvema while compiling the latest UI Code getting below error

[root@localhost UI]# ll
total 40
drwxr-xr-x. 2 root root 21 Aug 28 16:10 assembly
drwxr-xr-x. 3 root root 79 Aug 28 16:10 docker
-rwxr-xr-x. 1 root root 289 Sep 8 2019 Dockerfile
-rwxr-xr-x. 1 root root 8874 Sep 8 2019 gulpfile.js
-rwxr-xr-x. 1 root root 2706 Sep 8 2019 karma.conf.js
-rwxr-xr-x. 1 root root 6592 Sep 8 2019 package.json
-rwxr-xr-x. 1 root root 4456 Sep 8 2019 pom.xml
-rwxr-xr-x. 1 root root 140 Sep 8 2019 README.md
drwxr-xr-x. 7 root root 130 Aug 28 16:10 src
drwxr-xr-x. 3 root root 45 Aug 28 16:10 test
[root@localhost UI]# mvn clean install
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.3.0.RELEASE/spring-boot-starter-parent-1.3.0.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.capitalone.dashboard:Hygieia:3.1.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known and 'parent.relativePath' points at wrong local POM @ com.capitalone.dashboard:Hygieia:3.1.1-SNAPSHOT, /home/new_hygieia/Hygieia-master/pom.xml, line 10, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.capitalone.dashboard:UI:3.1.1-SNAPSHOT (/home/new_hygieia/Hygieia-master/UI/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.capitalone.dashboard:Hygieia:3.1.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known and 'parent.relativePath' points at wrong local POM @ com.capitalone.dashboard:Hygieia:3.1.1-SNAPSHOT, /home/new_hygieia/Hygieia-master/pom.xml, line 10, column 13: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
[root@localhost UI]#

Kindly help me out in this

@rvema
Copy link
Contributor

rvema commented Sep 11, 2019

@shubhamk0305 try running mvn clean install from the parent Hygieia folder. Looks like you are unable to retrieve snapshots from central maven snapshot repository. The artifact mentioned in the error is present in oss snapshot repository

@shubhamk0305
Copy link

@rvema i will try to run new code...

but time being i am using old code getting below error no graph is view on dashboard.

build

rverma

kindly let me know the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants