-
Notifications
You must be signed in to change notification settings - Fork 501
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
Handle Service #4569
Comments
Is it possible that the handle system has the landing page for the identifier configured to be the internal IP (aka - |
Are you talking about the settings in the config.dct? I contacted handle.net and they have verified that all the settings are correct on their end. They seem to think it is a setting in the application. |
I'm still trying to understand the problem. It sounds to me like the landing page for the identifier is set to an internal IP address (which that curl command should be able to confirm or not). If that's the case, I'd suspect that there's a dataverse setting for communicating with the handle system that's sending the internal address instead of the external address. But if the landing page for the identifier is set to the correct (publicly facing / external) URL, then trying to track that down wouldn't be likely to fix the problem. |
This is the URL it tries to resolve to when I click on a handle identifier in dataverse: |
It also tries to resolve to this once logged in. http://192.168.224.83/citation?persistentId=hdl:20.500.12122/NTS0L5 |
Results for: curl -I http://hdl.handle.net/${handle_identifier} HTTP/1.1 200 OK |
It sounds like either I'm vaguely surprised that there's no |
Okay, I checked the domain.xml, dataverse.siteUrl was missing so I added that but it is still using the internal IP address. |
This is what I have: -Ddataverse.fqdn=dataverse.sta.uwi.edu |
-Ddataverse.siteUrl=http://${dataverse.fqdn}:80 |
Does it still go to the internal IP address after an update to the dataset is published (or a new dataset is created)? BTW - if you're using the standard https / http protocols, I'd recommend leaving off the port numbers (they shouldn't be necessary). |
I just created a new dataset and the handle resolves to the correct thing: https://dataverse.sta.uwi.edu/dataset.xhtml?persistentId=hdl:20.500.12122/XLRSMA However, for already existing handles it still goes back to the internal ip address even after updating the dataset. |
I'm not sure if this helps, but that new dataset you created is redirecting (HTTP code 303) to port 80 and HTTP rather than HTTPS:
Since your HTTP certificate seems to be valid, you should probably use the HTTPS version of your site with no port, like this: -Ddataverse.siteUrl=https://dataverse.sta.uwi.edu @solhm or @4tikhonov might know how to fix some of these problems since they wrote a lot of the code in pull request #3826. |
Thanks @pdurbin that siteUrl setting works great. Its just to get the previously generated set of handles to do the same thing. |
@lbigramUWI yeah, and that's the part I have no idea about. I've never set up a Handle server myself. :/ |
@lbigramUWI - I don't know how to do this with handles, but I believe that you need to change the target of the identifiers that have already been issued (and are resolving to the internal address). With DOIs, this is something that you'd be able to address with EZID/DataCite. I assume that there's a corresponding way to do this with the handle APIs, but unfortunately it's not something I could give you useful advice on. |
We have an API end point that is specifically for updating the targetURL of the identifier whether it is a DOI or handle GET http://$SERVER/api/datasets/modifyRegistrationAll?key=$apiKey The $apiKey you use must have super user status. |
@sekmiller I will try this out. Thank you! |
Okay, this worked. Thanks to all! |
Great to hear! Thanks @sekmiller @pameyer and @pdurbin for the assistance! |
The UWI currently has a dataverse installation at: https://dataverse.sta.uwi.edu
We added handle service to it, however, when the handle url is clicked while on campus, it resolves to the internal IP address.
When it is clicked off campus, the site can’t be reached and displays the internal ip addres (192.168....)
Am I missing some setting somewhere or one that has to be changed to point to the external ip address or server name?
The text was updated successfully, but these errors were encountered: