# User export jobs stuck in \`pending\` status

**URL:** <https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [October 26, 2023, 1:20pm UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453 "2023-10-26T13:20:35Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfrankel\_matatika](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rfrankel\_matatika](https://community.auth0.com/u/rfrankel_matatika)\
**Post date:** [October 26, 2023, 1:20pm UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/1 "2023-10-26T13:20:35Z")

</div>

User export jobs seem to be stuck in `pending` status over the last 12 hours (as of 2023-10-26T00:00:00Z).

```auto
POST https://{{domain}}/api/v2/jobs/users-exports
GET https://{{domain}}/api/v2/jobs/{{job_id}}

```

```json
{
    "type": "users_export",
    "status": "pending",
    "format": "json",
    "fields": [
        {
            "name": "user_id"
        },
        {
            "name": "email"
        },
        {
            "name": "email_verified"
        },
        {
            "name": "username"
        },
        {
            "name": "phone_number"
        },
        {
            "name": "phone_verified"
        },
        {
            "name": "created_at"
        },
        {
            "name": "updated_at"
        },
        {
            "name": "identities"
        },
        {
            "name": "app_metadata"
        },
        {
            "name": "user_metadata"
        },
        {
            "name": "picture"
        },
        {
            "name": "name"
        },
        {
            "name": "nickname"
        },
        {
            "name": "multifactor"
        },
        {
            "name": "last_ip"
        },
        {
            "name": "last_login"
        },
        {
            "name": "logins_count"
        },
        {
            "name": "blocked"
        },
        {
            "name": "given_name"
        },
        {
            "name": "family_name"
        },
        {
            "name": "last_password_reset"
        },
        {
            "name": "locale"
        }
    ],
    "created_at": "2023-10-26T12:40:21.753Z",
    "id": "job_hxoCJr9lcsuuRcbc"
}

```

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [October 26, 2023, 1:51pm UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/2 "2023-10-26T13:51:32Z")

</div>

Hey there @rfrankel_matatika !

Potentially, this can be related to a need to upgrade the auth0 node runtime version. Another community member reported issue with user import/export, please take a look at the provided solution proposition - [Error when using User Import/Export extension](https://community.auth0.com/t/error-when-using-user-import-export-extension/119445)

Thanks!

---

<div class="post-metadata">

**Author:** ![rfrankel\_matatika](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rfrankel\_matatika](https://community.auth0.com/u/rfrankel_matatika)\
**Post date:** [October 26, 2023, 2:05pm UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/3 "2023-10-26T14:05:55Z")

</div>

Hi @marcelina.barycka, I updated the runtime to Node 18 but no immediate change. I’ll try a couple more times in case it takes a little while to apply, but I would not have thought I need to change this as I am using the [management API endpoint](https://auth0.com/docs/manage-users/user-migration/bulk-user-exports) - not the import/export extension.

---

<div class="post-metadata">

**Author:** ![rfrankel\_matatika](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rfrankel\_matatika](https://community.auth0.com/u/rfrankel_matatika)\
**Post date:** [October 27, 2023, 9:30am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/4 "2023-10-27T09:30:13Z")

</div>

This looks to have resolved itself now, although I can’t say for sure if it was changing the Node runtime version that fixed it - I went to change back to 12 and the option is no longer there. 🤔

 ![image](https://global.discourse-cdn.com/auth0/original/3X/0/c/0c9b5662c9b78bd896d55fa4366146918639d261.png)

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [October 27, 2023, 9:38am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/5 "2023-10-27T09:38:59Z")

</div>

I’m happy it works now for you. I do not have node 12 on my tenant neither, looks like it’s being slowly deprecated.

---

<div class="post-metadata">

**Author:** ![pavol.soltes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pavol.soltes/32/42914_2.png) [@pavol.soltes](https://community.auth0.com/u/pavol.soltes)\
**Post date:** [November 2, 2023, 8:48am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/6 "2023-11-02T08:48:02Z")

</div>

I am facing the same issue. Changing node for extension didn’t work (also using the management api endpoint not extension)

---

<div class="post-metadata">

**Author:** ![ja6a-regnosys](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ja6a-regnosys/32/52199_2.png) [@ja6a-regnosys](https://community.auth0.com/u/ja6a-regnosys)\
**Post date:** [November 3, 2023, 1:36pm UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/7 "2023-11-03T13:36:35Z")

</div>

We have been facing user export job errors for the past week. We don’t use the extension - just the regular management API jobs user bulk export.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 6, 2023, 9:24am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/8 "2023-11-06T09:24:42Z")

</div>

Hi and thanks for letting us know! @pavol.soltes @ja6a-regnosys

Does the issue auto-resolved for you in time as well? Might be a temporary performance issue but still worth notifying engineering on our side.

Would exporting for each connection separately (by providing connection id to the request payload) improve the efficiency for you?

I believe the growing number of users in process of time may impact the performance of exporting them and breaking it down based on a connection may bring some release.

Does [calling](https://auth0.com/docs/api/management/v2/jobs/get-errors) the `GET {your_domain}/api/v2/jobs/{id}/errors` gives you any additional insight?

Thanks!

---

<div class="post-metadata">

**Author:** ![ja6a-regnosys](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ja6a-regnosys/32/52199_2.png) [@ja6a-regnosys](https://community.auth0.com/u/ja6a-regnosys)\
**Post date:** [November 6, 2023, 10:51am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/9 "2023-11-06T10:51:34Z")

</div>

In order to use the management API it is necessary to sent the connection id for the specific user database. We already send this id. Also we don’t keep hold of the job ids unfortunately. We get a 429 error - which isn’t a rate limit error IMO:

{  
“statusCode”: 429,  
“error”: “Too Many Requests”,  
“message”: “There are 10 active export users jobs, please wait until some of them are finished and try again”  
}

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 6, 2023, 11:04am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/10 "2023-11-06T11:04:16Z")

</div>

Alright, thanks for your feedback @ja6a-regnosys !

Just on a side note, when exporting users with the Management API, you can omit connection\_id property so that all tenant members will be returned. On the other hand, to import users, the connection\_id is indeed necessary.

The error message says that there were already 10 hits to the `POST https://.auth0.com/api/v2/jobs/users-exports` API. Each request to this endpoint is considered a job. At least one of these jobs needs to be completed to run a new one.

---

<div class="post-metadata">

**Author:** ![rfrankel\_matatika](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rfrankel\_matatika](https://community.auth0.com/u/rfrankel_matatika)\
**Post date:** [November 6, 2023, 5:56pm UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/11 "2023-11-06T17:56:13Z")

</div>

FWIW, we have still been running into this issue a couple of times over the last week, but usually a retry after an hour or so solves it (at the time of the original post, it did not work at all over about 24 hours).

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 7, 2023, 9:07am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/12 "2023-11-07T09:07:31Z")

</div>

Thanks @rfrankel_matatika ! -

After 24 hours all job-related data is automatically deleted which clears the line.

The conclusions are -  
-The process may take some time, especially when the number of users are bigger.  
-Its better the recheck the job status after some time instead of resending multiple times the same `POST` job request (because this creates each time a new job, the line grows).

---

<div class="post-metadata">

**Author:** ![ja6a-regnosys](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ja6a-regnosys/32/52199_2.png) [@ja6a-regnosys](https://community.auth0.com/u/ja6a-regnosys)\
**Post date:** [November 7, 2023, 9:49am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/13 "2023-11-07T09:49:06Z")

</div>

> [@rfrankel\_matatika](#):
>
> at the time of the original post, it did not work at all over about 24 hour

Still think it might be a problem on the Auth0 side. More than one customer suddenly started experiencing problems in the same area at the same time out of the blue.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 8, 2023, 8:48am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/14 "2023-11-08T08:48:19Z")

</div>

@ja6a-regnosys The incident is reported internally and I will post here any additional information once received.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 9, 2023, 9:27am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/16 "2023-11-09T09:27:11Z")

</div>

Hi @rfrankel_matatika @ja6a-regnosys @pavol.soltes -  
Just got internal feedback -  
For the period of time, the exports users worker was overloaded by a large number of exports causing delays but at the same time, the engineering team confirms that there are no anomaly observed for the service.

So apologies for the inconvenience caused by delays and thanks for your patience! For the future, If your subscription allows you to submit a support ticket, there is an option to speed the process up.

---

<div class="post-metadata">

**Author:** ![rfrankel\_matatika](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rfrankel\_matatika](https://community.auth0.com/u/rfrankel_matatika)\
**Post date:** [November 9, 2023, 11:29am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/17 "2023-11-09T11:29:11Z")

</div>

@marcelina.barycka Thanks for the follow-up! 🙂

---

<div class="post-metadata">

**Author:** ![ja6a-regnosys](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ja6a-regnosys/32/52199_2.png) [@ja6a-regnosys](https://community.auth0.com/u/ja6a-regnosys)\
**Post date:** [November 13, 2023, 10:12am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/18 "2023-11-13T10:12:56Z")

</div>

Happening again this morning.

---

<div class="post-metadata">

**Author:** ![ja6a-regnosys](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ja6a-regnosys/32/52199_2.png) [@ja6a-regnosys](https://community.auth0.com/u/ja6a-regnosys)\
**Post date:** [November 15, 2023, 9:43am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/19 "2023-11-15T09:43:01Z")

</div>

I am following up with support and have a ticket. I fear it has gone cold though. Just to add I can confirm that my jobs were also being stuck in ‘pending’.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 29, 2023, 9:43am UTC](https://community.auth0.com/t/user-export-jobs-stuck-in-pending-status/119453/20 "2023-11-29T09:43:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
