LinuxMint 20.04 Installation issues

Started by gokiwi, July 29, 2020, 09:56:05 PM

Previous topic - Next topic

gokiwi

Hi, Trying to install on LM20.04 but am hitting issues.

I have both PostgreSQL and MySQL installed - have installed the driver for PostgreSQL as when I try and install the driver for MySQL it says

sudo apt-get install netxms-dbdrv-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package netxms-dbdrv-mysql

I then try "/usr/local/bin/nxdbmgr init" but get
/user/local/bin/nxdbmgr init
bash: /user/local/bin/nxdbmgr: No such file or directory


Also I dont see anywhere where it says how to launch the webgui ?








Alex Kirhenshtein

MySQL driver is not available on Ubuntu / Mint 20. You can use mariadb driver instead, it's compatible.

If you installed server from packages, nxdbmgr should be in /use/bin (and it's in default path)

Web UI - install jetty or tomcat, then deploy nxmc.war from the web site.


gokiwi

Hi , Thanks for the quick response - unfortunately it still doesn't work - Ive done a fresh install of 20.04  and a fresh install of Netxms. The provided instructions are both wrong and confusing .

I now get the following errors

sudo /usr/bin/nxdbmgr init
NetXMS Database Manager Version 3.4.232 Build 3.4-232-g55c414782e (UNICODE)

Unable to load and initialize database driver ""

and

sudo systemctl start netxms-server
Failed to start netxms-server.service: Unit netxms-server.service not found.

Postgresql is running and listening on port 5432




Alex Kirhenshtein

#3
What's in /etc/netxmsd.conf?
When installed, netxms-server package show following message:

NetXMS server is installed but currently stopped.

Additional steps required:

1. Edit default configuration file (/etc/netxmsd.conf)

2. Load database schema

   nxdbmgr init

3. Start daemon with command:

   systemctl start netxms-server


I've updated installation guide a bit, it should be pushed to to web soon.

gokiwi

Hi, Again thanks for the reply.

I did somehow get it working briefly last night , but then today LM 20.04 had some updates that required a reboot and now it doesn't work again.

The daemon I think is running.

sudo systemctl status netxmsd
● netxmsd.service - NetXMS Server
     Loaded: loaded (/lib/systemd/system/netxmsd.service; disabled; vendor pres>
     Active: active (running) since Thu 2020-07-30 15:44:22 BST; 1h 29min ago
    Process: 5220 ExecStart=/usr/bin/netxmsd -d (code=exited, status=0/SUCCESS)
   Main PID: 5233 (netxmsd)
      Tasks: 94 (limit: 9304)
     Memory: 32.2M
     CGroup: /system.slice/netxmsd.service
             └─5233 /usr/bin/netxmsd -d

Jul 30 15:44:22 Hampton-Downs systemd[1]: Starting NetXMS Server...
Jul 30 15:44:22 Hampton-Downs systemd[1]: Started NetXMS Server.

But when I try to login via ncmc I get

Connection Error - Access denied.

I have followed the instructions to reset the password (which seemed to be successful)

Alex Kirhenshtein

"nxdbmgr reset-system-account" unlock account "system", not "admin".
Login as system/netxms, then change password for user admin in user manager and re-lock user "system"

gokiwi

We have lift off - Everyday that you learn something is a good day !!! - Thank you for your help & assistance  - much appreciated