Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

AWS AMI Hornet node unable to update #38

Open
AimakRokalno opened this issue Jun 3, 2021 · 4 comments
Open

AWS AMI Hornet node unable to update #38

AimakRokalno opened this issue Jun 3, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@AimakRokalno
Copy link

AimakRokalno commented Jun 3, 2021

Bug description

Currently running Hornet 1.0.2rc1 I want to update to the lastest version 1.0.2 bu using the script ./hornet.sh update. After restarting the node it still shows the old version

Briefly describe the bug.
As per the instructions given in README_AWS.md, I run the script ./hornet.sh update. It looks like it working. No error messages shown. The node is stopped and then started, but the node version is the same.

Docker and docker-compose version

docker-compose version 1.27.3, build 4092ae5d
docker version Client: Version: 20.10.4

Hardware specification

  • Operating system: Linux RHEL 4.14.232-176.381.amzn2.x86_64
  • RAM: 4gb
  • Cores: 2x vCPU
  • Device:
    AMI ID: hornet-chrysalis-v3-c8132c82-bb7a-48fc-b071-cf9c10782f54
    AWS instance t2.medium

Steps To reproduce the bug

Explain how the maintainer can reproduce the bug.

  1. run script ./hornet.sh update

Expected behaviour

I expect the hornet node software to be updated to the latest version, if available.

Actual behaviour

After the script ends, the node version stays the same: 1.0.2rc1

Errors

hornet-mainnet]$ ./hornet.sh update
Stopping hornet...
Stopping hornet ... done
Removing hornet ... done
Pulling hornet ... done
Creating hornet ... done

@AimakRokalno AimakRokalno added the bug Something isn't working label Jun 3, 2021
@jmcanterafonseca-iota
Copy link
Collaborator

jmcanterafonseca-iota commented Jun 4, 2021 via email

@AimakRokalno
Copy link
Author

AimakRokalno commented Jun 6, 2021

After tinkering for some time I managed to update to Hornet 1.0.2

Manually, I modified the files: Config.json and Docker-compse.yaml as follows:
image: gohornet/hornet:hornet:latest -> image: gohornet/hornet:1.0.2

Then,

  1. I stoped the node
  2. I run rm db/mainnet/*
  3. I run ./hornet.sh update
  4. started the node

Now the node dashboard shows "hornet version 1.0.2"

Gracias

PS: I noticed that the configuration files have all the permissions set to ec2-user. Perhaps this is preventing the node from changing the these files. For instance, I noticed the peer info was not saved to peering.json. Then, I run chown 65532 ec2-user peering.json and now the peer info is added to peering.json as expected.

@jmcanterafonseca-iota
Copy link
Collaborator

@AimakRokalno that's a good point, the last one of the permissions. would you be in a position to propose a patch to that issue?

@AimakRokalno
Copy link
Author

@AimakRokalno that's a good point, the last one of the permissions. would you be in a position to propose a patch to that issue?

I dont know how to prepare or propose a patch :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants