Deploy: Solana validator or RPC on StackPath

Here is StackPath on the public Solana Server Program page!

Pre-requisite Documentation:

Note the Ubuntu version.
SP// has a nice article about generating SSH keys for VMs.
I chose the name mia01 to indicate that this is my first instance in Miami.
  • The correct spec for Solana is SV-1. SP-1 is another compute product!
  • Only create workloads in PoPs confirmed by Solana and do not create more instances than confirmed by Solana.
  • Also, please make sure to note the mount path. These nodes come with just 25 gb of root disk storage, and the larger logical storage area is on a separate mount path.

The fun part!

Instance will appear here.
Navigate here and grab your IP address.

Console pro-tips:

  • run htopto see processes (linux task manager)
  • run less +F /home/ubuntu/solana-validator.log to stream logs to console (useful for seeing status of your validator)

1. Setting the Ledger Location

If you don’t use this mount path, the ledger will try to install on the 25gb boot partition and you’ll run out of space.

2. Giving Permissions

If you don’t give permissions to access the mount path, you’ll get the following error.

ESC[0m obtained shred-version 8573 from 34.83.231.102:8001
Unable to access account path: “/var/lib/data/accounts”, err: Os { code: 13, kind: PermissionDenied, message: “Permission denied” }

3. Opening Ports

If you don’t set the correct network policies, you will get the following error in the log.

[0m Received no response at tcp/8000, check your port configuration: timed out waiting on receive operation
You can set a range of ports to open if you aren’t sure which you’ll settle on.

Run

If everything works, after you run solana-validator you should see network traffic in the SP// portal, Solana processes in the console, and the ledger download in the logs.

Great Job!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store