Wind River Support Network

HomeDefectsLIN6-483
Not to be fixed

LIN6-483 : Error message is confusing if the wrong IP address is passed to make start-prserver

Created: Dec 4, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 6.0
Severity: Low
Applicable for: Wind River Linux 6
Component/s: Build & Config

Description

Problem Description
======================
When configuring a dedicated prserver, if the wrong IP address is specified, the error message is confusing.

Expected Behavior
======================
setup a dedicated prserver without error.
Get helpful info if wrong IP addr is used.

Observed Behavior
======================

[prj_prserver]$ make start-prserver
Attempting to start a pr-server...
Traceback (most recent call last):
  File "/buildarea1/build/fix-verify/prj_prserver/bitbake/bin/bitbake-prserv", line 49, in <module>
    ret = main()
  File "/buildarea1/build/fix-verify/prj_prserver/bitbake/bin/bitbake-prserv", line 40, in main
    ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile))
  File "/buildarea1/build/fix-verify/prj_prserver/bitbake/lib/prserv/serv.py", line 257, in start_daemon
    server = PRServer(os.path.abspath(dbfile), os.path.abspath(logfile), (host,port))
  File "/buildarea1/build/fix-verify/prj_prserver/bitbake/lib/prserv/serv.py", line 42, in __init__
    logRequests=False, allow_none=True)
  File "/buildarea1/build/fix-verify/prj_prserver/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python2.7/SimpleXMLRPCServer.py", line 593, in __init__
    SocketServer.TCPServer.__init__(self, addr, requestHandler, bind_and_activate)
error: [Errno 99] Cannot assign requested address
Failed to start PR server for some reason.
Consult ./cache/prserv.log for more information.
make: *** [start-prserver] Error 1

Steps to Reproduce

Assume the host IP is 128.224.153.89, but IP 128.224.158.87 (which is set on another host) is used to setup a prserver:

step 1;  /buildarea1/product/WRL60_LX28/wrlinux-6/wrlinux/configure --enable-board=qemux86-64 --enable-kernel=standard --enable-rootfs=glibc-small --enable-parallel-pkgbuilds=5 --enable-jobs=5 --enable-dedicated-prserver=yes --enable-prserver=128.224.153.87:34567
step 2; make start-prserver

The command would fail because the IP addr isn't valid on the host for prserver.
Check the error info, which should show that invalid IP addr is used.
Live chat
Online