- Create new stack with one click or use the provided
stack.yaml
template (Use a Goerli eth endpoint and leave all other configurations default) - Connect to your EC2 instance
- Go to the resources tab
- Select your EC2 instance
- Go to your EC2 instance's primary page
- In the top right, select
Connect
and connect usingEC2 Instance Connect
with userhubble
- Run
pm2 l
and verify that yourhubble
service is running (this may take a few minutes) - Test the connection
- Clone hubble locally
- Run
yarn build
- cd into
apps/hubble
- Run
yarn console -s PUBLIC_IP:13112
where PUBLIC_IP is your public IP listed in the CloudFormation outputs tab - You should see a message like
Connected Info: {"value":{"version":"1.0.5","isSynced":true,"nickname":"Farcaster Hub","rootHash":""}}
When you are SSH'd into your EC2 instance under the hubble
user, run pm2 logs
To further troubleshoot, follow these steps:
- Connect to your EC2 instance as
ubuntu
- Run
su -sh
to switch toroot
- Investigate the syslogs (
tail -f /var/log/syslog
orless /var/log/syslog
)
Logs prefaced with cloud-init
are associated with the starup script. This is where you will find relevant errors.