× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Riavvio su errore

More
11 years 6 months ago #1088 by pfeifer
Riavvio su errore was created by pfeifer
Ho notato che se va in errore qualche script, il swpi si riavia.
Dove è gestito questo parametro?
In modo da disabilitarlo durante le fasi di test?

Ciao
Sandro

Please Log in to join the conversation.

More
11 years 6 months ago - 11 years 6 months ago #1090 by tony
Replied by tony on topic Riavvio su errore
Purtroppo non ho previsto di poterlo disattivare .. dovresti modificare il codice.
Non riesci dal log a capire dove è l'errore ?
Last edit: 11 years 6 months ago by tony.

Please Log in to join the conversation.

More
11 years 6 months ago #1092 by SkizZO
Replied by SkizZO on topic Riavvio su errore
Ciao, non conoscevo questa funzione..

Comunque a me è capitato che la stazione si inchiodasse proprio... ho dovuto resettarla a mano (2 volte in 4 giorni..

Dal log si interrompe, si riavvia, poi "muore" finchè non tolgo l'alimentazione.

ti incollo un pezzetto di log: Nota bene l'orario di quando si resetta e riparte (che va indietro nel tempo??) e poi un errore (richiesta invalida da un ip ?? )
[04/06/2013-10:08:24] System time adjusted from NPT server : europe.pool.ntp.org
[04/06/2013-10:08:30] BMP085 - Temperature: 19.7 C Pressure:    1004.2 
[04/06/2013-10:08:30] DHT - Temperature: 25.0 C Humidity:    45.0 
[04/06/2013-10:08:30] Calculating Meteo data and statistics
[04/06/2013-10:08:30] Logging data to Database
[04/06/2013-10:08:33] Dir: W - Spd: 1.94384449244 - Gst: 3.88768898488 - Tout: 19.7 - Tin: 25.0 - Hout: 45.0 - P: 1018 - CB: 1616 - Trend: 4.20
[04/06/2013-10:09:11] Last main Thread delay ratio: 0.8
[04/06/2013-10:09:19] Checking internet connetion ...
[04/06/2013-10:09:20] Internet ok
[04/06/2013-10:09:20] Logging data to Wunderground ...
[04/06/2013-10:09:21] Log to Wunderground : success
[04/06/20[04/06/2013-09:17:31] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.20.12                           *
*                                                                      *
*          2012-2013 by Tonino Tarsi  <tony.tarsi@gmail.com>           *
*                                                                      *
*     System will start in 10 seconds - Press Ctrl-C to cancel         *
************************************************************************
10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[04/06/2013-09:17:53] Checking internet connetion ...
[04/06/2013-09:17:53] Starting sensor reading - Sensor type is : PCE-SENSOR
[04/06/2013-09:17:53] No Internet
[04/06/2013-09:17:53] Checking internet connetion ...
[04/06/2013-09:17:53] No Internet
[04/06/2013-09:17:53] Running without internet connection
[04/06/2013-09:17:53] Config Server running on port 80
[04/06/2013-09:17:53] Starting General WatchDog
[04/06/2013-09:17:53] ERROR - Failed to set time system from ntp server
[04/06/2013-09:17:35] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.20.12                           *
*                                                                      *
*          2012-2013 by Tonino Tarsi  <tony.tarsi@gmail.com>           *
*                                                                      *
*     System will start in 10 seconds - Press Ctrl-C to cancel         *
************************************************************************
10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[04/06/2013-09:17:57] Checking internet connetion ...
[04/06/2013-09:17:57] Starting sensor reading - Sensor type is : PCE-SENSOR
[04/06/2013-09:17:57] Internet ok
[04/06/2013-09:17:57] Checking internet connetion ...
[04/06/2013-09:18:07] No Internet
[04/06/2013-09:18:07] Running without internet connection
[04/06/2013-09:18:07] Config Server running on port 80
[04/06/2013-09:18:07] Starting General WatchDog
[04/06/2013-09:18:18] ERROR - Failed to set time system from ntp server
[04/06/2013-09:18:30] BMP085 - Temperature: 17.1 C Pressure:    1004.7 
[04/06/2013-09:18:30] DHT - Temperature: 20.0 C Humidity:    47.0 
[04/06/2013-09:18:30] Calculating Meteo data and statistics
[04/06/2013-09:18:30] Logging data to Database
[04/06/2013-09:18:30] loading plugins
[04/06/2013-09:18:31] Checking internet connetion ...
[04/06/2013-09:18:31] Internet ok
[04/06/2013-09:18:31] Logging data to Wunderground ...
[04/06/2013-09:18:33] Dir: W - Spd: 0.0 - Gst: 0.0 - Tout: 17.1 - Tin: 20.0 - Hout: 47.0 - P: 1019 - CB: 1510
[04/06/2013-09:18:39] Log to Wunderground : success
[04/06/2013-09:18:39] Uploading data ...
[04/06/2013-09:18:47] Sent file to server : meteo.txt
[04/06/2013-09:18:47] Deleted file : ./meteo.txt
[04/06/2013-09:18:48] Public IP :  79.46.61.160 
[04/06/2013-09:18:48] Rereading config file ..
[04/06/2013-09:18:48] Disk space left = 1625518080
[04/06/2013-09:18:48] Sleeping 43 seconds
mar  4 giu 2013, 20.25.45, CEST
[04/06/2013-20:25:45] System time adjusted from NPT server : europe.pool.ntp.org
[04/06/2013-20:26:04] Rebooter: System will Reboot in 16436.0 seconds
[04/06/2013-20:26:27] BMP085 - Temperature: 17.1 C Pressure:    1004.7 
[04/06/2013-20:26:27] DHT - Temperature: 20.0 C Humidity:    47.0 
[04/06/2013-20:26:27] Calculating Meteo data and statistics
[04/06/2013-20:26:27] Logging data to Database
[04/06/2013-20:26:27] Checking internet connetion ...
[04/06/2013-20:26:27] Internet ok
[04/06/2013-20:26:27] Logging data to Wunderground ...
[04/06/2013-20:26:29] Dir: SSE - Spd: 0.0 - Gst: 0.0 - Tout: 17.1 - Tin: 20.0 - Hout: 47.0 - P: 1019 - CB: 1510
[04/06/2013-20:26:30] BMP085 - Temperature: 17.1 C Pressure:    1004.7 
[04/06/2013-20:26:30] DHT - Temperature: 22.0 C Humidity:    50.0 
[04/06/2013-20:26:30] Calculating Meteo data and statistics
[04/06/2013-20:26:30] Logging data to Database
[04/06/2013-20:26:33] Dir: SE - Spd: 0.0 - Gst: 0.0 - Tout: 17.1 - Tin: 22.0 - Hout: 50.0 - P: 1019 - CB: 1401
[04/06/2013-20:26:38] Error Logging to Wunderground : 
[04/06/2013-20:26:38] Uploading data ...
[04/06/2013-20:26:39] Sent file to server : meteo.txt
[04/06/2013-20:26:40] Deleted file : ./meteo.txt
mar  4 giu 2013, 20.26.42, CEST
----------------------------------------
Exception happened during processing of request from ('192.168.1.102', 45839)
----------------------------------------
[04/06/2013-20:27:28] Checking internet connetion ...
[04/06/2013-20:27:28] Internet ok
[04/06/2013-20:27:28] Logging data to Wunderground ...
[04/06/2013-20:27:29] Log to Wunderground : success
[04/06/2013-20:27:29] Uploading data ...
[04/06/2013-20:27:30] Sent file to server : meteo.txt
[04/06/2013-20:27:30] Deleted file : ./meteo.txt
[04/06/2013-20:27:30] BMP085 - Temperature: 17.1 C Pressure:    1004.7

ed un pezzetto di log della seconda volta che si è inchiodata
[07/06/2013-02:49:50] System time adjusted from NPT server : europe.pool.ntp.org
[07/06/2013-02:50:30] BMP085 - Temperature: 18.4 C Pressure:    1005.6 
[07/06/2013-02:50:30] DHT - Temperature: 22.0 C Humidity:    40.0 
[07/06/2013-02:50:30] Calculating Meteo data and statistics
[07/06/2013-02:50:38] Logging data to Database
[07/06/2013-02:50:40] Dir: SE - Spd: 4.92440604752 - Gst: 6.47948164147 - Tout: 18.4 - Tin: 22.0 - Hout: 40.0 - P: 1020 - CB: 1808 - Trend: 5.41
[07/06/2013-02:50:43] Last main Thread delay ratio: 0.9
[07/06/2013-02:50:47] Checking internet connetion ...
[07/06/2013-02:50:47] Internet ok
[07/06/2013-02:50:47] Logging data to Wunderground ...
[07/06/2013-02:50:48] Log to Wunderground : success
[07/06/2013-02:50:48] Uploading data ...
[07/06/2013-02:50:49] Sent file to server : meteo.txt
[07/06/2013-02:50:49] Deleted file : ./meteo.txt
[07/06/2013-02:50:50] Rereading config file ..
[07/06/2013-02:50:50] Disk space left = 1620856832
[07/06/2013-02:50:50] Sleeping 58 seconds
ven  7 giu 2013, 02.50.50, CEST
[07/06/2013-02:50:50] System time adjusted from NPT server : europe.pool.ntp.org
[07/06/2013-02:51:30] BMP085 - Temperature: 18.4 C Pressure:    1005.6 
[07/06/2013-02:51:30] DHT - Temperature: 22.0 C Humidity:    40.0 
[07/06/2013-02:51:30] Calculating Meteo data and statistics
[07/06/2013-02:51:38] Logging data to Database
[07/06/2013-02:51:40] Dir: SE - Spd: 4.53563714903 - Gst: 5.18358531318 - Tout: 18.4 - Tin: 22.0 - Hout: 40.0 - P: 1020 - CB: 1808 - Trend: 5.58
[07/06/2013-02:51:42] Last main Thread delay ratio: 0.9
[07/06/2013-02:17:35] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.20.15                           *
*                                                                      *
*          2012-2013 by Tonino Tarsi  <tony.tarsi@gmail.com>           *
*                                                                      *
*     System will start in 10 seconds - Press Ctrl-C to cancel         *
************************************************************************
10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[07/06/2013-02:17:57] Checking internet connetion ...
[07/06/2013-02:17:57] Starting sensor reading - Sensor type is : PCE-SENSOR
[07/06/2013-02:17:57] Internet ok
[07/06/2013-02:17:57] Checking internet connetion ...
[07/06/2013-02:17:57] Internet ok
[07/06/2013-02:18:08] Connected with IP : 95.235.154.235 
[07/06/2013-02:18:08] Config Server running on port 80
[07/06/2013-02:18:08] Starting General WatchDog
ven  7 giu 2013, 19.13.16, CEST
[07/06/2013-19:13:16] System time adjusted from NPT server : europe.pool.ntp.org
[07/06/2013-19:13:37] BMP085 - Temperature: 24.4 C Pressure:    1005.1 
[07/06/2013-19:13:37] DHT - Temperature: 32.0 C Humidity:    31.0 
[07/06/2013-19:13:37] Calculating Meteo data and statistics
[07/06/2013-19:13:38] loading plugins
[07/06/2013-19:13:38] Checking internet connetion ...
[07/06/2013-19:13:38] Internet ok
[07/06/2013-19:13:38] Logging data to Wunderground ...
[07/06/2013-19:13:39] Log to Wunderground : success
[07/06/2013-19:13:39] Uploading data ...
[07/06/2013-19:13:41] Sent file to server : meteo.txt
[07/06/2013-19:13:41] Deleted file : ./meteo.txt
[07/06/2013-19:13:41] Rereading config file ..
[07/06/2013-19:13:41] Disk space left = 1620783104
[07/06/2013-19:13:41] Sleeping 57 seconds
ven  7 giu 2013, 19.13.42, CEST
[07/06/2013-19:13:42] System time adjusted from NPT server : europe.pool.ntp.org
[07/06/2013-19:13:45] Logging data to Database
[07/06/2013-19:13:48] Dir: W - Spd: 1.1107682814 - Gst: 1.29589632829 - Tout: 24.4 - Tin: 32.0 - Hout: 31.0 - P: 1019 - CB: 2343
[07/06/2013-19:14:15] Rebooter: System will Reboot in 20745.0 seconds
[07/06/2013-19:14:30] BMP085 - Temperature: 24.5 C Pressure:    1005.1 
[07/06/2013-19:14:30] DHT - Temperature: 32.0 C Humidity:    31.0 
[07/06/2013-19:14:30] Calculating Meteo data and statistics
[07/06/2013-19:14:37] Logging data to Database
[07/06/2013-19:14:38] Checking internet connetion ...
[07/06/2013-19:14:38] Internet ok
[07/06/2013-19:14:38] Logging data to Wunderground ...
[07/06/2013-19:14:39] Log to Wunderground : success

Please Log in to join the conversation.

More
11 years 6 months ago #1094 by pfeifer
Replied by pfeifer on topic Riavvio su errore
Ciao Tony,
posso modificare io il codice, tove si trova?
Grazie mille
Sandro

Please Log in to join the conversation.

More
11 years 6 months ago #1095 by tony
Replied by tony on topic Riavvio su errore
@SkizZO

No vedo nessun errore nel log. Forse un problema di alimentazione ?

@Sandro
Non è facile perché ce ne sono molti di check. Cmq se si riavvia per un errore .. ti logga il tipo di errore. Prova a cercare le chiamate a "systemRestart"

Please Log in to join the conversation.

More
11 years 6 months ago #1096 by SkizZO
Replied by SkizZO on topic Riavvio su errore
Azz il primo log è pieno di errori!! Alle 10 si resetta ed imposta l'ora a 9.00, poi da errore (impossibile settare l'ora), poi si riavvia e si blocca.
Parecchio tempo dopo la rebooto.

Alla fine del secondo log c'è un altro errore, anche qui nel log vedi che si impalla (,senza errori) e poi la rebooto io

Please Log in to join the conversation.

More
11 years 6 months ago #1098 by tony
Replied by tony on topic Riavvio su errore
Intendevo errori di swpi.

ERROR - Failed to set time system from ntp server

E' un errore di rete o il serve ntp è giù quel momento . Nessun problema ci riproverà successivamente.

Continuo a non vedere errori ( tranne i riavvi ) che avvengono in punti diversi del ciclo di swpi e mi sembrano del tutto random.

Alimentazione !!!!

Please Log in to join the conversation.

Time to create page: 0.919 seconds