Amanda 3.5.1 on NetBSD 7.1.1 Request failed: amanda/tcp unknown protocol - Help

"Richard Sass" <[email protected]> Tue, 10 Jul 2018 13:53:39 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
Looking for help with this specific issue or suggestions on how I might
troubleshoot further.

root# uname -a
		NetBSD new103.seqldn.com 7.1.1 NetBSD 7.1.1
(GENERIC.201712222334Z) amd64

- this host is the server as well as a client
- as root, Installed from source Amanda 3.5.1

root# ./configure --without-ipv6 --with-user=backup --with-bsdtcp-security
--with-group=operator
	--with-tape-device=/dev/nrst0 --with-gnutar=/usr/pkg/bin/gtar
--with-amandahosts
...
...
...
Amanda Components: server restore client amrecover ndmp rest-server
Amanda Devices: file null rait tape dvdrw ndmp S3
Working IPv6: no
Build documentation: no
Directories:
  Application: /usr/local/libexec/amanda/application
  Configuration: /usr/local/etc/amanda
  GNU Tar lists: /usr/local/var/amanda/gnutar-lists
  Perl modules (amperldir): /usr/pkg/lib/perl5/site_perl/5.26.0
  Template and example data files (amdatadir): /usr/local/share/amanda
  Temporary: /tmp/amanda
WARNINGS:
  Not building 'amplot', because gnuplot was not found

root# grep amanda /etc/inetd.conf
		amanda stream tcp nowait backup
/usr/local/libexec/amanda/amandad  amandad -auth=bsdtcp amdump amindexd
amidxtaped

root# ls -l ~backup/.amandahosts
		-rw-r--r--   1 backup  operator   98B Jun 15 22:54
.amandahosts

root# more ~backup/.amandahosts
		new103.seqldn.com root amindexd amidxtaped amdump
		new103.seqldn.com backup amindexd amidxtaped amdump
		new103 root amindexd amidxtaped amdump
		new103 backup amindexd amidxtaped amdump

root# grep amanda /etc/services
		amanda 10080/tcp  # Amanda [John_Jackson] [John_Jackson]
		amanda 10080/udp  # Amanda [John_Jackson] [John_Jackson]
		kamanda   10081/udp # Amanda with Kerberos
		amandaidx 10082/tcp # Amanda index server

root# netstat -an|grep 1008
		Active Internet connections (including servers)
		Proto Recv-Q Send-Q  Local Address Foreign Address State
		tcp   0      0       *.10080       *.*             LISTEN
	
root# nslookup new103
		Server:         127.0.0.1
		Address:        127.0.0.1#53
		Name:   new103.seqldn.com
		Address: 200.1.1.44

- as the backup user (or root)

backup# amservice new103 bsdtcp noop </dev/null
		Request failed: amanda/tcp unknown protocol

- no connection established

- as root or backup

root# amservice new103 local noop </dev/null
		OPTIONS features=ffffffff9efefbfffffffffffffff3fffbf71f;


- inetd seems to respond to access to port 10080

root# telnet new103 10080
		Trying 200.1.1.44...
		Connected to NEW103.seqldn.com.
		Escape character is '^]'.
			23338   888 backup  ?      I     0:00.05 amandad
bsdtcp amdump amindexd amidxtaped

root# more amservice.20180615233104.debug

Fri Jun 15 23:31:04.637195338 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: pid 12450 ruid 1005 euid 1005 version 3.5.1: start at Fri Jun 15
23:31:04 2018
Fri Jun 15 23:31:04.637390268 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: argv[0] = amservice
Fri Jun 15 23:31:04.637419113 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: argv[1] = new103
Fri Jun 15 23:31:04.637433361 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: argv[2] = bsdtcp
Fri Jun 15 23:31:04.637446701 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: argv[3] = noop
Fri Jun 15 23:31:04.643686274 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_getdriver(name=bsdtcp) returns 0x7f7ff7a864a0
Fri Jun 15 23:31:04.644876317 2018: pid 2595: thd-0x7f7ff7b08e00: amservice:
Executing: /usr/bin/uname '-s'
Fri Jun 15 23:31:04.647928706 2018: pid 7765: thd-0x7f7ff7b08e00: amservice:
Executing: /usr/bin/uname '-r'
Fri Jun 15 23:31:04.650428223 2018: pid 12450: thd-0x7f7ff7b19800:
amservice: security_handleinit(handle=0x7f7ff7710140, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:04.650685592 2018: pid 12450: thd-0x7f7ff7b19800:
amservice: security_streaminit(stream=0x7f7ff7721000, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:04.650858242 2018: pid 12450: thd-0x7f7ff7b19800:
amservice: security_seterror(handle=0x7f7ff7710140, driver=0x7f7ff7a864a0
(BSDTCP) error=amanda/tcp unknown protocol)
Fri Jun 15 23:31:05.653002899 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_close(handle=0x7f7ff7710140, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:05.653038938 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_stream_close(0x7f7ff7721000)
Fri Jun 15 23:31:10.665541525 2018: pid 12450: thd-0x7f7ff7b19850:
amservice: security_handleinit(handle=0x7f7ff6f09140, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:10.665709845 2018: pid 12450: thd-0x7f7ff7b19850:
amservice: security_streaminit(stream=0x7f7ff6f1b000, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:10.665813911 2018: pid 12450: thd-0x7f7ff7b19850:
amservice: security_seterror(handle=0x7f7ff6f09140, driver=0x7f7ff7a864a0
(BSDTCP) error=amanda/tcp unknown protocol)
Fri Jun 15 23:31:11.675741586 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_close(handle=0x7f7ff6f09140, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:11.675770640 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_stream_close(0x7f7ff6f1b000)
Fri Jun 15 23:31:16.688095968 2018: pid 12450: thd-0x7f7ff7b198a0:
amservice: security_handleinit(handle=0x7f7ff7710140, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:16.688235513 2018: pid 12450: thd-0x7f7ff7b198a0:
amservice: security_streaminit(stream=0x7f7ff773d000, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:16.688321839 2018: pid 12450: thd-0x7f7ff7b198a0:
amservice: security_seterror(handle=0x7f7ff7710140, driver=0x7f7ff7a864a0
(BSDTCP) error=amanda/tcp unknown protocol)
Fri Jun 15 23:31:17.698541106 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_close(handle=0x7f7ff7710140, driver=0x7f7ff7a864a0
(BSDTCP))
Fri Jun 15 23:31:17.698562827 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: security_stream_close(0x7f7ff773d000)
Fri Jun 15 23:31:17.698605151 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_utime   : 0
Fri Jun 15 23:31:17.698630713 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_stime   : 0
Fri Jun 15 23:31:17.698644472 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_maxrss  : 0
Fri Jun 15 23:31:17.698657323 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_ixrss   : 0
Fri Jun 15 23:31:17.698669755 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_idrss   : 0
Fri Jun 15 23:31:17.698682257 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_isrss   : 0
Fri Jun 15 23:31:17.698694689 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_minflt  : 1138
Fri Jun 15 23:31:17.698712568 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_majflt  : 0
Fri Jun 15 23:31:17.698742182 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_nswap   : 0
Fri Jun 15 23:31:17.698756639 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_inblock : 0
Fri Jun 15 23:31:17.698771166 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_oublock : 4
Fri Jun 15 23:31:17.698845339 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_msgsnd  : 0
Fri Jun 15 23:31:17.698860285 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_msgrcv  : 0
Fri Jun 15 23:31:17.698873276 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_nsignals: 0
Fri Jun 15 23:31:17.698886127 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_nvcsw   : 11
Fri Jun 15 23:31:17.698899048 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: ru_nivcsw  : 1
Fri Jun 15 23:31:17.698965887 2018: pid 12450: thd-0x7f7ff7b08e00:
amservice: pid 12450 finish time Fri Jun 15 23:31:17 2018

Build notes
- configure run as root
- gmake run as backup 
- gmake install run as root

- Errors during gmake install in case they are of any importance. This
happens multiple times

	ld: warning: libintl.so.1, needed by /usr/pkg/lib/libgmodule-2.0.so,
may conflict with libintl.so.8
	ld: warning: libssl.so.10, needed by /usr/pkg/lib/libcurl.so, may
conflict with libssl.so.1.0.0
	ld: warning: libcrypto.so.8, needed by /usr/pkg/lib/libcurl.so, may
conflict with libcrypto.so.1.0.0