cliff-annotator icon indicating copy to clipboard operation
cliff-annotator copied to clipboard

Unable to access through tomcat (404 error)

Open BiodiverCD opened this issue 5 years ago • 1 comments

Hi, Thanks @rahulbot for the really rapid response on the previous problem. I couldn't re-open the issue so have registered a new one. The docker container seems to build and run fine now (albeit much faster as you mention), however, I am still unable to access the geoparser through tomcat.

77936885-d1a22b80-72b3-11ea-8173-97a810e9f5da

I get the status 404 error above when trying the test URL and I am unable to access localhost:8080 from my browser. I could previously access tomcat with the CLIFF-up vagrant VM but haven't had any luck with the docker. This could be something to do with my local set up but any advice is greatly appreciated (I'm running on macOs Catalina 10.15.2).

My terminal output for the whole process is at: https://pastebin.com/Q4ZCvvKx

Cheers

BiodiverCD avatar Apr 06 '20 09:04 BiodiverCD

Hmm, this line from your log is suspicious:

Step 8/8 : CMD sh /src/launch.sh

It seems like this script, which downloads the war and data isn't running correctly. It should echo some messages after that about downloading the .war and also take a solid few minutes to download the prebuilt IndexDirectory. Two questions if you can enter the container and poke around:

  • is the cliff-2.6.1.war in /usr/local/tomcat/webapps/?
  • is there a /etc/cliff2/IndexDirectory folder there?

I'm not a Docker expert by any means, but that's the next idea I have to see where it might be failing. I deploy via Dokku, so I don't actually deploy the prebuilt docker container.

rahulbot avatar Apr 15 '20 21:04 rahulbot