[BEZ-P0] Fix Evennia settings on 104.131.15.18 — remove bad port tuples, DB is ready #534

Open
opened 2026-04-07 02:12:36 +00:00 by Timmy · 0 comments
Owner

Problem

Bezalel VPS (104.131.15.18) has Evennia installed, DB created, migrations applied (through 0017), superuser created (Timmy/timmy123).

Blocker: Settings file has bad port tuples causing crash:

TypeError: 'NoneType' object cannot be interpreted as an integer

From WEBSERVER_PORTS = [(4101, None)] — the None tuple value crashes Evennia's Twisted port binding.

Also: Migration 0018 was deleted due to RecursionError on fresh DB. This is fine — Evennia runs without it.

Fix (2 minutes)

SSH to Bezalel VPS and run:

cd /root/wizards/bezalel/evennia/bezalel_world/server/conf
# Delete broken port settings
sed -i '/WEBSERVER_PORTS\|TELNET_PORTS\|WEBSOCKET_PORTS\|SERVERNAME/d' settings.py
echo 'SERVERNAME = "bezalel_world"' >> settings.py

# Clean DB and start
cd /root/wizards/bezalel/evennia/bezalel_world
rm -f server/evennia.db3
/root/wizards/bezalel/evennia/venv/bin/evennia migrate
# Create superuser
/root/wizards/bezalel/evennia/venv/bin/python3 -c "
import sys,os
sys.setrecursionlimit(5000)
os.environ['DJANGO_SETTINGS_MODULE']='server.conf.settings'
os.chdir('$PWD')
import django;django.setup()
from evennia.accounts.accounts import AccountDB
AccountDB.objects.create_superuser('Timmy','timmy@tower.world','timmy123')
"
/root/wizards/bezalel/evennia/venv/bin/evennia start

Acceptance Criteria

  • evennia status shows Portal and Server running
  • Ports 4000 (telnet), 4001 (web) are listening
  • Can connect via telnet and see Evennia connection screen
  • Superuser Timmy exists and can log in
  • Evennia continues running after restart

Current State

  • Python 3.12, Evennia 6.0, venv at /root/wizards/bezalel/evennia/venv
  • DB migrations 0017 applied successfully
  • Superuser created
  • Settings has bad port tuples
  • Evennia crashes on start

Priority

This blocks all Evennia federation work — Bezalel can't host a world until this is fixed.

## Problem Bezalel VPS (104.131.15.18) has Evennia installed, DB created, migrations applied (through 0017), superuser created (Timmy/timmy123). **Blocker:** Settings file has bad port tuples causing crash: ``` TypeError: 'NoneType' object cannot be interpreted as an integer ``` From `WEBSERVER_PORTS = [(4101, None)]` — the `None` tuple value crashes Evennia's Twisted port binding. **Also:** Migration 0018 was deleted due to RecursionError on fresh DB. This is fine — Evennia runs without it. ## Fix (2 minutes) SSH to Bezalel VPS and run: ```bash cd /root/wizards/bezalel/evennia/bezalel_world/server/conf # Delete broken port settings sed -i '/WEBSERVER_PORTS\|TELNET_PORTS\|WEBSOCKET_PORTS\|SERVERNAME/d' settings.py echo 'SERVERNAME = "bezalel_world"' >> settings.py # Clean DB and start cd /root/wizards/bezalel/evennia/bezalel_world rm -f server/evennia.db3 /root/wizards/bezalel/evennia/venv/bin/evennia migrate # Create superuser /root/wizards/bezalel/evennia/venv/bin/python3 -c " import sys,os sys.setrecursionlimit(5000) os.environ['DJANGO_SETTINGS_MODULE']='server.conf.settings' os.chdir('$PWD') import django;django.setup() from evennia.accounts.accounts import AccountDB AccountDB.objects.create_superuser('Timmy','timmy@tower.world','timmy123') " /root/wizards/bezalel/evennia/venv/bin/evennia start ``` ## Acceptance Criteria - [ ] `evennia status` shows Portal and Server running - [ ] Ports 4000 (telnet), 4001 (web) are listening - [ ] Can connect via telnet and see Evennia connection screen - [ ] Superuser Timmy exists and can log in - [ ] Evennia continues running after restart ## Current State - ✅ Python 3.12, Evennia 6.0, venv at /root/wizards/bezalel/evennia/venv - ✅ DB migrations 0017 applied successfully - ✅ Superuser created - ❌ Settings has bad port tuples - ❌ Evennia crashes on start ## Priority This blocks all Evennia federation work — Bezalel can't host a world until this is fixed.
Timmy self-assigned this 2026-04-07 02:12:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#534