Bug 193571 - [MAINTAINER] net-mgmt/netxms: update to 1.2.16
Summary: [MAINTAINER] net-mgmt/netxms: update to 1.2.16
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-11 19:01 UTC by Muhammad Moinur Rahman
Modified: 2014-10-06 08:29 UTC (History)
1 user (show)

See Also:


Attachments
patch for netxms-1.2.16 (10.82 KB, patch)
2014-09-11 19:01 UTC, Muhammad Moinur Rahman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Muhammad Moinur Rahman freebsd_committer freebsd_triage 2014-09-11 19:01:16 UTC
Created attachment 147223 [details]
patch for netxms-1.2.16

- Update to 1.2.16

This port builds well but is not functioning properly. As I have stopped using this application I cannot verify this properly. Hence I will be requesting some help from Micheal Luckstone. After his confirmation I will finalize with the Poudriere logs and provide maintainer-approval.
Comment 1 Micheal.Luckstone 2014-09-12 13:58:15 UTC
I am using FreeBSD 10.  This is a fresh install.  Installed pgk management, ports collection, dialog4ports and mysql56-server.

I applied the patch for netxms-1.2.16.  patch < netxms-1.2.16.patch

I received the following error when I executed make install.

pkg-static: (netxms-1.2.16) /usr/ports/net-mgmt/netxms/work/stage//usr/local/bin/nxencpasswd - required shared library libnxtre.so.5 not found
pkg-static: (netxms-1.2.16) /usr/ports/net-mgmt/netxms/work/stage//usr/local/bin/nxscript - required shared library libnxtre.so.5 not found

I received the following error when trying to start the netxmsd.

/usr/local/bin/netxmsd -d
Shared object "libnxlp.so.1" not found, required by "netxmsd"

I received the following error when trying to start the nxagentd.

/usr/local/bin/nxagentd  -d
Shared object "libappagent.so.1" not found, required by "nxagentd"
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2014-09-12 14:26:52 UTC
Hi,

Can you please recheck. Cause I have just built it with MySQL 5.6. And it builds perfectly. For your reference:
http://pdr.s.ubze.ro/bulk/latest-per-pkg/netxms/1.2.16/

Check the 10.X buildlogs. Server and MySQL is activated.
Comment 3 Micheal.Luckstone 2014-09-12 15:01:04 UTC
Where do I look for the logs? MySQL is running.
Comment 4 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2014-09-12 16:31:58 UTC
Oh I meant that I have built those in 10.0 i386 and amd64 and the buildlogs are available in the URL provided. And while building I have by default checked AGENT, CLIENT, SERVER and MYSQL.

(In reply to Micheal.Luckstone from comment #3)
> Where do I look for the logs? MySQL is running.
Comment 5 Micheal.Luckstone 2014-09-12 18:47:05 UTC
Making progress.  I was building with only Server and MYSQL.  In the description the server line states Server and Agent so I didn't think I needed to have AGENT and CLIENT selected.

I received the following error when trying to start the netxmsd.
/usr/local/bin/netxmsd -d

Starting netxmsd.
NetXMS Database Manager Version 1.2.16 Build 7884

Unable to load and initialize database driver ""

According to NetXMS Wiki
Initialise this database with nxdbmgr utility using sql-script in sql/dbinit_DBTYPE.sql. DBTYPE can be "mssql", "mysql", "pgsql", "oracle", or "sqlite".

MySQL example:

$ /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql

I believe this needs to be added so that the database is initialized.

Also the database server needs to be running first at boot before netxmsd/nxagent is executed.
Comment 6 Micheal.Luckstone 2014-09-18 12:03:44 UTC
Have you been able to address the last issues?
Comment 7 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2014-09-18 12:08:03 UTC
Check the conf files and try to reinitialize the db.
Comment 8 Micheal.Luckstone 2014-09-18 12:16:02 UTC
Does the install initialize the DB?  I will check the config and try to reinitialize the DB.
Comment 9 Micheal.Luckstone 2014-09-18 15:11:10 UTC
I am still having issues.  The following are the steps I am using to install FreeBSD and NetXMS in a VM using Virutalbox.
Install FreeBSD with out Games or Ports.
Install pkg and ports.
Install dialog4port and MySQL56-server
Add mysql_enable="YES" to /etc/rc.conf
Reboot and verify that mysql is running.
Apply the 1.2.16 patch command: patch < netxms-1.2.16.patch
make selecting AGENT, CLIENT, SERVER and MYSQL.
make install
execute netxmsd command: /usr/local/bin/nexmsd -d

It just returns to the command prompt but does not start the service.


The netxmsd.conf file does not seem to be configured and I see no mysql databases besides the default ones.

Should the install configure the netxmsd.conf and create the database on install?

Please assist I really need to get this working by the end of next week.
Comment 10 Baptiste Daroussin freebsd_committer freebsd_triage 2014-10-06 08:29:20 UTC
overcome by 194096