Test error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Ruga ruga at protonmail.com
Fri Apr 14 13:55:46 EEST 2017


macOS 10.12.4
clang 4.0.0 (official, non apple version)
libressl 2.5.3

...

0 / 11 tests failed

/Applications/Xcode.app/Contents/Developer/usr/bin/make check-am

make[3]: Nothing to be done for `check-am'.

Making check in lib-imap-client

for bin in test-imapc-client; do \

if ! ./$bin; then exit 1; fi; \

done

Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Warning: imapc(127.0.0.1:0): No more IP address(es) to try - reconnecting (delay 10 ms)

Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Error: imapc(127.0.0.1:0): No more IP address(es) to try - disconnecting

test: random seed #1 was 1492961683

imapc connect failed ................................................. : FAILED

Warning: imapc(127.0.0.1:65275): connect(127.0.0.1, 65275) timed out after 0 seconds - reconnecting (delay 0 ms)

Error: imapc(127.0.0.1:65275): connect(127.0.0.1, 65275) timed out after 0 seconds - disconnecting

imapc banner hangs ................................................... : ok

Warning: imapc(127.0.0.1:55425): Authentication timed out after 0 seconds - reconnecting (delay 0 ms)

Error: imapc(127.0.0.1:55425): Authentication failed: Disconnected from server

imapc login hangs .................................................... : ok

imapc reconnect ...................................................... : ok

imapc reconnect resend commands ...................................... : ok

imapc reconnect resend commands failed ............................... : ok

imapc reconnect mailbox .............................................. : ok

1 / 7 tests failed

make[2]: *** [check-test] Error 1

make[1]: *** [check-recursive] Error 1

make: *** [check-recursive] Error 1

>cd /opt/src/dovecot-2.2.29.1/src/lib-imap-client

>./test-imapc-client

test: random seed #1 was 1492323309

Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Warning: imapc(127.0.0.1:0): No more IP address(es) to try - reconnecting (delay 10 ms)

Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Error: imapc(127.0.0.1:0): No more IP address(es) to try - disconnecting

imapc connect failed ................................................. : FAILED

Warning: imapc(127.0.0.1:50987): connect(127.0.0.1, 50987) timed out after 0 seconds - reconnecting (delay 0 ms)

Error: imapc(127.0.0.1:50987): connect(127.0.0.1, 50987) timed out after 0 seconds - disconnecting

imapc banner hangs ................................................... : ok

Warning: imapc(127.0.0.1:62023): Authentication timed out after 0 seconds - reconnecting (delay 0 ms)

Error: imapc(127.0.0.1:62023): Authentication failed: Disconnected from server

imapc login hangs .................................................... : ok

imapc reconnect ...................................................... : ok

imapc reconnect resend commands ...................................... : ok

imapc reconnect resend commands failed ............................... : ok

imapc reconnect mailbox .............................................. : ok

1 / 7 tests failed

>search -cv net_connect .

./imapc-connection.c:1715: fd = net_connect_ip(ip, conn->client->set.port, NULL);

./imapc-connection.c:1722: i_error("net_connect_ip(%s:%u) failed: %m",

>search -cv 127.0.0.1 .

./test-imapc-client.c:43: .host = "127.0.0.1",

...

static struct imapc_client_settings test_imapc_default_settings = {

.host = "127.0.0.1",

.username = "testuser",

.password = "testpass",

.dns_client_socket_path = "",

.temp_path_prefix = ".test-tmp/",

.rawlog_dir = "",

.connect_timeout_msecs = 500,

.connect_retry_count = 3,

.connect_retry_interval_msecs = 10,

.max_idle_time = 10000,

};

The client fails if the server is not listening...
Is the test server listening?

static int test_open_server_fd(in_port_t *bind_port)

{

int fd = net_listen(&bind_ip, bind_port, 128);

if (debug)

i_debug("server listening on %u", *bind_port);

if (fd == -1) {

i_fatal("listen(%s:%u) failed: %m",

net_ip2addr(&bind_ip), *bind_port);

}

fd_set_nonblock(fd, FALSE);

return fd;

}

Forcing debug...

>grep 'static bool debug =' test-imapc-client.c

static bool debug = TRUE;

>make clean
>make

>./test-imapc-client

test: random seed #1 was 1492955953

Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Warning: imapc(127.0.0.1:0): No more IP address(es) to try - reconnecting (delay 10 ms)

Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address

Error: imapc(127.0.0.1:0): No more IP address(es) to try - disconnecting

imapc connect failed ................................................. : FAILED

Warning: imapc(127.0.0.1:57648): connect(127.0.0.1, 57648) timed out after 0 seconds - reconnecting (delay 0 ms)

Error: imapc(127.0.0.1:57648): connect(127.0.0.1, 57648) timed out after 0 seconds - disconnecting

imapc banner hangs ................................................... : ok

Warning: imapc(127.0.0.1:61221): Authentication timed out after 0 seconds - reconnecting (delay 0 ms)

Error: imapc(127.0.0.1:61221): Authentication failed: Disconnected from server

imapc client disconnected unexpectedly: EOF

imapc login hangs .................................................... : ok

imapc reconnect ...................................................... : ok

imapc reconnect resend commands ...................................... : ok

imapc reconnect resend commands failed ............................... : ok

imapc reconnect mailbox .............................................. : ok

1 / 7 tests failed

Nope, test server is not running.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log
Type: application/octet-stream
Size: 131372 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20170414/0151c6ae/attachment-0001.obj>


More information about the dovecot mailing list