Stream: troubleshooting

Topic: Datacite issue


view this post on Zulip Hansen C. (Nov 01 2023 at 21:00):

Dear DV experts:

We installed dataverse and used to be able to create datasets with the FAKE doi setting. But after configuring with our datacite account, I got a error message after clicking on "save dataset":

XML Parsing Error: not well-formed
Location: https://dataverse.fgcu.edu/dataset.xhtml?persistentId=doi%3A10.60863%2FSF%2FJ4JRE9&version=DRAFT
Line Number 226, Column 17:
</div><!DOCTYPE html>
----------------^

I have checked the domain.xml settings and did not find obvious problems as shown below.
-Ddataverse.pid.datacite.mds-api-url=https://mds.datacite.org
-Ddataverse.pid.datacite.username=OUR.ACCOUNT
-Ddataverse.pid.datacite.rest-api-url=https://api.datacite.org
curl http://localhost:8080/api/admin/settings/:Authority -w "\n"
{"status":"OK","data":{"message":"10.60863"}}
curl http://localhost:8080/api/admin/settings/:DoiProvider -w "\n"
{"status":"OK","data":{"message":"DataCite"}}
curl http://localhost:8080/api/admin/settings/:Protocol -w "\n"
{"status":"OK","data":{"message":"doi"}}

Here is the server log:
server.log

I have tested our Datacite account on https://doi.datacite.org/ and can successfully log in, but there is no record of any DOI. I also checked the PostgreSQL database and nothing was saved after clicking on "save dataset". We installed PostgreSQL on one server and everything else on another server. I have checked both servers. They have no problems connecting to each other and I have no problems creating new sub-dataverse. I ran out of ideas of where the "Username may not be null" error comes from. The one thing I am not sure is that we moved both servers and got new IP addresses for them after installation. Could this cause the problem? Thank you in advance for reading and helping.

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:04):

Hi! What version of Dataverse are you running, please? It looks like 5.13?

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:05):

I see you found the "Username may not be null" error already.

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:06):

Here's the line from your logs: https://github.com/IQSS/dataverse/blob/v5.13/src/main/java/edu/harvard/iq/dataverse/DataCiteRESTfullClient.java#L53

view this post on Zulip Hansen C. (Nov 01 2023 at 21:11):

Hi Philip, Yes, it is 5.13. https://dataverse.fgcu.edu/.

view this post on Zulip Hansen C. (Nov 01 2023 at 21:14):

It seems the DataCiteRESTfullClient did not pick up our Datacite username.

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:14):

I'm looking at https://guides.dataverse.org/en/5.13/installation/config.html#doi-username

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:14):

It seems to want -Ddoi.username=YOUR_USERNAME_HERE

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:16):

But you have -Ddataverse.pid.datacite.username=OUR.ACCOUNT?

view this post on Zulip Hansen C. (Nov 01 2023 at 21:17):

I got https://guides.dataverse.org/en/latest/installation/config.html?highlight=datacite#dataverse-pid-datacite-username

view this post on Zulip Hansen C. (Nov 01 2023 at 21:18):

I though Ddoi was replaced. Do I still need it?

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:19):

Maybe, but "latest" is for 6.0. The link I posted is for 5.13.

view this post on Zulip Hansen C. (Nov 01 2023 at 21:20):

Thanks a lot! I think that's the reason.

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:20):

That is, "latest" is for the latest release, which is currently 6.0. :grinning:

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:20):

Sure! Hope it helps.

view this post on Zulip Hansen C. (Nov 01 2023 at 21:21):

I installed Dataverse in July and did not see 6.0. Where can I find it?

view this post on Zulip Hansen C. (Nov 01 2023 at 21:22):

Thank you so much! It puzzled me for a week. You saved my life :grinning_face_with_smiling_eyes:

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:23):

Ha! Good!

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 01 2023 at 21:23):

6.0 is here: https://github.com/IQSS/dataverse/releases/tag/v6.0

view this post on Zulip Hansen C. (Nov 01 2023 at 21:24):

Got it. Have a great evening!


Last updated: Oct 30 2025 at 06:21 UTC