EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

Error in starting up `nodeos` #6443

Closed pranavkanade closed 5 years ago

pranavkanade commented 5 years ago

Getting error when trying to startup nodeos. I followed all the steps from getting started guide and at Step 1.2

Following is the command and its output that I got -

  % nodeos -e -p eosio \                                                                                                                                                              !6633
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::http_plugin \
-d /Users/pskanade/projects/eos/contracts/eosio/data \
--config-dir /Users/pskanade/projects/eos/contracts/eosio/config \
--access-control-allow-origin=* \
--contracts-console \
--http-validate-host=false \
—filter-on=‘*’ >> nodeos.log 2>&1 &
[2] 17551
zsh: no matches found: --access-control-allow-origin=*
[2]  + 17551 exit 1     nodeos -e -p eosio --plugin eosio::producer_plugin --plugin  --plugin  -d

I am using macbook air with mojave. Please help !

spoonincode commented 5 years ago

Try changing the above to

nodeos -e -p eosio \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::http_plugin \
-d /Users/pskanade/projects/eos/contracts/eosio/data \
--config-dir /Users/pskanade/projects/eos/contracts/eosio/config \
'--access-control-allow-origin=*' \
--contracts-console \
--http-validate-host=false \
'--filter-on=*' >> nodeos.log 2>&1 &
pranavkanade commented 5 years ago

Thanks, it worked !! :)

pranavkanade commented 5 years ago

This might sound silly, but why changing these options to quoted string is required?

spoonincode commented 5 years ago

The shell is going to expand the character to all files in the directory. Just like when you do a `ls ` for example. So you need to tell the shell not to expand it and treat it literally. I will try to get the docs updated.

spoonincode commented 5 years ago

docs fixed

coreycottrell commented 5 years ago

using ubuntu in a VM (windows 10 pro) same spot but im getting

corey@corey-VirtualBox:~$ nodeos -e -p eosio \

--plugin eosio::producer_plugin \ --plugin eosio::chain_api_plugin \ --plugin eosio::http_plugin \ --plugin eosio::history_plugin \ --plugin eosio::history_api_plugin \ --access-control-allow-origin='*' \ --contracts-console \ --http-validate-host=false \ --verbose-http-errors >> nodeos.log 2>&1 & [1] 31557 corey@corey-VirtualBox:~$ tail -f nodeos.log

Command 'nodeos' not found, did you mean:

command 'nodejs' from deb nodejs command 'nodefs' from deb noweb

Try: sudo apt install

tried the above fix and no joy

jgiszczak commented 5 years ago

@coreycottrell The easiest way for you to install nodeos is to download the appropriate .deb file from the releases page for your version of Ubuntu and use dpkg -i <deb-file>. There is currently no apt repository available. If you receive errors about missing dependencies after installing the eosio package, also run sudo apt-get -f install which will fetch and install any missing packages needed.

If you still have the problem and wish to discuss it further, please post it in https://eosio.stackexchange.com. To keep things organized, Github issues are intended for bug reporting and feature tracking, and Stack Exchange is the right place for any technical support discussions. Thanks!

coreycottrell commented 5 years ago

Perfect thank you so much

On Tue, Apr 16, 2019, 12:56 PM jgiszczak notifications@github.com wrote:

@coreycottrell https://github.com/coreycottrell The easiest way for you to install nodeos is to download the appropriate .deb file from the releases page https://github.com/EOSIO/eos/releases for your version of Ubuntu and use dpkg -i . There is currently no apt repository available. If you receive errors about missing dependencies after installing the eosio package, also run sudo apt-get -f install which will fetch and install any missing packages needed.

If you still have the problem and wish to discuss it further, please post it in https://eosio.stackexchange.com. To keep things organized, Github issues are intended for bug reporting and feature tracking, and Stack Exchange is the right place for any technical support discussions. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/6443#issuecomment-483757251, or mute the thread https://github.com/notifications/unsubscribe-auth/AvPdpGyxEG1gs-4tekG82YTEPeW1nCqCks5vhgCmgaJpZM4ZGxxB .