Problem:Sometimes, we may ran into the following error while trying to access VisualRf Floor plans in Airwave.
Diagnostics:We need to confirm two things to isolate the issue here. They are:
1. Logged into AMP and Navigate to AMP Setup --> Roles.
2. Check the privileges assigned to the logged-in user. In this case, we have logged with username admin, that has VRF read/write access.
3. Check the visualrf logs located at /var/log/visualrf/visualrf.log.
It would show the below messages:
2016-09-27 14:29:35,538 ERROR HTTP[1] com.airwave.svg.init.RequestHandler exception caught path=/visualrf/getUserPref
com.airwave.core.http.exceptions.MissingAuthorizationInfo: MissingAuthorizationInfo
at com.airwave.model.parsers.UserPreferenceParser.createUserPrefNode(UserPreferenceParser.java:165)
at com.airwave.model.parsers.UserPreferenceParser.createNodes(UserPreferenceParser.java:99)
at com.airwave.svg.APIFacadeImpl.getUserPref(APIFacadeImpl.java:4198)
at com.airwave.svg.APIFacadeImpl.getUserPref(APIFacadeImpl.java:223)
at com.airwave.svg.init.RequestHandler.run(RequestHandler.java:2321)
at com.airwave.svg.init.DelegateHttpHandler.handle(DelegateHttpHandler.java:39)
at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
at sun.net.httpserver.AuthFilter.doFilter(Unknown Source)
at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(Unknown Source)
at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
at com.airwave.svg.http.AMPContextFilter.doFilter(AMPContextFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
at sun.net.httpserver.ServerImpl$Exchange.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
SolutionBy default, role_id 7 corresponds to visualrf access.
Since, the error says missing authorization info, check users table to verify the user with role_id = 7 is enabled. In this case, the user with role_id = 7 is disabled.
If you see user role_id = 7 is disabled, enable it using the following command:
[root@localhost visualrf]# dbc update users set is_enabled = 1, login_attempts = 10 where role_id =7;
To restart visualrf from the terminal, use the below command:
[root@localhost visualrf]# psk airwave.visualrf.jar
To restart VRF from GUI, navigate to VisualRF Setup and set Enable VisualRF Engine to No and Save. Re-enable it again and save.
VisualRF Floor plans would now load without any issues.