Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebar3 eunit in docker fails #4

Open
c-bik opened this issue Apr 28, 2020 · 1 comment
Open

rebar3 eunit in docker fails #4

c-bik opened this issue Apr 28, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@c-bik
Copy link
Contributor

c-bik commented Apr 28, 2020

cover_tests: load_test...[0.120 s] ok
cover_tests: slave_reuse_test...[ERROR] REVISIT dpi:135 boot file not found!!
=ERROR REPORT==== 28-Apr-2020::14:11:19.564411 ===
global: <0.154.0> registered under several names: [{dpi,'[email protected]','[email protected]',#Ref<0.1343750239.56360961.202328>},{dpi,'[email protected]','[email protected]',#Ref<0.1343750239.56360961.201929>}]

*failed*
in function cover_tests:'-slave_reuse_test/0-fun-0-'/1 (/oranif/test/cover_tests.erl, line 1848)
in call from cover_tests:slave_reuse_test/0 (/oranif/test/cover_tests.erl, line 1848)
in call from eunit_test:'-mf_wrapper/2-fun-0-'/2 (eunit_test.erl, line 273)
in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
in call from eunit_proc:run_test/1 (eunit_proc.erl, line 510)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 335)
in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 493)
in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 435)
**error:{assertEqual,[{module,cover_tests},
              {line,1848},
              {expression,"nodes ( hidden )"},
              {expected,[{error,"failed to register process globally"}]},
              {value,['[email protected]']}]}
  output:<<"">>

[done in 31.910 s]
module 'odpi_ct'
=======================================================
  Failed: 1.  Skipped: 0.  Passed: 7.
One or more tests were cancelled.
@c-bik c-bik added the bug Something isn't working label Apr 28, 2020
@KarlKeiser
Copy link
Contributor

This bug occurs when:

  • $HOME is set to a place outside of the container
  • There are multiple admin accounts on the windows host

The reason why that happens is because erlang makes a cookie that it needs to set to be only accessible by the user (permissions 600). However, because of how permissions work on the windows host, it can't set those permissions and then later fails here.

It also isn't possible to use chmod to fix the cookie's permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants