I have a dataset that has been "locked" for over 24 hours. The guides say to "remove the lock". Is it as simple as deleting that line in the database (database table datasetlock)?
Then the instructions say to restart the application server - I assume this means payara?
Yes, the application server is Payara.
I'm surprised a restart is required. I don't see anything about this at https://guides.dataverse.org/en/5.14/admin/troubleshooting.html#a-dataset-is-locked-and-cannot-be-edited-or-published
And no, you shouldn't delete from the database directly. You should use the API. Please see https://guides.dataverse.org/en/5.14/api/native-api.html#dataset-locks
@Philip Durbin
If a dataset has been in this state for a long period of time, for hours or longer, it is somewhat safe to assume that it is stuck (for example, the process may have been interrupted by an application server restart, or a system crash), so you may want to remove the lock (to be safe, do restart the application server, to ensure that the job is no longer running in the background) and advise the user to try publishing again
Thanks for the API hint..... I hadn't seen that.
Huh. If it were a snake, it would have bit me. :snake:
Now, @Philip Durbin is there something on that Troubleshooting link that pointed back to the API? I don't see that (at least this :snake: )
@Sherry Lake not that I see. Want to make a pull request? :grinning:
Will do after I unlock and remove 1000+ files from a dataset :melt:
Last updated: Oct 30 2025 at 06:21 UTC