CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
290 stars 186 forks source link

netopeer2-server error #1573

Closed pdafv closed 2 months ago

pdafv commented 2 months ago

Hello, I have just installed the netopeer2 suite. I ran into some problems that I was able to solve, but now when I run the server I get an error (though the server does not terminate). When I try to connect to it via the netopeer2-cli I am not able to connect. The logs I get from the server are the following:

[INF]: SR: Connection 7 created.
[INF]: SR: Session 33 (user "root", CID 7) created.
[INF]: SR: Triggering "ietf-netconf-server" "done" event on enabled data.
[ERR]: LN: Could not bind "0.0.0.0" port 830 (Address already in use).
[ERR]: LN: Configuring node "local-port" failed.
[ERR]: LN: Filling netconf-server failed.
[ERR]: NP: Configuring NETCONF server failed.
[INF]: SR: Triggering "ietf-keystore" "done" event on enabled data.
[INF]: SR: Triggering "ietf-truststore" "done" event on enabled data.
[INF]: SR: Triggering "ietf-netconf-acm" "done" event on enabled data.
[INF]: SR: Triggering "ietf-netconf-acm" "done" event on enabled data.
[INF]: SR: Triggering "ietf-netconf-acm" "done" event on enabled data.
[INF]: SR: Triggering "ietf-netconf-acm" "done" event on enabled data.

I've seen that it could be other netopeer2 instances running, but I also get these logs right after rebooting my machine. How can I kill those instances?

pdafv commented 2 months ago

Solved it. I was previously using netconfd implementation from yuma123, and thus had configured /etc/ssh/sshd_config to listen on port 830.