mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5441] [Bug]: database disk image is malformed #3807
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3807
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @saraglamorous95-droid on GitHub (Jun 19, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5441
Describe the bug
im getting this error "Something went wrong Obtain (database disk image is malformed)"
after 3 days working with latest version after updating my panel from 2.8.11 to latest .
3 days working great and i can add and manage my inbound and clients but now i cant open this 2 sections but i can open other sections . only this 2 sections im getting the error
How to reproduce the problem
none
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.3.1
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 24
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
all of them
Is the panel behind a reverse proxy or CDN?
Yes — Cloudflare (proxied DNS)
Before submitting
@github-actions[bot] commented on GitHub (Jun 19, 2026):
The error "database disk image is malformed" is SQLite error code
SQLITE_CORRUPT(11). It is thrown by the SQLite library itself when it detects physical corruption in the database file at/etc/x-ui/x-ui.db. The panel surfaces it as the "Obtain" toast in the inbounds and clients controllers (internal/web/controller/inbound.golines 89 and 101,internal/web/controller/client.golines 82–96) whenever those DB reads fail. Other sections remain functional because they query different tables that happen to reside on uncorrupted pages.Common causes
Diagnostic steps
Run these while the service is stopped:
Recovery using the built-in tool
The panel ships
x-ui migrate-db --dump / --restore(internal/database/dump_sqlite.go). With the service stopped:If
--dumpalso fails (the corruption is too extensive for a SELECT-based read), thesqlite3CLI ships a lower-level recovery mode that bypasses B-tree errors:sqlite3is available on Ubuntu 24 viaapt install sqlite3if not already present.Information needed to investigate further
Please share the output of:
journalctl -u x-ui --since "6 hours ago" --no-pager(or the last ~200 lines from the panel log file if configured)df -h /etc/x-ui/— to confirm whether the disk was full at any pointls -la /etc/x-ui/— to show whether.db-walor.db-shmfiles are presentsqlite3 /etc/x-ui/x-ui.db "PRAGMA integrity_check;"— to show which pages or tables are affectedjournalctl -b -1 --no-pager | tail -50)This reply was generated automatically; a maintainer may follow up.
@saraglamorous95-droid commented on GitHub (Jun 19, 2026):
output you Requested :
"
tabase disk image is malformed
Jun 19 23:20:04 Fin /usr/local/x-ui/x-ui[1158411]: ERROR - start xray failed: database disk image is malformed
Jun 19 23:20:04 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - [POST /DGDSgdfhfhrt45754/panel/api/server/restartXrayService handler=controller.(*ServerController).restartXrayService server.go:243] There was an error when rebooting the Xray. Failed: database disk image is malformed
Jun 19 23:20:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:20:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:20:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:20:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:20:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:20:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:20:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:20:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:20:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:20:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:20:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:21:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:21:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:21:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:21:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:21:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:21:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:21:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:21:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:21:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:21:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:00 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:22:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:05 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:10 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:22:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:15 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:20 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:22:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:25 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:30 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:22:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:35 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:40 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:22:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:45 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:50 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - mtproto job: get inbounds failed: database disk image is malformed
Jun 19 23:22:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - add inbound traffic failed: database disk image is malformed
Jun 19 23:22:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - bump last online for connected clients failed: database disk image is malformed
Jun 19 23:22:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get clients last online failed: database disk image is malformed
Jun 19 23:22:55 Fin /usr/local/x-ui/x-ui[1158411]: WARNING - get all client traffics for websocket failed: database disk image is malformed
Jun 19 23:22:56 Fin systemd[1]: Stopping x-ui.service - x-ui Service...
Jun 19 23:22:56 Fin /usr/local/x-ui/x-ui[1158411]: INFO - WebSocket hub stopped
Jun 19 23:22:56 Fin x-ui[1158411]: 2026/06/19 23:22:56 Shutting down servers.
Jun 19 23:22:56 Fin systemd[1]: x-ui.service: Deactivated successfully.
Jun 19 23:22:56 Fin systemd[1]: Stopped x-ui.service - x-ui Service.
Jun 19 23:22:56 Fin systemd[1]: x-ui.service: Consumed 6h 21min 34.174s CPU time, 1005.9M memory peak, 0B memory swap peak.
-- Boot bc5a5ac435d145a0a3e483e8dd9d568d --
Jun 19 23:23:22 Fin systemd[1]: Started x-ui.service - x-ui Service.
Jun 19 23:23:22 Fin x-ui[814]: 2026/06/19 23:23:22 Starting x-ui 3.3.1
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Web server running HTTPS on [::]:2087
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test188 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test189 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test190 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test191 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test192 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test193 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test194 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test195 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test196 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test197 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test198 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test199 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like24 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like263 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like354 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test47 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test52 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test53 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test58 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test61 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test65 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test67 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test72 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test73 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test77 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test83 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test85 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test86 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test89 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test90 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test92 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test95 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test128 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test135 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test137 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test148 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test149 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test153 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test154 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test157 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test161 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test162 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test164 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test167 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test169 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test170 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test172 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test173 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test175 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test176 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test177 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test178 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test179 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test180 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test181 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test182 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test183 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test184 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test186 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test187 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Apple7 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Apple20 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User TestApple61 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User TestApple72 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User TestApple91 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like2 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like3 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like5 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like7 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User like11 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test200 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test201 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test202 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test203 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test204 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test205 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test206 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test207 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test208 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test209 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test210 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test211 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test212 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test213 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test214 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test215 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test216 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test217 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test218 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test219 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test221 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test222 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test223 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test224 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test225 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test226 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test229 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test231 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test233 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test234 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test235 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test236 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test237 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test239 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test250 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test251 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test252 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Testss511 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Testss512 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Testss514 due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test47- due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Mobalike11- due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - Remove Inbound User Test229- due to expiration or traffic limit
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: WARNING - XRAY: infra/conf: ====== SECURITY WARNING ======
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: WARNING - XRAY: infra/conf: ====== SECURITY WARNING ======
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: WARNING - XRAY: common/errors: The feature VMess (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible.
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: WARNING - XRAY: infra/conf: ====== SECURITY WARNING ======
Jun 19 23:23:23 Fin /usr/local/x-ui/x-ui[814]: WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
Jun 19 23:23:33 Fin /usr/local/x-ui/x-ui[814]: INFO - xray core supports the online-stats API; using connection-based onlines and access-log-free IP limit
Jun 19 23:31:48 Fin /usr/local/x-ui/x-ui[814]: WARNING - [POST /DGDSgdfhfhrt45754/panel/api/clients/update/Test261 handler=controller.(*ClientController).update client.go:159] Something went wrong Failed: database disk image is malformed
Jun 19 23:38:16 Fin systemd[1]: Stopping x-ui.service - x-ui Service...
Jun 19 23:38:16 Fin x-ui[814]: 2026/06/19 23:38:16 Shutting down servers.
Jun 19 23:38:16 Fin systemd[1]: x-ui.service: Deactivated successfully.
Jun 19 23:38:16 Fin systemd[1]: Stopped x-ui.service - x-ui Service.
Jun 19 23:38:16 Fin systemd[1]: x-ui.service: Consumed 1min 42.402s CPU time.
"
"
df -h /etc/x-ui/
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 38G 5.9G 30G 17% /
"
"
df -h /etc/x-ui/
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 38G 5.9G 30G 17% /
root@Fin:~# ls -la /etc/x-ui/
total 6472
drwxr-xr-x 2 root root 4096 Jun 19 23:38 .
drwxr-xr-x 103 root root 4096 Jun 19 06:55 ..
-rw-r--r-- 1 root root 1905032 Jun 19 23:38 system_metrics.gob
-rw-r--r-- 1 root root 557056 Jun 19 23:33 x-ui.db
-rw-r--r-- 1 root root 32768 Jun 19 23:38 x-ui.db-shm
-rw-r--r-- 1 root root 4120032 Jun 19 23:38 x-ui.db-wal
"
"
sqlite3 /etc/x-ui/x-ui.db "PRAGMA integrity_check;"
*** in database main ***
Tree 5 page 5: btreeInitPage() returns error code 11
Tree 6 page 6: btreeInitPage() returns error code 11
Error: stepping, database disk image is malformed (11)
"
@MHSanaei commented on GitHub (Jun 20, 2026):
@claude
@github-actions[bot] commented on GitHub (Jun 20, 2026):
Claude finished @MHSanaei's task in 2m 32s —— View job
Analysis
Root cause identified. The
.db-wal(4.1 MB) and.db-shmfiles in thels -laoutput are the smoking gun. SQLite's WAL mode accumulates writes in the WAL file and periodically checkpoints them into the main database. Two things conspired here:e079490commit switched the journal mode from WAL to DELETE (_journal_mode=DELETEininternal/database/db.go:889). When the panel started after the upgrade, SQLite had to checkpoint the large accumulated WAL into the main database file before it could switch modes. This requires reading the WAL and writing to pages in the main file.Consumed 6h 21min 34.174s CPU time, 1005.9M memory peak→ stopped by systemd, likely OOM). The result is partially-written pages 5 and 6 in the main.dbfile.The WAL files are still on disk because the switch to DELETE mode never completed — SQLite removes the WAL only after a clean checkpoint.
Important note on the built-in dump tool:
x-ui migrate-db --dump(internal/database/dump_sqlite.go) works by runningSELECT * FROM tablefor each table. Since pages 5 and 6 are the B-tree root pages of at least two tables (likelyinboundsand one traffic table), the dump will also return error code 11 for those tables. Do not rely on it alone.Recovery steps (service is already stopped per the logs)
Step 1 — try a forced WAL checkpoint first (sometimes enough if the WAL itself is intact):
If
integrity_checknow returnsok, skip to Step 4.Step 2 — low-level recovery using
.recover(bypasses B-tree page errors):.recoverscans all database pages at the raw level rather than traversing B-trees, so it can extract data from tables even when their root pages are corrupt.Step 3 — verify the recovered database:
If this returns
ok, proceed.Step 4 — replace the corrupted file:
Removing the
.db-waland.db-shmfiles is required — the recovered database was built fresh in DELETE journal mode and those stale WAL files would confuse SQLite on startup.If
.recoveralso fails (very unlikely for this class of corruption), try the built-in tool as a fallback for any tables it can read:Both
--dumpand--restoreflags are confirmed inmain.go(lines 493–495, 571–585).--outis required when using--restore.This reply was generated automatically; a maintainer may follow up.
@MHSanaei commented on GitHub (Jun 20, 2026):
e079490144