Skip to content

Instantly share code, notes, and snippets.

@pwais
Created August 7, 2015 07:32
Show Gist options
  • Select an option

  • Save pwais/4a7cc8b6fda4d5667a11 to your computer and use it in GitHub Desktop.

Select an option

Save pwais/4a7cc8b6fda4d5667a11 to your computer and use it in GitHub Desktop.
...** SANDSTORM SUPERVISOR: Starting up grain.
+ cd /var
+ '[' '!' -d tomgrok ']'
+ tomcat7-instance-create -p 8000 tomgrok
You are about to create a Tomcat instance in directory 'tomgrok'
localhost: forward host lookup failed: Host name lookup failure : No such file or directory
localhost: forward host lookup failed: Host name lookup failure : No such file or directory
* New Tomcat instance created in tomgrok
* You might want to edit default configuration in tomgrok/conf
* Run tomgrok/bin/startup.sh to start your Tomcat instance
+ /var/tomgrok/bin/startup.sh
Tomcat started.
Tomcat started
+ export OPENGROK_VERBOSE=1
+ OPENGROK_VERBOSE=1
+ export OPENGROK_PROGRESS=1
+ OPENGROK_PROGRESS=1
+ export OPENGROK_APP_SERVER=Tomcat
+ OPENGROK_APP_SERVER=Tomcat
+ export OPENGROK_TOMCAT_BASE=/var/tomgrok/
+ OPENGROK_TOMCAT_BASE=/var/tomgrok/
+ mkdir -p /var/opengrok/data
+ mkdir -p /var/opengrok/etc
+ mkdir -p /var/opengrok/src
+ find /usr/lib -name libjli.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/libjli.so
+ export LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/
+ LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/
+ cd /var/opengrok
+ /opt/app/opengrok/bin/OpenGrok deploy
Loading the default instance configuration ...
Installing /opt/app/opengrok/bin/../lib/source.war to /var/tomgrok//webapps ...
Start your application server (Tomcat), if it is not already
running, or wait until it loads the just installed web application.
OpenGrok should be available on <HOST>:<PORT>/source
where HOST and PORT are configured in Tomcat.
+ /opt/app/opengrok/bin/OpenGrok index
Loading the default instance configuration ...
Creating default /var/opengrok/logging.properties ...
OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
Logging filehandler pattern: /var/opengrok/log/opengrok%g.%u.log
07:32:50 INFO: Scanning for repositories...
07:32:50 INFO: Done scanning for repositories (0s)
07:32:50 INFO: Writing configuration to /var/opengrok/etc/configuration.xml
07:32:50 INFO: Done...
07:32:50 INFO: Generating history cache for all repositories ...
07:32:50 INFO: Creating historycache for 0 repositories
07:32:50 INFO: Done historycache for all repositories (took 4 ms)
07:32:50 INFO: Done...
07:32:50 INFO: Starting indexing
07:32:50 INFO: Counting files in ...
07:32:50 INFO: Need to process: 0 files for
07:32:50 INFO: Done indexing data of all repositories (took 272 ms)
07:32:50 INFO: Send configuration to: localhost:2424
07:32:50 SEVERE: Failed to send configuration to localhost:2424 (is web application server running with opengrok deployed?)
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:241)
at org.opensolaris.opengrok.configuration.RuntimeEnvironment.writeConfiguration(RuntimeEnvironment.java:928)
at org.opensolaris.opengrok.index.Indexer.sendToConfigHost(Indexer.java:852)
at org.opensolaris.opengrok.index.Indexer.main(Indexer.java:563)
07:32:50 INFO: Configuration update routine done, check log output for errors.
07:32:50 INFO: Total time: 644 ms
07:32:50 INFO: Final Memory: 13M/1,963M
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment