• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
SmartHoldem Community

Community

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

Scheduled Pinned Locked Moved Новости SmartHoldem
9 Posts 3 Posters 4.2k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TechnoL0gT Offline
    TechnoL0gT Offline
    TechnoL0g
    wrote on last edited by TechnoL0g
    #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 выход

    Эксперт по сверхъестественному в области IT / Expert in the supernatural the IT

    1 Reply Last reply
    1
  • Antonio_q3A Offline
    Antonio_q3A Offline
    Antonio_q3
    wrote on last edited by
    #2

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

    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$

    TechnoL0gT 1 Reply Last reply
    0
  • TechnoL0gT Offline
    TechnoL0gT Offline
    TechnoL0g
    wrote on last edited by
    #3

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

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

    cd smartholdem-node-a

    npm install

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

    Эксперт по сверхъестественному в области IT / Expert in the supernatural the IT

    G 1 Reply Last reply
    1
  • TechnoL0gT Offline
    TechnoL0gT Offline
    TechnoL0g
    replied to Antonio_q3 on last edited by TechnoL0g
    #4

    @antonio_q3 ВАриант 3

    git checkout master -f
    git pull

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

    Эксперт по сверхъестественному в области IT / Expert in the supernatural the IT

    Antonio_q3A 1 Reply Last reply
    0
  • G Offline
    G Offline
    greench
    replied to TechnoL0g on last edited by
    #5

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

    1 Reply Last reply
    0
  • Antonio_q3A Offline
    Antonio_q3A Offline
    Antonio_q3
    replied to TechnoL0g on last edited by
    #6

    @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

    1 Reply Last reply
    0
  • TechnoL0gT Offline
    TechnoL0gT Offline
    TechnoL0g
    wrote on last edited by
    #7

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

    git fetch && git merge

    Эксперт по сверхъестественному в области IT / Expert in the supernatural the IT

    1 Reply Last reply
    0
  • Antonio_q3A Offline
    Antonio_q3A Offline
    Antonio_q3
    wrote on last edited by
    #8

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

    TechnoL0gT 1 Reply Last reply
    0
  • TechnoL0gT Offline
    TechnoL0gT Offline
    TechnoL0g
    replied to Antonio_q3 on last edited by
    #9

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

    Эксперт по сверхъестественному в области IT / Expert in the supernatural the IT

    1 Reply Last reply
    1

Decentralized Gaming Platform
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search