open-semantic-search icon indicating copy to clipboard operation
open-semantic-search copied to clipboard

Search page empty

Open paxvinci opened this issue 2 years ago • 17 comments

I'm trying to use Open Semantic Search. I installed from deb package. I installed all the dependencies. I ran opensemanticsearch-index-dir with a directory and it worked fine. However when I try to access to http://llocalhost/search I don't receive any response (empty page). The pages http://localhost/search-apps/*, Flower and Solr work properly. What I have to check?

paxvinci avatar Feb 08 '22 11:02 paxvinci

Me, too. Just installed it. Ubuntu 21.10.

lsitongia avatar Feb 14 '22 05:02 lsitongia

If acceptable use Debian 11.

samoal avatar Feb 14 '22 20:02 samoal

“http://llocalhost/search” looks like a typo… (double l) ;) If so, try http://localhost/search If not, have you tried using port 8080? http://localhost:8080/search

urosch avatar Feb 27 '22 06:02 urosch

bump

Looking at the logs (after turning on a few debugs) provided no insight into what's happening for me. (Note: This is coming after a manual build. So not the VM, or the .deb package on github)

No such issue when running from docker.

feathered-arch avatar Mar 03 '22 22:03 feathered-arch

I installed Debian 11.2 and then the .deb installation works as expected. It just doesn't work to install it in Ubuntu 21.10.

lsitongia avatar Mar 05 '22 04:03 lsitongia

Same problem here, with ubuntu 22.04. Blank search page, Apache, Solr, Flower up and running, as well with OSS working from command line. Really no other way than wiping Ubuntu and installing Debian? Thanks in advance.

AndreaPux avatar Mar 10 '23 09:03 AndreaPux

Hi, I have the same Problem: Latest Debian Version (11), Installation went fine, all services up and running, but serach page completely blank. I can access the apps under /search-apps/, but /search itself is completely empty. Any help greatly appreciated! Thank you, Robert

prof-robert avatar Jun 05 '23 13:06 prof-robert

Hi @prof-robert , Does your Apache service run correctly? See under systemctl status apache2

Do you have PHP installed?

The search page is a php Project (see the related repository solr-php-ui).  You can check that by running php -v Which should prompt your installed PHP version.  Installing all this, you should obtain under /etc/solr-php-ui/apache.conf a configuration file, that configures /search to be an alias of /usr/share/solr-php-ui Search-apps are a bit another story, they run as Django Web apps.  Best regards Andy 

mosea3 avatar Jun 05 '23 14:06 mosea3

Thank you Andy! With that information I was able to find out that the php-script is using "get_magic_quotes_gpc()", which has been removed from my php Version (8.4). I removed the corresponding line in the solr-php-ui/index.php and now the search works! Thank you!

Preview, however, does not work. Has this also something to do with php 8.4? Should I downgrade (to which version)? Thank you, Robert

prof-robert avatar Jun 05 '23 16:06 prof-robert

PHP 8 has significant changes compared to 7.X, id personally use the newest PHP 7, PHP 7.4

Preview however is just a redirect to a local file reference, which does only work if you browse on a Ubuntu using a Firefox. ->file://<URI of the file on the server> For myself i made a seperate PDF Fileviewer, which reads out the file and wraps it in PDF.js

If you want to open the search result file, keep in mind, that your browser can't tell your PC to open and run local files (huge security issue). You can use however a tool like localexplorer, which can help you do that on files to which you have access to.

mosea3 avatar Jun 06 '23 16:06 mosea3

Dear Andy, thank you for your response. In the end I gave up for the following reasons:

  • Virtual Box for Mac M1 is only a beta and crashes when I try to start the VM-Image
  • Installation of the .deb-Package on a Clean Debian 11 Machine was successful (in part, Neo4j did not work, ocr did not work). This machine only runs the server components for opensemanticsearch (no X Server), has 4 GB RAM and was completely overwhelmed when trying to index more than 1 PDF at once.
  • Installation of the .deb Package in a virtual Ubuntu environment (via Multipass) on my Mac failed. Several of the additional server components could not be installed automatically. I worked my way through the components and could install them manually, but in the end, the system did not work.

I am sure that the team had their reasons to build the system with all of those server components, but things may have gotten out of hand. Apache, Solr, rabbitmq, spacy, flower and then php, Django and all the other things I could not see may be just too much.

I really love the idea of the project and wish I could have made it run... Thanks for your advice and support, Robert

prof-robert avatar Jun 07 '23 12:06 prof-robert

Is running the project in a docker an option for you? If yes, I recommend it! I'm satisfied myself ever since trying it out ;) Better performance overall also.

urosch avatar Jun 07 '23 13:06 urosch

That might be an option but I could not find the docker image and building it also failed. Where can I find the docker images? Thank you!

prof-robert avatar Jun 07 '23 13:06 prof-robert

there is a ”docker-compose.yml” file with all that's needed.

docker compose up -d

urosch avatar Jun 07 '23 13:06 urosch

... so simple... That did work. Thank you!

prof-robert avatar Jun 07 '23 14:06 prof-robert

@prof-robert glad to hear you didnt give up.

id be very curious to see your use case.

And maybe you want to apply my modifications as well.

mosea3 avatar Jun 07 '23 16:06 mosea3

Hi Andy, my use case: I have collected tons of documents over the past years. Mostly research papers, but also blog posts and similar. For my own publications and workshops I am preparing, I would like to search through these papers first, before trying to find new papers and articles.

I currently have the images up and running, but am unable to index local files. I would like to mount a local directory using "bind" mounts in read-only mode, where I have all my files stored. I entered the information in the docker-compolse.yml, but still the directory is not accessible through docker.

Do you know the best way to make my files available for this case?

Thank you very much! Robert

prof-robert avatar Jun 13 '23 15:06 prof-robert