2014년 12월 8일 월요일

mondb mms automation agent debian install

I am running debian 7.6

I unzipped the archive and configured the local.agent file with the key and groupid 

I get this error.  The hostname is set on the machine.

Has anyone else seen this error?

panic: Failed to get local Hostname: output=[104 111 115 116 110 97 109 101 58 32 78 97 109 101 32 111 114 32 115 101 114 118 105 99 101 32 110 111 116 32 107 110 111 119 110 10], err=exit status 1

goroutine 16 [running]:
runtime.panic(0xa07660, 0xc208001080)
        /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
com.tengen/cm/util.getHostname(0x0, 0x0)
        /mnt/jenkins/workspace/Automation-Agent-Debian/build/build/go-dependencies/src/com.tengen/cm/util/sysdep_unix.go:368 +0x228
com.tengen/cm/util.init·3()
        /mnt/jenkins/workspace/Automation-Agent-Debian/build/build/go-dependencies/src/com.tengen/cm/util/os.go:25 +0x26
com.tengen/cm/util.init()
        /mnt/jenkins/workspace/Automation-Agent-Debian/build/build/go-dependencies/src/com.tengen/cm/util/uri.go:9 +0x8d4
main.init()
        /mnt/jenkins/workspace/Automation-Agent-Debian/build/build/go-dependencies/src/com.tengen/cm/main/cm.go:634 +0x94

goroutine 19 [finalizer wait]:
runtime.park(0x419910, 0xe93220, 0xe908e9)
        /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xe93220, 0xe908e9)
        /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
        /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()



You say
> The hostname is set on the machine.
How are you checking that?   What do you get when you run
$ hostname
at the OS prompt?  How about
$ hostname -f



Thanks for  the reply, seem my response below

running hostname

root@mongodev1:/var/lib/mongodbAutoAgent/mongodb-mms-automation-agent-1.2.3.704-1.linux_x86_64# hostname
mongodev1

running hostname -f

root@mongodev1:/var/lib/mongodbAutoAgent/mongodb-mms-automation-agent-1.2.3.704-1.linux_x86_64# hostname -f
hostname: Name or service not known



hostname -f is supposed to return host as a fully qualified domain name.

It looks like there may be some misconfiguration - what's  in /etc/hosts file?



I think you have found the issue. It does not reference that hostname that I set it in /etc/hostname

#cat /etc/hostname
mongodev1


root@mongodev1:/var/lib/....# cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       debian

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters



Thank you very much Asya for your OUTSTANDING assistance here!


댓글 없음:

댓글 쓰기