# [WIP] Sofiaminer runbook ## Accessing Sofiaminer **SSH Config** ``` Host sofiaminer HostName 85.11.148.122 User root ForwardAgent yes StrictHostKeyChecking no UserKnownHostsFile /dev/null LogLevel QUIET ``` ## Golang **Updating Go** ``` GO_VERSION=go1.19.7.linux-amd64.tar.gz wget https://go.dev/dl/$GO_VERSION rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/$GO_VERSION ``` ## Lotus Github repository located at `~/lotus` ### Installation ``` git checkout <tag> make clean all make install ``` ### Processes Lotus processes are currently run in a tmux window. You can attach to the tmux window via `tmux a -t lotus`. #### Lotus Daemon TODO: Setup with sysctl? ``` # mount HDDs ./mount.sh # download snapshot aria2c -x5 https://snapshots.mainnet.filops.net/minimal/latest # start daemon and import snapshot lotus daemon --import-snapshot ./snapshot.car > ~/lotus.log 2>&1 ``` #### Lotus Worker ``` lotus-worker run --addpiece --precommit1 --precommit2 --commit > ~/lotus-worker.log 2>&1 ``` #### Lotus Miner ``` LOTUS_MINER_PATH=~/lotus-miner-path lotus-miner run > ~/lotus-miner-logs 2>&1 ``` ### Troubleshooting ## Boost ### Installation ### Processes ### Updates ``` cd ~/boost git checkout <commit> make clean build make booster-http make booster-bitswap make install install -C ./booster-http /usr/local/bin/booster-http install -C ./booster-bitswap /usr/local/bin/booster-bitswap service boost restart ``` #### Boostd ``` # runs as a service service boost restart ``` #### Booster-http ``` # runs as a service service boosterhttp restart ``` #### Booster-bitswap ``` # runs as a service service boosterbitswap restart ``` ## Cronjobs View the up to date list of crons via `crontab -l`. The following is a summary of current crons: **boostx stats**: This cron is run every 6 hours, 20 minutes after the hour. The output of the command is logged in the ~/runningboost directory **boostx stats cleanup**: On a nightly job at 22:45, files in ~/runningboost older than 30days are deleted ### Troubleshooting