Closed SimonVillage closed 6 years ago
So it didn't work with the script but worked when you ran it manually? Which user did you run either with?
root user. The node was setup as root as well.
And after migration / rescan run successful I have this in the logs
May 04 05:44:02 ubuntu-s-2vcpu-4gb-fra1-01 systemd[1]: Started IOTA FullNode.
May 04 05:44:03 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: 05/04 05:44:03.269 [main] INFO com.iota.iri.IRI - Welcome to IRI 1.4.2.4_RC
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: 05/04 05:44:21.287 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Initializing Database Backend...
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: 05/04 05:44:21.298 [main] ERROR com.iota.iri.IRI - Exception during IOTA node initialisation:
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: java.lang.NullPointerException: null
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.initDB(RocksDBPersistenceProvider.java:458) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.init(RocksDBPersistenceProvider.java:76) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.storage.Tangle.init(Tangle.java:26) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.Iota.init(Iota.java:105) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.IRI.main(IRI.java:71) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:21 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: 05/04 05:44:21.299 [Shutdown Hook] INFO com.iota.iri.IRI - Shutting down IOTA node, please hold tight...
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: 05/04 05:44:27.302 [Shutdown Hook] ERROR com.iota.iri.IRI - Exception occurred shutting down IOTA node:
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: java.lang.NullPointerException: null
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.network.replicator.ReplicatorSourcePool.shutdown(ReplicatorSourcePool.java:73) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.network.replicator.Replicator.shutdown(Replicator.java:30) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.Iota.shutdown(Iota.java:156) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at com.iota.iri.IRI.lambda$shutdownHook$0(IRI.java:323) ~[iri-1.4.2.4_RC.jar:na]
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 iri[1388]: at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_172]
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 systemd[1]: iri.service: Main process exited, code=exited, status=255/n/a
May 04 05:44:27 ubuntu-s-2vcpu-4gb-fra1-01 systemd[1]: iri.service: Failed with result 'exit-code'.
Is it correct to say that running the tool manually doesn't break?
To be honest I am not sure if this tool was supposed to be used days after the snapshot. If you would like, you can download the database from the point it was shutdown prior to the snapshot: https://x-vps.com/iota.db.tgz.old
Then unpack it to the target location, change ownership (iri) and re-run the tool. Maybe you can contact me on IOTA Discord and I can try to assist.
can be closed, worked well with our database!
Hi there,
I have downloaded the database from before the snapshot and run
bash <(curl -s https://x-vps.com/get_iri_rc.sh)
The output is
I then run
java -jar /var/lib/iri/target/iri_migrate_tool.jar -p 14265
which is starting the rescan now.