Project

General

Profile

Bug #6467

data tab no longer works

Added by Daniel Crawl about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
data access
Target version:
Start date:
03/17/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Searching for "datos" in the data tab generates exceptions:

[null] ERROR (org.ecoinformatics.seek.datasource.EcogridQueryDataCacheItem:doWork:110) The exception in query is 
[null] AxisFault
[null] faultCode: {http://xml.apache.org/axis/}HTTP
[null] faultSubcode:
[null] faultString: (301)Moved Permanently
[null] faultActor:
[null] faultNode:
[null] faultDetail:
[null] {}:return code: 301
[null] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[null] <html><head>
[null] <title>301 Moved Permanently</title>
[null] </head><body>
[null] <h1>Moved Permanently</h1>
[null] <p>The document has moved <a href="https://knb.ecoinformatics.org/knb/services/QueryService">here</a>.</p>
[null] <hr>
[null] <address>Apache/2.2.14 (Ubuntu) Server at ecogrid.ecoinformatics.org Port 80</address>
[null] </body></html>
[null]
[null] {http://xml.apache.org/axis/}HttpErrorCode:301
[null]
[null] (301)Moved Permanently
[null] at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
[null] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
[null] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
[null] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[null] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[null] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
[null] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
[null] at org.apache.axis.client.Call.invoke(Call.java:2767)
[null] at org.apache.axis.client.Call.invoke(Call.java:2443)
[null] at org.apache.axis.client.Call.invoke(Call.java:2366)
[null] at org.apache.axis.client.Call.invoke(Call.java:1812)
[null] at org.ecoinformatics.ecogrid.queryservice.stub.QueryServiceStub.query(Unknown Source)
[null] at org.ecoinformatics.ecogrid.queryservice.QueryServiceClient.query(Unknown Source)
[null] at org.ecoinformatics.seek.datasource.EcogridQueryDataCacheItem.doWork(EcogridQueryDataCacheItem.java:101)
[null] at org.kepler.objectmanager.cache.DataCacheObject.run(DataCacheObject.java:422)
[null] at java.lang.Thread.run(Thread.java:695)

History

#1 Updated by Matt Jones about 5 years ago

This is because we just recofigured the KNB site last week to only use https, and all http requests are redirected to the https port. So, it seems the Kepler client does not detect and follow the redirect in its web service request. Changing the service url to use https should fix the problem, but it would also be smart to add redirect support when a 301 or 302 HTTP code are received.

#2 Updated by ben leinfelder about 5 years ago

Would you be amenable to a temporary fix server-side by allowing HTTP traffic on the "ecogrid.ecoinformatics.org" hostname?

#3 Updated by Matt Jones about 5 years ago

Yes, I would. I think that is a good compromise -- keeps the KNB working, and the ecogrid server working. But it should truly be temporary.

#4 Updated by Daniel Crawl almost 5 years ago

Where's the service url specified? I tried changing all the URLs in the ecogrid module's configuration.xml to use https, but it still uses http.

#5 Updated by ben leinfelder almost 5 years ago

Perhaps the "repository" module's configuration.xml file?

#6 Updated by Jing Tao almost 5 years ago

I believe it is the ecogrid module's configuration.xml? Did you change the one in the ~/KeplerData directory?

#7 Updated by Jing Tao almost 5 years ago

Oh, the configuration.xml in the reporting module has the query service as well. Because of the overwriting mechanism in kepler, you have to update the endpoints in the reporting module.

#8 Updated by Daniel Crawl almost 5 years ago

I changed ecogrid, repository, and reporting configuration.xml files. I also deleted the configuration files in ~/KeplerData/modules.

When I search in the data tab, I no longer get an exception, but I also don't get any results.

Based on the stack trace (see my original post), I looked at org.ecoinformatics.ecogrid.queryservice.stub.QueryServiceStub.query() in repository/lib/jar/ecogrid_client_lib/org.ecoinformatics.ecogrid-stub.jar. It's got a bunch of hard-coded URLs... Perhaps all the ecogrid jars need to be regenerated?

#9 Updated by ben leinfelder almost 5 years ago

  • Status changed from New to Closed

I made a new apache configuration for ecogrid.ecoinformatics.org that does not force a redirect to HTTPS. All KNB traffic will be routed to HTTPS, but ecogrid calls will not.
I tried a Kepler search and it returned as expected.

#10 Updated by Daniel Crawl almost 5 years ago

Jing updated the configuration files for ecogrid and reporting. He also found that $HOME/.kepler/cache-2.4/modules/ecogrid/EcoGridServices needs to be removed.

#11 Updated by ben leinfelder almost 5 years ago

We could leave ecogrid http open...indefinitely, though that is not our preference. It's not clear how to force people to refresh their cache. Maybe this already happens on start-up when we query the registry service? I forget.

#12 Updated by Jing Tao almost 5 years ago

benMac, the registry url doesn't work: https://knb.ecoinformatics.org/registry/services/RegistryService.

I took a look and found the apache configuration doesn't forward the registry context to the tomcat through ajp3. I tried to change it but it seems that i don't have the sudo permission. Would you please change the configuration? Thanks.

#13 Updated by ben leinfelder almost 5 years ago

Okay, the registry is re-enabled on KNB

Also available in: Atom PDF