• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • 4.0 fresh install - files not copied and index.html truncated

    Centos 7

    node -v
    v0.10.46

    npm -v
    4.5.0

    Gradle 2.14

    Tomcat 8.5.4

    java -version
    java version “1.8.0_131”

    Was trying to build a fresh copy of OpenSpecimen 4.0. Followed the directions in “How to build from source code.”

    Fired up tomcat, all the tables were created. When I opened the browser the screen would remain blank. Viewing the source. the only thing in there were some commented lines having to do with happy browser.

    I then copied index.html from the distribution, which then generated a lot of file not found errors. Looking at the javascript console, I noted the files and copied them over manually with the following commands.

    cp www/app/styles/* /usr/local/tomcat/webapps/openspecimen/styles/
    cp -r modules/ /usr/local/tomcat/webapps/openspecimen/
    cp -r www/external_components/ /usr/local/tomcat/webapps/openspecimen/
    cp www/app/*.js /usr/local/tomcat/webapps/openspecimen

    After that I was able to fire up openspecimen, add my site and user.

    Hi @John_Reber

    My hunch is the UI app build didn’t succeed because of which you are seeing an empty page. Can you please send following?

    1. Build log i.e. console output generated by build process
    2. The index.html that is packaged with app (available at following location $SRC_HOME/www/dist/index.html)

    Thanks

    Attached 2 index.html files. .dist is from the dist directory. .www.app is from the www.app directory.

    Will upload gradle logs after changing deploy type to upgrade.

    index.html.dist (826 Bytes)index.html.www.app (26.5 KB)

    I’m also getting the same issue, its builds with gradle without any errors, but the index.html file contains the happybrowser message. Any resolutions for this issue ?

    I had a workaround by copying the index.html from the source directory, but was told not to do that and that it’s being looked into.

    John

    We have found the bug, fix is in the other topic:

    @Robert_Reihs Thanks for the fix and submitting the code. We tested it and it works fine. We will checkin the code shortly.

    ~Sri

    Sri, has the fix been submitted into github yet ?

    Hi,

    Yes it was submitted: https://github.com/krishagni/openspecimen/pull/4

    Yes, both in master and v4.0 branch.

    Thanks, @Robert_Reihs again. This is the first community bug fix submitted in OpenSpecimen. Your name goes in the history books :wink:

    ~Sri