# DOI registration with Datacite does not work

**URL:** <https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342>\
**Category:** General Discussion\
**Created:** [5 February 2024 17:20 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342 "2024-02-05T17:20:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangyggesis](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/zhangyggesis/32/261_2.png) [@zhangyggesis](https://invenio-talk.web.cern.ch/u/zhangyggesis)\
**Post date:** [5 February 2024 17:20 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342/1 "2024-02-05T17:20:10Z")

</div>

Hallo All,

I am learning to use InvenioRDM together to register with DataCite.

I installed InvenioRDM, Option 1: Container install ([Build, setup & run - Turn-key research data management repository](https://inveniordm.docs.cern.ch/install/build-setup-run/#option-1-container-install)). I am able to start the docker image. I enabled DataCite in invenio.crg providing usename/password for Datacite test api.

However, after I published a record. I got the a Doi but that doi was NOT generated in test DataCite cite. Can anyone of you help me with this.

Thanks Yudong

---

<div class="post-metadata">

**Author:** ![nitarocc](https://invenio-talk.web.cern.ch/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@nitarocc](https://invenio-talk.web.cern.ch/u/nitarocc)\
**Post date:** [6 February 2024 10:06 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342/2 "2024-02-06T10:06:35Z")

</div>

Hello,  
did you enable the test mode, as described [here](https://inveniordm.docs.cern.ch/customize/dois/#mode-test-or-production)?  
Feel free to join our [chat channel](https://inveniordm.docs.cern.ch/develop/getting-started/help/): the creator of the DataCite integration are there and can answer questions.

---

<div class="post-metadata">

**Author:** ![zhangyggesis](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/zhangyggesis/32/261_2.png) [@zhangyggesis](https://invenio-talk.web.cern.ch/u/zhangyggesis)\
**Post date:** [6 February 2024 10:55 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342/3 "2024-02-06T10:55:33Z")

</div>

Hi nitarocc,

yes I enabled it my Datacite config is like this:

DATACITE\_ENABLED = True  
DATACITE\_USERNAME = “xxxx”  
DATACITE\_PASSWORD = “xxxx”  
DATACITE\_PREFIX = “10.4232”  
DATACITE\_TEST\_MODE = True  
DATACITE\_DATACENTER\_SYMBOL = “”  
DATACITE\_FORMAT = “{prefix}/inveniordm.{id}”

- the actual user name and password are replaced here with xxxx to not show them

is my config ok?

Best regards,

Yudong

---

<div class="post-metadata">

**Author:** ![nitarocc](https://invenio-talk.web.cern.ch/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@nitarocc](https://invenio-talk.web.cern.ch/u/nitarocc)\
**Post date:** [6 February 2024 12:18 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342/4 "2024-02-06T12:18:55Z")

</div>

Yes it looks ok, and [here](https://github.com/inveniosoftware/invenio-rdm-records/blob/master/invenio_rdm_records/services/pids/providers/datacite.py#L85) you can find where and now it is used. I would check logs/exceptions to see if something is wrong.

I would also suggest you to join Discord and ask there if others experienced a similar issue.

---

<div class="post-metadata">

**Author:** ![zhangyggesis](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/zhangyggesis/32/261_2.png) [@zhangyggesis](https://invenio-talk.web.cern.ch/u/zhangyggesis)\
**Post date:** [6 February 2024 14:38 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342/5 "2024-02-06T14:38:27Z")

</div>

## thanks for the information. when I start the docker and published a doi. but I got the following suspected errors.

## 172.18.0.1 - [06/Feb/2024:14:32:41 +0000] “POST /api/records/62ayp-4gs02/draft/actions/publish HTTP/1.1” 202 2385 “-” “curl/8.4.0” “-” 3fe615a5201d5694df8dcd496982429f 1707229961.106 0.506 - 3 2024/02/06 14:33:25 [crit] 28#28: \*41 SSL\_read() failed (SSL: error:1C80006C:Provider routines::invalid aad error:0A0C0103:SSL routines::internal error) while waiting for request, client: 172.18.0.1, server: 0.0.0.0:443 2024/02/06 14:33:25 [crit] 28#28: \*42 SSL\_read() failed (SSL: error:1C80006C:Provider routines::invalid aad error:0A0C0103:SSL routines::internal error) while waiting for request, client: 172.18.0.1, server: 0.0.0.0:443 2024/02/06 14:33:25 [crit] 28#28: \*43 SSL\_read() failed (SSL: error:1C80006C:Provider routines::invalid aad error:0A0C0103:SSL routines::internal error) while waiting for request, client: 172.18.0.1, server: 0.0.0.0:443

do you know what are the errors?

Best regards,

Yudong

---

<div class="post-metadata">

**Author:** ![nitarocc](https://invenio-talk.web.cern.ch/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@nitarocc](https://invenio-talk.web.cern.ch/u/nitarocc)\
**Post date:** [6 February 2024 16:54 UTC](https://invenio-talk.web.cern.ch/t/doi-registration-with-datacite-does-not-work/342/6 "2024-02-06T16:54:35Z")

</div>

I have never seen such error, it looks like very much related to your network or infrastructure and not to InvenioRDM. I would check if your Docker network can connect to the outside networks and perform requests.
