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 Answers
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_PATHdirectory if you configuredDB_PATHto be outside theiridirectory;remove all files under
DB_LOG_PATHdirectory if you configuredDB_LOG_PATHto be outside theiridirectory;if you didn't set
DB_PATHandDB_LOG_PATHthese are automatically cleaned cloning the new repository (because these are underiridirectory according to default configuration).On the contrary if you didn't set
IXI_DIRoutsideiridirectory you have to copy its contents from old IRI installation (fromiri.oldbackup).
Also this recent post could be of some help.
- 710
- 1
- 4
- 9
-
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... – mrstorm Jan 30 '18 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. – blockmined Jan 30 '18 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... – mrstorm Jan 31 '18 at 08: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? – Dee Mar 01 '18 at 04: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... – mrstorm Mar 02 '18 at 07:18