Can I upgrade to Bitcoin Core 0.17.0 while 0.16.3 bitcoin is running? #14500

issue nopara73 opened this issue on October 17, 2018
  1. nopara73 commented at 8:22 AM on October 17, 2018: none

    I am afraid I know the answer already, I just hope there may be a little secret trick. If there'd be a way to keep 0.16.3 running or 0.17.0 answering for some RPC commands while txindex migration is happenning, that'd be great help, since I'm reluctant to shut down the server for hours.

    From the release notes: https://bitcoincore.org/en/releases/0.17.0/

    If your node has a txindex, the txindex db will be migrated the first time you run 0.17.0 or newer, which may take up to a few hours. Your node will not be functional until this migration completes.

  2. NicolasDorier commented at 8:40 AM on October 17, 2018: contributor

    I think your best bet is to pop up a second, brand new node and switch over once the sync is done, so you don't have downtime. (Do not copy chainstate while the 0.16.3 is running, or funny things happen)

  3. promag commented at 8:54 AM on October 17, 2018: member

    You could keep at least 2 running and in sync which you could use like master slave or to load balance RPC. The point is you can upgrade one, update your clients, and then upgrade the other if everything is fine.

  4. nopara73 commented at 8:59 AM on October 17, 2018: none

    Thanks, pretty good ideas. Probably it doesn't worth the trouble for me, because so many things can go wrong, I'm afraid I'd ruin something, so a simple server shutdown for an hour may be preferable for now, while only a couple of hundred tech savvy early adopter users are effected. But for the future, I'll keep them in mind.

  5. nopara73 closed this on Oct 17, 2018

  6. nopara73 commented at 9:48 AM on October 17, 2018: none

    I started upgrading the testnet server. Can I get how much time there's left? Nor getnetworkinfo nor getblockchaininfo works.

  7. nopara73 commented at 9:50 AM on October 17, 2018: none

    Wow, testnet reindexed within 4 minutes. The mainnet server much faster (of course the database is much bigger, too)

  8. nopara73 commented at 10:35 AM on October 17, 2018: none

    Done. It took 33min, everything went great.

  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me