Upgrade to v1.13
v1.13 needs no data migration: dumps written by v1.12 load without conversion, and the client libraries are unchanged. What changes is startup. The server opens its listeners before any table has data, loads tables in the background, and exits with a status that tells a configuration error apart from everything else. If you are upgrading from before v1.12, also complete the v1.12 upgrade checklist first.
Gate traffic on readiness
The TCP port, and the HTTP port when enabled, now accept connections before the initial load. A source failure during that load is retried and no longer ends the process. So none of these mean the tables hold data any more:
- the port accepts connections
- the process is running
- the Docker container reports healthy (its health check probes
/health/live)
Point load balancers, orchestrators and startup scripts at readiness instead:
curl -fsS http://127.0.0.1:8080/health/ready # 200 when ready, 503 when not
mygram-cli --wait-ready INFO # blocks until INFO reports readyWhile the server is not ready, INFO adds a readiness_reason line and /health/ready returns the same text in reason. The four reasons for an incomplete initial load are listed in the Operations Guide.
Load initial data, or reads return 6029
SEARCH, COUNT, GET, FACET and the matching HTTP routes return 6029 for a configured table that has no initial data yet:
ERROR 6029 Table 'app_db.articles' has no initial data yet, please try again laterHTTP returns 503. In v1.12 the same reads answered from an empty index.
With auto_initial_snapshot: true, or a startup dump that loads, this lasts only until the load finishes. A deployment with auto_initial_snapshot: false, no startup dump and no operator action keeps returning 6029 for every table. Initialize each table with SYNC <table> or DUMP LOAD, or enable auto_initial_snapshot. SYNC Command describes the background loader, its retries, and what to do after startup_load_abandoned.
With several tables, each now loads from its own snapshot, one at a time in configuration order, so the tables can briefly represent different source positions until all of them have caught up.
Do not restart on exit status 78
The server exits with status 78 (EX_CONFIG) when a restart cannot help: an argument, configuration or table-initialization error, an attempt to run as root, a source authentication failure (2003), or a source requirement it diagnosed, such as missing grants. Every other startup failure exits with 1.
The systemd units in the deb and rpm packages and in support/systemd/ set RestartPreventExitStatus=78. A unit you wrote yourself with Restart=on-failure needs the same line, or it restarts every few seconds against an error that only an edit can fix:
[Service]
Restart=on-failure
RestartPreventExitStatus=78Scripts that compared the exit status with exactly 1 need to accept 78 as well. The full table is in Exit Status. The Docker entrypoint now exits with the status of its configuration test, so a configuration error ends the container with 78.
Check required-filter values
A required_filters value that cannot be converted to its type, such as value: "abc" with type: int, is now rejected with 1004 when the configuration loads. In v1.12 such a configuration started, the initial load failed, and replication rejected every row of the table. Now startup exits with 78. Validate the file before upgrading; this check does not connect to the source:
mygramdb -c /etc/mygramdb/config.yaml -tCheck the source before restarting
The new --check-source flag runs the -t validation, connects to the source once, and runs the startup source and table checks without starting the server:
mygramdb -c /etc/mygramdb/config.yaml --check-sourceIt prints Source meets the requirements and exits 0 when every check passes. Otherwise it writes one diagnostic per failing table and exits with the status startup would use. See Command-Line Options.
Other changes
- Read checks run in one order. Table reads check for a dump load (
6028), then the table name (4007), then an activeSYNC(6029), then missing initial data (6029). As a result,GETandFACETwith a bare table name under a multi-database configuration return4007even while that table is synchronizing, andSEARCHandCOUNTreturn6028during a dump load even for an unknown table. See Table availability. - Source error codes survive. A failed initial load or
SYNCreports the classified source error (2000,2001,2002,2004and so on) instead of5009. Code5009now marks only failures inside the loader. - The statement time limit is lifted per session. Each source connection runs
SET SESSION max_execution_time = 0(MySQL) orSET SESSION max_statement_time = 0(MariaDB), so a server-wide limit no longer cuts off a long snapshot. A limit that a proxy or account policy still enforces is reported as2001. See Session statement time limit. - Filter type mismatches list every column. The
2012message names each mismatched filter column of the table and ends with the filter type that would work. - Docker base image. The server image is based on Ubuntu 26.04. The
mygramdbuser keeps UID and GID 1000, so existing data volumes need no ownership change.
Rollout Checklist
- Run
mygramdb -c <config> -t, then--check-source, against the production configuration, and fix any1004from a required-filter value. - Switch load-balancer and orchestrator checks to
/health/readyorreadinessinINFO, not the open port, the process or the container health. - Add
RestartPreventExitStatus=78to any service unit you maintain yourself, and accept 78 in scripts that check the exit status. - Confirm each table gets initial data:
auto_initial_snapshot: true, a startup dump, or aSYNCyou run after start. - After restart, wait with
mygram-cli --wait-ready INFOand confirm replication advances.
See the v1.13.0 release notes for the full change list.