HOWTO Servizi Cart Versione 0.4
Transcript
HOWTO Servizi Cart Versione 0.4
HOWTO Servizi Cart Versione 0.4 Premessa: L'obiettivo è quello di creare un documento condiviso in cui abbiamo tracciato come si risolvono i problemi più ricorrenti. Descrizione del problema: Verifica invocazione servizio. Verifica: Collegarsi ai NAL ove si verifica il problema, visualizzare la data dei file per controllare l'ultima scrittura [ll -rt] dopodichè il contenuto del log di errore contenuto in /var/log/httpd/error_log [less] Esempio di errore nel richiamare l'url: [Wed Oct 10 11:58:39 2007] [error] [client 212.19.106.200] request failed: erroneous characters after protocol string: POST /cart/PD/ SPCPlucca/SPCRegioneToscana/SPCMovTur HTTP/1.0 Guardando l'errore si evidenzia uno spazio nell'url: /cart/PD/ SPCPlucca/SPCRegioneToscana/SPCMovTur Risoluzione: Corretta l'url di invocazione nell'error_log non vi deve più apparire la notifica precedente. Verificare inoltre il contenuto del file di log access_log contenuto in /var/log/httpd questo mostra i tentativi di accesso [less] Esempio: 212.19.106.200 - - [10/Oct/2007:11:58:39 +0200] "POST /cart/PD/ SPCPlucca/SPCRegioneToscana/SPCMovTur HTTP/1.0" 400 392 "-" "-" Anche in questo si può verificare lo spazio nel richiamare l'url da parte del client 212.19.106.200 Se richiamato correttamente appare una stringa simile: 159.213.247.20 - - [11/Oct/2007:11:36:54 +0200] "POST /cart/PD/SPCPfirenze/SPCRegioneToscana/SPCMovTur HTTP/1.0" 200 1566 "-" "Axis/1.4" Verifica finale: Nel file di log /var/log/openscoop/openscoop.log deve apparire l'invocazione da parte del client. Se è stato richiamato il servizio la data del log viene aggiornata in caso contrario non logga nulla. Descrizione del problema: Invalid method in request Verifica: Se durante una verifica nel log /var/log/httpd/error_log [less] si notano errori simili: [Mon Oct 22 13:40:20 2007] [error] [client 192.168.1.174] Invalid method in request \x03\x03\x03\x03\x03\b\b\b\b\b\b\x7f\x7f\b\b\b\x7f\x7f\x7f [Mon Oct 22 13:42:07 2007] [error] [client 192.168.1.174] Invalid method in request \x03 [Mon Oct 22 13:46:22 2007] [error] [client 192.168.1.174] Invalid method in request \x03 [Mon Oct 22 13:49:30 2007] [error] [client 192.168.1.174] Invalid method in request \x03 Processing config directory: /opt/petra/data/Adjunct/Web/httpd.*.adjunct [Thu Oct 25 11:08:40 2007] [notice] Apache (Petra Internet Framework/Linux) configured -- resuming normal operations [Thu Oct 25 11:08:40 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Oct 25 11:08:40 2007] [notice] Accept mutex: sysvsem (Default: sysvsem) Controllare il contenuto del file di log access_log contenuto in /var/log/httpd questo mostra i tentativi di accesso [less] 192.168.1.174 - - [22/Oct/2007:13:40:20 +0200] "\x03\x03\x03\x03\x03\b\b\b\b\b\b\x7f\x7f\b\b\b\x7f\x7f\x7f" 501 - "-" "-" 192.168.1.174 - - [22/Oct/2007:13:42:07 +0200] "\x03" 501 - "-" "-" 192.168.1.174 - - [22/Oct/2007:13:46:22 +0200] "\x03" 501 - "-" "-" 192.168.1.174 - - [22/Oct/2007:13:49:30 +0200] "\x03" 501 - "-" "-" Risoluzione: verificare la URL utilizzata dal SIL per accedere al servizio (contattando tramite mail o telefono l'utente o il responsabile), gli errori sopra riportati corrispondono infatti a tentativi di accesso cifrati (tramite https) a server su cui il servizio richiamato dal SIL è configurato in http. Descrizione del problema: Verifica funzionalità jboss Verifica: se il file di log mod_jk.log contenuto in /var/log/httpd riporta errori simili: [Fri Nov 02 11:15:42 2007] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed e rrno = 111 [Fri Nov 02 11:16:29 2007] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Fri Nov 02 11:16:29 2007] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Fri Nov 02 11:16:29 2007] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [Fri Nov 02 11:16:29 2007] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed e rrno = 111 [Fri Nov 02 11:16:43 2007] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Fri Nov 02 11:16:43 2007] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Fri Nov 02 11:16:43 2007] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomc at failed, recoverable operation. err=1 [Fri Nov 02 11:16:43 2007] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed e rrno = 111 [Fri Nov 02 11:17:38 2007] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Fri Nov 02 11:17:38 2007] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Fri Nov 02 11:17:38 2007] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Nov 02 11:17:38 2007] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed e rrno = 111 [Fri Nov 02 11:18:31 2007] [jk_ajp_common.c (926)]: Error sending request body Risoluzione: Verificare con il comando [service jbossas status] il funzionamento di jboss, nel caso sia notificato che non sta funzionando si può procedere con il suo avvio [ service jbossas restart o service jbossas start], se al contrario la risposta ad esempio è: jbossas (pid 349) is running occorre verificare le configurazioni, dopo le verifiche necessarie è possibile procedere con il restart di jboss [ service jbossas restart ]. Il file di log mod_jk.log non scriverà più notifiche di errore.