Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create folder access-keys when initializing RODA for the first time #2992

Closed
hmiguim opened this issue Nov 8, 2023 · 0 comments · Fixed by #2993
Closed

Create folder access-keys when initializing RODA for the first time #2992

hmiguim opened this issue Nov 8, 2023 · 0 comments · Fixed by #2993
Assignees
Labels
Milestone

Comments

@hmiguim
Copy link
Member

hmiguim commented Nov 8, 2023

Steps to replicate:

  1. Startup RODA
  2. Login go to Adminstration > Users & groups
  3. Select a user
  4. Click on Edit

The following error will occur:

2023-11-08 10:58:57,406 [http-nio-8080-exec-2] ERROR org.roda.core.model.ModelService - Could not find any access token to list: Could not list contents of entity because it doesn't exist: /roda/data/storage/access-keys
org.roda.core.data.exceptions.NotFoundException: Could not list contents of entity because it doesn't exist: /roda/data/storage/access-keys
	at org.roda.core.storage.fs.FSUtils.listPath(FSUtils.java:452)
        (...)
Caused by: java.nio.file.NoSuchFileException: /roda/data/storage/access-keys
	at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(Unknown Source)
	at java.base/java.nio.file.Files.newDirectoryStream(Unknown Source)
	at org.roda.core.storage.fs.FSUtils.listPath(FSUtils.java:415)
	... 51 common frames omitted

Solution:

Create the folder access-keys during the first initialization of RODA storage

@hmiguim hmiguim added the bug label Nov 8, 2023
@hmiguim hmiguim added this to the 5.2.3 milestone Nov 8, 2023
@AntonioG70 AntonioG70 linked a pull request Nov 8, 2023 that will close this issue
@hmiguim hmiguim closed this as completed Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants