fail to start dawn 4.0 nodeosd use docker image
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 ?
programs/nodeos/CMakeLists.txt:60 the code have been commented。 so will not make the target object.
It isn't compiled myself, I'm using official docker image from https://hub.docker.com/r/eosio/eos/
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.
@YangYu000 Just delete the --mongodb-uri option then it may work fine
@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 , currently the --mongodb-uri has been commented in the docker-compose file, so this will works fine.
The issue can be closed now.
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
Same issue.
Same issue.