Archived

This forum has been archived. Please start a new discussion on GitHub.

Make test failure

I'm doing some testing with Ice on linux. I successfully built the source package (literally zero problems! :cool: ) and was running the tests when I experienced an error with an IceGrid test...
*** running tests in ./test/IceGrid/session
starting icegrid registry... ok
starting icegrid node... ok
adding application... ok
starting client... ok
starting router... ok
starting admin router... ok
testing username/password sessions... ok
testing sessions from secure connection... ok
testing Glacier2 username/password sessions... ok
testing Glacier2 sessions from secure connection... ok
testing updates with admin sessions... ok
testing registry observer... ./bin/icegridnode: error: service caught unhandled exception:
cannot create directory `test/IceGrid/session/db/node-1/servers':
Permission denied
timeout: AllTests.cpp:1590
Last 10 updates of observer `nodeObs1':
  wait for update from line 1360
  server `node-1' on node `localnode' state updated: 1 (pid = 25820)
  server `node-1' on node `localnode' state updated: 2 (pid = 25820)
  wait for update from line 1586
  wait for update from line 1587
  wait for update from line 1590
  server `node-1' on node `localnode' state updated: 3 (pid = 0)
  wait for update from line 1590
  server `node-1' on node `localnode' state updated: 0 (pid = 0)
  wait for update from line 1590
Last 10 updates of observer `regObs1':
  adapter removed `DummyAdapter' (serial = 26)
  wait for update from line 1489 (serial = 26)
  object added `dummy -t:tcp -h 127.0.0.1 -p 10000' (serial = 27)
  wait for update from line 1507 (serial = 27)
  object updated `dummy -t:tcp -h host -p 10000' (serial = 28)
  wait for update from line 1515 (serial = 28)
  object removed `dummy' (serial = 29)
  wait for update from line 1522 (serial = 29)
  application added `NodeApp' (serial = 30)
  wait for update from line 1560 (serial = 30)
failed!
AllTests.cpp:458: assertion `false' failed
./bin/glacier2router: warning: connection exception:
TcpTransceiver.cpp:217: Ice::ConnectionLostException:
connection lost: recv() returned zero
local address = 127.0.0.1:12347
remote address = 127.0.0.1:54102
./bin/glacier2router: warning: connection exception:
TcpTransceiver.cpp:217: Ice::ConnectionLostException:
connection lost: recv() returned zero
local address = 127.0.0.1:12348
remote address = 127.0.0.1:54104
PermissionsVerifierServer: warning: connection exception:
TcpTransceiver.cpp:217: Ice::ConnectionLostException:
connection lost: recv() returned zero
local address = 127.0.0.1:54081
remote address = 127.0.0.1:54084
PermissionsVerifierServer: warning: connection exception:
TcpTransceiver.cpp:217: Ice::ConnectionLostException:
connection lost: recv() returned zero
local address = 127.0.0.1:54081
remote address = 127.0.0.1:54085
remove application... ok
test in ./test/IceGrid/session failed with exit status 256
hpblade18:/usr/src/Ice-3.1.0# 

It looks like the test fails when creating a directory, but I'm running on this machine as root and have complete ownership of the files. In addition, I can manually create the directory, so I'm not quite sure where the problem is.

I (obviously) don't need the tests to complete to be able to work with Ice.

FWIW, this is a debian linux distro on the 2.6.8-2-686 kernel with gcc 3.3.5.

Comments

  • Problem

    I have same problem with test on Gentoo. (kernel 2.6.12 r4, gcc 4.1.1, glib with nptl)
  • xdm
    xdm La Coruña, Spain
    Hi eric

    I think that the problem is that you don't set the user attribute in the icebox descriptor, this is the user that's run icegridnode. By default in Ice-3.1.0 if you run icegridnode as root it use nobody as user.
    you can read Benoit answer for a similar question in this thread

    Hope this help