IQSS / dataverse-docker

Dataverse 6.2 on Docker with integrated services called "Archive in a box" and could be used both as demo and production system and easily integrated with other services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot add single files (zips are working)

schorcht-ioer opened this issue · comments

Dear Devs,

on the current version (5.11.1) I cannot add files to a existing dataset or when creating a new dataset. Strangely, however, zipped files can be added. With earlier versions (e.g. 5.2) unzipped files could be added without problems.

Since I am the only one reporting this error, I have a hunch that it might be the Windows Docker. At least I tested it on two Windows machines and got the same error. On both machines, I set up a test environment on localhost (without customization).

The concrete problem is that no checksum is created after adding:
no-checksum

The correspondening error is:
2023-02-02 18:42:43 [#|2023-02-02T17:42:43.883+0000|WARNING|Payara 5.2021.1|edu.harvard.iq.dataverse.util.FileUtil|_ThreadID=192;_ThreadName=http-thread-pool::http-listener-1(2);_TimeMillis=1675359763883;_LevelValue=900;| 2023-02-02 18:42:43 Could not calculate MD5 signature for the new file dummy_test_data.txt|#]

I also tried to change the checksum algorithm to sha-1, without success.

When I try to save the added file (without checksum), I get the following error:
error

2023-02-02 18:42:45 [#|2023-02-02T17:42:45.592+0000|WARNING|Payara 5.2021.1|edu.harvard.iq.dataverse.ingest.IngestServiceBean|_ThreadID=194;_ThreadName=http-thread-pool::http-listener-1(4);_TimeMillis=1675359765592;_LevelValue=900;| 2023-02-02 18:42:45 Failed to save the file, storage id local://18613393da9-0d063940b310 (/data/temp/18613393da9-0d063940b310)|#] 2023-02-02 18:42:45 2023-02-02 18:42:45 [#|2023-02-02T17:42:45.594+0000|WARNING|Payara 5.2021.1|edu.harvard.iq.dataverse.ingest.IngestServiceBean|_ThreadID=194;_ThreadName=http-thread-pool::http-listener-1(4);_TimeMillis=1675359765594;_LevelValue=900;| 2023-02-02 18:42:45 Failed to delete temp file /data/temp/18613393da9-0d063940b310|#]

Interestingly, the file exists at the specified path (data/temp/18613393da9-0d063940b310), but it does not seem to be accessible?

Furthermore, the following error is issued when adding a file (before the "could not calculate md5-error"):
2023-02-02 19:16:48 [#|2023-02-02T18:16:48.822+0000|SEVERE|Payara 5.2021.1||_ThreadID=193;_ThreadName=http-thread-pool::http-listener-1(3);_TimeMillis=1675361808822;_LevelValue=1000;| 2023-02-02 19:16:48 edu.harvard.hul.ois.jhove.JhoveException: /opt/payara/appserver/glassfish/domains/domain1/config/jhove.confUse -c to specify a configuration file. Path not found or not readable: 2023-02-02 19:16:48 at edu.harvard.hul.ois.jhove.JhoveBase.init(JhoveBase.java:201) ...

But this last error is also issued with the zip files, which can be added, as said.

Does anyone have any idea what the problem could be? :) Otherwise I would have to use an older version.
Thanks a lot, martin

Hi again,
I tested it on a vm with Ubuntu 22.10 and there it runs without problems :) So the error described before is probably due to the Docker Windows environment. Since we want to run dataverse on a red hat environment in the future anyway, this issue can be closed.