
Jack,
In general, several things have to be correctly configured and running for MDC to work:
It may be that DataCite Commons also has delays in how frequently it updates – I haven’t checked, but I believe they only expect complete monthly reports from some sources and so may only be updating their display monthly. If everything else is working, that might be a question for DataCite.
Nominally, if counter_daily.sh is being run, the local MDC counts in Dataverse should be updating daily. If that’s true, you can also check the counter_processor logs to see if the call to DataCite is being made and didn’t have an error. The cal to push the report to DataCite uses their API. You should also be able to use the GET equivalent of that to retrieve the report from DataCite to confirm it.
(If the report you’ve included is what is getting produced, it looks like you’ve got counter_processor configured to process June 2023 repeatedly and not to do the current month – see the counter_daily.sh script for how the date gets set to be the current month/day.)
Note that there have been updates to counter_processor and Dataverse over time to handle large log files better and to fix some bugs too.
Hope that helps,
--Jim
From: dataverse...@googlegroups.com <dataverse...@googlegroups.com>
On Behalf Of Data CUHK
Sent: Friday, August 7, 2026 5:24 AM
To: Dataverse Users Community <dataverse...@googlegroups.com>
Subject: [Dataverse-Users] Re: MDC fails to update usage metrics to DataCite Commons (Dataverse v5.10.1)
Update:
It seems that the main.py of counter processor keeps generating the same make-data-count-report.json, but I couldn't locate the script that generates this JSON file.
Jack

On Friday, August 7, 2026 at 3:08:26 PM UTC+8 Data CUHK wrote:
Hi everyone,
I have obtained the Json Web Token from DataCite (stored in secrets.yaml, referenced as a string-type parameter in config.yaml) and set "upload_to_hub" to true.
But when I checked the DataCite commons profile after 24 hours, it still shows the same usage metrics (same views and downloads).
What could be missing here? Is there any verification I can do to see if the counter processor actually sending the correct info to DataCite?
Thanks,
Jack
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dataverse-commu...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/dataverse-community/22f389ac-1c5f-4f7a-a289-e52c65777498n%40googlegroups.com.



That exception is ~expected – you’re processing this month and it’s not over.
Note that if you change config.yaml, you need to update it every month. The counter_daily.sh script handles that automatically by getting the current date and finding the current month/year every time it runs. That said, setting the date yourself would be the way to process past months – as long as ou have the original logs, you can process any past months that haven’t been reported.
-- Jim
From: dataverse...@googlegroups.com <dataverse...@googlegroups.com>
On Behalf Of Data CUHK
Sent: Monday, August 10, 2026 12:02 AM
To: Dataverse Users Community <dataverse...@googlegroups.com>
Subject: Re: [Dataverse-Users] Re: MDC fails to update usage metrics to DataCite Commons (Dataverse v5.10.1)
Update:
I edited the config.yaml and changed the year_month to 2026-08:

An updated "make-data-count-report.json" (2026-08) is generated, but there is an exception in the JSON file, which was not seen in the old one (2023-06):


To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/66792c50-1b37-4b5e-9026-6854d100cbc6n%40googlegroups.com.
Some notes about your emails:
Dataverse automatically creates the MDC logs of you have MDCLogging enabled. That happens regardless of whether you run counter_processor (and is also independent of whether you display the MDC counts.
When you run counter-processor, it reads the logs, creates a report and sends the results both to Dataverse and, if configured, to DataCite. Thus you’ll only see updates to the counts in Dataverse when counter-processor runs (and runs for the current date).
MDC values are usually much smaller than the local download counts as MDC ignores counts by known robots and counts multiple downloads of one item with a few seconds as one count, etc. A low MDC count could also indicate that counter-processor didn’t run for all months. That sounds like your issue as DataCite doesn’t have reports after 2023. Dataverse has MDC APIs that report by month which would allow you to see if there are many months with 0 counts.
Works counts are (I assume) from the individual DOIs being registered and is not connected to MDC/counter-processor at all.
-- Jim
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/c4fd557d-6fe1-4185-b8eb-1be4bc2d11b9n%40googlegroups.com.
The raw daily logs that get processed are stored in whatever directory you assign for the :MDCLogPath setting (e.g. an mdc subdir below where Payara’s server.log sits). If you have those logs, you have all you need to report.
Counter-processor creates reports that it stores wherever the output_file is set in its config.yaml file. In my case, that’s tmp/make-data-count-report so it is within the counter-processor directory tree. It’s possible that’s normally set to /tmp/make-data-count-report – the global temp directory which may get cleared periodically.
In general, those reports aren’t needed after they’ve been created, as the counter-daily script uses them immediately to send results to Dataverse and DataCite.
If you need to recreate/resend a given month, I believe you can edit the state file to remove that month. (I don’t think you have to delete the corresponding sqlite3 file, but I think you can. I think you can also just decrement the lastdayprocessed in the state file by 1 to make it only reprocess the last day (getting all the other days from the sqlite3 file). The last day’s report is cumulative for the month, so just reporocessing the last day and resending the report is all that’s needed to update Dataverse and DataCite.
Hope that helps,
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/fe6f7bd1-6f97-45c0-800b-a83d414ebb60n%40googlegroups.com.