Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

Unable to search for resources after setting up Geoportal on Ubuntu 16.04 with postgresql 9.4.5 and tomcat 8 #247

Closed gkm2021 closed 7 years ago

gkm2021 commented 7 years ago

I followed the instructions provided in wiki for this repo to install and configure geoportal. I successfully registered an ArcGIS protocol (used this service U.S. Forest Service Invasive Species). After I synchronized content waited for almost more than an hour. I added 980+ documents related to this service. I am still unable to search for any resource on my instance of the geoportal. I am able to search on the sandbox ( http://gptogc.esri.com). I double check all configurations and did not find anything obvious in the gpt and other logs.

Any help will be appreciated.

mhogeweg commented 7 years ago

when you look in the administration page, what is the status of the harvested items? this needs to be 'Approved' in order for them to be findable.

gkm2021 commented 7 years ago

@mhogeweg This is GK. All of the harvested items show Approved status.

mhogeweg commented 7 years ago

is your site public?

mhogeweg commented 7 years ago

can you open http://gptogc.esri.com/geoportal/rest/index/stats where you replace gptogc.esri.com with your domain name. this should tell you how many documents are in the index.

another action is to look in the gpt.xml configuration file where you have set the lucene index to be stored and then make sure it actually gets created.

gkm2021 commented 7 years ago

No it is not. My site is on a private network.

gkm2021 commented 7 years ago

When try to open http://192.168.1.6:8080/geoportal/rest/index/stats, it shows a blank page.

mhogeweg commented 7 years ago

please check

    <catalog gptTablePrefix="GPT_">
        <lucene
            indexLocation="D:/data/geoportalserver/index"

the attribute indexLocation should be set to a valid folder where the geoportal has write access

gkm2021 commented 7 years ago

I see _ka.fdt, .fdx, .fnm, .frq, .nrm, etc files under /usr/local/etc/lucene.

gkm2021 commented 7 years ago

here is that section from my gpt.xml

``` ```
gkm2021 commented 7 years ago

Another point I forgot to mention - I cant even browse the catalog.

gkm2021 commented 7 years ago

OK. I figured this out - it was pilot error. The hazards of manually having to tweaking gpt.xml (not complaining). I am now able to search and look at

This line was the culprit -

I had a garbage value like below

What could help in the future is some hints on trouble shooting like which logs to look for and some examples of what to expect, etc.

mhogeweg commented 7 years ago

glad you found it.

gkm2021 commented 7 years ago

Thanks for your support. We can close this issue now.