NetXMS Support Forum

English Support => General Support => Topic started by: praim on January 20, 2018, 02:07:15 AM

Title: WEBApi install error
Post by: praim on January 20, 2018, 02:07:15 AM
Hello,
I have tried to install webapi on my Ubuntu. I have got this following error:   Failed to execute goal on project netxms-websvc: Could not resolve dependencies for project org.netxms:netxms-websvc:war:3.0-SNAPSHOT: The following artifacts could not be resolved: org.netxms:netxms-base:jar:3.0-SNAPSHOT, org.netxms:netxms-client:jar:3.0-SNAPSHOT: Failure to find org.netxms:netxms-base:jar:3.0-SNAPSHOT in http://maven.restlet.com was cached in the local repository, resolution will not be reattempted until the update interval of maven-restlet has elapsed or updates are forced


Can you please help me?
Best regards
Title: Re: WEBApi install error
Post by: Victor Kirhenshtein on January 24, 2018, 12:44:46 PM
Hi,

as you are building for development branch, you have to install dependency packages manually to your local repository from source tree. Do the following (from source tree root):


cd src/libnxjava/java/base/netxms-base
mvn clean
mvn install
cd ../../../../client/java/netxms-client
mvn clean
mvn install


Now you should have both dependencies installed.

Best regards,
Victor
Title: Re: WEBApi install error
Post by: praim on January 26, 2018, 08:40:21 PM
Thank you,
I have followed instructions from wiki, where is, that I have to download api from GIT repository.

I have another problem. In the grafana webserver I can see all DCI values, but when after I add a DCI, It always shows: "datapoints:Array[0]" so graphs are empty

Best regards
Title: Re: WEBApi install error
Post by: Ēriks Jenkēvics on January 27, 2018, 11:47:03 AM
Hi!

Could you check if the DCI has collected any data? Also, could you please post screenshots of the DCI configuration?

Regards,
Eriks
Title: Re: WEBApi install error
Post by: praim on January 27, 2018, 02:49:32 PM
Hi,

yes, DCI has collected data normally. Here you have screenshots. If you want to something else, let me know.

Best regards
Title: Re: WEBApi install error
Post by: Victor Kirhenshtein on February 06, 2018, 11:04:20 AM
Just to make sure - are you using server from development branch (3.0)? Or your server is from 2.2.x branch? If latter, then I suggest to download matching version of web services API. Also, make sure you install NetXMS datasource for Grafana version 1.1.0.

Best regards,
Victor
Title: Re: WEBApi install error
Post by: praim on February 08, 2018, 02:01:16 PM
I am using netxms server v2.2.2 with web api v2.2.2. Grafana is v4.6.3 with netxms plugin version v1.1.0