Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Troubleshooting

Troubleshooting

1. Supported go-opera version

The current node release is v2.0.49-elemont on both mainnet and testnet. Build it from the v2.0.49-elemont tag with Go 1.25.13+ (see Read-Only Node).

Mainnet completed the ELEMONT upgrade on 2026-08-29/30 and now runs v2.0.49-elemont — the same release as testnet. Historical detail is in the Mainnet Upgrade Guide (ELEMONT).

1.0 Pre-flight checklist

Before restarting opera — whether after a crash, after a binary swap, or during a planned maintenance window — verify the host has adequate headroom.

  • df -h /home → ≥ 20 GiB free. Opera's built-in watchdog gracefully shuts the node down at available=<8 GiB to prevent LevelDB corruption. A restart triggers compactions that consume roughly 1.5-2 GiB in the first 2-3 minutes (allocating scratch equal to the compacted tier). If you start with <10 GiB free, you may see ERROR Low disk space. Gracefully shutting down Vinu to prevent database corruption. within minutes of startup and have to clean up before retry.

  • free -h → swap not saturated. Swap thrash makes LevelDB open extremely slow and can tip a borderline-healthy restart into OOM.

  • systemctl is-active vinu-opera.service → inactive or failed. Never start a second opera process on a box that already has one running — two opera processes opening the same datadir/chaindata/leveldb-fsh/ produces LOCK: permission denied on the slower loser, and can corrupt the winner if the loser gets partial write through.

Common cleanup targets if you need to free space urgently:

  • truncate -s 0 /var/log/syslog — can reclaim 10+ GiB on boxes with unbounded syslog growth.

  • journalctl --vacuum-size=200M — quick journal trim.

  • rm build/logs/opera_public_node.log.{2..7}.gz — keeps the most recent rotated log as a post-crash artefact, drops the older ones.

  • apt-get clean — typically 100-500 MiB.

Context: the 2026-04-23 mainnet RPC recovery required exactly this sequence after opera's disk watchdog self-terminated a restarted node at 7.87 GiB free.

1.1 Reinstalling Opera

  • pkill opera (stop the node)

  • cd VinuChain

  • git pull (pull the VinuChain directory)

  • make (rebuild the build folder)

  • sudo rm -rf /home/{user}/.opera/chaindata (delete chaindata folder, replace {user})

  • Start Validator

1.2 Release binary download fails or produces an empty file

github.com does not serve release assets itself. It answers with an HTTP 302 redirect to release-assets.githubusercontent.com, and the file is delivered from there. A download that does not follow that redirect writes a 0-byte file and still exits 0 — so a broken download looks like a successful one until the checksum or ./opera version fails.

Always pass -L (follow redirects) and -f (fail loudly on an HTTP error):

Expected: opera-v2.0.49-elemont-linux-amd64: OK, a 39,292,808-byte file, and Version: 2.0.49-elemont. curl -O writes mode 644, so the chmod is required — and it comes after the checksum so the file only becomes executable once it is verified.

Diagnose by symptom:

Symptom
Cause
Fix

Empty (0-byte) file, no error

The redirect was not followed

Add -L

curl: (22) or a 404 page saved to disk

Wrong tag or filename

Copy the URL from the release page

Download hangs or times out after starting

The host reaches github.com but not release-assets.githubusercontent.com

Allowlist that hostname in the firewall/proxy, or use one of the fallbacks below

Checksum mismatch, or a file smaller than 39 MB

Truncated or partially resumed download

Delete the file and download again — do not run it

If the asset host cannot be reached from the node at all, either download the binary on a machine that can reach it and copy it across (re-verify the checksum on the node afterwards), or build from source using the Alternative: build from source section of the Mainnet Upgrade Guide.

Never run a binary whose published SHA256 does not match.

1.3 Resuming an interrupted snapshot download

Chaindata snapshots from s3://vinu-blockchain-genesis/chaindata-snapshots/ are typically ~1 GiB compressed. Long-running downloads over SSM can be cut short by an SSM session timeout (20 min default), CloudFlare connection drop, or a transient instance networking blip. To make the download resumable, always pass curl -C - -o <file> <url>:

The -C - flag auto-resumes from the byte offset already on disk if the file exists, or starts from zero if it doesn't. Without it, an interrupted curl forces a full redownload and wastes the partial bytes.

Verify the checksum after a successful (or resumed) download — the published SHA256 is in the top-of-page hint block.

2. Pruning node state

If your node is about to run out of space, you may consider to extend the machine's storage OR to prune the current node's datadir.

To prune the datadir, please use the following steps:

2.1 Manual pruning

  • Stop the node pkill opera

  • Run at the terminal: ./opera snapshot --db.preset <preset> prune-state

The state pruning process may take a couple of hours for every hundreds of GBs of data and the amount of time required will depend on the machine's speed. Thus, you can run with nohup.

2.2 Automatic pruning

You can run a node with --gcmode flag, either --gcmode full or --gcmode light.

Note that

  • Both --gcmode full and --gcmode light will prune data that is processed after gcmode is enabled. Old data (before gcmode is enabled) is untouched.

  • Validator node can use --gcmode light but should not use --gcmode full.

  • --gcmode full option will prune much more EVM nodes than --gcmode light at expense of worse performance.

3. Validator node

3.0 Multi-opera safety

The testnet validator box runs four opera processes (V1–V4) simultaneously against a shared on-disk build/opera binary. Any operation that affects "opera" on this box must treat the four as independent processes, not as one unit.

Never use pkill -f opera or pkill opera.*vinu-testnet. Both kill all four validators at once. With 4-of-4 BFT quorum required for block production, a simultaneous stop halts the testnet. systemctl stop vinu-validators internally calls pkill opera.*vinu-testnet — do not use it for routine restarts.

Correct rolling-restart pattern:

  1. ps -eo pid,cmd | grep 'opera.*vinu-testnet' | grep -v grep → capture the four PIDs + full argv.

  2. For each PID, snapshot argv: cp /proc/$PID/cmdline /tmp/v$N.cmdline.bin before signalling. On restart, replay via readarray -d '' argv < /tmp/v$N.cmdline.bin so the relaunch is byte-for-byte identical (130-char pubkeys are copy-paste hazardous).

  3. kill -SIGINT $PID on ONE validator at a time. SIGINT gives opera time for a clean LevelDB close; SIGKILL on an active LevelDB writer corrupts chaindata.

  4. Wait ≥ 20 seconds for the process to exit cleanly AND for the other three validators to recover quorum.

  5. Relaunch the stopped one via nohup opera … & with the snapshotted argv.

  6. Verify peer count and tip alignment before touching the next validator.

The same principle applies on the mainnet RPC box: one opera process per host, signalled with SIGINT, never pkill.

3.1 How to rerun a node if it is stopped

If your node is stopped (for some reason), please examine the server log to identify if there was any issue.

After fixing the issue (if any), you can run the node in read mode to sync to the latest block. After it is synced up, you can stop the node and run in validator mode.

Please make sure your node is synced in read mode first, before it is run in validator mode.

3.2 Migration to a new server

If you'd like to migrate your node to a new server, please follow the following steps:

  • Set up a 'read' node on a new server, and allow it to run to sync to the latest block.

  • Stop the old node in at least 40 mins before run the validator mode on the new server.

  • After the old node is stopped for 40 mins, then you can run in validator mode on the new server.

Note that, you should not let the old node run again as it will result in a double-sign and slashing of your validator node.

3.3 How to stop a node

Find the running process of opera using ps, and then kill the process by id.

Note that, after your node is stopped, if you want to rerun it again, don't run directly in validator mode. Instead, please make sure your node is synced in read mode first, before it is run in validator mode.

3.4 Offline node

If your validator node stays down long enough to cross the SFC offline-penalty threshold — more than 7,200 missed blocks and at least ~5 days offline (both conditions must be met) — the SFC deactivates it and drops it from the active validator set. Whether you can get that exact validator back depends on the reason for deactivation (see §8.5): on both networks an offline-deactivated validator can be reactivated in place — the validator's own auth key can call reactivateValidator(<VID>) once the anti-flap cooldown has elapsed (the SFC owner can also call it as a lost-key fallback) — but a slashed (double-sign) validator cannot be reactivated on either chain.

For an offline node, you can undelegate and wait the validator self-stake withdrawal period — 180 epochs and 3 days (both must elapse) — before you can withdraw. After that, you can transfer funds to a new wallet and make a new validator if you wish.

Note that, if undelegating a locked stake or locked delegation before the locked period is expired, it will incur a penalty.

Validator Withdrawal Times

3.5 How to permanently shut down a node

To shutdown a node permanently, you can simply stop running the node in validator mode for 5 days or more. After that, it will become Offline.

3.6 How to unstake / withdraw

If your node stake is locked, you will first need to call unlockStake() to unlock it.

  • A penalty will apply for early unlocking before lockup is expired, based on all lock-up rewards earned (including already-claimed ones). See Unlock stake prematurely.

Then you can call undelegate(), to unstake your stake.

Then there is a validator self-stake bonding period — 180 epochs and 3 days (both must elapse) — after undelegation. This is required before you can call withdraw() to take out your stake.

Withdrawal Times

4. Troubleshooting

4.1 Syncing error

If your node is in dirty state (it may happen occasionally), do a fresh resync as follows:

  • Stop the node

  • Back up the validator identity files (<datadir>/keystore/, <datadir>/go-opera/nodekey), then move the broken datadir aside (the legacy default is ~/.opera)

  • Rebuild the current binary: git clone https://github.com/VinuChain/VinuChain.git && cd VinuChain && git checkout v2.0.49-elemont && make opera (requires Go 1.25.13+)

  • Bootstrap the datadir again — see Read-Only Node → Bootstrap the Chain Data. A fresh datadir cannot be replayed from an old genesis file on either network, and starting opera on an empty datadir with no bootstrap fails with Failed to make engine: missing --genesis flag for an empty datadir.

  • Run your node again in read mode

4.2 Slow syncing

Check your machine specs if it meets the minimum requirements.

  • IOPS greater than 5000 (higher is better)

  • connection speed > 1 Gbps (some ppl run with 10 or 20, if they can)

  • cores: more than 4 cores (the number of cores is not important unless you will use it for serving API calls).

  • CPU: > 3GHz.

You can also check the following flags, if you're using them to run your node. You can adjust to values suitable to your usage.

  • maxpeers flag: default is 50, you can adjust it depending on your machine.

  • cache flag: --cache 15792 (A larger value can give better performance).

  • gcmode: gcmode is not enabled by default. If enabled, gcmode (light or full) it will take some extra CPU and time.

You can also increase the value of ulimit on your machine.

5. Increase open files limit

You can check your current limit value on Linux with the command ulimit -n.

The default value of 1024 may not be enough in some cases. You can adjust the value to the recommended 500,000 open files limit by either:

  • ulimit -n 500000

  • change it in /etc/security/limits.conf configuration file, limit type nofile.

6. Delegated stake stuck on a non-rewarding validator

If your delegation to a particular validator returns "zero rewards" on claimRewards and restakeRewards, AND undelegate reverts with "not enough unlocked stake" even though you can see your stake on-chain, the validator you delegated to may have been admitted with a malformed pubkey before the canonical-pubkey enforcement landed in v2.0.14-elemont. A validator with a non-0xc0-prefixed pubkey produces no consensus-verifiable events, earns zero uptime, and never accumulates rewards-per-token, so any stake delegated to it is permanently stuck until you unwind it manually.

How to confirm

Read the validator's pubkey from the SFC contract (replace <VID> with the validator ID you delegated to):

A canonical pubkey is 66 bytes / 134 hex characters and starts with 0xc004…. Anything shorter (especially 65 bytes / 132 hex characters starting with 0x04…) is malformed.

You can also confirm by reading getEpochAccumulatedRewardPerToken(epoch, <VID>) for several recent epochs — a malformed validator returns 0 at every epoch, while a healthy validator's value strictly increases.

How to recover (zero penalty, but in three phases)

unlockStake cannot be called directly on a stuck delegation — it reverts with "claim rewards blocked by corruption; wait for epoch correction". The revert comes from a per-delegator reward-stashing cursor (stashedRewardsUntilEpoch[delegator][validatorID]) that advances by at most 100 epochs per call to any function that triggers _stashRewards. For a delegator on a long-active malformed validator, the cursor lags currentSealedEpoch by hundreds or thousands of epochs, and unlockStake's guard refuses the call until the cursor is fully caught up.

The fix is to call delegate(<VID>) repeatedly with a tiny msg.value until the cursor catches up, then unlock and withdraw.

Phase 1 — advance the cursor to currentSealedEpoch

delegate(<VID>) calls _rawDelegate, which calls _stashRewards, which advances the cursor by up to 100 epochs per invocation. The minimum delegation amount is 0.01 VC (minDelegation()). Calculate how many calls you need:

Issue them in a loop:

Each call costs 0.01 VC of stake (added to getStake[yourAddress][<VID>] as unlocked stake) plus normal gas. After the loop, stashedRewardsUntilEpoch == currentSealedEpoch and the corruption guard in unlockStake will pass.

Phase 2 — unlock the locked stake (zero penalty)

Because the malformed validator never accumulates rewards, getStashedLockupRewards is (0, 0, 0) and the early-unlock penalty math at _popDelegationUnlockPenalty evaluates to lockupExtraRewardShare + lockupBaseRewardShare / 2 = 0 + 0 / 2 = 0. unlockStake imposes zero penalty; the full locked amount becomes unlocked stake. Verify before calling:

If any value is non-zero, the validator was rewarding for some span of its lifetime and the penalty is non-zero — simulate the unlock through a tracer (debug_traceCall) before sending it on-chain.

Phase 3 — undelegate and withdraw

You receive the full delegation back to your wallet at withdraw. No fees beyond gas.

Why this dance is necessary

The reward-stashing cursor is bounded by MAX_CORRUPTION_CHECK_EPOCHS = 100 per call to limit gas. The cursor was designed to keep a per-delegator scan of accumulatedRewardPerToken[validatorID] monotonic so a downward "rate inversion" cannot mint phantom rewards — but the same scan also has to walk forward through quiet (zero-reward) epochs to update the cursor, even when there's nothing to stash. The public stashRewards() helper specifically reverts on "nothing to stash", and claimRewards / restakeRewards revert on "zero rewards", so neither lets you advance the cursor on a zero-rewards validator. delegate is the only public path that calls _stashRewards without a rewards != 0 precondition.

Future prevention

The current SFC bytecode rejects malformed pubkeys at createValidator ingress, so this condition cannot recur for new admissions. The ElemontPubkeyValidation upgrade flag also ejects already-admitted malformed validators from the active set at the next epoch seal. See Become a Validator and Validator Calls → Create validator for the canonical pubkey format requirements.

7. Pending rewards shown, but Claim / Restake fails with "zero rewards"

If your staking page shows a non-zero pending rewards balance for a validator, but claimRewards and restakeRewards revert with "zero rewards", your delegation's reward cursor is stuck. This issue was resolved in v2.0.41-elemont (deployed 2026-06-21): the _rawDelegate cursor-init fix prevents new first-delegations from stranding rewards, and a one-shot migration corrected the 12 known stuck delegator cursors at the SfcV2Patch7 activation (block 1,508,211). Claims and restakes for those delegators now succeed.

This is different from §6: in §6 the validator genuinely never earned rewards, so the pending-rewards figure is zero. Here the validator is healthy and earning, the pending-rewards view over-reports a non-zero figure, and the claim path reverts because the cursor lags behind.

How to confirm

  • Your staking page (or pendingRewards(yourAddress, <VID>)) shows a non-zero amount.

  • claimRewards(<VID>) and restakeRewards(<VID>) both revert with "zero rewards".

  • The validator is otherwise healthy — it has a canonical 0xc0… pubkey (66 bytes) and getEpochAccumulatedRewardPerToken(epoch, <VID>) strictly increases over recent epochs (i.e. it is not the malformed-validator case in §6).

What to do — and what NOT to do

  • Do NOT attempt repeated delegate / undelegate calls to try to force the cursor forward. Unlike the §6 procedure, walking the cursor by hand on a rewarding validator can mint more than you are actually owed, so this path is unsafe here and must not be used.

  • If you were one of the 12 affected delegators: your cursor was corrected at block 1,508,211 — retry Claim or Restake now. It should succeed.

  • If you still see this symptom after the fix:

    • Check your node/RPC is past block 1,508,211 and running v2.0.49-elemont. A non-upgraded node diverges with wrong event epoch hash and shows stale state — upgrade and re-sync from the current snapshot.

    • If your node is current and the revert persists, your delegation may be a newly surfaced case that was not among the 12 corrected by the migration. Report it through the official VinuChain channels — the permanent cursor-init fix prevents brand-new delegations from getting stuck, but the team can apply a targeted correction if a pre-existing delegation was missed.

8. Reviving a dead or long-offline validator

If your validator has been down, or fell so far behind that it can no longer catch up — the classic "dead validator" — you can in most cases bring the same validator (same validator ID, same stake) back to life on either network (mainnet chain 207 or public testnet chain 206). If it is still active on-chain you do this entirely yourself (8.4); if the SFC has already offline-deactivated it, both networks' SFC let you reactivate it yourself in place (8.5). This section is the end-to-end runbook.

8.1 First, check your on-chain status

The deciding fact is the SFC's view of your validator, not the state of your box. Attach to any synced node's Opera console and initialise the sfcc object exactly as in Become a Validator → Initialize SFC, then read (replace <VID> with your validator ID):

  • status == 0 and deactivatedEpoch == 0 → your validator is still active. Proceed with 8.4 — you keep your ID and stake.

  • status != 0, or a non-zero deactivatedEpoch / deactivatedTime → the SFC has already deactivated your validator. Check why with sfcc.isSlashed(<VID>) and the status bits (8 = offline, 128 = double-sign / cheater, 1 = withdrawn). Skip to 8.5; the node-level steps alone cannot put a deactivated validator back into the set, and whether it can be reactivated at all depends on the reason for deactivation.

Confirm your stake is still committed (a fully undelegated/withdrawn self-stake is terminal):

8.2 Why a long-dead node can rejoin at all

Earlier testnet binaries (v1.0.0-elemont … v2.0.7-elemont) carried a peer-progress sanity check that rejected any peer reporting progress more than 1,000 epochs or 5,000 blocks ahead of the local head. A validator offline long enough to fall past those bounds therefore rejected every current-tip peer on the handshake and could never catch up. The fingerprint, seen on the healthy (tip-side) peer, is a ~30-second churn loop:

— while the stale node itself sits at net.peerCount == 0/1 and never advances its head.

v2.0.8-elemont removed those drift caps (validatePeerProgress now only rejects a structurally invalid zero-epoch progress), so a node re-peers with the tip regardless of how far behind it is — the deeper acceptance checks still gate actual state changes on epoch equality, so this is safe. You must therefore be on v2.0.8-elemont or later to revive a long-dead validator; use the current release v2.0.49-elemont. If you still see the subprotocol error churn above, you are on a pre-v2.0.8 binary and must upgrade first.

Scope. The node-level steps in 8.2 / 8.4 are written for operators on the public testnet running the v2.x-elemont binary line — the drift-cap regression and its fix were confined to that lineage — so mainnet operators must substitute the canonical mainnet bootnodes and RPC endpoint from the Mainnet Upgrade Guide (ELEMONT). The on-chain offline-deactivation behaviour in 8.1 / 8.5 is enforced by the SFC contract itself, is independent of the node binary, and applies unchanged to both chains.

8.3 Step 0 — double-sign safety (do this first)

8.4 Revival procedure

1

Upgrade to the current binary

Build and verify the current release tag, following Chain Upgrade Guide → Download and build:

Anything >= v2.0.8-elemont clears the drift-cap lockout; v2.0.49-elemont is the current release and is compatible with the post-Patch10 chaindata snapshot.

2

Restore chain state

  • Datadir intact and not past a missed consensus seal → just restart in read mode; with the drift caps gone it peers with the tip and syncs forward on its own.

  • Long-dead, corrupted, or stale across a fork seal → a stale datadir replays historical forks under the wrong rules and halts with WARN Incoming event rejected ... err="wrong event epoch hash". Restore from the latest chaindata snapshot per Chain Upgrade Guide → wrong event epoch hash. For any validator dead more than a few hours this is the reliable path.

3

Bring it up as a read node and confirm it re-peers

Start without the validator flags first and let it catch up. --nat extip is effectively required — without it your node advertises 127.0.0.1 and stalls at net.peerCount == 1 (see Stuck at net.peerCount == 1):

<datadir> is the directory you restored the snapshot into in the previous step — the one holding your preserved keystore/ and go-opera/nodekey. Omit --datadir only if that directory is the default ~/.opera; otherwise the node will boot the wrong (default) database and fail to find your validator identity.

Verify catch-up — attach with ./opera attach (or ./opera attach <datadir>/opera.ipc if you started with a custom --datadir):

  • net.peerCount climbs to 4+.

  • New DAG summary log lines show age= in seconds/milliseconds, not hours.

  • eth_syncing returns false and your tip matches the public RPC:

The block number is returned as a hex quantity (e.g. 0x1705f0); compare it (and the hash) against another node's latest. For a decimal value, run printf '%d\n' 0x1705f0.

You should not see the Removing p2p peer ... err="subprotocol error" churn from 8.2; if you do, you are still on a pre-v2.0.8 binary.

4

Restart in validator mode

Once fully synced, stop only the read node you started in step 3 (never pkill opera — on a host running more than one validator that stops every validator at once; see §3.0 Multi-opera safety) and relaunch with your validator flags — the same ID and pubkey you registered, and always an absolute path for the password file:

The --bootnodes value is the same complete four-enode string shown in step 3 — copy it verbatim; truncated enodes will fail to peer. Your validator ID and stake are unchanged — you are resuming the existing validator, not creating a new one.

5

Verify the revival

  • Emitting again: validator.log shows your node producing/confirming events and the chain head advancing.

  • Still active on-chain: sfcc.getValidator(<VID>) still returns status == 0, and at the next epoch seal sfcc.getEpochValidatorIDs(sfcc.currentEpoch()) includes your <VID> — confirming you are back in the active set.

  • Stake intact: sfcc.getSelfStake(<VID>) is unchanged.

8.5 If your validator was already deactivated

If 8.1 showed a non-zero status / deactivatedEpoch, the SFC removed your validator from the active set. What you can do next depends on why it was deactivated; the outcome is the same on both networks.

An offline-deactivated validator (status bit 8 only — not slashed, not withdrawn) can be reactivated in place on testnet (chain 206), keeping the same validator ID and stake. Since SfcV2Patch8 this is self-service: you call reactivateValidator(<VID>) from the validator's own auth key, provided (a) its status is offline-only, (b) its self-stake still meets minSelfStake(), and (c) the anti-flap cooldown has elapsed (offlinePenaltyThresholdTime, ~5 days after deactivatedTime). The SFC owner can also call it, without the cooldown, as a lost-key fallback. The same self-service reactivation is available on mainnet — the deployed SFC bytecode is identical on both chains, independent of the SfcV2Patch* flags (mainnet flashed the Cycle-165 SFC directly at the SfcV2 seal). Slashed/double-sign or withdrawn validators cannot be reactivated on either chain — use the recreate path below.

First bring your node back in synced validator mode (8.4) so it resumes emitting the moment the SFC re-adds it, observing double-sign safety (8.3).

Load the SFC into the Opera console. Fetch the current ABI and build the sfcc object. The script is written under your home directory — not world-writable /tmp, where another local user could swap the file between generation and loadScript:

Then inside the Opera console (./opera attach), paste the loadScript line the script printed, e.g.:

Reactivate — from the validator's auth address (self-service) or the SFC owner address (fallback). Replace 15 with your validator ID:

Verify:

Slashed / double-sign or withdrawn → recreate

If sfcc.isSlashed(<VID>) is true (DOUBLESIGN_BIT = 128), the validator cannot be reactivated on either network — reactivateValidator reverts with "cheaters cannot be reactivated". On mainnet, an offline-deactivated validator uses the same self-service reactivateValidator path described above. Only slashed/double-sign or fully withdrawn validators need the recreate path. Unwind and start over (same as the §3.4 Offline node path):

  1. If your stake is locked, unlockStake() first (an early-unlock penalty may apply).

  2. undelegate() your self-stake and wait the validator bonding period — 180 epochs and 3 days (both must elapse).

  3. withdraw() your stake back to your wallet.

  4. Start over from Become a Validator with a fresh createValidator — this mints a new validator ID.

(For a cheater, the SFC owner may separately refund a portion of slashed stake via the slashing-refund flow, but the validator ID itself stays dead.)

To avoid this next time, bring a downed node back before the offline-penalty threshold trips (see the deadline box at the top of this section), and keep nodekey + keystore/ backed up so a fast snapshot-restore is always available.

Last updated