fix: wowmine: caches

This commit is contained in:
2026-11-17 23:14:53 +00:00
parent 393a8cc6f5
commit 372cc7c93a
8 changed files with 119 additions and 25 deletions
+3
View File
@@ -4,6 +4,9 @@ This file records only observed evidence, actions, and verification results.
An entity appearing in a stack trace is a trigger-path observation, not a
proven root cause.
Current player address: `wowmine.bfs.band` (no port). Addresses inside dated
incidents below record the endpoints used at the time.
## 2026-09-19 — WorldOfSosal crashes in Sable block-change handling
### Impact
+80 -5
View File
@@ -7,10 +7,32 @@ must switch their pre-launch URL to the active site's `current/pack.toml`, or
import the active site's Prism ZIP.
The active Prism ZIP includes the matching update URL and server address.
The direct game address is `95.31.254.84:35565` (TCP). Existing profiles must
The game address is `wowmine.bfs.band` (no port). Existing profiles must
change their saved server entry manually; packwiz does not replace personal
`servers.dat`. The former `store.hectic-lab.com:25568` SSH-relay address is retired.
DNS uses an A record pointing to `95.31.254.84` and
`_minecraft._tcp.wowmine.bfs.band` SRV `0 0 35565 wowmine.bfs.band.` (TTL 600).
This keeps the existing direct TCP 35565 connection. Download and update URLs
remain on `store.hectic-lab.com`.
On 2026-11-17 the public Prism ZIP, download page and `/wowmine/` copy-address
control were changed to `wowmine.bfs.band`. Only `servers.dat` changed inside the
ZIP; its SHA-256 is
`af5093ecbc59c51b94f3efcef978dbf9a9fc85efdad66c3144418b2949af5b15`.
The checksum manifest was updated. The managed pack and source archive were
unchanged. Initial A/status checks passed on TCP 35565; the SRV record was still
absent from authoritative DNS during publication, so portless entry was not
yet verified.
The live landing page has theme controls that differ from the current source
tree. Publication preserved its exact deployed design and assets, replacing
only the address. A scoped Nginx unit was built and activated through
`/etc/systemd/system.control/nginx.service`, GC-rooted at
`/nix/var/nix/gcroots/worldofsosal-domain-nginx`. Reconcile this override when
deploying the next generated Nginx configuration. Nginx configuration validation
and public desktop/mobile address and copy checks passed.
Players import `WorldOfSosal-Prism.zip` into Prism once and approve its pre-launch
command. Before each launch, packwiz-installer reconciles the client with the
published pack: it adds, replaces, and removes managed files, checking hashes.
@@ -21,6 +43,53 @@ Minecraft 1.21.1, NeoForge 21.1.250, Java 21; the instance reserves up to 8 GiB.
The original `.mrpack` alone does not provide this automatic update mechanism.
Official workflow: https://packwiz.infra.link/tutorials/installing/packwiz-installer/
## Short runtime names: 2026-11-17
DH now uses server key `wos` and map prefix `wos-w1`. The Azeroth level key is
`wos-w1@crafting_azeroth:azeroth`; `w1` identifies the current winter-biome map.
Immutable source archive names and dimension IDs are unchanged. Use a new short
epoch when replacing the map in the future.
The server MOTD is `WoS | Warcraft`. New Prism imports and their saved server
entry are named `WoS`. Website downloads suggest `WoS.zip` while retaining the
existing ZIP URL and updater URL. The managed pack remains v13 with 595 files.
Current ZIP SHA-256:
`48b101f0b363c3e223d0adae5283f2b5b9e4688870ff06d89b0c199c19b69c7c`.
The Windows log reports `SQLITE_CANTOPEN` for a 260-character cache path.
The saved Cyrillic server label expands to 46 URL-encoded characters, and the
old map revision adds a 72-character level folder. Short keys remove that
inflation independently of each client's saved server label. Existing instances
benefit after reconnecting; reimport is not required. Old client caches and
server LOD data are retained. Arbitrarily deep launcher directories may still
require a shorter installation path.
The settings helper has a naming-only startup mode; the importer retains its
existing mod/JEI behavior. Production appends `80-short-names.conf` after the
existing 50/60/70 hooks, using GC root
`/nix/var/nix/gcroots/worldofsosal-short-names-pre-start`. One ordinary restart
followed an empty-server check and a player-state backup under
`/var/tmp/worldofsosal-short-names/`. All 132 JAR hashes, OP data, world
inode/source marker and importer InvocationIDs were preserved. Only the two DH
values and MOTD changed among input settings.
The live landing's filename-only update uses Nginx GC root
`/nix/var/nix/gcroots/worldofsosal-short-names-nginx`; reconcile its
`system.control` override on the next generated Nginx deployment.
Public ZIP/checksum, actual builder output, hook idempotence, preservation and
Minecraft status checks passed. After reconnecting, the user confirmed the
error disappeared. The actual Windows log records `Started DHLevel` for the
short key, successful SQLite schema updates and no cache-open errors. The new
database exists at a 189-character path, versus the original 260 characters,
and contains 6,819,840 bytes. Its server folder is `-1885210281_wos`: DH retains
the server ID before the short key. Old cache folders remain present.
Automated Windows Java interop and private Linux graphics QA were unavailable;
the real Windows reconnect supplies the runtime verification. DH logged a
five-second request-queue shutdown warning on logout; that behavior was not
investigated in this naming change.
Evidence: `/tmp/worldofsosal-short-names/windows-client-result.json`.
## Direct game access: 2026-11-17
The user selected the existing MikroTik TCP 35565 forward. Minecraft Java status
@@ -90,7 +159,7 @@ it incompatible with the running server.
```sh
# Test the client and deploy the matching server release first.
python3 script/build-prism-pack.py WorldOfSosal-v13-lootplus-cleanup.mrpack \
prism-export --server store.hectic-lab.com:25568
prism-export --server wowmine.bfs.band
python3 script/publish-prism-pack.py prism-export hectic-lab
```
@@ -532,7 +601,10 @@ Reconcile that override on a future full server configuration activation.
- Automatic updater add/remove/config-update and options-preservation behavior
tested with an actual packwiz-installer run against a controlled update fixture.
## WoW server and public entry point
## Historical WoW relay entry point (retired 2026-11-17)
The following records the original relay deployment. Current connections use
`wowmine.bfs.band` directly on TCP 35565, as described above.
The WoW map and WorldOfSosal mods share the `wowMineMap` server on neuro,
listening on 25567. There is no separate WorldOfSosal world/server on 25568.
@@ -612,7 +684,10 @@ SHA-256 was verified before extraction.
options.txt retained its checksum. The production pack contents were unchanged.
- Restored the instance's regular current/pack.toml update URL.
## Independent BFS entry point (2026-09-19)
## Historical independent BFS entry point (2026-09-19, retired)
These deployment and verification notes describe the former BFS relay.
Current connections use `wowmine.bfs.band`; the active download URL is above.
- Server: `wow.bfs.band`; downloads: https://store.bfs.band/minecraft/.
- BFS is `bfs.poland.xray` (91.198.166.181), the host of Element.
@@ -642,7 +717,7 @@ all overrides match the source archive. A second updater run performed no
downloads and preserved options.txt. The public BFS login protocol reached
online authentication; the earlier full GUI login used hectic-lab.
## BFS DNS and dedicated download site (2026-09-19)
## Historical BFS DNS and download site (2026-09-19)
Porkbun DNS, TTL 600:
@@ -57,7 +57,7 @@
<h1 id="hero-title">Азерот. <span>Теперь из блоков.</span></h1>
<p class="hero-lead">Знакомые земли — совсем другая история.<br>Исследуй Азерот и Запределье в нашей сборке Minecraft.</p>
<div class="hero-actions">
<a class="button button-primary" href="/minecraft/world-of-sosal/WorldOfSosal-Prism.zip" download>
<a class="button button-primary" href="/minecraft/world-of-sosal/WorldOfSosal-Prism.zip" download="WoS.zip">
<svg class="icon" aria-hidden="true"><use href="#download"/></svg>
Скачать сборку
</a>
@@ -75,7 +75,7 @@
<div><p class="connection-title">Место встречи</p><p class="connection-caption">Добавь в список серверов</p></div>
</div>
<div class="address-group">
<code id="server-address">95.31.254.84:35565</code>
<code id="server-address">wowmine.bfs.band</code>
<button class="button button-copy" type="button" data-copy-address>
<svg class="icon copy-icon" aria-hidden="true"><use href="#copy"/></svg>
<svg class="icon copied-icon" aria-hidden="true"><use href="#check"/></svg>
@@ -116,7 +116,7 @@
</li>
<li>
<span class="step-number" aria-hidden="true">02</span>
<div><h3>Добавь сборку</h3><p><a href="/minecraft/world-of-sosal/WorldOfSosal-Prism.zip" download>Скачай ZIP для Prism</a>. Затем открой «Добавить сборку» → «Импорт из ZIP» и выбери скачанный файл.</p></div>
<div><h3>Добавь сборку</h3><p><a href="/minecraft/world-of-sosal/WorldOfSosal-Prism.zip" download="WoS.zip">Скачай ZIP для Prism</a>. Затем открой «Добавить сборку» → «Импорт из ZIP» и выбери скачанный файл.</p></div>
</li>
<li>
<span class="step-number" aria-hidden="true">03</span>
+8 -7
View File
@@ -1,13 +1,14 @@
# Current Minecraft access (2026-09-18)
# Current Minecraft access (2026-11-17)
WorldOfSosal on the WoW map uses `store.hectic-lab.com:25568` publicly.
The game server is `neuro:25567`; a restricted persistent reverse SSH tunnel
connects it to the public relay. See `docs/minecraft-prism.md` and the Nix modules
`minecraft/public-tunnel.nix` / `hectic-lab/minecraft-wow-proxy.nix`.
WorldOfSosal on the WoW map uses `wowmine.bfs.band` publicly, without a port.
DNS A points to `95.31.254.84`; `_minecraft._tcp.wowmine.bfs.band` SRV is
`0 0 35565 wowmine.bfs.band.`. The existing MikroTik forward reaches neuro's
Minecraft Java server directly on TCP 35565. SSH game tunnels and the public
relay are disabled. See `docs/minecraft-prism.md`.
Verified LAN: neuro is `192.168.88.10`, gateway `192.168.88.1`.
SSH access is `95.31.254.84:34457`. Direct external Minecraft TCP probes timed out,
and no UPnP IGD was discovered. The old TP-Link network and manual port-forward
SSH access is `95.31.254.84:34457`. Direct Minecraft Java status on TCP 35565
passed on 2026-11-17. The old TP-Link network and manual port-forward
instructions below describe the previous network, not the active configuration.
---
@@ -1,13 +1,18 @@
{ pkgs, serverDir }:
{ pkgs, serverDir, namesOnly ? false }:
''
${pkgs.lib.optionalString (!namesOnly) ''
rm -f -- \
"${serverDir}/mods/dynamicheight-0.2.0+neoforge-1.21-1.21.1.jar" \
"${serverDir}/mods/sable_dynamicheight_compat-1.0.0.jar"
''}
${pkgs.gnused}/bin/sed -i \
-e '/^[[:space:]]*levelKeyPrefix[[:space:]]*=/d' \
-e '/^\[server\]$/a\levelKeyPrefix = "world-of-sosal-20261114T223938Z-winter-biomes-"' \
-e '/^[[:space:]]*serverKey[[:space:]]*=/d' \
-e '/^\[server\]$/a\levelKeyPrefix = "wos-w1"\nserverKey = "wos"' \
"${serverDir}/config/DistantHorizons.toml"
${pkgs.lib.optionalString (!namesOnly) ''
${pkgs.gnused}/bin/sed -i \
-e 's/^\([[:space:]]*enableCheatModeForCreative[[:space:]]*=\).*/\1 false/' \
"${serverDir}/config/jei-server.toml"
''}
''
@@ -2,6 +2,8 @@
let
packVersion = "v13-lootplus-cleanup";
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
serverMotd = "WoS | Warcraft";
in
{
sops.secrets."minecraft/storage-box-pack-key" = {
@@ -29,7 +31,16 @@ in
};
services.minecraft-servers.servers.wowMineMap.serverProperties.motd =
"WorldOfSosal ${packVersion} — World of Warcraft";
serverMotd;
systemd.services.minecraft-server-wowMineMap.preStart =
(import ./world-of-sosal-settings.nix {
inherit pkgs serverDir;
namesOnly = true;
}) + ''
${pkgs.gnused}/bin/sed -i \
's/^motd=.*/motd=${serverMotd}/' "${serverDir}/server.properties"
'';
# Import the map before writing modpack configuration into the same server.
systemd.services.minecraft-modpack-import-worldOfSosal = {
@@ -37,8 +48,7 @@ in
requires = [ "minecraft-world-import-wowMineMap.service" ];
# Test the map's native dimension height without runtime height overrides.
postStart = import ./world-of-sosal-settings.nix {
inherit pkgs;
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
inherit pkgs serverDir;
};
};
}
+3 -3
View File
@@ -127,14 +127,14 @@ def main():
(args.output / 'latest.mrpack').write_bytes(archive)
(args.output / download_name).write_bytes(archive)
# Prism otherwise uses its legacy INI parser and corrupts quoted commands.
cfg = '\n'.join(['[General]', 'ConfigVersion=1.2', 'InstanceType=OneSix', 'name=WorldOfSosal Auto Update', 'iconKey=default', 'OverrideCommands=true', 'PreLaunchCommand=' + quote(f'"$INST_JAVA" -jar packwiz-installer-bootstrap.jar {base}current/pack.toml'), 'OverrideMemory=true', 'MinMemAlloc=1024', 'MaxMemAlloc=8192', ''])
cfg = '\n'.join(['[General]', 'ConfigVersion=1.2', 'InstanceType=OneSix', 'name=WoS', 'iconKey=default', 'OverrideCommands=true', 'PreLaunchCommand=' + quote(f'"$INST_JAVA" -jar packwiz-installer-bootstrap.jar {base}current/pack.toml'), 'OverrideMemory=true', 'MinMemAlloc=1024', 'MaxMemAlloc=8192', ''])
mmc = {'formatVersion': 1, 'components': [{'uid':'net.minecraft', 'version':deps['minecraft'], 'important':True}, {'uid':'net.neoforged', 'version':deps['neoforge'], 'important':True}]}
def nbt_string(value):
data = value.encode()
return struct.pack('>H', len(data)) + data
# Initial server list is seeded only during instance import, never overwritten.
servers = b'\x0a\x00\x00\x09' + nbt_string('servers') + b'\x0a\x00\x00\x00\x01'
servers += b'\x08' + nbt_string('name') + nbt_string('WorldOfSosal')
servers += b'\x08' + nbt_string('name') + nbt_string('WoS')
servers += b'\x08' + nbt_string('ip') + nbt_string(args.server or '') + b'\x00\x00'
with zipfile.ZipFile(args.output / 'WorldOfSosal-Prism.zip', 'w', zipfile.ZIP_DEFLATED) as z:
z.writestr('instance.cfg', cfg)
@@ -144,7 +144,7 @@ def main():
z.writestr('.minecraft/servers.dat', servers)
page = f'''<!doctype html><html lang="ru"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>WorldOfSosal</title>
<h1>WorldOfSosal — автоматическое обновление</h1>
<p>Один раз скачайте <a href="WorldOfSosal-Prism.zip">инстанс для Prism Launcher</a>, затем выберите «Добавить сборку → Импорт из zip». Разрешите команду перед запуском: она устанавливает и обновляет моды через packwiz.</p>
<p>Один раз скачайте <a href="WorldOfSosal-Prism.zip" download="WoS.zip">инстанс для Prism Launcher</a>, затем выберите «Добавить сборку → Импорт из zip». Разрешите команду перед запуском: она устанавливает и обновляет моды через packwiz.</p>
<p>Сборка {html.escape(pack_info['version'])} · Minecraft {html.escape(deps['minecraft'])} · NeoForge {html.escape(deps['neoforge'])} · Java 21 · память 8 ГБ.</p>
<p>{'Сервер: <code>' + html.escape(args.server) + '</code>.' if args.server else 'Адрес игрового сервера будет сообщён отдельно.'}</p>
<p>Моды и конфигурация сборки обновляются при каждом запуске. Личные настройки options.txt сохраняются. При смене Minecraft или NeoForge может потребоваться повторный запуск после обновления версии.</p>
+2 -2
View File
@@ -26,8 +26,8 @@ def main():
ap.error('Deploy this mrpack on neuro first: the server archive hash differs')
scripts = Path(__file__).resolve().parent
mirrors = [
('hectic-lab', 'https://store.hectic-lab.com/minecraft/world-of-sosal/', 'store.hectic-lab.com:25568'),
('bfs.poland.xray', 'https://store.bfs.band/minecraft/world-of-sosal/', 'wow.bfs.band'),
('hectic-lab', 'https://store.hectic-lab.com/minecraft/world-of-sosal/', 'wowmine.bfs.band'),
('bfs.poland.xray', 'https://store.bfs.band/minecraft/world-of-sosal/', 'wowmine.bfs.band'),
]
with tempfile.TemporaryDirectory(prefix='prism-mirrors-') as temporary:
root = Path(temporary)