NetXMS Support Forum

English Support => General Support => Topic started by: Hanfelt on December 05, 2023, 09:33:14 AM

Title: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: Hanfelt on December 05, 2023, 09:33:14 AM
Is this a known problem, when this is triggered it seems that the website slowly starts to throw more and more error

SCR-20231205-hzui.png
Title: Re: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: maredcz on December 05, 2023, 11:56:35 AM
Hello, have the same question, the same error.

The error ist there in new web gui when display the map. 
Failed to register resource: generated/6b33fe9d.png
Cannot tell since is occuring, but it is there in 4.4.4, 4.4.3 and earlier versions. I tried make clean fresh test server installation and there is the same error.

Martin
Title: Re: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: Filipp Sudanov on December 06, 2023, 09:34:45 PM
Please check if there is anything in web ui log. E.g. for tomcat you can run

journalctl -u tomcat9.service -f

and then open a map to trigger the error. Also it would be beneficial if you can show screenshot of your map to see what elements are present on it.
Title: Re: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: maredcz on December 07, 2023, 09:27:39 AM
Hello Filipp,
I forgot to mention, it is MS windows server based installation. For testing have installed a new NetXMS server with sqlite DB and with webui. There is nothing configured, empty. Created the new map, then entered in the map .. and the error message arise. Jetty logs are attached.
The same bahaviour have in production installation NetXMS 4.4.4 + MariaDB + webui. When try open the map, error message appear and map is not displayed.


Martin
Title: Re: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: Filipp Sudanov on December 07, 2023, 12:20:57 PM
Hi!
This bug is specific for web UI on Windows. If you open C:\NetXMS-WebUI\jetty-home\etc\webdefault.xml file and change
    <init-param>
      <param-name>useFileMappedBuffer</param-name>
      <param-value>true</param-value>
    </init-param>
to
    <init-param>
      <param-name>useFileMappedBuffer</param-name>
      <param-value>false</param-value>
    </init-param>
this should solve the issue. This setting will be set to false in next releases.
Title: Re: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: Hanfelt on December 07, 2023, 02:20:55 PM
Thanks i can confirm that this works.
Title: Re: New Web UI failed to register resource: generated/xyz maps, graphs and dashboard
Post by: maredcz on December 07, 2023, 03:52:12 PM
Yes, it works now.

Thank you very much.

Martin