Export Endpoint /admin/v1/export throws Internal Server Error
Hello Guys,
Im trying to export all data from cloud Zitadel instance. I followed the steps in the documentation https://zitadel.com/docs/guides/migrate/sources/zitadel#source-system
I tried it a few days ago and it worked fine, but now with the same parameters the endpoints return this error.
Can you please help me?
ZITADEL Docs
This guide explains how to migrate from ZITADEL, this includes
23 Replies
Hi @Doderich, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. Export Data :
Details the usage of the /admin/v1/export endpoint for exporting instance data from ZITADEL, which matches your use case. 2. Actions V2 - Getting "An internal error occurred" when searching executions :
Describes a scenario where internal errors occur in ZITADEL and discusses potential causes related to backend or database issues. Feel free to tag @Ask Inkeep with additional questions.
Details the usage of the /admin/v1/export endpoint for exporting instance data from ZITADEL, which matches your use case. 2. Actions V2 - Getting "An internal error occurred" when searching executions :
Describes a scenario where internal errors occur in ZITADEL and discusses potential causes related to backend or database issues. Feel free to tag @Ask Inkeep with additional questions.
I have been looking at this since this and can't figure out if I was doing something wrong, or if its broken suddenly.
Ok, could you take a guess when it will be working again?
No idea, Im not sure which version of v4 broke it, and I’ll have to look at the GitHub ticket the AI linked.
Maybe @Rajat could help. I hate pinging devs for help, but when you’re stuck you’re stuck.
hey @Larzous @Doderich this could be true BUT I need to check it first. May I know what version of zitadel are you on @Doderich ?.
Can you pls share the exact curl request you sent in
/admin/v1/exportIt was confirmed as broken and fixed. We are waiting on a release at this point — https://discord.com/channels/927474939156643850/927866013545025566/1421659222504112128
ah wow, let me get it in
Yeah, crunch was awesome to voice chat with me while he confirmed it was broken and then found it was already fixed.
oh wow
I have raised it internally tho, so it should be deployed soon
Ok that sounds good 👍 Im looking forward to it
Hey guys, do you have a idea when the deployment is through? Or do i need to update my cloud instance or something.
Im asking because i run in to the same error, when i try to export everything
Error:
or im I missing something?
hey @Doderich what does the logs say? How are you running this?
This is my whole script. already comfirmed that the token and domain are vaild
These are the logs
error: script "export:test" exited with code 1
➜ savvi-export git:(main) ✗ bun export:test
$ ENVIRONMENT=test bun run export.ts
Exporting data for test environment using .env.test...
Request URL:
OUR_ZITADEL_DOMAIN/admin/v1/export
Export failed: 36 | response_output: true
37 | })
38 | });
39 |
40 | if (!response.ok) {
41 | throw new Error(HTTP error! status: ${response.status} ${response.statusText} ${await response.text()});
^
error: HTTP error! status: 500 Internal Server Error {"code":13, "message":"An internal error occurred (QUERY-AG4gs)", "details":[{"@type":"type.googleapis.com/zitadel.v1.ErrorDetail", "id":"QUERY-AG4gs", "message":"An internal error occurred"}]}
at exportData (/Users/maltebudig/Repositories/savvi-export/export.ts:41:13)
error: script "export:test" exited with code 1@Dohvaken -- v4.3.0 says it fixes the issue. Is your issue after updating? I thought you were on cloud?
ok that explains why its not working yet the cloud instanzes are still at v4.2.2 is there a way to update them through the dsahboard?
im on prem
omg I pinged the wrong person -- my bad.
allgood
@Doderich ^^
is there a way to manually update the version on my cloudinstances?
@Rajat ^^
hey @Doderich you can do it when self hosted via changing the version on the dockerfile but no ways to do the sameon clpud
Ok but when will be the cloud instance be upgraded? Is it automatic or how does it work?
its automatic, that is the latest version is on
v4.4.x I belive