简介
本文档介绍在升级到版本7.2.1后,如何更正安全网络分析(SNA)管理器对的升级问题。
背景信息
此处提出的问题是,在将辅助SNA Manager升级到版本7.2.1后,您无法使用管理员帐户登录。
问题
将辅助SNA Manager升级到版本7.2.1后,用户无法使用管理员帐户登录。错误为:
The authentication service was unable to fulfill your request. If this problem persists, contact your Stealthwatch administrator.
设备在中央管理中显示为down。
smc-users.log文件中的错误与LSQ-5595 / SWD-S中的故障一致15027。但是,尝试的修复(删除user.xml文件并重新启动SMC/tomcat服务)未解决问题。重建的user.xml文件看起来与旧文件相同。
2021-09-08 16:38:30,908 INFO [UserDAOImpl] reading /lancope/var/smc/config/users/admin/user.xml
2021-09-08 16:38:30,910 WARN [XmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticateServiceImpl' defined in file [/opt/apache/tomcat7/webapps/smc-users/WEB-INF/classes/com/lancope/sws/smc/service/authenticateService/AuthenticateServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usersService' defined in ServletContext resource [/WEB-INF/serviceContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean property 'userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in ServletContext resource [/WEB-INF/daoContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.lancope.sws.smc.user.data .UserDAOImpl]: Constructor threw exception; nested exception is com.lancope.server.table.TableResourceException: java.lang.NullPointerException
2021-09-08 16:38:30,912 ERROR [ContextLoader] Context initialization failed
此时无法升级主管理器。升级失败,并显示一条消息,指示它无法与辅助SMC通信:
2021-09-07 22:21:02,157 - update-smc-7.2.1.2020.05.16.0002-02 - DEBUG - {u'status': u'Failed to upgrade appliance', u'timestamp': 1631053262.129825, u'message': u'We could not finish the Smart Licensing Readiness Check because the SMC/Central Manager at 10.128.208.46 is not responding. Restart your SMC and try to update this appliance again.', u'complete': 1, u'error': 1}.
删除user.xml文件后,主管理器和辅助管理器可以复制,损坏的user.xml文件从主管理器复制。
解决方案
删除主目录上存在问题的user.xml文件,然后使用命令重新启动lc-tomcat(主管理器仍位于版本7.1.1上) systemctl restart lc-tomcat
.然后删除辅助Manager上的user.xml文件,并使用命令重新启动管理器清单 systemctl restart smc-manifest
.