Dear All,
My NSX manager giving the subject error and NSX management service is also stopped. When i try to start the service manually but it fails. I have also check the nsx-manager logs through "show log manager reverse" command but could not find the error.
HI POFIT
what version of NSX do you run ? did you upgraded from one version to another version ?
Cheers
If the Management service stopped after Upgrade, there could be upgrade path that is not supported directy:
https://kb.vmware.com/s/article/2135476
After upgrading VMware NSX for vSphere 6.1.5 to 6.2.0, you experience these symptoms:
Also is the error on the Vcenter > Networking and Security are there any errors different than above could not establish communication error?
Yes This is correct
but not only this can be the reason of the issue , so we need version of NSX and if the upgrade was done or not from which to which.
Dear All,
I have not upgraded the NSX version and i am using the NSX version 6.2. The vcenter also giving the srror when i click on networking and security dashboad "No NSX manager available. Verify current user has role assigned on NSX Manager. Actually i have reboot the Vcenter server and NSX manager due to space issue after that i am facing this issue.
Are there any errors on NSX manager logs, it is possible to see with NSX Manager CLI show log command:
show log manager follow
show log manager reverse
If it is a Nested environment this could be helpful:
https://www.vmguru.com/2016/01/ravello-systems-vmware-nsx-6-2-management-service-stuck-in-starting/
1 2 3 | manager# show log manager reverse 2016-01-03 14:46:00.548 GMT INFO localhost-startStop-1 VsmServletContextListener:75 - NSX Status : STOPPED ... 129 more |
The vNIC of the NSX Manager is standardised on VMXNet3, which is fine under normal circumstances. The trick is to set the vNIC type to e1000. When you deploy the NSX Manager 6.2.1 with a e1000 vNIC, all required services boot up like you’d expect them to
The link is from the Upgrade Guide, but it could be used as health of NSX Manager:
Validate the NSX Manager file system usage, and perform a cleanup if file system usage is at 100 percent.
If during the bootup https://blah.cloud/virtualisation/recovering-nsx-manager-corrupt-filesystem/
You can reboot NSX Manager with a CLI command to recover from critical errors.
Procedure
nsx-manager> reboot Are you sure you want to reboot (yes/no): y
HI
did the registration tab is used same username and password ?
do you use full format i.e @domain.com ?
What kind of user do you use localos, DC , vsphere.local.?
Regards Dmitri
Dear,
I have run both the commands,
#show log manager reverse
#show log manager fellow
and i have find the following errors in the logs.
SQLException for SQL [???]; SQL state [null]; error code [0] cannot open connection nested exception is org.hibernate.exception.jdbcconnectionexception
ERROR NVPStatusCheck ControllerServiceImpl - Checking controller node stats failed
WARN HostStatusServiceInitThread HostStatusService Iml : 141 Failed to get initail host ID list from Network Preparation Service . Could not open JPA EntityManger for transaction; nested exception is javax,persistence.persistenceException; org.hibernate.exception.GenericJBDCException cnnot open connection.
can you put full java exception code!
Regards Dmitri
Are you seing these error messages after restarting the NSX Manager?
What is the NSX version?
The JDBC errors seem to be related with the PostgreSQL Db of the NSX Manager, which is internal. On the NSX Troubleshooting document there are no detailed explanation of how to check if the Internal DB is healthy, mostly concentrating on the outbound tcp connections. If the vPostgres service is also not running on the Summary page, then it may be concentrated on troubleshooting of first this service, since NSX Management service is the main service, which may depend on other services to start.
One workaraound could be to restore NSX manager backup taken before the problem, but this would not solve the problem itself and may recreate if the root cause is not clear.
SQLException for SQL [???]; SQL state [null]; error code [0] cannot open connection nested exception is org.hibernate.exception.jdbcconnectionexception
This may indicate a problem with JDBC connection to the internal PostGreSQL database of the NSX Manager. On the same NSX Manager Summary Page what is the Status of the vPostgres service?
ERROR NVPStatusCheck ControllerServiceImpl - Checking controller node stats failed
It is possible that NSX Manager - Controller Cluster connectivity problem. NSX Manager cannot form TCP Connection to the cluster.
On NSx Manager CLI debug connection does the NSX Manager try to establish connection to Controller Cluster members or Vcenter? This may not be because NSX Management service is the main service
Use the debug packet command: debug packet [capture|display] interface interface filter
The interface name on NSX Manager is mgmt.
The filter syntax follows this form: "port_80_or_port_443"
The command runs in privileged mode only. To enter privileged mode, run the enable command and provide the admin password.
Packet capture example:
nsxmgr# en
nsxmgr# debug packet display interface mgmt port_80_or_port_443 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on mgmt, link-type EN10MB (Ethernet), capture size 262144 bytes 23:40:25.321085 IP 192.168.210.15.54688 > 192.168.210.22.443: Flags [P.], seq 2645022162:2645022199, ack 2668322748, win 244, options [nop,nop,TS val 1447550948 ecr 365097421], length 37 ...
http://www.virten.net/2016/05/vmware-nsx-6-component-communication-diagram/
NSX Manager > NSX Controller 443/TCP (Controller to Manager Communication)
Is the controller cluster if checked from the Controller CLI formed and working properly?
http://www.vmwarearena.com/vmware-nsx-installation-part-5-checking-nsx-controller-status/
WARN HostStatusServiceInitThread HostStatusService Iml : 141 Failed to get initail host ID list from Network Preparation Service . Could not open JPA EntityManger for transaction; nested exception is javax,persistence.persistenceException; org.hibernate.exception.GenericJBDCException cnnot open connection.
This error again seems to to be Db related like before messages. The Web server of the NSX Manager and PostGresql may need to be troubleshoot
Please see this KB VMware Knowledge Base
also there is a possibility, depend of the version, that NSX manager cant send API call to controllers because of max connection , do you have any firewall between NSX Manager and controllers ?
Use API call directly to controllers to verify if they respond
Regards Dmitri
Dear All,
Dear i am execute the command "debug packet display interface mgmt port_80_or_port_443" and it is communicating one the controller three controllers i have configured. I can also access through ssh all the controllers. Moreover vPostgres and RabbitMQ sevices are running. I am also made one change. NSX Manager network card giving warning on Network adapter VMXNET type. The warning gone when i change it to e1000. But on both cases the nsx manager services is not running.