Skip to content

[exception]: Executing test client: assertion:Server started even if RDB was unreadable! #1034

Closed

Description

@lonchura

My linux uname is:
Linux localhost.localdomain 3.8.3-203.fc18.x86_64 #1 SMP Mon Mar 18 12:59:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

When I get redis from http://redis.googlecode.com/files/redis-2.6.12.tar.gz and make && make test, terminal get belows error:

[exception]: Executing test client: assertion:Server started even if RDB was unreadable!.
assertion:Server started even if RDB was unreadable!
while executing
"error "assertion:$msg""
(procedure "fail" line 2)
invoked from within
"fail "Server started even if RDB was unreadable!""
("uplevel" body line 2)
invoked from within
"uplevel 1 $elsescript"
(procedure "wait_for_condition" line 7)
invoked from within
"wait_for_condition 50 100 {
[string match {Fatal error loading} [exec tail -n1 < [dict get $srv stdout]]]
} else {
fail "Server..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $code"
(procedure "start_server_and_kill_it" line 5)
invoked from within
"start_server_and_kill_it [list "dir" $server_path] {
wait_for_condition 50 100 {
[string match {Fatal error loading}
[exec..."
(file "tests/integration/rdb.tcl" line 57)
invoked from within
"source $path"
(procedure "execute_tests" line 4)
invoked from within
"execute_tests $data"
(procedure "test_client_main" line 9)
invoked from within
"test_client_main $::test_server_port "
make[1]: *** [test] Error 1
make[1]: Leaving directory `/tmp/redis-2.6.12/src'
make: *** [test] Error 2

Activity

  1. hydak commented on Apr 5, 2013

    @hydak

    I get that same message too on 2.6.12

  2. iamfafa commented on Apr 7, 2013

    @iamfafa

    how to fix it?

  3. cromulus commented on Apr 8, 2013

    @cromulus

    Just chiming in to say that I am experiencing the same issue.

    $uname -a
    Linux sd08 2.6.32-41-generic #88-Ubuntu SMP Thu Mar 29 13:10:32 UTC 2012 x86_64 GNU/Linux
    [exception]: Executing test client: assertion:Server started even if RDB was unreadable!.
    assertion:Server started even if RDB was unreadable!
        while executing
    "error "assertion:$msg""
        (procedure "fail" line 2)
        invoked from within
    "fail "Server started even if RDB was unreadable!""
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $elsescript"
        (procedure "wait_for_condition" line 7)
        invoked from within
    "wait_for_condition 50 100 {
            [string match {*Fatal error loading*}  [exec tail -n1 < [dict get $srv stdout]]]
        } else {
            fail "Server..."
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $code"
        (procedure "start_server_and_kill_it" line 5)
        invoked from within
    "start_server_and_kill_it [list "dir" $server_path] {
        wait_for_condition 50 100 {
            [string match {*Fatal error loading*} \
                [exec..."
        (file "tests/integration/rdb.tcl" line 57)
        invoked from within
    "source $path"
        (procedure "execute_tests" line 4)
        invoked from within
    "execute_tests $data"
        (procedure "test_client_main" line 9)
        invoked from within
    "test_client_main $::test_server_port "
  4. ricardobeat commented on Apr 8, 2013

    @ricardobeat

    Same here, 2.6.32-5-amd64, Debian 6.0, Redis 2.6.12.

  5. iamfafa commented on Apr 9, 2013

    @iamfafa

    redis 2.4.18 is working, wait someone fix this problem

  6. antirez commented on Apr 9, 2013

    @antirez
    Contributor

    Hey, that's just a false positive, I'll remove the test as it does not play nicely with some environment apparently... It involves calling chmod and so forth.

  7. jinhao commented on Apr 12, 2013

    @jinhao

    how to fix it?

  8. jiazom commented on Apr 16, 2013

    @jiazom

    Same to you, Ubuntu 12.10. redis 2.6.12 stable. finally,I found redis 2.4.18 is working,Useing 2.4.18.

  9. CheckSkr commented on Apr 22, 2013

    @CheckSkr

    I got this problem on my ubuntu12.10,how to fix it ? does anyone have ideas?

  10. antirez commented on Apr 22, 2013

    @antirez
    Contributor

    Hello, I tried with many different Linux boxes, no way I can make it failing... any help from somebody with the failing test?

  11. senfomat commented on Apr 22, 2013

    @senfomat

    Some wierd apparmor-Permission-Stuff which comes preinstalled at least in Ubuntu?

  12. badboy commented on Apr 22, 2013

    @badboy
    Contributor

    I can reproduce this error on my ubuntu machine.
    I disabled apparmor with /etc/init.d/apparmor stop; /etc/init.d/apparmor teardown. make test still fails with the same error.

    (both my Arch Linux & debian machine are working just fine)

  13. antirez commented on Apr 22, 2013

    @antirez
    Contributor

    @badboy oh great! Maybe tomorrow (or when you have time) at some point we can get some IRC meeting or alike? Thank you. Of course if you feel in the right vein you may just debug it and send a PR :-) But I'll be happy to do a four eyes debugging attempt otherwise. Thank you in advance.

  14. badboy commented on Apr 22, 2013

    @badboy
    Contributor

    Sure, I'm available after 17:30. I don't have time to do this on my own, but together would be ok (you can get ssh access as well)

  15. badboy commented on Apr 22, 2013

    @badboy
    Contributor

    Ok, while setting up the server for tomorrow (guest account, ssh access) I came across something weird: The test only fails with the root user. When running under my new guest user all tests pass. I can reproduce it on my local arch linux machine and my production server (debian)

  16. gankkank commented on Jun 11, 2013

    @gankkank

    make test seems don't support root user.

  17. badboy commented on Jun 11, 2013

    @badboy
    Contributor

    @gankkank It does now. Do you still have problems?

  18. gankkank commented on Jun 28, 2013

    @gankkank

    @badboy ok now. no problem with 2.6.14

  19. bugs181 commented on Mar 12, 2014

    @bugs181

    Problem reappears in 2.8.7 (Make test fails with root on debian)

  20. badboy commented on Mar 15, 2014

    @badboy
    Contributor

    Just ran make test as root on both the unstable branch and the 2.8.7 package and:

    \o/ All tests passed without errors!
    

    @bugs181 You're sure you saw the exact same error as reported here? Maybe just another test was failing.

  21. can-can commented on Apr 18, 2014

    @can-can

    ...I do 'make test' twice, first time, appear err:
    *** [err]: PEXPIRE/PSETEX/PEXPIREAT can set sub-second expires in tests/unit/expire.tcl
    Expected 'somevalue {}' to equal or match '{} {}'
    second time, it's gone~ 0 err

  22. badboy commented on Apr 18, 2014

    @badboy
    Contributor

    @swordhua that's a know false failure due to slow computers. The timeout here is just not working if the server is too busy doing other things at the moment. If it succeeded the second time everything is ok

  23. added a commit that references this issue on Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions