Skip to content

Deployonreador

descl edited this page Jan 3, 2014 · 22 revisions

Here is a doc about how I installed the production servers for reador service #on my personal computer curl -L https://get.rvm.io | bash -s stable --autolibs=3 --rails gem install rvm-capistrano cap deploy:setup cap deploy

#The Annotation server: zone-project1 ##Get code: cd /appli git clone https://github.com/descl/ZONE

##Install tools: sudo aptitude install maven openjdk-7-jdk openjdk-7-jre

##Install tmux v1.8 get code on http://sourceforge.net/projects/tmux/files/tmux/tmux-1.8/tmux-1.8.tar.gz/download?use_mirror=garr you need the 1.8 because of memory leaks in previous versions.

Install aptitude install libevent-dev ncurses-dev

##install spotlight sudo aptitude install openjdk-7-jre wget http://spotlight.sztaki.hu/downloads/en.tar.gz tar -xzf en.tar.gz wget http://spotlight.sztaki.hu/downloads/dbpedia-spotlight.jar java -Xmx10G -jar dbpedia-spotlight.jar ./en http://localhost:2222/rest;

The Client server: zone-project2

Virtuoso (semantic database): following http://ods.openlinksw.com/wiki/main/Main/VOSUbuntuNotes

sudo apt-get update
sudo aptitude install  virtuoso-opensource # set secret password for virtuoso (error message saying that he choose the default pass => need to be change manually)
sudo apt-get install links

(re)Start virtuoso

sudo /etc/init.d/virtuoso-opensource-6.1 restart

Backups for virtuoso

  • In /etc/virtuoso-opensource-6.1/virtuoso.ini set DirsAllowed = ., /usr/share/virtuoso-opensource-6.1/vad, /auto/backup/zone-project2/bases/DUMP/virtuoso
  • restart virtuoso
  • go to virtuoso admin panel > System Admin > Backup
  • add the folder in backup directories, set name scheduling save.

limitations read files:

http://kudithipudi.org/2012/03/14/how-to-increasing-number-of-processes-that-can-be-run-by-a-user-in-linux/ Edit file /etc/security/limits.conf * soft nofile 100000 * hard nofile 160000

ulimit -Sn 9999999 ulimit -Hn 9999999

sudo apt-get install curl git-core build-essential zlib1g-dev libssl-dev libreadline6-dev gem libyaml-dev
curl -L https://get.rvm.io | bash -s stable --autolibs=3 --rails

##Capistrano: following https://gist.github.com/jrochkind/2161449 run on my computer (not on server) gem install capistrano cd /appli/ZONE/ZONE-Watcher capify . vim Capfile <= uncomment "load 'deploy/assets'" vim config/deploy.rb according to Deployonreador/config_deploy.rb

##Tools: sudo apt-get install curl git-core curl -L https://get.rvm.io | bash -s stable --ruby gem install bundler gem install rake ##Get code: can be made directly from your computer using capistrano and: cap deploy:setup; cap deploy

configure apache

gem install passenger
apt-get install libcurl4-openssl-dev ruby-dev rubygems rake apache2-threaded-dev libapr1-dev libaprutil1-dev
/usr/bin/gem install rack
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/passenger-4.0.2/bin/passenger-install-apache2-module

#Bugs related to charsets encoding: You need to have in your config files the connexion file parameters for charset encoding as: localhost:1111/charset=UTF-8/log_enable=2

If you need to manually delete an item:
SELECT ?uri ?date WHERE{ ?uri http://purl.org/rss/1.0/title ?title .?title bif:contains "Lonely". ?uri http://purl.org/rss/1.0/pubDateTime ?date.} LIMIT 100

And then DELETE{?b ?c ?d} where {?b ?a "1378036801000". ?b ?c ?d} LIMIT 100

#ask to remove all offline tags on rss feeds DELETE {?uri http://zone-project.org/model/sources#offline "true" } WHERE {?uri http://zone-project.org/model/sources#offline "true" }

Clone this wiki locally