Skip to content

Commit 5085da7

Browse files
Merge pull request #20 from eclipsevortex/release/1.1.1
Implement new scripts (#19)
2 parents 47d556d + e9db37e commit 5085da7

File tree

11 files changed

+617
-181
lines changed

11 files changed

+617
-181
lines changed

README.md

Lines changed: 134 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Effortless Updates for Your Miner & Validator <!-- omit in toc -->
1212

13-
[Github]() [Discord](https://discord.gg/bittensor)[Network](https://taostats.io/)[Research](https://bittensor.com/whitepaper)
13+
[Github SubVortex](https://github.com/eclipsevortex/SubVortex)[Discord Bittensor](https://discord.gg/eRPTJqPa)[Discord SubVortex](https://discord.gg/sqr83szC)
1414

1515
---
1616

@@ -31,13 +31,14 @@
3131

3232
- [Introduction](#introduction)
3333
- [Prerequisites](#prerequisites)
34-
- [How It Works](#how-it-works)
35-
- [Log Locations](#log-locations)
34+
- [Release Channels](#release-channels)
3635
- [Quick Setup](#quick-setup)
3736
- [Quick Start](#quick-start)
38-
- [Quick Stop](#quick-stop)
37+
- [How It Works](#how-it-works)
38+
- [Monitoring & Logs](#monitoring--logs)
3939
- [Quick Upgrade](#quick-upgrade)
4040
- [Quick Restart](#quick-restart)
41+
- [Quick Stop](#quick-stop)
4142
- [Quick Clean](#quick-clean)
4243
- [Installation](#installation)
4344
- [Auto Upgrader](#installation-auto-upgrader)
@@ -48,6 +49,7 @@
4849
- [Wandb](#tool-wandb)
4950
- [Good to Know](#good-to-know)
5051
- [Troubleshooting](#troubleshooting)
52+
- [Support Scope](#support-scope)
5153
- [License](#license)
5254

5355
<br />
@@ -128,6 +130,47 @@ Here's a breakdown of the key variables:
128130

129131
<br />
130132

133+
# 🧪 Release Channels <a id="release-channels"></a>
134+
135+
| Release Type | Description | Recommended Usage |
136+
| ------------ | ------------------------------- | ----------------- |
137+
| `alpha` | Experimental, unstable builds | DEVNET only |
138+
| `rc` | Release Candidates (pre-launch) | TESTNET only |
139+
| _(empty)_ | Latest stable public release | MAINNET only |
140+
141+
<br />
142+
143+
# 🚀 Quick Setup <a id="quick-setup"></a>
144+
145+
⚠️ Note: This step is usually not required. The Auto Upgrader automatically handles setup for you.
146+
Use this only if you encounter issues or need to manually prepare a specific version.
147+
148+
To setup the Auto Upgrader in a quick way, you can run
149+
150+
```bash
151+
./scripts/quick_setup.sh --neuron validator --release v3.0.1
152+
```
153+
154+
It will download and unzip the neuron's assets of the SubVortex for the requested version.
155+
156+
Use `-h` to see the options
157+
158+
<br />
159+
160+
# 🚀 Quick Start <a id="quick-start"></a>
161+
162+
To install the Auto Upgrader in a quick way, you can run
163+
164+
```bash
165+
./scripts/quick_start.sh --execution <EXECUTION_METHOD>
166+
```
167+
168+
It will install and start the Auto Upgrader using the `EXECUTION_METHOD`, which defaults to `service`.
169+
170+
Use `-h` to see the options
171+
172+
<br />
173+
131174
# 🔧 How It Works <a id="how-it-works"></a>
132175

133176
When setting up the Auto Upgrader, you can choose from three execution modes: `process`, `service`, or `container`. The default mode is `service`
@@ -155,61 +198,77 @@ Note: In Docker mode, the Auto Upgrader only runs if the neuron isn’t installe
155198

156199
<br />
157200

158-
# 📁 Log Locations <a id="log-locations"></a>
201+
# 📈 Monitoring & Logs <a id="monitoring-and-logs"></a>
159202

160-
You can monitor the Auto Upgrader using logs. Their location depends on the `SUBVORTEX_EXECUTION_METHOD`:
203+
You can monitor the Auto Upgrader's behavior through logs, which vary depending on the `SUBVORTEX_EXECUTION_METHOD` you chose during setup:
161204

162-
- **`service`**: logs are in `/var/log/subvortex-auto-upgrader/` and accessible via `tail -f <SERVICE_PATH>` e.v `tail -f /var/log/subvortex-auto-upgrader/subvortex-miner-neuron.log`
163-
- **`process`**: logs are in `/root/.pm2/logs/` and accessible via `pm2 log <PROCESS_NAME>` e.g `pm2 log subvortex-miner-neuron`
164-
- **`container`**: use `docker logs subvortex-auto-upgrader` (add `-f` to follow in real time) and accessible via `docker logs <CONTAINER_NAME>` e.g `docker logs subortex-miner-neuron`
205+
- **🔧 `service` mode**
206+
Logs are stored in:
165207

166-
<br />
208+
```
209+
/var/log/subvortex-auto-upgrader/
210+
```
167211

168-
# 🔑 Personal Access Token <a id="personal-access-token"></a>
212+
View logs in real time with:
169213

170-
To allow the system to pull Docker images and release assets from GitHub, you need to generate a GitHub Personal Access Token (PAT).
214+
```bash
215+
tail -f /var/log/subvortex-auto-upgrader/subvortex-auto-upgrader.log
216+
```
171217

172-
1. Go to [GitHub Settings → Developer Settings → Personal Access Tokens](https://github.com/settings/tokens).
173-
2. Choose **Fine-grained tokens** (recommended) or **Classic** (still supported).
174-
3. Create a new token with at least the following permissions:
218+
- **🧩 `process` mode (PM2)**
219+
Logs are managed by PM2 and located at:
175220

176-
- **read:packages**
177-
- **read:org** (required if the repository is under an organization)
178-
- **public_repo** (sometimes required for public repositories)
221+
```
222+
/root/.pm2/logs/
223+
```
179224

180-
4. Set the token to **read-only access** where possible.
181-
5. Copy and save the token securely.
225+
To follow logs:
182226

183-
Then, copy that token as value of `SUBVORTEX_GITHUB_TOKEN` in the main Auto Upgrader `.env` file.
227+
```bash
228+
pm2 log subvortex-auto-upgrader
229+
```
184230

185-
<br />
231+
- **🐳 `container` mode (Docker)**
232+
Logs are available via Docker:
233+
```bash
234+
docker logs subvortex-auto-upgrader -f
235+
```
236+
Or for specific components (e.g., miner neuron):
237+
```bash
238+
docker logs subvortex-auto-upgrader -f
239+
```
186240

187-
# 🚀 Quick Setup <a id="quick-setup"></a>
241+
### 🔍 Tips
188242

189-
⚠️ Note: This step is usually not required. The Auto Upgrader automatically handles setup for you.
190-
Use this only if you encounter issues or need to manually prepare a specific version.
243+
- Add `| grep ERROR` or `| grep WARN` to quickly identify issues.
244+
- For persistent monitoring, consider integrating with systemd journal, a log aggregator, or Prometheus log exporters.
245+
- Always ensure your logs are rotated or cleared periodically to avoid storage bloat.
191246

192-
To setup the Auto Upgrader in a quick way, you can run
247+
<br />
248+
249+
# 🔄 Quick Upgrade <a id="quick-upgrade"></a>
250+
251+
To upgrade the Auto Upgrader when a new release has been deployed, you can run
193252

194253
```bash
195-
./scripts/quick_setup.sh --neuron validator --release v3.0.1
254+
./scripts/auto_upgrader/auto_upgrader_upgrade.sh --execution <EXECUTION_METHOD>
196255
```
197256

198-
It will download and unzip the neuron's assets of the SubVortex for the requested version.
257+
It will upgrade and restart the Auto Upgrader using the `EXECUTION_METHOD`, which defaults to `service`.
199258

200259
Use `-h` to see the options
201260

202261
<br />
203262

204-
# 🚀 Quick Start <a id="quick-start"></a>
263+
# 🔄 Quick Restart <a id="quick-restart"></a>
205264

206-
To install the Auto Upgrader in a quick way, you can run
265+
To stop/start the Auto Upgrader workspace and/or dumps in a quick way. Optionally to remove the current version.
207266

208267
```bash
209-
./scripts/quick_start.sh --execution <EXECUTION_METHOD>
268+
./scripts/quick_restart.sh --execution <EXECUTION_METHOD>
210269
```
211270

212-
It will install and start the Auto Upgrader using the `EXECUTION_METHOD`, which defaults to `service`.
271+
It will restart the Auto Upgrader using the `EXECUTION_METHOD`, which defaults to `service`.
213272

214273
Use `-h` to see the options
215274

@@ -229,43 +288,34 @@ Use `-h` to see the options
229288

230289
<br />
231290

232-
# 🔄 Quick Upgrade <a id="quick-upgrade"></a>
291+
# 🧹 Quick Clean <a id="quick-clean"></a>
233292

234-
To upgrade the Auto Upgrader when a new release has been deployed, you can run
293+
To clean the Auto Upgrader workspace and/or dumps. Optionally to remove the current version.
235294

236295
```bash
237-
./scripts/auto_upgrader/auto_upgrader_upgrade.sh --execution <EXECUTION_METHOD>
296+
./scripts/quick_clean.sh
238297
```
239298

240-
It will upgrade and restart the Auto Upgrader using the `EXECUTION_METHOD`, which defaults to `service`.
241-
242299
Use `-h` to see the options
243300

244301
<br />
245302

246-
# 🔄 Quick Restart <a id="quick-restart"></a>
247-
248-
To stop/start the Auto Upgrader workspace and/or dumps in a quick way. Optionally to remove the current version.
249-
250-
```bash
251-
./scripts/quick_restart.sh --execution <EXECUTION_METHOD>
252-
```
253-
254-
It will restart the Auto Upgrader using the `EXECUTION_METHOD`, which defaults to `service`.
255-
256-
Use `-h` to see the options
303+
# 🔑 Personal Access Token <a id="personal-access-token"></a>
257304

258-
<br />
305+
To allow the system to pull Docker images and release assets from GitHub, you need to generate a GitHub Personal Access Token (PAT).
259306

260-
# 🧹 Quick Clean <a id="quick-clean"></a>
307+
1. Go to [GitHub Settings → Developer Settings → Personal Access Tokens](https://github.com/settings/tokens).
308+
2. Choose **Fine-grained tokens** (recommended) or **Classic** (still supported).
309+
3. Create a new token with at least the following permissions:
261310

262-
To clean the Auto Upgrader workspace and/or dumps. Optionally to remove the current version.
311+
- **read:packages**
312+
- **read:org** (required if the repository is under an organization)
313+
- **public_repo** (sometimes required for public repositories)
263314

264-
```bash
265-
./scripts/quick_clean.sh
266-
```
315+
4. Set the token to **read-only access** where possible.
316+
5. Copy and save the token securely.
267317

268-
Use `-h` to see the options
318+
Then, copy that token as value of `SUBVORTEX_GITHUB_TOKEN` in the main Auto Upgrader `.env` file.
269319

270320
<br />
271321

@@ -302,7 +352,7 @@ For each of them, the same structure applies:
302352

303353
<br />
304354

305-
# Tools <a id="tools"></a>
355+
# 🛠️ Tools <a id="tools"></a>
306356

307357
## Wandb <a id="tool-wandb"></a>
308358

@@ -399,6 +449,34 @@ subvortex/
399449

400450
<br />
401451

452+
# 🤝 Support Scope <a id="support-scope"></a>
453+
454+
SubVortex only provides support for components related to SubVortex mining and validating activities.
455+
456+
This includes:
457+
458+
- Auto Upgrader installation and usage
459+
- SubVortex Miner and Validator management
460+
- Logging, upgrades, and troubleshooting SubVortex-specific services
461+
462+
⚠️ Node Support Disclaimer
463+
We do not offer support for general Subtensor node operations. SubVortex is designed to scale nodes, not maintain them. As such, we cannot guarantee reliability or provide assistance with node-specific issues like syncing, peering, or Subtensor registration.
464+
465+
If you need help with Subtensor nodes, try one of the following resources:
466+
467+
- Bittensor [`#general`](https://discord.com/channels/799672011265015819/799672011814862902) channel on Discord
468+
- Bittensor [`#faq`](https://discord.com/channels/799672011265015819/1215386737661055056) channel on Discord
469+
- Church of Rao [`#subtensor`](https://discord.com/channels/1120750674595024897/1245487232928714863) channel on Discord
470+
471+
If new user, join us first
472+
473+
- Bittensor - [Join us](https://discord.gg/eRPTJqPa)
474+
- Church of Rao - [Join us](https://discord.gg/TVCKjNmR)
475+
476+
Thank you for understanding!
477+
478+
<br />
479+
402480
# 🪪 License
403481

404482
This repository is licensed under the MIT License.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.1.1

0 commit comments

Comments
 (0)