Web console installation

Started by squeezypiano, September 16, 2020, 12:16:20 PM

Previous topic - Next topic

squeezypiano

I am trying to run the latest (3.5.90) WebApp on Ubuntu 20.04 with Jetty but get this when I browse to the URL.  Have tried different versions of Java and also tried Tomcat as well.  What have I missed?  Thanks.

{"description":"NetXMS web service API version 3.5.90","version":"3.5.90","build":"3.5-90-g215397d8e7"}

Victor Kirhenshtein

Hi,

looks like you've deployed web API instead of web interface (GUI application). You have to deploy this war file: https://netxms.org/download/releases/3.5/nxmc-3.5.90.war

Best regards,
Victor

squeezypiano

Yeah, that would do it.  Apologies.  All the usual excuses but none of them valid  ::)

squeezypiano

OK, so now I can get the page to load but it will not log in.  System is Ubuntu 20.04 (also tried on 18.04) and tried with native JDK, openjdk-8-jdk on both jetty9 and tomcat9 but all combinations it fails with 'connect timed out'.  Server is running and can connect from desktop console and WebUI is installed on the same machine as the server with firewall disabled.  What am I missing?

Victor Kirhenshtein

Can you login with desktop client? If yes, please send Jetty/Tomcat log.

Best regards,
Victor

squeezypiano

Hi Victor.
Log files attached following a clean install.
Many thanks.

Filipp Sudanov

Hi!

Did you try to connect from desktop client, not the web one? Did you suceed?

squeezypiano

Yes, desktop client is working just fine.

squeezypiano

Is anyone able to help, please?  Still cannot get it working.  Here is what I did on Ubuntu 20.04 to install...

wget http://packages.netxms.org/netxms-release-latest.deb
dpkg -i netxms-release-latest.deb

apt-get update

apt-get dist-upgrade -y

apt-get install postgresql postgresql-contrib tomcat9 -y

sudo -u postgres psql

CREATE DATABASE netxms;
CREATE ROLE netxms WITH LOGIN;
\password netxms
GRANT ALL PRIVILEGES ON DATABASE netxms TO netxms;
\q

apt-get install netxms-server netxms-dbdrv-pgsql netxms-agent -y

nano /etc/netxmsd.conf <-- uncomment psql and add password

nxdbmgr init

systemctl enable netxmsd
systemctl restart netxmsd

cd /tmp
wget https://www.netxms.org/download/releases/3.5/nxmc-3.5.90.war
mv nxmc-3.5.90.war /var/lib/tomcat9/webapps/nxmc.war

Filipp Sudanov

#9
Hi!

Just tried your installation sequence on fresh ubuntu 20.04, nxmc correctly opens on port 8080

squeezypiano

Thanks, but I don't think I have SSL enabled and the page loads fine just will not connect to the service.  When I try to log in I get 'Connection error, connected timed out'.  Does it need SSL enabling?

Filipp Sudanov

I had error when tried to connect to 8080 via https. Should just use http.

squeezypiano

Ah, yes, OK.  So HTTP loads but gives the connect error when I try to log in.  The server is running and I can connect from the desktop console just not the WebUI.

Filipp Sudanov

Just in case, show nxmc log file:
/var/lib/tomcat9/work/Catalina/localhost/nxmc/eclipse/workspace/.metadata

Try deleting tomcat workspace:
stop tomcat process
delete /var/lib/tomcat9/work folder
start tomcat again


squeezypiano

Oh now that's interesting.  Hadn't found that log file but in there it has:

!MESSAGE Server address resolved from NETXMS_SERVER: x.x.x.x

The address being returned is not the address of itself but for the @ record for the machine's domain, which in this case is a public address.  What is it trying to resolve to get that?  As far as I can tell /etc/hosts and DNS are set up correctly.