Eos: unrecognised option 'wallet-dir'

Created on 19 Sep 2018  路  18Comments  路  Source: EOSIO/eos

wulideMac-mini:Docker wuli$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
wulideMac-mini:Docker wuli$ docker run --name nodeos -p 8888:8888 -p 9876:9876 -t eosio/eos nodeosd.sh arg1 arg2
2018-09-19T09:28:37.390 thread-0 main.cpp:136 main ] Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl >
std::exception::what: unrecognised option 'wallet-dir'

Support

Most helpful comment

Then EOSIO/eos Docker image should be fixed at https://hub.docker.com/r/eosio/eos/ as I've pulled the latest one and it's broken.

All 18 comments

you should remove it in config.ini.
This is the update of 1.3.0.

Unknown configuration items in config.ini will now error on startup (#5678)
Prior to 1.3.0 unknown configuration items in config.ini would be silently ignored. This behavior has been changed in 1.3.0 to an error that prevents startup of nodeos. Users with old auto-generated config.ini files may need to remove some options that are no longer available in nodeos for example wallet-diror unlock-timeout

you should remove it in config.ini.
This is the update of 1.3.0.

Unknown configuration items in config.ini will now error on startup (#5678)
Prior to 1.3.0 unknown configuration items in config.ini would be silently ignored. This behavior has been changed in 1.3.0 to an error that prevents startup of nodeos. Users with old auto-generated config.ini files may need to remove some options that are no longer available in nodeos for example wallet-diror unlock-timeout

wulideMac-mini:eos wuli$ nodeos -v
v1.2.5
wulideMac-mini:eos wuli$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
wulideMac-mini:eos wuli$ docker run --name nodeos -p 8888:8888 -p 9876:9876 -t eosio/eos nodeosd.sh -e --http-alias=nodeos:8888 --http-alias=127.0.0.1:8888 --http-alias=localhost:8888 arg1 arg2
2018-09-19T11:42:19.386 thread-0 main.cpp:136 main ] Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl >
std::exception::what: unrecognised option 'wallet-dir'

Try docker run --name nodeos -v.

Same here:

>docker run --name nodeos -p 9999:9999 -p 9876:9876 -t eosio/eos nodeosd.sh -e --http-alias=nodeos:9999 --http-alias=127.0.0.1:9999 --http-alias=localhost:999
9
2018-09-21T19:51:13.641 thread-0   main.cpp:136                  main                 ] Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::unknown_option> >
std::exception::what: unrecognised option 'wallet-dir'

If the command isn't correct in https://github.com/EOSIO/eos/blob/master/Docker/README.md, please fix it.

The command is correct, as is the Docker README.

The error is in the nodeos config file in your Docker container. You must edit /opt/eosio/bin/data-dir/config.ini and remove the obsolete option. The path given is per the Docker container root directory. If you have it mounted outside of Docker, substitute your mount path.

Then EOSIO/eos Docker image should be fixed at https://hub.docker.com/r/eosio/eos/ as I've pulled the latest one and it's broken.

Same error here @jgiszczak
As @kenorb pointed, the docker container is what gets built at the README he mentioned.
Basically I followed the same instructions and got the same error. I have not specified any options in config.ini too.
After reading this here, I went into the config.ini and commented out the line as:
# wallet-dir = "."
That did not fix. Then I went into these:
docker-compose-latest.yml
docker-compose.yml
and removed
--wallet-dir options from there as well.
After all these changes, I removed docker container and docker images and rebuilt the container from scratch (takes some time on an i5 laptop tbh).
Still running into the same issue.

Same as @leventatbjss .

Same issue

same issue

Same issue

Same problem

remove 'wallet-dir = "."' from https://github.com/EOSIO/eos/blob/master/Docker/config.ini

FROM eosio/eos
COPY config.ini /

docker build .

it's work.

@liguobao Hi, how to remove 'wallet-dir = "."' from foreign github?) Or how ot force docker to build from local repository?

@liguobao Hi, how to remove 'wallet-dir = "."' from foreign github?) Or how ot force docker to build from local repository?

You can run docker build to rebuild from local repository. Check the README.md file.

@kenorb Reopening until the next release. Fixed in the repo by #6021 and #5988.

In case anyone else runs into this and needs a fix without building the whole image.

After an unsuccessful run ending with:
std::exception::what: unrecognised option 'wallet-dir'

Do (assumes your docker image is called nodeos, replace accordingly):
docker cp nodeos:/opt/eosio/bin/data-dir/config.ini .
vi config.ini - COMMENT OUT wallet-dir or unlock-timeout
docker cp config.ini nodeos:/opt/eosio/bin/data-dir/config.ini

6021 is merged so this issue should be fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

toonsevrin picture toonsevrin  路  3Comments

hoopslb picture hoopslb  路  3Comments

ResponsiveWebApps picture ResponsiveWebApps  路  3Comments

chanwitkepha picture chanwitkepha  路  3Comments

jiazechen picture jiazechen  路  3Comments