Could not able to connect to multi-level server

144 views
Skip to first unread message

sbab...@gmail.com

unread,
Mar 2, 2015, 10:39:38 AM3/2/15
to neto...@googlegroups.com
Hi Radek,

I have installed the latest multi-level server and facing issues in connecting to the server. Its compiled with dbus service and running

Please find below my observations:

1. When i try to run manually both server and agent, i could able to see the hello messages. But, when tried to connect from remote client, the netopeer-agent and server are not started.

2. Verified sshd_config.running for netopeer-agent as subsystem.
Subsystem netconf //usr/local/bin/netopeer-agent

# NETCONF listening settings
Port 830
ListenAddress 0.0.0.0
ListenAddress ::

3. /usr/local/lib is also added in /etc/ld.so.conf
4. netopeer-cli fails with the following error

[root@sys-214-13 ~]# netopeer-cli
netconf>
netconf> connect 135.249.34.239 --login root -p 830
libnetconf ERROR: Unable to connect to the server (No route to host).
connect: connecting to the 135.249.34.239:830 as user "root" failed.
netconf> exit
[root@sys-214-13 ~]#
[root@sys-214-13 ~]# ping 135.249.34.239
PING 135.249.34.239 (135.249.34.239) 56(84) bytes of data.
64 bytes from 135.249.34.239: icmp_seq=1 ttl=64 time=0.345 ms
^C
--- 135.249.34.239 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.345/0.345/0.345/0.000 ms
[root@sys-214-13 ~]#


5. netopeer-configurator also fails with below ImportError


[root@sys-214-29 ~]# netopeer-configurator
Traceback (most recent call last):
File "/usr/local/bin/netopeer-configurator", line 10, in <module>
from netopeer.ncmodule import NCModuleError
ImportError: No module named netopeer.ncmodule




Am i missing something?
Please help.


Thanks,
Babu

Michal Vasko

unread,
Mar 3, 2015, 4:09:15 AM3/3/15
to neto...@googlegroups.com, sbab...@gmail.com
Hi Babu,

regarding the first problem, it likely is not a problem of netopeer or libnetconf, but of your network. If you try "ssh -p 830 ro...@135.249.34.239 -s netconf" and it fails with the same error, it really is the problem of your firewall or something else network-related. If it succeeds, then something else is wrong, but that is unlikely.

Concerning the netopeer-configurator problem, it seems like a problem with the path to the netopeer modules. This all may depend on your distribution, python version or something else, but there should be a PYTHONPATH environment variable available. If you set it correctly (in my case it would be "/usr/local/lib/python2.7/site-packages/", but I don't even need it) to a directory with another directory "netopeer", which includes all the modules, ncmodule as well, it should work. This should be one way of making python find it, there are others.

Regards,
Michal

mobao

unread,
Mar 12, 2015, 10:09:23 AM3/12/15
to neto...@googlegroups.com, sbab...@gmail.com
Hi Babu

I know your 5th problem (ImportError: No module named netopeer.ncmodule)
Reason:
  For python2.7, the default library path does not include /usr/local/lib/python2.7/site-packages/ which is netopeer to use. So, declare this path in PYTHONPATH.
Solution:
  1. #vi /usr/lib/python2.7/site-packages/netopeer.pth  //create a new .pth file in python library path, the file name is at will
  2. Add the following text:
      /usr/local/lib/python2.7/site-packages
  3. restart and login, ok!

  Regards,
mobao

在 2015年3月2日星期一 UTC+8下午11:39:38,sbab...@gmail.com写道:
Reply all
Reply to author
Forward
0 new messages