eos icon indicating copy to clipboard operation
eos copied to clipboard

fail to start dawn 4.0 nodeosd use docker image

Open YangYu000 opened this issue 8 years ago • 9 comments

I follow the last two section of https://github.com/EOSIO/eos/blob/dawn-v4.0.0/Docker/README.md .

Enable MongoDB plugin in config.ini

# Plugin(s) to enable, may be specified multiple times
plugin = eosio::producer_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::wallet_api_plugin
plugin = eosio::history_api_plugin
plugin = eosio::http_plugin
plugin = eosio::mongo_db_plugin <-- uncommented this line

Mount config.ini into docker

volumes:
      - nodeos-data-volume:/opt/eosio/bin/data-dir
      - ./config.ini:/opt/eosio/bin/data-dir/config.ini  <-- added this line

After I exec > sudo docker-compose -f docker-compose-dawn4.0.yaml up, I got

nodeosd_1  |
nodeosd_1  |
nodeosd_1  | 171719ms thread-0   main.cpp:101                  main                 ] Throw location unknown (consider using BOOST_THROW_EXCEPTION)
nodeosd_1  | Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::unknown_option> >
nodeosd_1  | std::exception::what: unrecognised option '--mongodb-uri'
nodeosd_1  |

then the docker daemon says docker_nodeosd_1 exited with code 0


I remove the mongo url part in nodeosd command. And start the docker container, this time I got

nodeosd_1  |
nodeosd_1  |
nodeosd_1  | 2971865ms thread-0   chain_plugin.cpp:125          plugin_initialize    ] initializing chain plugin
nodeosd_1  | 2971865ms thread-0   chain_plugin.cpp:166          plugin_initialize    ] Resync requested: wiping database and blocks
nodeosd_1  | 2971933ms thread-0   http_plugin.cpp:247           plugin_initialize    ] configured http to listen on 0.0.0.0:8888
nodeosd_1  | 2971933ms thread-0   wallet_plugin.cpp:41          plugin_initialize    ] initializing wallet plugin
nodeosd_1  | 2971933ms thread-0   wallet_api_plugin.cpp:112     plugin_initialize    ]
nodeosd_1  | *************************************
nodeosd_1  | *                                   *
nodeosd_1  | *  --   Wallet NOT on localhost  -- *
nodeosd_1  | *  - Password and/or Private Keys - *
nodeosd_1  | *  - are transferred unencrypted. - *
nodeosd_1  | *                                   *
nodeosd_1  | *************************************
nodeosd_1  |
nodeosd_1  | 2971934ms thread-0   main.cpp:101                  main                 ] /eos/libraries/appbase/application.cpp(290): Throw in function appbase::abstract_plugin &appbase::application::get_plugin(const string &) const
nodeosd_1  | Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
nodeosd_1  | std::exception::what: unable to find plugin: eosio::mongo_db_plugin
nodeosd_1  |

maybe mongodb is not yet supported or compiled in dawn 4.0 ?

YangYu000 avatar May 14 '18 04:05 YangYu000

programs/nodeos/CMakeLists.txt:60 the code have been commented。 so will not make the target object.

paritygeeker avatar May 14 '18 23:05 paritygeeker

It isn't compiled myself, I'm using official docker image from https://hub.docker.com/r/eosio/eos/

YangYu000 avatar May 15 '18 01:05 YangYu000

yes, the official docker image is just a daily build image, it's not care whether the code has something wrong or whether it can run. if you want develop eos at now, you must learn to compile by yourself.

paritygeeker avatar May 15 '18 03:05 paritygeeker

@YangYu000 Just delete the --mongodb-uri option then it may work fine

pplam avatar May 16 '18 05:05 pplam

@pplam thanks for advice, this is a solution, actually I work this out yesterday, but I'm still trying to figure out how to get the mongo plugin work.

YangYu000 avatar May 16 '18 06:05 YangYu000

@YangYu000 , currently the --mongodb-uri has been commented in the docker-compose file, so this will works fine. The issue can be closed now.

noprom avatar May 23 '18 04:05 noprom

May I ask why the section for mongo plugin is commented out in programs/nodeos/CMakeLists.txt ?

It's conflicting with the last paragraph of https://github.com/EOSIO/eos/tree/master/Docker

ripley avatar May 24 '18 13:05 ripley

Same issue.

prayagk avatar Jun 02 '18 10:06 prayagk

Same issue.

joemccann avatar Jun 02 '18 11:06 joemccann