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

Problems loading custom metadata using init.d script #76

Open
vera opened this issue Nov 17, 2022 · 3 comments
Open

Problems loading custom metadata using init.d script #76

vera opened this issue Nov 17, 2022 · 3 comments

Comments

@vera
Copy link

vera commented Nov 17, 2022

I have tried to load custom metadata as described in https://github.com/IQSS/dataverse-docker#custom-metadata-support however the custom metadata blocks are not showing up in the UI.

E.g. I have uncommented the line CESSDA=True in .env and run docker-compose up but it does not appear in the UI.

To debug, I have edited init.d/1002-custom-metadata.sh to write the output of curl http://localhost:8080/api/admin/datasetfield/load ... to a file. This is the output:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Payara Server  5.2021.1 #badassfish - Error report</title>
		<style type="text/css">
			<!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}-->
		</style>
	</head>
	<body>
		<h1>HTTP Status 404 - Not Found</h1>
		<hr/>
		<p><b>type</b> Status report</p>
		<p><b>message</b>Not Found</p>
		<p><b>description</b>The requested resource is not available.</p>
		<hr/>
		<h3>Payara Server  5.2021.1 #badassfish</h3>
	</body>
</html>

Am I missing something? Thanks.

@4tikhonov
Copy link
Contributor

HI @vera, you should do it from inside of running Dataverse docker container. Outside curl requests to change metadata schema aren't allowed.

@vera
Copy link
Author

vera commented Nov 21, 2022

Shouldn't the init script run it in the correct container automatically? To be clear, I didn't manually run the curl request, I just ran docker-compose up

@4tikhonov
Copy link
Contributor

Yes, if it will copied in init.d folder, please check the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants