-
Notifications
You must be signed in to change notification settings - Fork 173
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
Qview - Nomenclature tool broken #3939
Comments
@thareUSGS Do you know if the nomenclature database/web portal has changed? |
That link does work and I don't think the current service has changed in a while (but I have never really worked on this site). https://planetarynames.wr.usgs.gov/nomenclature/SearchResults Now I think many of our web servers and host OSs have been upgraded, so there could be something introduced like a time-out issue. Although, the error does return pretty quickly. I have always been a little concerned on how this was implemented (instead of using the available Web Feature Server API). Looking at the code, as far as I can tell, it is actually filling out the advanced search web page/form (acting like a user) and then parsing the results. If not a time-out issue, perhaps updates to our proxy or OS/web server might not allow this any more? But I am completely guessing here. Not sure what advice to offer to fix this now besides maybe checking with IT if the host machine, web server, or any adjustments to the machine's proxy has been changed...? |
@thareUSGS That's still helpful. I doubt this code has been touched in ISIS since it was written, so we'll probably need to have someone dig in on this one. It sounds like this needs to be re-written to use the API properly anyway. |
I haven't used the tool in many years, but I'm working with Titan data and in reading some papers, etc. I was trying to locate features by name (they didn't provide lat/lon info). This is not a priority, just an FYI so feel free to drop the products label if necessary. It is a handy tool when you need it, but not a necessity. I also tried to use it under an older version of isis (3.6.0) but it failed there as well, so likely a server/IT issue as Trent suggested. |
complete shot in the dark but maybe change the address here to https://planetarynames.wr.usgs.gov/nomenclature/AdvancedSearch |
@acpaquette, any Themis IR tile the CTX folks are using is good for testing if you need something. I can point you to small mosaics/images as well. |
@lwellerastro If you could point me to some small mosaics I would really appreciate it! |
@acpaquette |
sorry I missed your request @paarongiroux - I didn't get the notification. I think it's a casualty of the bot onslaught the other day. Thanks @jlaura |
Looks like a change was made for posts at the SearchResults URL |
@acpaquette That change alters the response that we are getting back from the API? (Update: the post isn't working so something changed - from the standup. Guessing this happened during the flask conversion.) @amesamoyers @thareUSGS Are you all versioning the nomenclature API or could changes to the user facing side happen without warning? Also, can you all link us to docs on how we should be consuming this API? |
While nomenclature has had a WFS API for a long while (Mapserver WFS/WMS) , the ISIS tool never used it. The ISIS program simply used the advanced web form to pretend to be a user and then request a https response. That search form could be thought of as an API I guess. In that regard it probably has not been versioned. But I don't think that form hasn't been touched/updated in years. Thus I still think original issue here is a hardware upgrade, network change, or ...? That said, we did warn against Qview using the advanced search form (really for humans) to solve this issue (hoping it would use the WFS API). Note the WFS API has always been versioned. Now as we move to Geoserver for our WFS needs (including Nomenclature), Geoserver allows the user to pick the WFS version they want (thus is good at allowing backward compatibility). Unfortunately I am not 100% comfortable with our current GeoServer implementation. Still needs some help/time to stabilize it. |
@thareUSGS I am not fully understanding your response. The web form that you are referencing packages the data and sends it to an endpoint. That endpoint, via a GET request, is the API that ISIS was using. That endpoint has changed how it works, which broke the nomenclature tool. The advanced search form is just an HTML page that packages data and ships it off to some endpoint. It is that endpoint that ISIS is trying to use. What API should we be using and where is the documentation on how to use it? Aside: As long as you have an unsecured endpoint, anyone in the world could be consuming it in the same way. So I would argue it is not entirely safe to assume that changes can be made without breakages. |
Hi all, I am taking a look at this issue right now. To give some context, the codebase for the production nomenclature site is housed and deployed from the USGS gitlab: code.chs.usgs.gov/asc/dk8s/planetary-names -- this is still a Java site. This was moved to gitlab within the past year and has since undergone deployment changes but negligible (if any) functionality change. The link referenced above-- USGS-Astrogeology/PlanetaryNomenclature@c5ba81e is a commit in the flask re-write repository that we were housing on github (this has since also been moved to gitlab to gear up for deployment). There have been no production related changes to accomodate the flask python re-write, we have only begun to officially deploy that code to a dev site for testing. I'm currently troubleshooting this with IT. We haven't yet determined the underlying cause but I am actively working to resolve and will check back. @jlaura @acpaquette I was not aware that external products call the endpoints from nomenclature in an api-driven way. Thank you @lwellerastro for submitting-- |
@amesamoyers @thareUSGS We are going to mark this as blocked. A few requests if possible:
|
I haven't been doing alot of documentation work yet, right now I am focusing on getting the flask re-write finished so we can deploy it, if there's any type of documentation aside from this I'd be happy to contribute that as well. |
@amesamoyers Sounds good! @amesamoyers - Item 4: I have archived the repository. @amesamoyers @thareUSGS What kind of timeline are we looking at as well? I would like to help our users know when they can expect to have this working again. |
@amesamoyers Network latency should only happen in dev, when your local machine is making calls to a database that's at ASC. When the site's live, it'll be at ASC too, so no latency. I think that's what you're asking? |
@evindunn question was for other networking issues related to Qview's ability to hit the AdvancedSearch() endpoint in Nomenclature, thank you for reaching out to USGS networking on this. I see the email that they increased the keepalive timeout, @acpaquette can you test to see if QView is getting expected responses from AdvancedSearch()? |
@acpaquette Let us know yesterday that the longer keep alive did not help. I believe he said that the failure time was identical to before the increase was put in place. @acpaquette Did I convey that at all correctly? |
@jlaura @acpaquette @amesamoyers I've done some testing and it's a networking issue that I hope to get resolved soon. I'm going to keep it vague here as it's a public setting. |
👍 @evindunn That sounds great and the vague update is an awesome way to keep all our users in the loop without having to be super specific when we can't. Thanks! |
@jlaura @acpaquette @amesamoyers Here's how I got it working:
The biggest change is removing /nomenclature from the path and switching back to /SearchResults |
Fixed with #4030 |
Sent at 9:35 via email to all internal ASC personnel.
|
ISIS version(s) affected: 4.1.1 as well as older 3.x.y versions
Description
Using nomenclature tool on mosaic produces an error dialog. Can't connect to features database.
How to reproduce
Open an mosaic (or unprojected data, I think) and turn on nomenclature tool (ID icon).
The text was updated successfully, but these errors were encountered: