Error authorization failed incorrect rpcuser or rpcpassword

After installing bitcoin on CentOS/AWS, an error occurs when connecting with cli. $ bitcoind -daemon -conf=/.bitcoin/bitcoin.conf Bitcoin server starting $ bitcoin-cli getbalance error: Authorizat...

After installing bitcoin on CentOS/AWS, an error occurs when connecting with cli.

$ bitcoind -daemon -conf=/.bitcoin/bitcoin.conf
Bitcoin server starting
$ bitcoin-cli getbalance
error: Authorization failed: Incorrect rpcuser or rpcpassword

The following is bitcoin.conf.

mainnet = 1
txindex = 1
server = 1
rest = 1
rpcuser = a
rpcpassword = a
rpcport = 8332

Alistair Mann's user avatar

asked Mar 29, 2019 at 7:25

kotora's user avatar

4

In case you changed your /etc/systemd/system/bitcoind.service make sure you run

 sudo systemctl stop bitcoind
 sudo systemctl daemon-reload
 sudo systemctl start bitcoind

to apply the changes.

answered Nov 6, 2020 at 21:13

bomben's user avatar

bombenbomben

4881 gold badge4 silver badges11 bronze badges

1

Здравствуй

   Я бегу Eloipool на Gentoo Linux и тестирование его на VMware Workstation, я установил Bitcoind и блоки до даты, когда я типа

eloipool @ mypool ~ $ ./bin/bitcoind GetInfo
{
    «версия» : 80100,
    «protocolversion» : 70001,
    «walletversion» : 60000,
    «баланс» : 0.00000000,
    «блоки» : 243906,
    «связи» : 8,
    «полномочие» : «»,
    «трудность» : 19339258.27238668,
    «testnet» : ложный,
    «keypoololdest» : 1371974854,
    «keypoolsize» : 101,
    «paytxfee» : 0.00000000,
    «ошибки» : «Внимание: Пожалуйста, убедитесь, что дата и время вашего компьютера правильно! Если ваши часы неправильно Bitcoin не будет работать должным образом.»
}

И когда я типа

eloipool @ mypool ~ $ ./bin/bitcoind -rpcuser = стивен -rpcpassword = 3QtnxrB7P5y4EpBdad1MkCeB2RHmArvcarw7udgXsAce GetInfo
Ошибка: неправильное rpcuser или rpcpassword (авторизация не удалась)

мой bitcoin.conf
это
### bitcoin.conf файл конфигурации. Строки, начинающиеся с #, являются комментариями.
### Раскоментируйте и опции редактирования вы хотите использовать.

## Параметры JSON-RPC (для управления работает Bitcoin-кварта / bitcoind процесса)

# Сервер = 1 говорит Bitcoin принимать команды JSON-RPC.
Сервер = 1

# Вы должны установить rpcuser и rpcpassword для обеспечения JSON-RPC API
# Вы должны создать свой собственный новый случайный пароль.
# Имя пользователя и пароль не должны быть одинаковыми.

rpcuser = стивен
rpcpassword = 3QtnxrB7P5y4EpBdad1MkCeB2RHmArvcarw7udgXsAce

# Сколько секунд Bitcoin будет ждать полного запроса RPC HTTP
устанавливается # после подключения HTTP.
rpctimeout = 30

# По умолчанию, только RPC соединения от локального хоста разрешены. Указывать
# Как много rpcallowip = настройки, как вы хотите, чтобы разрешить соединения с
# другие хосты (и вы можете использовать * в качестве символа подстановки):
# Rpcallowip = 10.1.1. *
# Rpcallowip = 192.168.1. *

# Прислушайтесь RPC соединения по этому TCP порту:
rpcport = 8332

# Вы можете использовать bitcoind для отправки команд Bitcoin-кварты / bitcoind
# Работает на другом хосте с помощью этой опции:
rpcconnect = 127.0.0.1

# Использование Secure Sockets Layer (также известный как TLS или HTTPS) для связи
# С Bitcoin -server или bitcoind
# Rpcssl = 1

Настройки # OpenSSL используется при rpcssl = 1
rpcsslciphers = TLSv1 + ВЫСОКИЙ: SSLv2: aNULL: eNULL: AH: 3DES: @STRENGTH
rpcsslcertificatechainfile = server.cert

## сетевые параметры:

# Запуск на тестовой сети, а не в реальной сети Bitcoin.
# Testnet = 1

# Подключение через прокси носки
# Прокси = 127.0.0.1: 9050

# Выберите версию носки прокси для использования (4-5, по умолчанию: 5)
# Носки = 5

# Использовать прокси для достижения скрытых сервисов Tor (по умолчанию: такой же, как -proxy)
# Тор =

Можете ли вы помочь мне, где я пошло не так

когда я попытался подключение с GUI шахтером с хостом: 192.168.1.9 (локальный IP хост-сервер) с rpcuser и rpcpass он говорит

2013-06-29 15:55:20: Запуск команды: poclbm.exe стивен: 3QtnxrB7P5y4EpBdad1MkCeB2RHmArvcarw7udgXsAce@192.168.1.9: 8332 —device = 0 —platform = 0 —verbose -r1
2013-06-29 15:55:20: Слушатель для «По умолчанию» начал
2013-06-29 15:55:23: Слушатель для «По умолчанию»: Нет PyOpenCL
2013-06-29 15:55:23: Слушатель для «По умолчанию»: Не используя OpenCL
2013-06-29 15:55:23: Слушатель для «По умолчанию»: Ничего не помоему на, выходя

Мне нужна помощь по этому вопросу.

  • #1

Всем привет.
Не удается поставить Sentinel на VPS. Делаю по инструкции с гитхаба, но при попытке запустить Sentinel командой
venv/bin/python bin/sentinel.py выдается сообщение:
Cannot connect to vivod. Please ensure vivod is running and the JSONRPC port is open to Sentinel.

Как победить?

cemehbl4


  • #2

Всем привет.
Не удается поставить Sentinel на VPS. Делаю по инструкции с гитхаба, но при попытке запустить Sentinel командой
venv/bin/python bin/sentinel.py выдается сообщение:
Cannot connect to vivod. Please ensure vivod is running and the JSONRPC port is open to Sentinel.

Как победить?

pidof vivod

  • #3

Как это мне должно помочь?

cemehbl4


  • #4

Как это мне должно помочь?

отвечай и дальше раз в неделю, тогда тебе точно помощь гарантирована

  • #5

если не знаешь как помочь, то можно вообще ничего не писать

cemehbl4


  • #6

если не знаешь как помочь, то можно вообще ничего не писать

вообще то знаю, потому и прокомментировал

  • #7

ну ты объясни подробнее тогда
а так похоже, что ты хотел блеснуть знаниями, а не помочь

cemehbl4


  • #8

ну ты объясни подробнее тогда
а так похоже, что ты хотел блеснуть знаниями, а не помочь

Тебе сентинел написал, что не могу законнектится к vivod, проверьте запущен ли он. Команда pidof vivod выдаст айди процесса, если он запущен, таким образом ты убедишься, что он работает. Если он работает, значит нужно зайти в конфиг vivo.conf, лежит он скорее всего в ~/.vivo, и посмотреть, прописан ли там rpc порт.

  • #9

vivod запущен, id процесса выдает
порт прописан, 12845

проблема в чем-то другом

cemehbl4


  • #10

vivod запущен, id процесса выдает
порт прописан, 12845

проблема в чем-то другом

rpcport=12845
??

cemehbl4


  • #12

там бывает еще опция port=, вот я и уточнил

cemehbl4


  • #13

попробуй, что выдаст
vivo-cli getinfo

  • #14

посмотри, плз, мой vivo.conf

rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
externalip=108.61.180.170:12845
masternode=1
masternodeprivkey=***
rpcuser=root
rpcpassword=***
rpcport=9998

  • #15

попробуй, что выдаст
vivo-cli getinfo

[email protected]:~/vivo# ./vivo-cli getinfo
error: incorrect rpcuser or rpcpassword (authorization failed)

пароль от root же должен быть в vivo.conf ?

cemehbl4


  • #16

[email protected]:~/vivo# ./vivo-cli getinfo
error: incorrect rpcuser or rpcpassword (authorization failed)

пароль от root же должен быть в vivo.conf ?

да, юзер не обязательно root, можно любое значение, ни в юзере, ни в пароле не должно быть спецсимволов, только буквы и цифры

cemehbl4


  • #19

пароль не слишком короткий и не слишком длинный?

4 буквы 3 цифры
этого достаточно?

cemehbl4


  • #20

4 буквы 3 цифры
этого достаточно?

попробуй от 8 до 16, это так навскидку

  • #1

Hello everyone,

Thanks for your support in the first place.

I am trying to write a little personal bash script for a project I am doing at work that will allow me to automate a few tasks I need to run, in particular with dash.conf that will be automatically edited adding some addnode= list I require and other things.

It is purely for a project the company I work for is running.

I have a VPS service that comes with dashd pre-installed through a template made by my hosting provider and at reboot it has a screen session created automatically where I can monitor the daemon’s behaviour.

The dash.conf provided is a very default one (my script will take care of populating the various lines I need).

rpcuser=tempuser
rpcpassword=temppassword
rpcallowip=127.0.0.1
txindex=1

However, this is the main hurdle I get… it looks and sounds very stupid but I really cannot get past it.

These are the first lines of my bash script (all the required binaries have been copied to /usr/bin for ease of use):

dash-cli stop
sleep 10
rm -Rfv ~/.dashcore/blocks chainstate/ database/ (I want to use a bootstrap that will be processed later, so I want a clean directory)
sleep 2
dashd —daemon (I need dash to be back on now as otherwise later steps requiring dash-cli will fail)
sleep 10

At this point I get my error:

error: incorrect rpcuser or rpcpassword (authorization failed)

Why is this the case if I haven’t modified the dash.conf rpcuser or password at all? I have left the original one that was supplied by the hosting provider.

Any help to correct what I am doing wrong will be greatly appreciated.

I am truly sorry if I can’t disclose more information of what I am really trying to do, as the project for the moment is considered to be very confidential.

Thanks again.

Kind Regards,

Ugo

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Понравилась статья? Поделить с друзьями:
  • Error authentication rejected unspecified
  • Error authentication failed ugfzc3dvcmq6
  • Error authentication failed please try again social club
  • Error authentication failed please accept eula first
  • Error authentication failed mongodb