annotate doc/operating-the-system.tex @ 900:6df869086544

Moved content to trunk doc/trunk@1022 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Hans Plum <hans.plum@intevation.de>
date Wed, 28 Apr 2010 14:17:46 +0000
parents
children
rev   line source
900
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
1 \section{Management of operational processes}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
2
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
3 Availability of the components
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
4 1. Database server
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
5 2. Artefact-server
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
6 3. Apache Tomcat running the WebClient
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
7 4. Apache WebServer
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
8
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
9 During a server startup the installed components get started
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
10 automatically.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
11
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
12 \subsection{Managing the Artefact Server}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
13
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
14 \subsubsection*{Start Stop Restart}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
15
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
16 The artefact server can be restarted without stopping the WebClient.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
17 During the restart-process client accessing the server get an approriate
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
18 message. Their session data will not be lost if the artefact database
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
19 will remain untouched.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
20
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
21 Stopping artefact server
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
22 \verb+ /etc/init.d/artefact-server stop+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
23
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
24 Starting artefact server
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
25 \verb+ /etc/init.d/artefact-server start+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
26
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
27 Restarting artefact server
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
28 \verb+ /etc/init.d/artefact-server restart+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
29
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
30 \subsubsection*{Monitoring the System}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
31
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
32 C.f. Testing the installation for the levels: operating system,
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
33 network and service availability
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
34
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
35 \subsubsection*{Troubleshooting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
36
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
37 Database problems
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
38 For checking problems for problems with the connection to the database
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
39 server, check the logfile of the artefact-server (c.f. FIXME
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
40 installation) look for entries like FIXME.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
41
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
42 In most cases, a restart of the artefact-server will help to solve
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
43 problems in the artefact-server. If you still encounter problems, check
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
44 for the network connection to the database server and the maturity of
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
45 the database server.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
46
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
47
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
48 Inconsistencies between original data and cached data
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
49 The artefact-server stores result sets of the database in a cache and
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
50 provides maps via configuration files for MapServer based on shapefiles.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
51 In case of inconsistencies showing up for longer than twice the
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
52 maximum of the update cycle of internal ETL processes, do the following
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
53 as user \verb+root+:
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
54
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
55 \begin{lstlisting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
56 /etc/init.d/artefact-server stop
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
57 rm -ri \$ARTEFACT-SERVER-HOME/cache/*
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
58 /etc/init.d/artefact-server start
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
59 \end{lstlisting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
60
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
61 \subsection{Managing the GNV-Client}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
62 \subsubsection*{Start Stop Restart}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
63
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
64 The GNV-WebClient can be managed by controlling Apache Tomcat instance:
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
65
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
66 Status GNV-WebClient
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
67 \verb+ /etc/init.d/tomcat5.5 status+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
68
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
69 Stopping GNV-WebClient
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
70 \verb+ /etc/init.d/tomcat5.5 stop+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
71
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
72 Starting GNV-WebClient
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
73 \verb+ /etc/init.d/tomcat5.5 start+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
74
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
75 Restarting GNV-WebClient
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
76 \verb+ /etc/init.d/tomcat5.5 restart+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
77
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
78 \subsubsection*{Monitoring the System}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
79
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
80 For different possibilities c.f. Testing the installation
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
81
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
82 \subsubsection*{Troubleshooting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
83
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
84 The GNV-WebClient can not accessed through the Apache WebServer, do the
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
85 following:
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
86 1. \verb+ /etc/init.d/apache2 restart+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
87 2. Check in your browser at \verb+ http://\$SERVERNAME/gnv+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
88
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
89 If you still encounter problems, follow the next these steps:
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
90 {\bf Caution: The entire application will be down until the WebServer is
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
91 back up}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
92 \begin{lstlisting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
93 /etc/init.d/apache2 stop
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
94 /etc/init.d/tomcat5.5 stop
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
95 rm -r /usr/share/tomcat5.5/work/Catalina/localhost/gnv/*
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
96 /etc/init.d/tomcat5.5 start # wait until tomcat is up
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
97 /etc/init.d/apache2 start
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
98 \end{lstlisting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
99
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
100 For further information, you look into the Logging during the use of the
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
101 GNV WebClient
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
102 \verb+ tail -f -n 50 /usr/share/tomcat5.5/logs/gnv.log+
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
103
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
104 To get even more logging, do the following:
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
105
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
106 {\bf Caution: The entire application will be down until the Apache Tomcat
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
107 has started properly; the higher log-level can affect the
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
108 runtime-behaviour of the client}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
109 \begin{lstlisting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
110 /etc/init.d/tomcat5.5 stop
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
111 Set logging to DEBUG (FIXME)
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
112 vim /usr/share/tomcat5.5/webapps/gnv/WEB-INF/classes/log4j.properties
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
113 /etc/init.d/tomcat5.5 start # wait until tomcat is up
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
114 tail -f -n 50 /usr/share/tomcat5.5/logs/gnv.log
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
115 \end{lstlisting}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
116
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
117 It is recommended to undo the logging configuration, after the relevant
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
118 part has been found.
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
119
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
120 \section{Lists of References}
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
121 FIXME
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
122
6df869086544 Moved content to trunk
Hans Plum <hans.plum@intevation.de>
parents:
diff changeset
123 FIXME: How to adapt the address/port of connection to REST-server.E

http://dive4elements.wald.intevation.org