I have a full node that runs on Linux Ubuntu. As I'm a Windows guy, I need someone to tell my how to upgrade my node to the newest IRI version and how to delete my database after a snapshot. I could of course re-install the whole server (I have installed it using the iota.partners tutorial), but as I'm sure it's just a matter of some commands in the console, I really hope someone would bother to help me out.
1 Answer
Usually after a snapshot an updated version of IRI, of the GUI wallet and of Javascript library are released. So you have to install the new version of IRI.
Actually upgrading is just a matter of replacing.
I usually install IRI cloning repository with git
(and so first of all I rename for any eventuality the existing iri
directory):
$ mv iri iri.old
$ git clone https://github.com/iotaledger/iri
$ cd iri
$ mvn clean compile
$ mvn package
Then:
remove all files under
DB_PATH
directory if you configuredDB_PATH
to be outside theiri
directory;remove all files under
DB_LOG_PATH
directory if you configuredDB_LOG_PATH
to be outside theiri
directory;if you didn't set
DB_PATH
andDB_LOG_PATH
these are automatically cleaned cloning the new repository (because these are underiri
directory according to default configuration).On the contrary if you didn't set
IXI_DIR
outsideiri
directory you have to copy its contents from old IRI installation (fromiri.old
backup).
Also this recent post could be of some help.
-
Thanks a lot for trying to help me out, but I'm sorry to say it didn't solve my problem. I need cut'n paste instructions like the ones at iota.partners. Maybe running Iota fullnodes is only for Linux/gnu fluent users...– mrstormJan 30, 2018 at 19:35
-
You could explain what is your problem or delete current installation and follow iota.partners istructions from scratch (as you did before) using new version of IRI avalaible after the snapshot. Jan 30, 2018 at 20:21
-
Yes, that's how I solved it. Re-installed from scratch. Worked like a charm (but not an elegant solution). My problem is that I don't know where those directories are stored, and how to remove the files in them. I found some commands at a Linux website and sort of managed to upgrade, but afterwards my node was not able to sync anymore...– mrstormJan 31, 2018 at 8:20
-
hi @MartinStormLarsen, section 7 in the iota.partners instructions actually include setting IRI to auto update. The command creates a cron job so would that not take care of the updating concerns?– DeeMar 1, 2018 at 4:10
-
The auto-update works fine with regular IRI updates, but won't delete my DB-folder. Instructions for this could be included in the iota.partners instructions...– mrstormMar 2, 2018 at 7:18