You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/maintenance-mode.mdx
+26-4
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,36 @@ title: Maintenance Mode
3
3
description: Learn about Clerk's Maintenance Mode.
4
4
---
5
5
6
-
**Maintenance Mode** is a special operational state designed to ensure minimal disruption to signed-in users during critical database upgrades or outages.
6
+
> [!IMPORTANT]
7
+
> Maintenance mode will be deprecated in 2025 as we upgrade our infrastructure.
8
+
9
+
Once or twice per year, Clerk undergoes maintenance on its infrastructure and enters **Maintenance Mode**. During this time, users who are already signed in will not be signed out, and will continue to have access to your app. However, new sign-ups, sign-ins and user mutations will return an error. **Maintenance Mode** is a special operational state designed to minimize disruption for signed-in users during critical database upgrades or outages.
7
10
8
11
## Production instances
9
12
10
-
Mutation methods (`POST`, `PATCH`, `PUT`, `DELETE`) will be rejected with a `503 Service Unavailable` status, along with an error message informing users that the system is temporarily unavailable. This includes all sign-up and sign-in attempts. Clerk's prebuilt components and the hosted Account Portal will display errors for these requests.
13
+
Mutation methods (`POST`, `PATCH`, `PUT`, `DELETE`) will be rejected with a `SystemUnderMaintenance` error. This includes all new sign-ups and sign-ins.
14
+
15
+
Active sessions, and session refresh requests **are not** affected. This applies to `GET` requests as well as session refresh requests ([`/touch`](/docs/reference/frontend-api/tag/Sessions#operation/touchSession) and [`/tokens`](/docs/reference/frontend-api/tag/Sessions#operation/createSessionToken) endpoints). Users who are already signed in will not be signed out and will continue to have access to your app. However, any mutations to their user or org data will return the same `SystemUnderMaintenance` error.
16
+
17
+
### API errors
18
+
19
+
All mutations from both the Frontend API and the Backend API will return the following `SystemUnderMaintenance` error.
20
+
21
+
```json
22
+
// 503 StatusServiceUnavailable
23
+
{
24
+
"shortMessage": "System under maintenance",
25
+
"longMessage": "We are currently undergoing maintenance and only essential operations are permitted. We will be back shortly.",
26
+
"code": "maintenance_mode"
27
+
}
28
+
```
29
+
30
+
### UI components
31
+
32
+
During **Maintenance Mode**, Clerk's UI components will display the following error for sign-ins, sign-ups, and all mutations to user and org data.
11
33
12
-
GET requests, as well as session refresh requests ([`/touch`](/docs/reference/frontend-api/tag/Sessions#operation/touchSession) and [`/tokens`](/docs/reference/frontend-api/tag/Sessions#operation/createSessionToken) endpoints), aren't affected. Users with active sessions (already signed in) will not be signed out, and will continue to have access to your app. However, any mutations to their user or org data will return the same `503`error.
34
+

13
35
14
36
## Development instances
15
37
16
-
During this period, development instances will experience full downtime. Users will be unable to sign up or in, and already signed-in users will be signed out.
38
+
For development instances, all requests will return a `SystemUnderMaintenance ` error, and the instance will be completely unavailable.
0 commit comments