-
Notifications
You must be signed in to change notification settings - Fork 3.8k
nodeos_run_test-mongodb (Failed) #2103
Comments
now The following tests FAILED: |
This may be related to issue 2096, which is now fixed. Try the following: |
|
I have the issue too, does anybody solve it? |
If you are still seeing this failure with the latest master code, can you capture the output of the test and post the results here: cd eos/build Then send the mongo_test.out file. |
I also have the same issue. cd eos/build in mongo_test.out file: terminate called after throwing an instance of 'fc::eof_exception' == Errors see above == |
1/25 Test #1: validate_simple.token_abi ........... Passed 0.02 sec |
@kshpylon It appears that you may not have mongo db installed. Please try "which mongo" to see if it is available in your path. The eosio_build.sh script should be installing this for you. Please look for errors from the build script about mongo. @stvenyin How long did you wait for chain_test_binaryen to complete? It takes about 35 seconds on my ubuntu build. If you are having a problem with this test please submit a different issue. |
I am closing this ticket as it seems that the problem description has drifted. If you determine specific mongo installation issues, please report those as a new issue (and identify OS version). |
it total about 500 seconds, i checkout the lasted source code compiled. |
I have identified the cause of the failure. Before running the test, run this : ~/opt/mongodb/bin/mongod -f ~/opt/mongodb/mongod.conf & |
These tests fail for me as well. Probably for a different reason, though, since I'm running Arch linux, and as I figured out it seems an OS specific issue. Here's a log from
I was able to make it pass with this commit. But there might be a better solution, so you don't need to check for every linux platform. |
@sim31 Could you submit a pull request with that commit. |
First off, I am running from Docker. So what worked for me was a few steps to get it running. First, I ran what @kshpylon specified (not sure this did what I needed for my setup, but did run it, so including in instructions) , then I ran in terminal "mongod", and found the error that /data/db hadn't been created, so I created those folders. My test command was -> /root/opt/mongodb/bin/mongod -f /root/opt/mongodb/mongod.conf & cd /root/eos/build; make test So first thing I noticed is that my binary lived at /usr/bin/mongod, and I had no /opt/mongodb/mongod.conf file. I created /mongodb/mongod.conf by executing "touch mongod.conf" in the mongodb directory I had created, and so my test command became as follows - /usr/bin/mongod -f /opt/mongodb/mongod.conf & cd /eos/build; make test Your setup may be different than mine, but key seems to be verifying first that mongod runs, and second seems to be making sure that the resource paths specified exist on some level (even if blank). |
I am on branch 269f084 97% tests passed, 1 tests failed out of 32 Total Test time (real) = 574.39 sec The following tests FAILED: |
I have figured out that
will fix the error. |
i meet the problem. build:5.18.2018 |
having a similar issue: 82% tests passed, 6 tests failed out of 34 Total Test time (real) = 491.83 sec The following tests FAILED: |
@trigx300 - I hit a similar problem when the directory wasn't chowned by the user I was (other than root). |
@falkon303 Thanks! That worked |
I have the same error.
|
this is my solution. about nodeos_run_test-mongodb failed.
|
@RyoNgs Thank you so much, I just install the mongo and logout then login, restart the terminal and then run the |
You have to : $ sudo mkdir -p /data/db $ sudo chown -R yourusername /data/db and then just give the appropriate read and write permissions to /data/db this will give a passed message on nodeos_run_test-mongodb. as @falkon303 mentioned the dir was missing and lacked user ownership and read and write permisions. |
I have the same error. @RyoNgs It works on Mac? or Anybody solves it? |
@raisezhang i works on Ubuntu 18.04 if you already installed 'mongodb-server-core', 'mongodb-clients' if 'nodeos_run_test-mongodb' fails again, I think there will be no problem using the entire eosio system and mongodb plugin. i think the test is just a test. i also keep failing 'nodeos_run_test-mongodb'. |
@RyoNgs Thank you so much~
|
how to fix
The text was updated successfully, but these errors were encountered: