# Facing issue while exporting realm file in keycloak

**URL:** <https://forum.keycloak.org/t/facing-issue-while-exporting-realm-file-in-keycloak/26154>\
**Category:** Getting advice\
**Created:** [May 22, 2024, 6:44am UTC](https://forum.keycloak.org/t/facing-issue-while-exporting-realm-file-in-keycloak/26154 "2024-05-22T06:44:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanchantambe](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@kanchantambe](https://forum.keycloak.org/u/kanchantambe)\
**Post date:** [May 22, 2024, 6:44am UTC](https://forum.keycloak.org/t/facing-issue-while-exporting-realm-file-in-keycloak/26154/1 "2024-05-22T06:44:05Z")

</div>

Trying to export realm file from below link given on keycloak site.

> **[Importing and Exporting Realms - Keycloak](https://www.keycloak.org/server/importExport#:~:text=To%20export%20a%20realm%2C%20you,started%20when%20invoking%20this%20command.&text=To%20export%20a%20realm%20to,%2D%2Ddir%20option.&text=When%20exporting%20realms%20to%20a,for%20each%20realm%20being%20exported)**
>
> Keycloak is an open source identity and access management solution

Getting below error,

keycloak@e78:/opt/bitnami/keycloak/bin$ kc.sh export --file D:\checkRealm.json  
Appending additional Java properties to JAVA\_OPTS: ‘-Djdk.security.allowNonCaAnchor=true’  
ERROR: transport error 202: bind failed: Address already in use  
ERROR: JDWP Transport dt\_socket failed to initialize, TRANSPORT\_INIT(510)  
JDWP exit error AGENT\_ERROR\_TRANSPORT\_INIT(197): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:744]

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [May 22, 2024, 7:44am UTC](https://forum.keycloak.org/t/facing-issue-while-exporting-realm-file-in-keycloak/26154/2 "2024-05-22T07:44:39Z")

</div>

That’s because you’re trying to do it on the same machine with a running Keycloak (or you have something else running on the ports Keycloak needs).
