timloo / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Failed to startup/connect to memcached server. at t/00-startup.t #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Making RPM from source as hightlighted on site:
yum -y install rpmdevtools gcc make
adduser makerpm
su makerpm
cd ~
rpmdev-setuptree
wget http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz
rpmbuild -ta  memcached-1.4.13.tar.gz

Returns such error:
t/00-startup.t ....... 1/18 getaddrinfo(): Name or service not known
failed to listen on TCP port 32473: Success
t/00-startup.t ....... 7/18 
#   Failed test '-b works'
#   at t/00-startup.t line 37.
#          got: 'Failed to startup/connect to memcached server. at 
t/00-startup.t line 33
# '
#     expected: ''
t/00-startup.t ....... 8/18 
...........
and later:
...........
Invalid value for binding protocol: http
 -- should be one of auto, binary, or ascii
t/00-startup.t ....... 16/18 Number of threads must be greater than 0
t/00-startup.t ....... 17/18 # Looks like you planned 18 tests but ran 17.
# Looks like you failed 1 test of 17 run.

OS: RHEL 6.1

Original issue reported on code.google.com by ma...@eatlime.com on 10 Feb 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Can you include the output of a normal compile sequence?

ie;

tar -zxvf etc.tar.gz ; cd etc ; ./configure && make && make test

.13 definitely passes tests on 64bit centos6, but I haven't tried building rpms 
with it.

Original comment by dorma...@rydia.net on 10 Feb 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Here is output of compilation and "make test":

RHEL 6.1: PASSED

CentOS 5.5:
t/00-startup.t ....... 16/18 
#   Failed test 'binary works'
#   at t/00-startup.t line 69.
#          got: 'Failed to startup/connect to memcached server. at 
t/00-startup.t line 67
# '
#     expected: ''
Invalid value for binding protocol: http
 -- should be one of auto, binary, or ascii
t/00-startup.t ....... 17/18 Number of threads must be greater than 0
t/00-startup.t ....... 18/18 # Looks like you failed 1 test of 18.
Timeout.. killing the process
t/00-startup.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/18 subtests 
t/64bit.t ............ ok
t/binary-get.t ....... ok
t/binary-sasl.t ...... This server is not built with SASL support.
t/binary-sasl.t ...... ok
t/binary.t ........... ok
t/bogus-commands.t ... ok
t/cas.t .............. Failed to startup/connect to memcached server. at 
t/cas.t line 10
# Looks like your test exited with 111 before it could output anything.

Original comment by ma...@eatlime.com on 13 Feb 2012 at 5:46

GoogleCodeExporter commented 9 years ago
can you run:

$ prove -v t/00-startup.t and include the full output as an attachment?

Original comment by dorma...@rydia.net on 14 Feb 2012 at 3:23

GoogleCodeExporter commented 9 years ago
In attachement there are two output files from CentOS 5.5 and RHEL 6.1

Original comment by ma...@eatlime.com on 14 Feb 2012 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
Hello.
Is there any update about this ticket?

Thanks.

Original comment by sev...@gmail.com on 17 Feb 2012 at 1:44

GoogleCodeExporter commented 9 years ago
I think you've done something weird with your install directory under centos5.

I have centos5 instances (32bit/64bit) and they don't do this.

It looks like you did part of the compile as root, but are still using the same 
directory?

If you untar 1.4.13 into a fresh directory, and manually run "./configure && 
make && make test" everything should work fine.

Original comment by dorma...@rydia.net on 17 Feb 2012 at 1:48

GoogleCodeExporter commented 9 years ago
Haven't heard back from my last post... assuming user figured it out? If not, 
please reopen with the report on what I'd mentioned to try.

Original comment by dorma...@rydia.net on 14 Jul 2012 at 11:42