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.
Hi! What version of Dataverse are you running, please? It looks like 5.13?
I see you found the "Username may not be null" error already.
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
Hi Philip, Yes, it is 5.13. https://dataverse.fgcu.edu/.
It seems the DataCiteRESTfullClient did not pick up our Datacite username.
I'm looking at https://guides.dataverse.org/en/5.13/installation/config.html#doi-username
It seems to want -Ddoi.username=YOUR_USERNAME_HERE
But you have -Ddataverse.pid.datacite.username=OUR.ACCOUNT?
I though Ddoi was replaced. Do I still need it?
Maybe, but "latest" is for 6.0. The link I posted is for 5.13.
Thanks a lot! I think that's the reason.
That is, "latest" is for the latest release, which is currently 6.0. :grinning:
Sure! Hope it helps.
I installed Dataverse in July and did not see 6.0. Where can I find it?
Thank you so much! It puzzled me for a week. You saved my life :grinning_face_with_smiling_eyes:
Ha! Good!
6.0 is here: https://github.com/IQSS/dataverse/releases/tag/v6.0
Got it. Have a great evening!
Last updated: Oct 30 2025 at 06:21 UTC