Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to run the playbook #8

Open
BobTB opened this issue Mar 6, 2022 · 13 comments
Open

Error when trying to run the playbook #8

BobTB opened this issue Mar 6, 2022 · 13 comments

Comments

@BobTB
Copy link

BobTB commented Mar 6, 2022

image

This is what I get when running anisble-playbook on a localhost. What am I missing?

@linuskendall
Copy link
Contributor

Should work now. LMK if you still see this on latest master.

@BobTB
Copy link
Author

BobTB commented Mar 6, 2022

I tried to pull again, and now it does this.
image

@BobTB
Copy link
Author

BobTB commented Mar 6, 2022

I changed it to dff125af04d93dc24e270645490fa414fe524be4a5136f8a16554c587033f9e3 (just to see what will happen). And it went through.

@BobTB
Copy link
Author

BobTB commented Mar 6, 2022

After making it through, and starting the service I get this, seems template was not parsed into the ./home/solana/bin/solana-rpc.sh

image

@linuskendall
Copy link
Contributor

@BobTB which version of Ansible are you on?

@BobTB
Copy link
Author

BobTB commented Mar 8, 2022

ansible is version 2.9.6, python version 3.8.10

@BobTB
Copy link
Author

BobTB commented Mar 9, 2022

Should I try with 2.8?

@junkett
Copy link
Contributor

junkett commented Mar 10, 2022

Got the same issue - tried ansible 2.9.0, 2.10.17, 2.12.2 - then found out that there are 2 issues:

  1. typo in your docs - they tell that you should use solana_version attribute to specify the version but in your code it is solana_installer_version
  2. the checksums changed, I had to add new one for 1.10.0 version as well...

@BobTB
Copy link
Author

BobTB commented Mar 10, 2022

Does it work for you then, or you stuck at the same place I am?

@junkett
Copy link
Contributor

junkett commented Mar 11, 2022

Ok some update - during more code reviewing - I had actually found a working configuration (also on ansible [core 2.12.2]), did a pull request (#10) with the changes that fixed it for me - i was looking to run v 1.10 so had to add that also + here are my vars for the role that you may need to set to make it work:

---
- hosts: dev
  gather_facts: yes
  become: yes
  vars:
    solana_root: /data/solana-mainnet-beta
    solana_ledger_location: /data/solana-mainnet-beta/ledger
    solana_accounts_location: /data/solana-mainnet-beta/accounts
    solana_snapshots_location: /data/solana-mainnet-beta/snapshots
    solana_dynamic_port_range: 8000-8014
    solana_installer_version: v1.10.0
    solana_version: 1.10.0
    solana_full_rpc_api: true
  roles:
    - role: solana-rpc-ansible

I had to disable also cpu optimizer as I am deploying into Google cloud platform and they do not support changing these there...
But the role completes fine now.
Strange is that after starting up my rpc is not listening, I can see other ports configured, gossip is listening but rpc does not... so looking into this now...

@BobTB
Copy link
Author

BobTB commented Mar 12, 2022

After changing to ansible 2.12.3 and applying your fixes, I got it running. great!

Now I just have to setup it access to the outer world

@linuskendall
Copy link
Contributor

hi @BobTB and @junkett

Appreciate the fixes and the trouble shooting - sorry was a hectic week last week!

solana_version and solana_installer_version is actually two separate things. I'll clear that out. The basic idea is that you can pretty much use any solana_installer_version to install any solana verison !

@sjortiz
Copy link

sjortiz commented Mar 22, 2022

the issue is that the default value for solana version is v1.8.15 that isn't in the checksum dict, 1.8.16 is but the checksum isn't right, maybe solana re-uploaded it at some point? Idk

I could pr an update to the defaults to 1.10 + some docs updates but I don't want to be accused of those people that do minimal changes to gain OS credits or get their graph green lol

adborden added a commit to adborden/solana-rpc-ansible that referenced this issue May 29, 2022
Fixes rpcpool#8

Use a version of the installer for which we have a checksum in `vars/main.yml`.
adborden added a commit to adborden/solana-rpc-ansible that referenced this issue May 29, 2022
Fixes rpcpool#8

Use a version of the installer for which we have a checksum in `vars/main.yml`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants