70 lines
1.8 KiB
Markdown
70 lines
1.8 KiB
Markdown
|
|
# Check VMID 107 - Diagnostic Commands
|
||
|
|
|
||
|
|
**Issue**: Systemd service file exists but "Unit web3signer.service not found"
|
||
|
|
|
||
|
|
## Run Diagnostic Script
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cd /home/intlc/projects/proxmox/rpc-translator-138
|
||
|
|
./scripts/check-vmid-107.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
## Manual Diagnostic Commands
|
||
|
|
|
||
|
|
### 1. Check Service File
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Check if file exists
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- ls -la /etc/systemd/system/web3signer.service"
|
||
|
|
|
||
|
|
# View contents
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- cat /etc/systemd/system/web3signer.service"
|
||
|
|
```
|
||
|
|
|
||
|
|
### 2. Reload Systemd and Enable Service
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Reload systemd daemon
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- systemctl daemon-reload"
|
||
|
|
|
||
|
|
# Enable the service
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- systemctl enable web3signer.service"
|
||
|
|
|
||
|
|
# Check if it's now registered
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- systemctl list-unit-files | grep web3signer"
|
||
|
|
```
|
||
|
|
|
||
|
|
### 3. Start Service
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Start the service
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- systemctl start web3signer.service"
|
||
|
|
|
||
|
|
# Check status
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- systemctl status web3signer.service --no-pager | head -20"
|
||
|
|
```
|
||
|
|
|
||
|
|
### 4. Verify Keys Loaded
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Check API
|
||
|
|
curl http://192.168.11.111:9000/api/v1/eth1/publicKeys
|
||
|
|
|
||
|
|
# Check logs
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- journalctl -u web3signer.service -n 30 --no-pager"
|
||
|
|
```
|
||
|
|
|
||
|
|
## All-in-One Fix
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Complete fix: reload, enable, start
|
||
|
|
ssh root@192.168.11.11 "pct exec 107 -- bash -c 'systemctl daemon-reload && systemctl enable web3signer.service && systemctl restart web3signer.service && sleep 5 && systemctl status web3signer.service --no-pager | head -15'"
|
||
|
|
|
||
|
|
# Verify
|
||
|
|
curl http://192.168.11.111:9000/api/v1/eth1/publicKeys
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**The issue**: Systemd needs `daemon-reload` and `enable` before it can find and start the service.
|