fix: harden console self-update rollback and deployment checks

Recovered after the original 04bd82e object was lost from the worktree history; the working tree still contained the same ten-file fix (249 insertions).
This commit is contained in:
OddTurtleHead committed 2026-11-24 02:06:26 +08:00
1 parent 2de2e23fd3
commit eb6c4ba857
10 files changed
+249 -28

No files matched your search

+4 -3
View File
@@ -465,10 +465,11 @@ export function createAdminRouter(options: AdminRouterOptions): Router {
if (version !== confirmVersion) throw new UpdateError("UPDATE_CONFIRMATION_REQUIRED", "The confirmation does not match the selected version.");
const task = await options.updateService.applyUpdate(version, confirmVersion);
options.service.database.addAudit("ADMIN_UPDATE_STARTED", { version });
response.once("finish", () => {
setTimeout(() => options.restartAfterUpdate?.(), 250).unref();
});
response.status(202).json({ ok: true, task });
// Do not wait for the response to finish: a reverse proxy or a client
// that disconnects early must not leave the restart runner waiting for
// this process until its timeout expires.
setTimeout(() => options.restartAfterUpdate?.(), 250).unref();
} catch (error: unknown) {
sendUpdateError(response, error);
}
+25
View File
@@ -1,6 +1,7 @@
import assert from "node:assert/strict";
import test, { type TestContext } from "node:test";
import { mkdtempSync, rmSync } from "node:fs";
import http from "node:http";
import { tmpdir } from "node:os";
import path from "node:path";
import express from "express";
@@ -152,6 +153,30 @@ test("a confirmed apply returns the task and stops the process after the respons
assert.equal(f.restarted(), true);
});
test("a client that disconnects before the response still schedules the restart", async t => {
const f = await fixture(t);
const { cookie, csrf } = await f.login();
const body = JSON.stringify({ version: "0.4.0", confirmVersion: "0.4.0" });
const url = new URL(`${f.origin}/api/admin/update/apply`);
const request = http.request({
hostname: url.hostname, port: url.port, path: url.pathname, method: "POST",
headers: {
origin: f.origin, cookie, "x-csrf-token": csrf, "content-type": "application/json",
"content-length": Buffer.byteLength(body),
},
});
request.on("error", () => { /* Expected once the socket is destroyed. */ });
request.end(body);
const deadline = Date.now() + 2_000;
while (f.applyCalls.length === 0 && Date.now() < deadline) await new Promise<void>((resolve) => setTimeout(resolve, 20));
assert.deepEqual(f.applyCalls, [["0.4.0", "0.4.0"]]);
// Close the connection without consuming the response. The restart must not
// depend on the response finish event.
request.destroy();
await new Promise<void>((resolve) => setTimeout(resolve, 700));
assert.equal(f.restarted(), true);
});
test("update status and check return the service projections", async t => {
const f = await fixture(t);
const { cookie, csrf } = await f.login();
+31 -1
View File
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import test, { type TestContext } from "node:test";
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";
import {
@@ -84,6 +84,36 @@ test("code swap replaces only code and preserves data, config, certs, skins and
assert.equal(existsSync(path.join(backup, "config.json")), false);
});
test("code swap copies across filesystems when rename reports EXDEV", t => {
const shared = "/dev/shm";
if (!existsSync(shared)) {
t.skip("no separate filesystem available for the EXDEV test");
return;
}
const root = path.join(workspace(t), "root"), backup = path.join(workspace(t), "backup");
const stagedBase = mkdtempSync(path.join(shared, "webspeak-swap-xdev-"));
t.after(() => rmSync(stagedBase, { recursive: true, force: true }));
const staged = path.join(stagedBase, "staged");
mkdirSync(path.join(root, "dist"), { recursive: true });
writeFileSync(path.join(root, "dist", "index.js"), "old code");
writeFileSync(path.join(root, "package.json"), JSON.stringify({ version: "0.3.2" }));
createPackageFiles(staged, "0.4.0", { "dist/index.js": "new code", "node_modules/new.txt": "new dependency" });
if (statSync(root).dev === statSync(staged).dev) {
t.skip("tmp and /dev/shm share a device on this system");
return;
}
swapCode(root, staged, backup);
assert.equal(readFileSync(path.join(root, "dist", "index.js"), "utf8"), "new code");
assert.equal(JSON.parse(readFileSync(path.join(root, "package.json"), "utf8")).version, "0.4.0");
assert.equal(readFileSync(path.join(root, "node_modules", "new.txt"), "utf8"), "new dependency");
assert.equal(readFileSync(path.join(backup, "dist", "index.js"), "utf8"), "old code");
// The copy fallback removes the source only after a successful copy.
assert.equal(existsSync(path.join(staged, "dist")), false);
assert.equal(existsSync(path.join(staged, "package.json")), false);
});
test("restoreCode returns the previous code and keeps rejected code for inspection", t => {
const root = workspace(t), staged = path.join(workspace(t), "staged"), backup = path.join(workspace(t), "backup");
mkdirSync(path.join(root, "dist"), { recursive: true });
+15 -2
View File
@@ -1,4 +1,4 @@
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync } from "node:fs";
import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync } from "node:fs";
import path from "node:path";
import { parseStableVersion } from "./version.js";
@@ -76,10 +76,23 @@ export function locatePackageRoot(extractedDir: string, version: string, platfor
return root;
}
function moveEntry(from: string, to: string): void {
try {
renameSync(from, to);
} catch (error) {
// Staging and backups may live on another filesystem than the install
// directory. A rename cannot cross devices, so fall back to a copy that
// only removes the source once the copy has completed.
if ((error as NodeJS.ErrnoException).code !== "EXDEV") throw error;
cpSync(from, to, { recursive: true, force: false, errorOnExist: true, preserveTimestamps: true });
rmSync(from, { recursive: true, force: true });
}
}
function moveIfPresent(from: string, to: string): void {
if (!existsSync(from)) return;
mkdirSync(path.dirname(to), { recursive: true });
renameSync(from, to);
moveEntry(from, to);
}
/**
+30 -5
View File
@@ -24,13 +24,38 @@ function releasePackageRoot(t: test.TestContext, platform: "linux" | "win32" = "
return root;
}
test("deployment mode honours the explicit environment override", () => {
test("an explicit release-package override cannot bypass container detection", () => {
const env = { WEBSPEAK_DEPLOYMENT_MODE: "release-package" };
const info = detectDeployment({ rootDir: "/does/not/exist", env, isDocker: true, platform: "linux", architecture: "x64" });
assert.equal(info.mode, "release-package");
assert.equal(info.applyAllowed, true);
assert.equal(info.reasonCode, null);
assert.equal(info.upgradePath, "release-package");
assert.equal(info.mode, "docker");
assert.equal(info.applyAllowed, false);
assert.equal(info.reasonCode, "DEPLOYMENT_DOCKER");
assert.equal(info.upgradePath, "docker-compose");
});
test("an explicit release-package override requires a complete package tree", t => {
const missing = detectDeployment({
rootDir: "/does/not/exist",
env: { WEBSPEAK_DEPLOYMENT_MODE: "release-package" },
isDocker: false,
platform: "linux",
architecture: "x64",
});
assert.equal(missing.mode, "source");
assert.equal(missing.applyAllowed, false);
assert.equal(missing.reasonCode, "DEPLOYMENT_SOURCE");
const root = releasePackageRoot(t);
const complete = detectDeployment({
rootDir: root,
env: { WEBSPEAK_DEPLOYMENT_MODE: "release-package" },
isDocker: false,
platform: "linux",
architecture: "x64",
});
assert.equal(complete.mode, "release-package");
assert.equal(complete.applyAllowed, true);
assert.equal(complete.reasonCode, null);
});
test("docker and source deployments never allow an in-console apply", () => {
+9 -6
View File
@@ -16,20 +16,23 @@ export interface DeploymentInfo extends UpdateDeploymentView {
assetKind: "linux-x64" | "linux-arm64" | "windows-x64" | null;
}
const EXPLICIT_MODES: UpdateDeploymentMode[] = ["docker", "release-package", "source"];
export function detectDeployment(options: DeploymentDetectionOptions): DeploymentInfo {
const platform = options.platform ?? process.platform;
const architecture = options.architecture ?? process.arch;
const env = options.env ?? process.env;
const explicit = env.WEBSPEAK_DEPLOYMENT_MODE?.trim().toLowerCase();
const packaged = isReleasePackageRoot(options.rootDir, platform);
let mode: UpdateDeploymentMode;
if (explicit && (EXPLICIT_MODES as string[]).includes(explicit)) {
mode = explicit as UpdateDeploymentMode;
} else if (options.isDocker ?? runningInContainer(env)) {
// Container detection always wins: an explicit "release-package" override
// must never make an image replaceable from inside the container.
if (explicit === "docker" || (options.isDocker ?? runningInContainer(env))) {
mode = "docker";
} else if (explicit === "source") {
mode = "source";
} else {
mode = isReleasePackageRoot(options.rootDir, platform) ? "release-package" : "source";
// An explicit "release-package" only counts when the tree really is a
// complete release package; otherwise applying would be unsafe.
mode = packaged ? "release-package" : "source";
}
const assetKind = mode === "release-package" ? assetKindFor(platform, architecture) : null;
let reasonCode: string | null = null;
+73 -1
View File
@@ -7,7 +7,7 @@ import type { Logger } from "../logger.js";
import { CHECKSUM_ASSET_NAME, OFFICIAL_REPOSITORY } from "./releases.js";
import { UpdateError, UpdateService, type UpdateErrorCode, type UpdateServiceOptions } from "./update-service.js";
import { createPackageFiles, createTarGz, sha256Hex, type TarFixtureEntry } from "./test-support.js";
import { readUpdateState } from "./update-state.js";
import { readUpdateState, writeUpdateState } from "./update-state.js";
const logger: Logger = { debug() {}, info() {}, warn() {}, error() {}, child() { return this; } };
const ASSET_NAME = "webspeak-webclient-v0.4.0-linux-x64.tar.gz";
@@ -339,6 +339,78 @@ test("a concurrent lock leaves the running task state untouched", async t => {
assert.equal(service.getStatus().task, null);
});
test("getStatus reports the task the restart runner persisted, not stale memory", async t => {
const archive = packageArchive("0.4.0");
const checksums = Buffer.from(checksumText(ASSET_NAME, archive));
const { service, dataDir } = createService(t, [{
version: "0.4.0",
assets: [
{ name: ASSET_NAME, data: archive },
{ name: CHECKSUM_ASSET_NAME, data: checksums },
],
}], new Map([
[`https://github.com/${OFFICIAL_REPOSITORY}/releases/download/v0.4.0/${ASSET_NAME}`, archive],
[`https://github.com/${OFFICIAL_REPOSITORY}/releases/download/v0.4.0/${CHECKSUM_ASSET_NAME}`, checksums],
]));
const task = await service.applyUpdate("0.4.0", "0.4.0");
assert.equal(service.getStatus().task?.status, "restarting");
// The runner rolls the task back in another process, after this one
// already returned the prepared task.
writeUpdateState(path.join(dataDir, "updates", "state.json"), {
schemaVersion: 1,
task: {
...task, status: "failed", finishedAt: "2026-01-01T00:05:00.000Z", updatedAt: "2026-01-01T00:05:00.000Z",
errorCode: "UPDATE_HEALTH_CHECK_FAILED", errorMessage: "health check failed", rolledBack: true,
},
});
const status = service.getStatus();
assert.equal(status.task?.status, "failed");
assert.equal(status.task?.rolledBack, true);
assert.equal(status.task?.errorCode, "UPDATE_HEALTH_CHECK_FAILED");
});
test("initialization restores the previous code from an interrupted swap backup", t => {
const fixture = createService(t, [], new Map());
const taskId = "upd_interrupted_swap";
const statePath = path.join(fixture.dataDir, "updates", "state.json");
const lockPath = path.join(fixture.dataDir, "updates", "update.lock");
const backupDir = path.join(fixture.dataDir, "updates", "backups", taskId);
// The process died after moving the previous code aside and only part of
// the new package had been moved in.
mkdirSync(path.join(backupDir, "dist"), { recursive: true });
writeFileSync(path.join(backupDir, "dist", "index.js"), "// old code\n");
writeFileSync(path.join(backupDir, "package.json"), JSON.stringify({ name: "webspeak-webclient", version: "0.3.2" }));
writeFileSync(path.join(fixture.rootDir, "dist", "index.js"), "// new code\n");
writeFileSync(path.join(fixture.rootDir, "package.json"), JSON.stringify({ name: "webspeak-webclient", version: "0.4.0" }));
writeUpdateState(statePath, {
schemaVersion: 1,
task: {
id: taskId, status: "restarting", fromVersion: "0.3.2", targetVersion: "0.4.0",
startedAt: "2026-01-01T00:00:00.000Z", updatedAt: "2026-01-01T00:00:00.000Z", finishedAt: null,
errorCode: null, errorMessage: null, rolledBack: false, steps: [],
},
});
writeFileSync(lockPath, JSON.stringify({ pid: 0, taskId, createdAt: "2026-01-01T00:00:00.000Z" }));
const restarted = new UpdateService({
rootDir: fixture.rootDir, dataDir: fixture.dataDir, currentVersion: "0.4.0", logger,
platform: "linux", architecture: "x64", env: {}, isDocker: false, fetch: fakeFetch([], new Map()),
now: () => new Date("2026-01-01T00:10:00.000Z"),
});
restarted.initialize();
assert.equal(readFileSync(path.join(fixture.rootDir, "dist", "index.js"), "utf8"), "// old code\n");
assert.equal(JSON.parse(readFileSync(path.join(fixture.rootDir, "package.json"), "utf8")).version, "0.3.2");
const status = restarted.getStatus();
assert.equal(status.task?.status, "failed");
assert.equal(status.task?.rolledBack, true);
assert.equal(status.task?.errorCode, "UPDATE_INTERRUPTED");
assert.equal(existsSync(lockPath), false);
});
test("initialization keeps a live task but reconciles it once its process is gone", async t => {
const fixture = createService(t, [], new Map());
const running = {
+45 -4
View File
@@ -9,7 +9,7 @@ import { fileURLToPath } from "node:url";
import type { Logger } from "../logger.js";
import type { UpdateCheckView, UpdateReleaseView, UpdateStatusView, UpdateTaskStatus, UpdateTaskView } from "../shared/update.js";
import { ArchiveError, extractReleaseArchive } from "./archive.js";
import { CodeSwapError, locatePackageRoot } from "./code-swap.js";
import { CodeSwapError, locatePackageRoot, restoreCode } from "./code-swap.js";
import { detectDeployment, releaseAssetName, type DeploymentInfo } from "./deployment.js";
import {
assertOfficialDownloadUrl, CHECKSUM_ASSET_NAME, GitHubReleaseSource, ReleaseSourceError,
@@ -40,6 +40,8 @@ export type UpdateErrorCode =
| "UPDATE_ARCHIVE_LIMIT"
| "UPDATE_ARCHIVE_UNSUPPORTED"
| "UPDATE_PACKAGE_INVALID"
| "UPDATE_SWAP_FAILED"
| "UPDATE_ROLLBACK_FAILED"
| "UPDATE_RELEASE_UNAVAILABLE"
| "UPDATE_RUNNER_MISSING"
| "UPDATE_RUNNER_FAILED"
@@ -126,7 +128,8 @@ export class UpdateService {
// A live lock owner (for example a second process starting by mistake)
// must not have its in-flight task reconciled as interrupted.
if (!task || !isActiveTaskStatus(task.status) || !updateLockIsHeld(this.lockPath, task.id)) {
const changed = reconcileInterruptedState(this.state, this.options.currentVersion, this.now().toISOString());
const recovered = task && isActiveTaskStatus(task.status) ? this.recoverInterruptedSwap(task) : null;
const changed = recovered !== null || reconcileInterruptedState(this.state, this.options.currentVersion, this.now().toISOString());
if (changed) writeUpdateState(this.statePath, this.state);
}
clearStaleUpdateLock(this.lockPath);
@@ -137,7 +140,45 @@ export class UpdateService {
}, "Update service initialized");
}
/**
* A crash during the swap leaves the previous code in the backup directory
* and possibly only partial new code in the install directory. Restore the
* previous code before reporting the task, rather than trusting a version
* whose files may be incomplete.
*/
private recoverInterruptedSwap(task: NonNullable<PersistedUpdateState["task"]>): boolean | null {
const backupDir = path.join(this.backupsDir, task.id);
if (!existsSync(backupDir)) return null;
const now = this.now().toISOString();
let restored = false;
try {
restoreCode(this.options.rootDir, backupDir);
restored = true;
} catch (error) {
this.options.logger.warn({
taskId: task.id,
err: error instanceof Error ? error.message : String(error),
}, "Interrupted update code could not be restored from backup");
}
task.status = "failed";
task.finishedAt = now;
task.updatedAt = now;
task.rolledBack = restored;
if (restored) {
task.errorCode = "UPDATE_INTERRUPTED";
task.errorMessage = "The process stopped during the update. The previous version was restored from the backup.";
} else {
task.errorCode = "UPDATE_ROLLBACK_FAILED";
task.errorMessage = "The process stopped during the update and the code could not be restored automatically. Restore the previous version from the backup.";
}
return true;
}
getStatus(): UpdateStatusView {
// The restart runner updates the persisted task after this process has
// already returned a response, so always report the on-disk state. Do not
// replace the in-memory state: an apply in progress still writes to it.
const state = readUpdateState(this.statePath);
return {
currentVersion: this.options.currentVersion,
deployment: {
@@ -148,7 +189,7 @@ export class UpdateService {
reasonCode: this.deployment.reasonCode,
upgradePath: this.deployment.upgradePath,
},
task: this.state.task,
task: state.task,
};
}
@@ -486,6 +527,6 @@ function mapError(error: unknown): UpdateError {
if (error instanceof UpdateLockedError) return new UpdateError("UPDATE_IN_PROGRESS", error.message, 409);
if (error instanceof ReleaseSourceError) return new UpdateError("UPDATE_RELEASE_UNAVAILABLE", error.message, 502);
if (error instanceof ArchiveError) return new UpdateError(error.code, error.message, 422);
if (error instanceof CodeSwapError) return new UpdateError(error.code === "UPDATE_ROLLBACK_FAILED" ? "UPDATE_FAILED" : "UPDATE_PACKAGE_INVALID", error.message, 422);
if (error instanceof CodeSwapError) return new UpdateError(error.code, error.message, 422);
return new UpdateError("UPDATE_FAILED", error instanceof Error ? error.message : "The update failed.", 500);
}
+2 -1
View File
@@ -56,7 +56,8 @@ const errorLabels: Record<string, AdminTranslationKey> = {
UPDATE_CHECKSUM_MISMATCH: "updateErrorChecksum", UPDATE_DIGEST_MISMATCH: "updateErrorChecksum", UPDATE_DIGEST_UNSUPPORTED: "updateErrorChecksum",
UPDATE_ARCHIVE_UNSAFE: "updateErrorArchive", UPDATE_ARCHIVE_INVALID: "updateErrorArchive", UPDATE_ARCHIVE_LIMIT: "updateErrorArchive", UPDATE_ARCHIVE_UNSUPPORTED: "updateErrorArchive",
UPDATE_PACKAGE_INVALID: "updateErrorPackage", UPDATE_DOWNLOAD_FAILED: "updateErrorDownload", UPDATE_DOWNLOAD_TOO_LARGE: "updateErrorDownload",
UPDATE_FAILED: "updateErrorApply", UPDATE_ROLLBACK_FAILED: "updateErrorApply", UPDATE_INTERRUPTED: "updateErrorInterrupted",
UPDATE_FAILED: "updateErrorApply", UPDATE_ROLLBACK_FAILED: "updateErrorRollbackFailed", UPDATE_INTERRUPTED: "updateErrorInterrupted",
UPDATE_SWAP_FAILED: "updateErrorSwap",
UPDATE_HEALTH_CHECK_FAILED: "updateErrorApply", UPDATE_ROLLBACK_HEALTH_FAILED: "updateErrorGeneric",
UPDATE_RESTART_FAILED: "updateErrorGeneric", UPDATE_RESTART_TIMEOUT: "updateErrorGeneric", UPDATE_PLAN_INVALID: "updateErrorGeneric",
UPDATE_NOT_SUPPORTED: "updateErrorGeneric", UPDATE_RELEASE_UNAVAILABLE: "updateErrorGeneric", UPDATE_ASSET_UNAVAILABLE: "updateErrorGeneric",
+15 -5
View File
@@ -29,7 +29,9 @@ const zh = {
updateReleaseNotes: "发行说明",
updateErrorChecksum: "校验和缺失或不匹配,已拒绝安装该发布包。", updateErrorArchive: "发布包未通过安全解包检查。",
updateErrorDownload: "无法从官方 Release 下载或保存资源。", updateErrorPackage: "发布包内容与所选正式版不匹配。",
updateErrorApply: "更新失败,已恢复上一版本。", updateErrorInterrupted: "更新被中断,未确认完成。",
updateErrorApply: "更新失败,请查看日志。", updateErrorInterrupted: "更新被中断,未确认完成。",
updateErrorRollbackFailed: "更新失败且自动回滚也失败。请按备份手动恢复上一版本。",
updateErrorSwap: "替换程序文件失败,已尝试恢复上一版本;请查看日志。",
updateErrorInProgress: "已有更新任务正在进行。", updateErrorGeneric: "更新未能完成,请查看日志。", updateStartedEvent: "已开始更新",
adminWsOverviewTitle: "WebSpeak 管理服务已就绪", adminWsOverviewLead: "先管理实例接入与访客体验;需要管理 TS 服务时,再按需配置独立连接。",
adminWsManageLead: "接入策略、站点公告、语音传输、皮肤商店和浏览器会话。",
@@ -72,7 +74,9 @@ const en = {
updateReleaseNotes: "Release notes",
updateErrorChecksum: "The checksum is missing or does not match; the package was refused.", updateErrorArchive: "The package failed the safe-extraction checks.",
updateErrorDownload: "The official release asset could not be downloaded or saved.", updateErrorPackage: "The package does not match the selected stable release.",
updateErrorApply: "The update failed and the previous version was restored.", updateErrorInterrupted: "The update was interrupted before completion was confirmed.",
updateErrorApply: "The update failed; check the logs.", updateErrorInterrupted: "The update was interrupted before completion was confirmed.",
updateErrorRollbackFailed: "The update failed and automatic rollback also failed. Restore the previous version manually from the backup.",
updateErrorSwap: "Replacing application files failed; the previous version was restored where possible. Check the logs.",
updateErrorInProgress: "Another update task is already running.", updateErrorGeneric: "The update could not be completed; check the logs.", updateStartedEvent: "Update started",
adminWsOverviewTitle: "WebSpeak management is ready", adminWsOverviewLead: "Manage instance access and the guest experience first. Configure an independent TS management connection when you need it.",
adminWsManageLead: "Access policy, site announcements, voice transport, the skin store and browser sessions.",
@@ -114,7 +118,9 @@ const de = {
updateReleaseNotes: "Release-Notizen",
updateErrorChecksum: "Prüfsumme fehlt oder stimmt nicht; das Paket wurde abgelehnt.", updateErrorArchive: "Das Paket hat die sichere Entpackprüfung nicht bestanden.",
updateErrorDownload: "Das offizielle Release-Artefakt konnte nicht geladen oder gespeichert werden.", updateErrorPackage: "Das Paket passt nicht zum gewählten stabilen Release.",
updateErrorApply: "Das Update ist fehlgeschlagen; die vorherige Version wurde wiederhergestellt.", updateErrorInterrupted: "Das Update wurde vor der Bestätigung unterbrochen.",
updateErrorApply: "Das Update ist fehlgeschlagen; Protokolle prüfen.", updateErrorInterrupted: "Das Update wurde vor der Bestätigung unterbrochen.",
updateErrorRollbackFailed: "Das Update ist fehlgeschlagen und auch die automatische Wiederherstellung. Stellen Sie die vorherige Version manuell aus der Sicherung wieder her.",
updateErrorSwap: "Das Ersetzen der Anwendungsdateien ist fehlgeschlagen; die vorherige Version wurde nach Möglichkeit wiederhergestellt. Protokolle prüfen.",
updateErrorInProgress: "Eine andere Update-Aufgabe läuft bereits.", updateErrorGeneric: "Das Update konnte nicht abgeschlossen werden; Protokolle prüfen.", updateStartedEvent: "Update gestartet",
adminWsOverviewTitle: "WebSpeak-Verwaltung ist bereit", adminWsOverviewLead: "Zuerst Instanzzugang und Gastoberfläche verwalten. Eine separate TS-Verbindung nur bei Bedarf einrichten.",
adminWsManageLead: "Zugriffsregeln, Website-Ankündigungen, Sprachtransport, Skin-Store und Browsersitzungen.",
@@ -156,7 +162,9 @@ const ru = {
updateReleaseNotes: "Примечания к релизу",
updateErrorChecksum: "Контрольная сумма отсутствует или не совпадает; пакет отклонён.", updateErrorArchive: "Пакет не прошёл проверку безопасной распаковки.",
updateErrorDownload: "Не удалось скачать или сохранить официальный ресурс релиза.", updateErrorPackage: "Пакет не соответствует выбранному стабильному релизу.",
updateErrorApply: "Обновление не удалось; предыдущая версия восстановлена.", updateErrorInterrupted: "Обновление прервано до подтверждения завершения.",
updateErrorApply: "Обновление не удалось; проверьте журналы.", updateErrorInterrupted: "Обновление прервано до подтверждения завершения.",
updateErrorRollbackFailed: "Обновление не удалось, и автоматический откат тоже не удался. Восстановите предыдущую версию вручную из резервной копии.",
updateErrorSwap: "Не удалось заменить файлы приложения; предыдущая версия восстановлена по возможности. Проверьте журналы.",
updateErrorInProgress: "Другая задача обновления уже выполняется.", updateErrorGeneric: "Не удалось завершить обновление; проверьте журналы.", updateStartedEvent: "Обновление начато",
adminWsOverviewTitle: "Управление WebSpeak готово", adminWsOverviewLead: "Настройте доступ и гостевой интерфейс. Отдельное управление TS подключайте по мере необходимости.",
adminWsManageLead: "Политика доступа, объявления сайта, голосовой транспорт, магазин тем и сеансы браузеров.",
@@ -198,7 +206,9 @@ const ja = {
updateReleaseNotes: "リリースノート",
updateErrorChecksum: "チェックサムがないか一致しないため、パッケージを拒否しました。", updateErrorArchive: "パッケージは安全な展開チェックに合格しませんでした。",
updateErrorDownload: "公式リリースの資産をダウンロードまたは保存できませんでした。", updateErrorPackage: "パッケージが選択した安定版と一致しません。",
updateErrorApply: "更新に失敗し、以前のバージョンに戻しました。", updateErrorInterrupted: "完了確認前に更新が中断されました。",
updateErrorApply: "更新に失敗しました。ログを確認してください。", updateErrorInterrupted: "完了確認前に更新が中断されました。",
updateErrorRollbackFailed: "更新に失敗し、自動ロールバックも失敗しました。バックアップから以前のバージョンを手動で復元してください。",
updateErrorSwap: "アプリケーションのファイル置き換えに失敗しました。可能な範囲で以前のバージョンに戻しました。ログを確認してください。",
updateErrorInProgress: "別の更新タスクが実行中です。", updateErrorGeneric: "更新を完了できませんでした。ログを確認してください。", updateStartedEvent: "更新を開始",
adminWsOverviewTitle: "WebSpeak 管理を利用できます", adminWsOverviewLead: "まず接続方針と訪問者向け画面を管理します。必要な場合だけ、独立した TS 管理接続を設定します。",
adminWsManageLead: "アクセス方針、サイトのお知らせ、音声転送、スキンストア、ブラウザー接続。",