librelist archives

« back to archive

[mongrel2] 1.7.3 installing test error

[mongrel2] 1.7.3 installing test error

From:
Tang Daogang
Date:
2011-06-16 @ 01:25
hi,

I met a problem when install mongrel2 1.7.3. I have installed libzmq 2.1.7
before it, and execute 'ldconfig', when do mongrel2's own test, an error
occured.

======================================================
...
Running unit tests:
tests/bstr_tests PASS
tests/cache_tests PASS
tests/config_tests PASS
tests/connection_tests PASS
tests/darray_tests PASS
tests/db_tests PASS
tests/dict_tests PASS
tests/dir_tests PASS
tests/filter_tests PASS
tests/handler_parser_tests PASS
ERROR in test tests/handler_tests:
----
RUNNING: ./tests/handler_tests
FAILED: Failed to make the send socket.
Tests run: 1
make: *** [tests] Error 1
======================================================

how to solve it?


Thx.


-- 
Nothing is impossible.

Re: [mongrel2] 1.7.3 installing test error

From:
Tang Daogang
Date:
2011-06-16 @ 01:31
Oh, forgot, my platform is

Ubuntu 10.04 x64
gcc version 4.4.3

On Thu, Jun 16, 2011 at 9:25 AM, Tang Daogang <daogangtang@gmail.com> wrote:

> hi,
>
> I met a problem when install mongrel2 1.7.3. I have installed libzmq 2.1.7
> before it, and execute 'ldconfig', when do mongrel2's own test, an error
> occured.
>
> ======================================================
> ...
> Running unit tests:
> tests/bstr_tests PASS
> tests/cache_tests PASS
> tests/config_tests PASS
> tests/connection_tests PASS
> tests/darray_tests PASS
> tests/db_tests PASS
> tests/dict_tests PASS
> tests/dir_tests PASS
> tests/filter_tests PASS
> tests/handler_parser_tests PASS
> ERROR in test tests/handler_tests:
> ----
> RUNNING: ./tests/handler_tests
> FAILED: Failed to make the send socket.
> Tests run: 1
> make: *** [tests] Error 1
> ======================================================
>
> how to solve it?
>
>
> Thx.
>
>
> --
> Nothing is impossible.
>
>


-- 
Nothing is impossible.

Re: [mongrel2] 1.7.3 installing test error

From:
Zed A. Shaw
Date:
2011-06-16 @ 02:53
On Thu, Jun 16, 2011 at 09:31:46AM +0800, Tang Daogang wrote:
> Oh, forgot, my platform is
> 
> Ubuntu 10.04 x64
> gcc version 4.4.3

What version of zeromq?  We're all using 2.1.4 or 2.1.7 right now.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] 1.7.3 installing test error

From:
Tang Daogang
Date:
2011-06-16 @ 03:01
zeromq 2.1.7.

On Thu, Jun 16, 2011 at 10:53 AM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:

> On Thu, Jun 16, 2011 at 09:31:46AM +0800, Tang Daogang wrote:
> > Oh, forgot, my platform is
> >
> > Ubuntu 10.04 x64
> > gcc version 4.4.3
>
> What version of zeromq?  We're all using 2.1.4 or 2.1.7 right now.
>
> --
> Zed A. Shaw
> http://zedshaw.com/
>



-- 
Nothing is impossible.

Re: [mongrel2] 1.7.3 installing test error

From:
Zed A. Shaw
Date:
2011-06-16 @ 05:49
Ok, look at tests/tests.log and at the end should be the exact reason
why. I'm using ubuntu 10.10 and ArchLinux so there's something different
about your config let me know.  Most likely you've got something running
on a port that the handler test is trying to use.

On Thu, Jun 16, 2011 at 11:01:01AM +0800, Tang Daogang wrote:
> zeromq 2.1.7.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] 1.7.3 installing test error

From:
Tang Daogang
Date:
2011-06-16 @ 06:47
hi,

I find something error in tests.log:

------------------------------------------------------------------------------

----- test_DB_init
DEBUG tests/db_tests.c:109:
----- test_DB_close
DEBUG tests/db_tests.c:110:
----- test_DB_exec
DEBUG tests/db_tests.c:77: GOT AGE: 35
[ERROR] (src/config/db.c:223: errno: No such file or directory) Row 100 past
end of result set length: 1
[ERROR] (src/config/db.c:229: errno: None) Column 100 past end of result set
length: 2
[ERROR] (src/config/db.c:223: errno: None) Row 32 past end of result set
length: 1
[ERROR] (src/config/db.c:249: errno: None) Result should get a list.
[ERROR] (src/config/db.c:220: errno: None) Result should be a list.
DEBUG tests/dict_tests.c:316: ----- RUNNING: ./tests/dict_tests
DEBUG tests/dict_tests.c:311:
----- test_dict_operations
DEBUG tests/dir_tests.c:181: ----- RUNNING: ./tests/dir_tests
DEBUG tests/dir_tests.c:172:
----- test_Dir_find_file
DEBUG tests/dir_tests.c:173:
----- test_Dir_serve_file
[INFO] (src/dir.c:174) MAX limits.dir_send_buffer=16384,
limits.dir_max_path=256
DEBUG tests/dir_tests.c:174:
----- test_Dir_resolve_file
[ERROR] (src/dir.c:271: errno: None) Failed to normalize base path: foobar/
[ERROR] (src/dir.c:312: errno: None) Failed to normalize base path when
requesting /sample.json
DEBUG tests/dir_tests.c:175:
----- test_Dir_serve_big_files
DEBUG tests/dir_tests.c:162: MORE_1GB=HTTP/1.1 200 OK^M
Date: ^M
Content-Type: ^M
Content-Length: 399560397^M
Last-Modified: ^M
ETag: ^M
Server: Mongrel2/1.7.3^M


DEBUG tests/dir_tests.c:163: RESPONSE=HTTP/1.1 200 OK^M
Date: ^M
Content-Type: ^M
Content-Length: 399560397^M
Last-Modified: ^M
ETag: ^M
Server: Mongrel2/1.7.3^M
^M


DEBUG tests/dir_tests.c:176:
----- test_Dir_find_file_isdir
DEBUG tests/filter_tests.c:84: ----- RUNNING: ./tests/filter_tests
DEBUG tests/filter_tests.c:76:
----- test_Filter_load
DEBUG tests/filter_tests.c:77:
----- test_Filter_run
DEBUG tests/filter_tests.c:20: HANDLER returned: 100
DEBUG tests/filter_tests.c:78:
----- test_Filter_run_chain
DEBUG tests/filter_tests.c:79:
----- test_Filter_stop_filter_chain
DEBUG tests/handler_parser_tests.c:47: ----- RUNNING:
./tests/handler_parser_tests
DEBUG tests/handler_parser_tests.c:42:
----- test_HandlerParser_execute
[ERROR] (src/handler_parser.rl:72: errno: None) Target netstring length is
wrong, actual 5 expected 10
[ERROR] (src/handler_parser.rl:72: errno: None) Target netstring length is
wrong, actual 5 expected 3
DEBUG tests/handler_tests.c:75: ----- RUNNING: ./tests/handler_tests
DEBUG tests/handler_tests.c:66:
----- test_Handler_send_create
[ERROR] (src/task/fd.c:261: errno: Invalid argument) Failed to set linger
timeout for socket.
[ERROR] (src/handler.c:278: errno: Bad address) Failed to set handler socket
tcp://127.0.0.1:12345 identity ZED
[ERROR] (tests/handler_tests.c:20: errno: None) Failed to make the send
socket.
-------------------------------------------------------------------------------

Maybe some dependency missing?  I cann't find some conflicted port...

Thx.

On Thu, Jun 16, 2011 at 1:49 PM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:

> Ok, look at tests/tests.log and at the end should be the exact reason
> why. I'm using ubuntu 10.10 and ArchLinux so there's something different
> about your config let me know.  Most likely you've got something running
> on a port that the handler test is trying to use.
>
> On Thu, Jun 16, 2011 at 11:01:01AM +0800, Tang Daogang wrote:
> > zeromq 2.1.7.
>
> --
> Zed A. Shaw
> http://zedshaw.com/
>



-- 
Nothing is impossible.

Re: [mongrel2] 1.7.3 installing test error

From:
Zed A. Shaw
Date:
2011-06-16 @ 23:30
On Thu, Jun 16, 2011 at 02:47:39PM +0800, Tang Daogang wrote:
> hi,
> 
> I find something error in tests.log:
> [ERROR] (src/handler.c:278: errno: Bad address) Failed to set handler socket
> tcp://127.0.0.1:12345 identity ZED
> [ERROR] (tests/handler_tests.c:20: errno: None) Failed to make the send
> socket.
> Maybe some dependency missing?  I cann't find some conflicted port...

Hmmm, that looks like you're using the wrong version of zeromq.  Do a
search of your computer for "*zmq*" and see if you've accidentally
installed two different versions.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] 1.7.3 installing test error

From:
Tang Daogang
Date:
2011-06-17 @ 00:45
OMG.

I find it.  I have deleted the old zmq library in my '/usr/local/lib/', but
a copy of them exists in '/usr/lib/', I copied them before.   -_-!!

So, bugs occur. Remove them, make, all are right now. hehe.

Thx.

On Fri, Jun 17, 2011 at 7:30 AM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:

> On Thu, Jun 16, 2011 at 02:47:39PM +0800, Tang Daogang wrote:
> > hi,
> >
> > I find something error in tests.log:
> > [ERROR] (src/handler.c:278: errno: Bad address) Failed to set handler
> socket
> > tcp://127.0.0.1:12345 identity ZED
> > [ERROR] (tests/handler_tests.c:20: errno: None) Failed to make the send
> > socket.
> > Maybe some dependency missing?  I cann't find some conflicted port...
>
> Hmmm, that looks like you're using the wrong version of zeromq.  Do a
> search of your computer for "*zmq*" and see if you've accidentally
> installed two different versions.
>
> --
> Zed A. Shaw
> http://zedshaw.com/
>



-- 
Nothing is impossible.

Re: [mongrel2] 1.7.3 installing test error

From:
Zed A. Shaw
Date:
2011-06-17 @ 06:52
On Fri, Jun 17, 2011 at 08:45:58AM +0800, Tang Daogang wrote:
> OMG.
> 
> I find it.  I have deleted the old zmq library in my '/usr/local/lib/', but
> a copy of them exists in '/usr/lib/', I copied them before.   -_-!!
> 
> So, bugs occur. Remove them, make, all are right now. hehe.

Yep, that's the classic bug with the .so libraries.  Not sure why that
happens really.

-- 
Zed A. Shaw
http://zedshaw.com/