I am trying to deploy a contract to the jungle testnet. I get the following error -
cleos wallet import -n trevor5 5KcFCgZiixiZ69dyA5u3......RBQtZ "/usr/local/bin/keosd" launched Unable to connect to keosd, if keosd is running please kill the process and try again. ~/Projects/EOS/eos/build/programs/keosd$
I kill keosd and then try again. I get the same error message and keosd seems to startup again.
Has anyone any idea how to solve this?
A few comments to give more details following the response to my question -
# The local IP and port to listen for incoming http connections; set blank to disable. (eosio::http_plugin) http-server-address = 127.0.0.1:8888 # The local IP and port to listen for incoming https connections; leave blank to disable. (eosio::http_plugin) # https-server-address = # Filename with the certificate chain to present on https connections. PEM format. Required for https. (eosio::http_plugin) # https-certificate-chain-file = # Filename with https private key in PEM format. Required for https (eosio::http_plugin) # https-private-key-file = # Specify the Access-Control-Allow-Origin to be returned on each request. (eosio::http_plugin) # access-control-allow-origin = # Specify the Access-Control-Allow-Headers to be returned on each request. (eosio::http_plugin) # access-control-allow-headers = # Specify the Access-Control-Max-Age to be returned on each request. (eosio::http_plugin) # access-control-max-age = # Specify if Access-Control-Allow-Credentials: true should be returned on each request. (eosio::http_plugin) access-control-allow-credentials = false # The maximum body size in bytes allowed for incoming RPC requests (eosio::http_plugin) max-body-size = 1048576 # Append the error log to HTTP responses (eosio::http_plugin) verbose-http-errors = false # If set to false, then any incoming "Host" header is considered valid (eosio::http_plugin) http-validate-host = 1 # Additionaly acceptable values for the "Host" header of incoming HTTP requests, can be specified multiple times. Includes http/s_server_address by default. (eosio::http_plugin) # http-alias = # The path of the wallet files (absolute path or relative to application data dir) (eosio::wallet_plugin) wallet-dir = "." # Timeout for unlocked wallet in seconds (default 900 (15 minutes)). Wallets will automatically lock after specified number of seconds of inactivity. Activity is defined as any wallet command e.g. list-wallets. (eosio::wallet_plugin) unlock-timeout = 900 # Plugin(s) to enable, may be specified multiple times # plugin =
I get the keosd apparently seeking to listen on 8900 which is different to the port in config.ini.
cleos wallet import -n trevor5 5KcFCgZiixiZ69dyA5u39SG...8drWEXrRBQtZ "/usr/local/bin/keosd" launched Unable to connect to keosd, if keosd is running please kill the process and try again. ~/Projects/EOS/eos$ ps aux | grep keosd satoshimaca 1180 0.0 0.0 4267752 764 s000 R+ 10:05am 0:00.00 grep keosd satoshimaca 1170 0.0 0.1 4291748 6768 s000 S 10:04am 0:00.02 /usr/local/bin/keosd --http-server-address=::1:8900 ~/Projects/EOS/eos$
Here is my filelist -
~/Projects/EOS/eos$ ls CMakeLists.txt debian programs CMakeModules docs scripts Docker eos.doxygen.in testnet.md HEADER eosio_build.sh testnet.template LICENSE.txt externals tests README.md images tools build libraries tutorials contracts plugins unittests ~/Projects/EOS/eos$
The config.ini file is actually under
3 satoshimaca staff 96 15 Jul 16:46 eosio-wallet drwxr-xr-x 6 satoshimaca staff 192 15 Jul 12:39 Projects
I am unsure if that makes any different to cleos finding it.
I tried various versions of the following but they all state the same error as I posted originally -
cleos wallet --wallet-url TEXT=http://127.0.0.1:8888/ import -n trevor5 5KcFCgZiixiZ69dyA5u39SGWg4........WEXrRBQtZ