Server di generazione mappe » Cronologia » Versione 10
Diego Sorrentino, 18-02-2019 12:55
1 | 1 | Diego Sorrentino | h1. Server di generazione mappe |
---|---|---|---|
2 | |||
3 | 8 | Diego Sorrentino | _Server_: hsit-map.webfarm.rm.ingv.it |
4 | 4 | Diego Sorrentino | _IP_: 192.168.0.18 |
5 | 9 | Diego Sorrentino | _Situato_: CED CORDIS, armadio in fondo, al centro, etichetta *HSIT-MAP* |
6 | 1 | Diego Sorrentino | |
7 | Utenti CSI presenti, accesso con chiave SSH: |
||
8 | * pietro.ficeli |
||
9 | * manuela.sbarra |
||
10 | * gianpaolo.sensale |
||
11 | * diego.sorrentino |
||
12 | * simona.bergamini |
||
13 | * stefano.vazzoler |
||
14 | * francesco.zanolin |
||
15 | |||
16 | La password di root si trova nel keepass del CSI, al percorso: |
||
17 | @ServerINGV -> WebFarm -> HaiSentitoIlTerremoto -> HaiSentitoIlTerremoto Maps -> Console root@ |
||
18 | |||
19 | I problemi che sono ricorsi piu' spesso nel tempo sono: |
||
20 | |||
21 | 2 | Diego Sorrentino | [[Server_di_generazione_mappe#Il-server-per-qualche-motivo-e-spento|Il server, per qualche motivo, e' spento]] |
22 | [[Server_di_generazione_mappe#Non-si-aggiornano-le-mappe|Non si aggiornano (o non escono) le mappe]] |
||
23 | 10 | Diego Sorrentino | [[Server_di_generazione_mappe#Non-vengono-spedite-le-mail|Non vengono spedite le mail]] |
24 | [[Server_di_generazione_mappe#Non-vengono-spedite-le-comunicazioni|Non vengono spedite le comunicazioni]] |
||
25 | 1 | Diego Sorrentino | |
26 | 10 | Diego Sorrentino | |
27 | 1 | Diego Sorrentino | h2. Il server per qualche motivo e' spento |
28 | |||
29 | Riaccendere il server. |
||
30 | Entrare come root (o da console, o da remoto e diventare root) e lanciare i seguenti comandi: |
||
31 | 7 | Diego Sorrentino | <pre><code class="c"> |
32 | 1 | Diego Sorrentino | # su - diego.sorrentino |
33 | diego.sorrentino$ cd hsit/web |
||
34 | 3 | Diego Sorrentino | diego.sorrentino:~/hsit/web$ screen (aprira' una nuova sessione di screen) |
35 | 1 | Diego Sorrentino | ========= START SESSIONE SCREEN============== |
36 | 7 | Diego Sorrentino | diego.sorrentino:~/hsit/web$ while true; do rm /tmp/Routine-rebuild-event-pages.php.lock ; ./Routine-rebuild-event-pages.php | tee -a Routine-rebuild-event-pages.log ; sleep 60; done |
37 | 10 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRÀ UNA NUOVA FINESTRA DI SCREEN |
38 | sorrentino:~/hsit$ while true; do ./Routine-notify-subscribers.php | tee -a Routine-notify-subscribers.log ; sleep 60; done |
||
39 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRÀ UNA NUOVA FINESTRA DI SCREEN |
||
40 | sorrentino:~/hsit$ while true; do ./Routine-send-communications.php | tee -a Routine-send-communications.log ; sleep 60; done |
||
41 | 1 | Diego Sorrentino | diego.sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
42 | ========= END SESSIONE SCREEN============== |
||
43 | diego.sorrentino:~/hsit$ logout |
||
44 | # logout |
||
45 | 7 | Diego Sorrentino | </code></pre> |
46 | 1 | Diego Sorrentino | |
47 | |||
48 | h2. Non si aggiornano le mappe |
||
49 | |||
50 | Collegarsi al server e lanciare i seguenti comandi: |
||
51 | 7 | Diego Sorrentino | <pre><code class="c"> |
52 | 1 | Diego Sorrentino | utente$ su - |
53 | Password: ******* |
||
54 | # su - diego.sorrentino |
||
55 | diego.sorrentino$ screen -r |
||
56 | ========= START SESSIONE SCREEN============== |
||
57 | diego.sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+0 (A maiuscolo e 0) PER ACCEDERE ALLA FINESTRA GENERAZIONE MAPPE |
||
58 | 7 | Diego Sorrentino | diego.sorrentino@terremoto-web:~/hsit/web$ while true; do rm /tmp/Routine-rebuild-event-pages.php.lock ; ./Routine-rebuild-event-pages.php | tee -a Routine-rebuild-event-pages.log ; sleep 60; done |
59 | 1 | Diego Sorrentino | si dovra' trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
60 | diego.sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
61 | ========= END SESSIONE SCREEN============== |
||
62 | diego.sorrentino:~/hsit$ exit |
||
63 | 10 | Diego Sorrentino | # logout |
64 | utente$ logout |
||
65 | </code></pre> |
||
66 | |||
67 | h2. Non vengono spedite le mail |
||
68 | |||
69 | Collegarsi al server e lanciare i seguenti comandi: |
||
70 | <pre><code class="c"> |
||
71 | utente$ su - |
||
72 | Password: ******* |
||
73 | # su - sorrentino |
||
74 | sorrentino$ screen -r |
||
75 | ========= START SESSIONE SCREEN============== |
||
76 | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+1 (A maiuscolo e 1) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
||
77 | sorrentino:~/hsit$ while true; do ./Routine-notify-subscribers.php | tee -a Routine-notify-subscribers.log ; sleep 60; done |
||
78 | si dovrà trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
||
79 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
80 | ========= END SESSIONE SCREEN============== |
||
81 | sorrentino:~/hsit$ exit |
||
82 | # logout |
||
83 | utente$ logout |
||
84 | </code></pre> |
||
85 | |||
86 | h2. Non vengono spedite le comunicazioni |
||
87 | |||
88 | Collegarsi al server e lanciare i seguenti comandi: |
||
89 | <pre><code class="c"> |
||
90 | utente$ su - |
||
91 | Password: ******* |
||
92 | # su - sorrentino |
||
93 | sorrentino$ screen -r |
||
94 | ========= START SESSIONE SCREEN============== |
||
95 | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+2 (A maiuscolo e 2) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
||
96 | sorrentino:~/hsit$ while true; do ./Routine-send-communications.php | tee -a Routine-send-communications.log ; sleep 60; done |
||
97 | si dovrà trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
||
98 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
99 | ========= END SESSIONE SCREEN============== |
||
100 | sorrentino:~/hsit$ exit |
||
101 | 1 | Diego Sorrentino | # logout |
102 | utente$ logout |
||
103 | 7 | Diego Sorrentino | </code></pre> |