-
Notifications
You must be signed in to change notification settings - Fork 4
Deployment QuickStart
Nimisha Gupta edited this page Jun 5, 2017
·
24 revisions
- Download the bundle from here.
- Install MySql.
sudo apt-get install mysql-server
- Create Databases.
mysql -u root -p < $server_bundle/ServerApps/db/mysql_database_schema.sql
- Install Tomcat.
wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.65/bin/apache-tomcat-7.0.65.tar.gz
tar -xvzf apache-tomcat-7.0.65.tar.gz
or,sudo apt-get install tomcat7
- Export JAVA_HOME in System Environment.
export JAVA_HOME=JAVA_HOME_PATH
- update server.properties with the directory paths on the server machine. Run deploy.sh present in ServerBundle. This script will do the following.
- Moves iManage webapp in the $server_bundle/WebApps to tomcat/webapps.
- Updates Database related properties in context.xml.
verify database url, database driver, database username and password
- Creates following directories on the server machine and update the corresponding locations in context.xml.
log_storage, storage_root, movie_storage, image_cache_storage, task_log_storage, backup_storage, export_storage, zoom_storage
- Moves solr webapp in the $server_bundle/WebApps/ to tomcat/webapps.
- Creates a directory to store solr_data.
- Updates solr/home path in solr/WEB-INF/web.xml with the created directory
- Extracts cache-deploy in $server_bundle/ServiceApps. Update icache.properties for Logging.
- Extracts worker-deploy in $server_bundle/ServiceApps. Update iworker.properties for Logging, Cache, Service, Solr, Database properties.
- Start cache.
Runs the scriptrun-cache.sh
in cache-deploy
nohup ./run_cache.sh&
- Start tomcat.
Run the script startup.sh in tomcat/bin
- Start worker.
Run the scriptrun-worker.sh
in worker-deploy.
nohup ./run_worker.sh&
- Once the deployment is scuccessful, server should be up at http://localhost:8080/iManage/standard/login.html
- login as "administrator" using the password present in context.xml.
- Use the "Administrator" interface to create users and projects as described [here](Getting Started)
- Launched an Amazon Linux t2.micro free tier instance
- Gave permission to connect on port 8080 to the security group
- Downloaded OpenImadis bundle from here.
- Install MySql.
sudo yum install mysql-server
sudo service mysqld start
- Upgrade java to 1.8
sudo yum install java-1.8.0
sudo yum remove java-1.7.0-openjdk
- Create Databases.
mysql -u root -p < $server_bundle/ServerApps/db/mysql_database_schema.sql
- Install Tomcat
sudo yum install tomcat7
- install dos2unix
sudo yum install dos2unix
- dos2unix $server_bundle/server.properties
- dos2unix $server_bundle/deploy.sh
- update server.properties with the directory paths on the server machine.
- Create a "storage" folder and point all storage paths to this folder
- tomcat path needs to be set to /var/lib/tomcat7/webapps
- Add write permissions to the webapps folder.
- Run deploy.sh. This script will do the following.
- Moves iManage webapp in the $server_bundle/WebApps to tomcat/webapps.
- Updates Database related properties in context.xml.
verify database url, database driver, database username and password
- Creates following directories on the server machine and update the corresponding locations in context.xml.
log_storage, storage_root, movie_storage, image_cache_storage, task_log_storage, backup_storage, export_storage, zoom_storage
- Updates Database related properties in context.xml.
- Moves solr webapp in the $server_bundle/WebApps/ to tomcat/webapps.
- Creates a directory to store solr_data.
- Updates solr/home path in solr/WEB-INF/web.xml with the created directory
- Extracts cache-deploy in $server_bundle/ServiceApps. Update icache.properties for Logging.
- Extracts worker-deploy in $server_bundle/ServiceApps. Update iworker.properties for Logging, Cache, Service, Solr, Database properties.
- Moves iManage webapp in the $server_bundle/WebApps to tomcat/webapps.
- update "lib\" to "lib/" in both run_cache.sh and run_worker.sh
- Start cache.
dos2unix icache_proprties.txt
dos2unix run_cache.sh
Run the scriptrun-cache.sh
in cache-deploy
nohup ./run_cache.sh&
- Start tomcat.
sudo service tomcat7 start
- Start worker.
dos2unix iworker_proprties.txt
dos2unix run_worker.sh
Run the scriptrun-worker.sh
in worker-deploy.
nohup ./run_worker.sh&
- Once the deployment is scuccessful, server should be up at http://localhost:8080/iManage/standard/login.html
- login as "administrator" using the password present in context.xml.
- Use the "Administrator" interface to create users and projects as described [here](Getting Started)
-
java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
Exception in catalina.out resulted in login failure. copiedtomcat-dbcp.jar to /usr/shar/tomcat7/lib
and restarted tomcat to fix this. 1.STILL OPEN: solr failed to load with
SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or ..
somehow solr is not able to read solr.xml and hence cannot finf solrconfig.xml. could not figure out why though even after spending a day 👎 .. will come back to this. ALL THESE ERRORS WERE DUE TO root RUNNING TOMCAT AND NOT BEING ABLE TO READ USER HOME DIRECTORIES Fixed by running a downloaded tomcat from:
wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.78/bin/apache-tomcat-7.0.78.tar.gz
Need to come back to configure this. - Created user, team, project using the administrator interface
- Logged on as a user with upload privileges. Downloaded the acquisition client from download link.
- Run the acquisition client
./run-acq.sh
and upload images - Images thumbnail loads but images did not load in Image view. This was a problem due to single CPU on the AWS instance. Upgraded to an instance with 2 Cores to solve this problem.