Latest in AI
How to stop Gram 2.40.0 workers from failing at startup
Gram server 2.40.0 and tunnel 0.3.0 require an explicit partition. Check workload configuration, staff organization IDs and startup logs before rollout.
A Gram upgrade can look healthy at the dashboard while a worker or tunnel gateway refuses to start. On November 22, Speakeasy released Gram server 2.40.0 and tunnel 0.3.0. The new builds require an explicit partition, and the server release adds a separate startup check for the deployment's staff organization.
If your team runs the Gram processes, check each workload before upgrading its image. If you only use Speakeasy's hosted service or publish a toolset with its CLI, these are operator settings, not fields to add to your toolset.
Set the partition on each workload
GRAM_PARTITION accepts us or eu. It has no default. A missing, blank or unrecognized value prevents the updated processes from starting. The partition change applies to the server binary, which includes commands such as mcp, worker, streams and admin, as well as the separate Python streams service and tunnel gateway.
Start with the deployment you already operate. Check the environment attached to each container or service, including worker and admin jobs that have a separate definition from the web service. Keep the partition consistent for components that belong to the same deployment. A region name from your cloud provider is not one of the accepted values.
GRAM_ENVIRONMENT remains separate. Changing the partition label doesn't move a database, switch every integration endpoint or establish where data resides. Confirm the backing services independently if you're migrating between deployments.
Check the staff organization against the right database
For affected server commands outside local, pass the deployment's actual staff organization ID in GRAM_STAFF_ORGANIZATION_ID. The staff organization change validates the value against the database the process connects to. A display slug, an ID from another database or an organization missing from your staging seed can stop startup even when the partition is correct.
Have the deployment owner verify which organization is intended. Don't use an arbitrary organization to satisfy the check, and don't relabel a non-local deployment as local to skip it. If staging and production use separate databases, validate the ID within each.
Start a real staging process
gram version and help output still work without a partition. They can confirm the binary is present, but neither exercises the configuration check on a normal service startup. In a test deployment, run each workload with the same kind of configuration it will receive after rollout.
- Confirm the web server, worker and any separately deployed MCP, streams or tunnel processes reach their normal ready state.
- Check startup logs for the expected
gram.partitiontag. If you collect traces and metrics, verify the tag on the server and Python streams telemetry too. The gateway release describes log tagging, not a gateway traces or metrics pipeline. - Run one ordinary read-only operation against a staging toolset you control. Compare the result with the previous build. Keep the fixture free of production data and leave production routing unchanged until staging passes.
If a process exits before it connects to its database, look first for a partition error and inspect that workload's rendered configuration. If the log says the staff organization cannot be found, check the configured ID and database pairing. A healthy dashboard or a successful test from a different container doesn't resolve either failure.
I'm Paras Madan. I help AI teams write technical guides and product stories that show developers what changed and what to check before rolling it out. Book a 30-minute call.