Member since
06-20-2017
12
Posts
0
Kudos Received
0
Solutions
07-31-2017
08:59 PM
Hi @asubramanian, have you encountered this issue before? when trying to connect to Metron UI it always fails with no detail other than the message "Login failed for metron" I can login to mysql using the metron metron username and pass. no issues Also in the HCP doc it is mentioned that to make sure http://METRON_HOST:8082/swagger-ui.html# in bk_installation pdf: 14.Make sure you can access the Swagger UI at http://host:port/swagger-ui.html#/.
The exposed REST endpoints can be accessed with the Swagger UI at http://host:port/
swagger-ui.html#/. The default port is 8082 but can be changed in the $METRON_HOME/
config/application.yml file by setting "server.port" to the desired port.
when I go to the url it asks for username and password. I assume it's metron credentials. but it's keeps poping the login box. If I cancel it, the landing page looks like this: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Jul 31 16:55:39 EDT 2017
There was an unexpected error (type=Unauthorized, status=401).
PreparedStatementCallback; bad SQL grammar [select username,password,enabled from users where username = ?]; nested exception is org.h2.jdbc.JdbcSQLException: Table "USERS" not found; SQL statement: select username,password,enabled from users where username = ? [42102-192] I don't get it why it's complaining about h2.jdbc connection while I already change the connection detail to mysql in ../config/application.yml Any hint would be appreciated! Frank
... View more
07-20-2017
10:35 PM
Hi Michel, I'm facing the same issue even when I'm trying to connect to Metron Management UI, it always gives me "Login failed for metron" and what is interesting is according to HCP install docs, when I test the swagger (http://:8082/swagger-ui.html#)>:8082/swagger-ui.html#) connection it asks for username and password and it keeps looping no matter what you enter. if I cancel the login pop-up I can see that it was trying to connect using org.h2.jdbc.JdbcSQLException despite that application.yml clearly is mentioned that mysql is used.
This application has no explicit mapping for /error, so you are seeing this as a fallback. Thu Jul 20 18:18:35 EDT 2017
There was an unexpected error (type=Unauthorized, status=401).
PreparedStatementCallback; bad SQL grammar [select username,password,enabled from users where username = ?]; nested exception is org.h2.jdbc.JdbcSQLException: Table "USERS" not found; SQL statement: select username,password,enabled from users where username = ? [42102-192]
Have you encountered anything like this? Thanks, Frank
... View more
07-20-2017
03:11 PM
Hi @msumbul, @asubramanian, I had the same question and when you suggested doesn't work since both processes are not registered as services. since they are launched via nohup start_..... here what I get when I try it: $ service metron-rest stop Redirecting to /bin/systemctl stop metron-rest.service Failed to stop metron-rest.service: Unit metron-rest.service not loaded. $ service metron-rest start Redirecting to /bin/systemctl start metron-rest.service Failed to start metron-rest.service: Unit not found. Any suggestions? Frank
... View more
06-21-2017
05:14 PM
For the records, for a more cleaner way, the issue was with SELinux set to enforcing disable it by running this as root: setenforce 0 then re-run : mvn clean install -DskipTests -PHDP-2.5.0.0
... View more