Cannot register the provided deployment, because it conflicts with the uri of an already registered deployment.In Restate deployments have a unique uri/arn and are immutable, thus it’s not possible to discover the same deployment twice.
Make sure, when updating a deployment, to assign it a new uri/arn.You can force the override using the "force": true field in the discover request, but beware that this can lead in-flight invocations to an unrecoverable error state.See the versioning documentation for more information.
Cannot propagate deployment/service metadata to Restate services. If you see this error when starting Restate, this might indicate a corrupted Meta storage.We recommend wiping the Meta storage and recreating it by registering deployments in the same order they were registered before.
Cannot register the newly discovered service revision in the provided deployment, because it conflicts with an already existing service revision.When implementing a new service revision, make sure that:
The service type is the same as the previous revision.
The new revision contains at least all the handlers of the previous revision.
The provided subscription is invalid. Subscriptions should have:
A source field in the format of kafka://<CLUSTER_NAME>/<TOPIC_NAME>. When registering, the Kafka cluster should be configured in the Restate configuration.
A sink field in the format of service://<service_NAME>/<HANDLER_NAME>. When registering, service and handler should be available already in the registry, meaning they have been previously registered.
Additional constraints may apply depending on the sink service type.
Please look at the Kafka documentation (for TypeScript and Java) for more details on subscriptions and event handlers.
Trying to open meta storage directory, configured via meta.storage_path, which contains incompatible data. This indicates that your data was written with a different Restate version than you are running right now.Suggestions:
Up/Downgrade your Restate server to the requested version.
Migrate your data to the requested version by running the migration scripts.
Wipe your meta storage directory to start afresh via rm -rf <BASE_DIR>/<NODE_NAME>/local-metadata-store.
Configure a different meta storage directory via meta.storage_path.
Non-empty meta storage directory, configured via meta.storage_path, is missing the version file. This indicates data corruption or that the data has been written with an incompatible Restate version < 0.8.Suggestions:
Wipe your meta storage directory to start afresh via rm -rf <BASE_DIR>/<NODE_NAME>/local-metadata-store.
Configure a different meta storage directory via meta.storage_path.
Trying to register a service endpoint whose supported service protocol versions is incompatible with the server. This indicates that you have to upgrade your server to make it work together with the deployed SDK.Suggestions:
Check the compatibility matrix between SDK and server versions
Try upgrading to a server version which is compatible with your SDK
Try using an SDK version which is compatible with your server
Received a bad service discovery response from the specified service endpoint. This indicates that you are trying to register a service endpoint with an incompatible server.Suggestions:
Check the compatibility matrix between SDK and server versions
Either deploy a server version which is compatible with your SDK
Or use an SDK version which is compatible with your server
Service discovery response failed, and the server may have responded in HTTP1.1.
This can happen when discovering locally running dev servers from Faas platforms
eg wrangler dev. FaaS platforms in generally will support HTTP2, however, so
this is only a local development concern.You can try to discover the endpoint with --use-http1.1 when working
with these local dev servers. This should not be needed in production.
The service discovery response suggested that the SDK is serving in
bidirectional protocol mode, but discovery is going over a protocol that does
not support it (currently only Lambda).Lambda endpoints do not support the bidirectional protocol mode and should be
configured to announce themselves as being in request-response mode upon
discovery.
Cannot update the provided deployment with the discovered metadata, because the new metadata is insufficiently similar to the old.When updating a deployment, make sure that:
All services have the same type as they did in the previous deployment.
All services contain at least all the handlers that they did in the previous deployment.
The updated deployment contains at least all the services that it previously did.
The updated deployment has exactly the same supported protocol versions, which generally means you want to use the same SDK minor version.
Cannot force-add the provided URI/ARN as a new deployment, because two or more existing deployments use this URI.Generally Restate enforces that there is only one deployment for a given destination (a HTTP URI or Lambda ARN). This means
that redicovering the same destination requires a force flag. Adding a deployment in force mode instructs Restate to replace the existing deployment
with that destination, with the discovered metadata. This relies on there being an unambiguous deployment to replace.When using the PUT /deployments/{deployment_id} API to update a deployment in place, it is possible to create two deployments that have the same destination.
This is intended to be a temporary measure to fix failing invocations on a draining deployment. While in this state, it is not possible to force deploy that same destination.
Instead, one of the two deployments must be deleted (DELETE /deployments/{deployment_id}) so that there is an unambiguous deployment to replace.See the versioning documentation for more information.
The invocation response stream was aborted due to the timeout configured in worker.invoker.abort_timeout.
This timeout is fired when Restate has an open invocation, and it’s waiting only for response messages, but no message is seen for the configured time.Suggestions:
Check for bugs in your code. Most likely no message was sent to Restate because your code is blocked and/or reached a deadlock.
If your code is supposed to not send any message to Restate for longer than the configured timeout, because for example is doing a blocking operation that takes a long time, change the configuration accordingly.
Cannot start Restate because the configuration cannot be parsed. Check the configuration file and the environment variables provided.For a complete list of configuration options, and a sample configuration, check https://docs.restate.dev/operate/configuration
The invocation failed because Restate received a message from a service larger than the worker.invoker.message_size_limit.Suggestions:
Check in your code whether there is a case where a very large message can be generated, such as a state entry being too large, a request payload being too large, etc.
Increase the limit by tuning the worker.invoker.message_size_limit config entry, eventually tuning the memory of your operating system/machine where Restate is running.
Failed starting process because it could not bind to configured address.
This happens usually if another process has already bound to this address.Suggestions:
Select an address that is free.
Stop the process that has bound to the specified address.
Make sure you have the permissions to bind to the configured port. Some operating systems require admin/root privileges to bind to ports lower than 1024.
A retry-able error was received from the handler while processing the invocation.
Restate will soon retry executing the invocation, replaying from the point where it left.Suggestions:
Check the service logs to get more info about the error cause, like the stacktrace.
Trying to open worker storage directory, configured via worker.storage_rocksdb.path, which contains no storage format version information. This indicates data corruption or that the data has been written with an incompatible Restate version < 0.8.Suggestions:
Wipe your meta storage directory to start afresh via rm -rf <BASE_DIR>/<NODE_NAME>/db.
Configure a different worker storage directory via worker.storage_rocksdb.path.
No deployment found for the given service.
This might indicate that the service and/or the associated deployment was removed from the schema registry before starting to process the invocation.Check whether the deployment still exists using restate deployments list or by looking in the UI.
Protocol violation error.
This can be caused by an incompatible runtime and SDK version, or by an SDK bug.If the error persists, please file a bug report here: https://github.com/restatedev/restate/issues.
The service endpoint does not support any of the supported service protocol versions of the server.
Please make sure that the service endpoint’s SDK and the Restate server are compatible.Suggestions:
Register a service endpoint which uses an SDK which is compatible with the used server
Upgrade the server to a version which is compatible with the used SDK
The server cannot resume an in-flight invocation which has been started with a now incompatible service protocol version.
Restate does not support upgrading service protocols yet.Suggestions:
Downgrade the server to a version which is compatible with the used service protocol version
The server can’t establish an invocation stream because the SDK does not support the service protocol version negotiated during discovery.
This indicates that the SDK was updated to a new version that dropped support for old service protocol versions, but no re-registration was performed.Suggestions:
For in-flight invocations, downgrade the SDK version back to the previous version.
Journal mismatch detected when replaying the invocation: the handler generated a sequence of journal entries (thus context operations) that doesn’t exactly match the recorded journal.
This indicates that either the service code was changed (e.g. the service container image updated) without registering a new version of the service deployment, or some code within the handler is non-deterministic.To fix it:
Some common mistakes that lead to non-deterministic errors are:
Branch the execution flow based on some non-deterministic information, such as the elapsed time between now and another timestamp, or the result of an HTTP request that was not recorded using the ctx.run feature.
A parameter passed to a Context operation is non-deterministic, for example setting a state key using a random value or the current date-time.
Execute a sequence of Context operations, such as calling other services, while iterating over a data structure with non-deterministic iteration order (such as sets/maps/dictionaries).
The entry cannot be processed due to a failed precondition.
This entry, and all the subsequent received entries, have been discarded and Restate will retry executing the invocation from the last recorded entry.Entry preconditions are usually checked by the SDK.
If the error persists, please file a bug report here: https://github.com/restatedev/restate/issues.
The request submitted through the Context API to the given service handler cannot be processed, because the service handler doesn’t exist.Make sure the service/handler is registered, by using restate svc ls or through the UI:
If the service/handler is correctly registered, you can ignore this error as it’s a transient error, due to internal propagation of the cluster metadata.
If the service/handler is not registered, you must register it in order for this invocation to progress.
The service replied with Content Too Large/Payload Too Large.
If you deploy on a serverless platform like Vercel, this might indicate that you’re hitting the payload size limit imposed by service providers.Suggestions:
Check in your code whether there is a case where a very large message can be generated, such as a state being too large, a ctx.run result being too large, etc.
Ask the service provider to increase the limits, if possible.