This is an old revision of the document!
Installation and test on dev-vm101 notes
The following notes describe the installation and use of kvqc2 version 1.0.1 Sources: https://svn.met.no/viewvc/kvoss/kvQc2/branches/kvqc2-1.0.1/
Installation
Step 1 | Installation |
---|
- Log into dev-vm101 as user kvalobs
- If an old kvqc2 exists stop the running kvqc2 process
- Remove active configuration files (this is to just ensure that when the new kvqc2 version is set running it does not find and use an old configuration file)
For example:
$ cd /etc/kvalobs/Qc2Config $ mv ProcessUnit.cfg ProcessUnit.cfg $ mv ProcessUnit.cfg ProcessUnit.hold
- Install the latest version of kvqc2
- Log in as a user with sudoer permission
$ sudo apt-get install kvqc2
Note: the above is the standard way to do this, but did not work. Here is the trace (this is a separate issue to work on!!!)
paule@dev-vm101:~$ apt-cache search kvqc2 kvqc2 - Non-real-time and geo-statistical quality controls. paule@dev-vm101:~$ sudo apt-get install kvqc2 Reading package lists... Done Building dependency tree... Done kvqc2 is already the newest version. You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: libkvcpp-dev: Depends: libkvcpp1 (= 2.1.3-1) but 2.1.4-1 is to be installed libkvcpp1: Depends: libkvalobs1 (= 2.1.4-1) but 2.1.4-3 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). paule@dev-vm101:~$
Instead installed the new kvqc2 directly from where the debian package was built on dev-vm101:
i.e. using “sudo dpkg -i kvqc2_1.0.1-1_i386.deb” as illustrated below.
paule@dev-vm101:~/kvqc2-1.0.1$ ls kvqc2-1.0.1 kvqc2_1.0.1-1_i386.changes kvqc2_1.0.1.orig.tar.gz kvqc2_1.0.1-1.diff.gz kvqc2_1.0.1-1_i386.deb kvqc2-1.0.1.tar.gz kvqc2_1.0.1-1.dsc kvqc2_1.0.1-1_i386.upload paule@dev-vm101:~/kvqc2-1.0.1$ sudo dpkg -i kvqc2_1.0.1-1_i386.deb (Reading database ... 52403 files and directories currently installed.) Preparing to replace kvqc2 1.0.0-1 (using kvqc2_1.0.1-1_i386.deb) ... Unpacking replacement kvqc2 ... Setting up kvqc2 (1.0.1-1) ... paule@dev-vm101:~/kvqc2-1.0.1$
Run and initial tests
Step 2 | Run with “kvstart” |
---|
- “kvstart” should start the new version, just test to see if this works:
- Login as user kvalobs and then:
kvalobs@dev-vm101:~$ kvstart KVBIN=/usr/bin KVPID=/var/run/kvalobs TIMEOUT=60 Starter kvalobs dette kan ta noe tid! Hvis det ikke skjer noe på MER enn 60 sekund bruk CTRL-C for å avbryte! Starter kvQabased ....running Starter kvManagerd ....running Starter kvDataInputd ....running Starter kvServiced ....running Starter kvAgregated ....running Starter kvsynopd ....running Starter norcom2kv ....running Starter kvqc2 ....Ok!
- Stop kvqc2 {use whatever is the operational procedure to stop an individual daemon}
Step 3 | Run “kvqc2” from command line |
---|
- Run from the command line and check output
kvalobs@dev-vm101:~$ kvstart
Note the following features:
- – kvqc2-1.0.1: starting …. the new version is installed
- Logging to file </var/log/kvalobs/Qc2.log>!
- Scanning For Files {repeated} … i.e. no configuration files are active
All of the above can be seen below!
kvalobs@dev-vm101:~$ which kvqc2 /usr/bin/kvqc2 kvalobs@dev-vm101:~$ kvqc2 INFO: -- Reading configuration from file </etc/kvalobs/kvalobs.conf>! INFO: -- Configuration file loaded! INFO: -- Using 'database.dbconnect' from configuration file FROM CONFIGURATION FILE: pgdriver.so Logging to file </var/log/kvalobs/Qc2.log>! INFO: (Qc2 ...) -- kvqc2-1.0.1: starting .... INFO: (Qc2 ...) -- Using <kvtest-dev-vm101/> as path in CORBA nameserver INFO: (Qc2 ...) -- Using CORBA nameserver at: corbans.met.no INFO: (Qc2 ...) -- Loading driver for database engine </usr/lib/kvalobs/db/pgdriver.so>! INFO: (Qc2 ...) -- Driver <PostgreSQL> loaded! INFO: (Qc2 ...) -- Writing pid to file </var/run/kvalobs/kvqc2-dev-vm101.pid>! INFO: -- Qc2Work: starting work thread! INFO: -- New database connection (PostgreSQL) created! DEBUG: -- Created a new connection to the database! INFO: -- %%%%%%%%%%%%%%%%%%%%%%%% Scanning For Files Scanning For Files Scanning For Files
Step 3 | Check configuration files |
---|
- Create an empty configuration file:
# As user kvalobs kvalobs@dev-vm101:~$ touch /etc/kvalobs/Qc2Config/BlankFile.cfg
- Wait for up to 1 minutes and then note the output from kvqc2:
Scanning For Files Scanning For Files Configuration File Found: /etc/kvalobs/Qc2Config/BlankFile.cfg 2010-06-22 20:10:17: 2010-06-22 20:00:00 -> 2010-06-22 20:00:00 /etc/kvalobs/Qc2Config/BlankFile.cfg
- clean up by remoiving the blank file
kvalobs@dev-vm101:~$ rm /etc/kvalobs/Qc2Config/BlankFile.cfg
- Stop (Ctrl^C) the running process (NB may have to wait 1 minute) and then restart as the daemon process with “kvstart”.
Step 4 | kvstart |
---|
Load Configuration files
Step 5 | Install the default configuration files |
---|
- The configuration files are available from the subversion repository in the src/Reference directory of the distribution https://svn.met.no/viewvc/kvoss/kvQc2/branches/kvqc2-1.0.1/src/Reference/.
- To load the files, e.g. copy the links and use wget:
# As user kvalobs $ cd /etc/kvalobs/Qc2Config $ wget https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1/src/Reference/DailyProcessUnitMissing.cfg --no-check-certificate $ wget https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1/src/Reference/MissingLinear.hold --no-check-certificate $ wget https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1/src/Reference/SingleMaxMinAverage.hold --no-check-certificate $ wget https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1/src/Reference/TEST3036.hold --no-check-certificate