Stream: containers

Topic: file not staged


view this post on Zulip Jutta Schnabel (Jan 11 2024 at 15:10):

Another PS: In the installation now when trying to upload a file through the web interface, the file is not staged (similar to the issue described here: https://groups.google.com/g/dataverse-community/c/7pbPBOnix7M/m/ZIznjSFqAwAJ), so no file upload is possible. Not sure if that is related?

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 11 2024 at 15:27):

Weird. Any errors in Payara's server.log? You could try docker logs dataverse-1 (I think it's dataverse-1. You can do a docker ps to get the name of the container.)

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 18:24):

Sorry, again missed the reply due to the move to the new channel, and thanks for the hint: it says "Temp directory is not configured."

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 18:24):

and before "Failed to create filesTempDirectory: /dv/temp"

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 18:34):

The /dv-folder exists but creating a subfolder is not permitted (also not manually). There is no /dv/temp.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 18:55):

Hmm, yes, that would explain why you can't upload files.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 18:56):

Can you mount /dv differently, with write permission?

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 18:56):

I'm not sure why you're seeing this. :thinking:

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:15):

I tried a chmod, but it is not permitted

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:24):

entered the container now as root, changed to write permissions on /dv and added a /temp, but now the new error is "Failed to process and/or save the file km3net_logo_trans.png; /dv/temp/tmp16526284070961205053upload"

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:31):

OK, now I manually created /dv/temp from root, changed permission to a+w, and now it works

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 19:31):

Oh, great!

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 19:32):

But what happens the next time you spin up Dataverse in Docker? You'd have to do those steps manually?

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:33):

I hope not :) Anyhow, with the changes from Oliver I try not to touch the containers again...

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:35):

Thanks again for the help!

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 19:35):

Sure. I wonder what's different about your setup. I'm on a Mac and it works fine. The test runners in GitHub Actions are Ubuntu and it works fine.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 19:37):

The main place where we're seeing problems in this area is Windows.

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:37):

I am not so deep into containers, so not sure where the permission problems come from

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 19:38):

Yeah, me neither. :sweat_smile:

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 19:39):

Could still hope that it's only an issue because there is something strange in my setup...

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 20:04):

well, the celebration was premature. Staging now works, but saving not - "Error. Failed to add files to dataset ..."

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 20:06):

The error: "java.lang.RuntimeException: Error creating temp directory" and "failed to save the file"

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 20:18):

Summary: After changing the permissions not only in /dv/temp but also for /dv to all, storage of the file works (in /dv/store). The java exception was caused by trying to upload a logo for the theme.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 20:23):

A theme for a collection/dataverse, I suppose.

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 20:29):

for the root dataverse, yes.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 20:30):

There are probably even more places where temp directories are created so we should fix this. :sweat_smile:

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 12 2024 at 20:31):

I'm hoping one of the people who know Docker better (Oliver or Guillermo) can help next week.

view this post on Zulip Jutta Schnabel (Jan 12 2024 at 20:33):

Thanks! So far we can live with the dataverse logo :wink:


Last updated: Oct 30 2025 at 05:14 UTC