Problem with file storage using Dataverse v. 5.6

39 views
Skip to first unread message

ofuuzo ofuuzo

unread,
Aug 19, 2021, 8:12:50 AM8/19/21
to Dataverse Users Community

Hi,
I can't download or upload files after installation of v. 5.6.   We are using a single local filesystem at '/data2/dataverse-files' and not multiple stores.

I thought that dataverse will look for files in the directory defined by <dataverse.files.file.directory> /<Dataset authority>/<Dataset identifier>/<substring of the file storage identifier after the file://>

I have checked for file permission. I have manually undeploy the current war file, shut down payara, rm -rf  the /usr/local/payara5/domains/domain1/generated, /usr/local/payara5/domains/domain1/osgi-cache and /usr/local/payara5/glassfish/domains/domain1/lib/databases/ejbtimer directories, restart payara, and deploy again. No success.

I have the following jvm-options in domain.xml:
    <jvm-options>-Ddataverse.files.file.type=file</jvm-options>
    <jvm-options>-Ddataverse.files.file.label=file</jvm-options>
    <jvm-options>-Ddataverse.files.directory=/data2/dataverse-files</jvm-options>
    <jvm-options>-Ddataverse.files.file.directory=/data2/dataverse-files</jvm-options>

I have deleted and reconfigured them:
/usr/local/payara5/bin/asadmin delete-jvm-options "\-Ddataverse.files.file.label=file"
/usr/local/payara5/bin/asadmin delete-jvm-options "\-Ddataverse.files.file.type=file"
/usr/local/payara5/bin/asadmin delete-jvm-options "\-Ddataverse.files.directory=/data2/dataverse-files"
/usr/local/payara5/bin/asadmin delete-jvm-options "\-Ddataverse.files.file.directory=/data2/dataverse-files"

/usr/local/payara5/bin/asadmin create-jvm-options "\-Ddataverse.files.file.label=file"
/usr/local/payara5/bin/asadmin create-jvm-options "\-Ddataverse.files.file.type=file"
/usr/local/payara5/bin/asadmin create-jvm-options "\-Ddataverse.files.directory=/data2/dataverse-files"
/usr/local/payara5/bin/asadmin create-jvm-options "\-Ddataverse.files.file.directory=/data2/dataverse-files"

Cheers
Obi
 

James Myers

unread,
Aug 19, 2021, 8:26:13 AM8/19/21
to dataverse...@googlegroups.com

Obi,

I don’t immediately see anything wrong with your jvm options. Given that you can’t upload, I’d expect that the directory you specify doesn’t exist /can’t be written to. (If you could upload but not download, it would look like your file path has changed /the new path is OK but just different.)

 

To debug, I would definitely check the log for clues.

 

Other things I’d make sure of:

  Your file path is really absolute – at /data2/dataverse-files and not in a data2/Dataverse-files subdirectory?

  You’re checking the permissions to read/write there for the same user running payara/Dataverse (payara/Dataverse is running as the user you expect)?

 

-- Jim

--
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 on the web visit https://groups.google.com/d/msgid/dataverse-community/cd791880-b815-4241-8dbc-037693c076d7n%40googlegroups.com.

ofuuzo ofuuzo

unread,
Aug 19, 2021, 11:11:04 AM8/19/21
to Dataverse Users Community
Thanks Jim. It is very strange. I am running Dataverse as root and chmod  /data2/dataverse-files to 777 and it did not work.  Yes, the absolute path is /data2/dataverse-files.

I just grabbed a backup copy of 5.5/5.4 and perform the same upgrade operation to 5.6. Both are fine now. Strange!

Cheers
Obi
Reply all
Reply to author
Forward
0 new messages