CESNET / Netopeer2GUI

Web-based NETCONF management center
Apache License 2.0
25 stars 12 forks source link

<class 'netconf2.Session'> returned a result with an error set #8

Open makramalla opened 6 years ago

makramalla commented 6 years ago

Hello,

When trying to connect to a netconf server I get this error on the gui:

<class 'netconf2.Session'> returned a result with an error set.

There are no additional errors in the backend.log file: All modules are parsed and stored on the gui.

I am using the vagrant Ubuntu box and am able to successfully connect to the local server with no issue.

Kindly note, that I am also able to successfully connect to the same server using netopeer2-cli using the same vagrant box.

Let me know if I can provide you with any further details or log files from my end that could help.

Thanks,

Maged

rkrejci commented 6 years ago

Hi, where exactly do you see the error message? Even there are no errors, could you provide the backend.log to see what is happening there?

makramalla commented 6 years ago

Yes sure. The error is visbile on the gui itself:

image

This is the logs printed in the backend.log file whenever I add a new device or try to connect to any of the existing ones from the list (other than he localhost server):

127.0.0.1 - - [27/Apr/2018 12:03:11] "POST /netopeer/session HTTP/1.1" 200 -
127.0.0.1 - - [27/Apr/2018 12:03:11] "POST /netopeer/session HTTP/1.1" 200 -

Let me know if I can provide you with anything else.

makramalla commented 6 years ago

Hello again,

I am still facing the same issue when trying to connect to any netconf server (other than the localhost, although it works fine with netopeer-cli.

Is there any log files that I could provide that can help us in understanding and potentially resolving this issue?

Thank you for your consideration,

rkrejci commented 6 years ago

Hi, sorry for the delay, I was sick and then busy with some other stuff :(

In the libnetconf2 sources, you should find python/examples/serverinfo.py. Please try to run it and connect to the server you cannot connect with the Netopeer2GUI. Then, please, post the output.

makramalla commented 6 years ago

Hello,

Thank you so much for the reply.

I just tried the script and this is the output:


libyang[0]: Data model "yumaworks-system" not found.
libyang[0]: Missing keyword "key" as a child to "list". (path: /errors/error)
libyang[0]: Invalid value "errors" of "uses". (path: /ietf-restconf:errors)
libyang[0]: Copying data from grouping failed. (path: /ietf-restconf:errors)
libyang[0]: Module "ietf-restconf" parsing failed.
libyang[0]: Importing "ietf-restconf" module into "yumaworks-restconf" failed.
libyang[0]: Module "yumaworks-restconf" parsing failed.
libyang[0]: Importing "yumaworks-restconf" module into "yumaworks-system" failed.
Module "ietf-restconf@2017-01-26" is supposed to be imported, but no other module imports it.

Hope this helps in any way, and let me know if you need any further information from my end.

Thanks

rkrejci commented 6 years ago

Are you able to get and share the mentioned schemas from the YUMA server? I've tried to get them from netconfcentral.org, but I'm able to parse them (at least yumaworks-restconf and ietf-restconf, so maybe there are different versions). Also, which version of libyang are you using (what is the output of yanglint -v)?

praveendevarmani commented 6 years ago

Hello can you please me install this netopeer2 gui client, Please email me at praveendevarmani@gmail.com or WhatsApp +491622697939

I am trying from several days

Best regards Praveen