Обновление Node A до 0.1.1



  • Всем просьба обновить ноды до блока 3 000 000
    добавлены изменения в генерации адреса, стабильности, форжинге
    для обновления, в папке с кодом ноды smartholdem-node-a
    выполнить:

    forever stop app.js

    git pull

    forever start app.js --config config.smartholdem.json --genesis genesisBlock.smartholdem.json

    Для мониторинга как обычно используем
    tail -f ./logs/sth.log

    ctrl+c выход



  • Выдает ошибку

    smartholdem@unassigned-hostname:~/smartholdem-node-a$ git pull
    remote: Counting objects: 43, done.
    remote: Compressing objects: 100% (22/22), done.
    remote: Total 43 (delta 32), reused 32 (delta 21), pack-reused 0
    Unpacking objects: 100% (43/43), done.
    From https://github.com/smartholdem/smartholdem-node-a
    cecb4c7..35ef72f master -> origin/master
    Updating cecb4c7..35ef72f
    error: Your local changes to the following files would be overwritten by merge:
    config.smartholdem.json
    Please, commit your changes or stash them before you can merge.
    Aborting
    smartholdem@unassigned-hostname:~/smartholdem-node-a$



  • Вариант 2
    останавливаете процесс как было указано вначале
    удаляете папку rm -rf smartholdem-node-a
    и заново качаете и ставите

    git clone https://github.com/smartholdem/smartholdem-node-a.git

    cd smartholdem-node-a

    npm install

    не забываем заново прописать ключ



  • @antonio_q3 ВАриант 3

    git checkout master -f
    git pull

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



  • @technol0g Обновился по Варианту 2, вроде все нормально 👍



  • @technol0g Вроде бы обновился.
    info: Forever stopped process:
    uid command script forever pid id logfile uptime
    [0] f6sP /home/smartholdem/.nvm/versions/node/v6.9.5/bin/node app.js --config config.smartholdem.json --genesis genesisBlock.smartholdem.json 26372 26378 /home/smartholdem/.forever/f6sP.log 0:10:58:10.915
    smartholdem@unassigned-hostname:~/smartholdem-node-a$ git checkout master -f
    Already on 'master'
    Your branch is behind 'origin/master' by 13 commits, and can be fast-forwarded.
    (use "git pull" to update your local branch)
    smartholdem@unassigned-hostname:~/smartholdem-node-a$ git pull
    remote: Counting objects: 7, done.
    remote: Compressing objects: 100% (2/2), done.
    remote: Total 7 (delta 5), reused 7 (delta 5), pack-reused 0
    Unpacking objects: 100% (7/7), done.
    From https://github.com/smartholdem/smartholdem-node-a
    35ef72f..f0a96e1 master -> origin/master
    Updating cecb4c7..f0a96e1
    Fast-forward
    config.json | 46 +++++++++++++++++++++++++++++++++++++++++++++-
    config.smartholdem.json | 46 +++++++++++++++++++++++++++++++++++++++++++++-
    helpers/constants.js | 10 +++++-----
    package.json | 4 ++--
    4 files changed, 97 insertions(+), 9 deletions(-)
    smartholdem@unassigned-hostname:~/smartholdem-node-a$ nano config.smartholdem.json
    smartholdem@unassigned-hostname:~/smartholdem-node-a$ forever start app.js --config config.smartholdem.json --genesis genesisBlock.smartholdem.json
    warn: --minUptime not set. Defaulting to: 1000ms
    warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
    info: Forever processing file: app.js



  • запамятовал команду, для обновления вместо git pull используем, тогда ничего удалять не нужно

    git fetch && git merge



  • @komokhepbob Караулишь своего делегата в мониторе, как только он отработал начинаешь обновлять ноду, на это у тебя есть минут 5ть. В мониторе делегатов пишется, через сколько примерно будет форжить твой делегат.



  • @antonio_q3 в последней версии добавлен скрипт быстрого обновления
    https://community.smartholdem.io/topic/48/dopolnytelnye-bash-skrypty


Log in to reply