Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Discussioni relative al software di monitoraggio energetico METERN
fabriziof
Messaggi: 38
Iscritto il: 21/01/2016, 22:09

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda fabriziof » 16/04/2017, 21:04

Anche io ho un problema con apache

Ciao Flane, dopo il tuo intervento che pareva risolutivo, tempo qualche giorno apache non partiva più. Per non disturbarti ulteriormente sono riartito dall'immagine, incollato configurazioni e dati e riattvato il tutto che funzionava perfettamente.
...per tre giorni

poi nuovamente lo stesso problema. Apache non si interrooga più.
Riavvio il raspe che non sgenala errori ma apache non parte.

Ho riprovato con due sd diverse ed in entrambe solo la tua immagine vergine, sia sul rasp2 che sul rasp3 apace non parte più.

Con Putty ho provato a far partire il servizio a mano ma ottengo questi errori.
cosa posso guardare?

Grazie

Codice: Seleziona tutto

root@raspberrypi:/etc/apache2# sudo systemctl stop apache2.service
root@raspberrypi:/etc/apache2# sudo systemctl start apache2.service
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
root@raspberrypi:/etc/apache2# systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─forking.conf
   Active: failed (Result: exit-code) since Sun 2017-04-16 20:56:38 CEST; 6s ago
  Process: 2061 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Apr 16 20:56:38 raspberrypi apache2[2061]: Starting web server: apache2 failed!
Apr 16 20:56:38 raspberrypi apache2[2061]: The apache2 instance did not start within 20 seconds. Please read the log...ning).
Apr 16 20:56:38 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:56:38 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:56:38 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@raspberrypi:/etc/apache2# journalctl -u apache2.service
-- Logs begin at Tue 2017-04-11 13:17:02 CEST, end at Sun 2017-04-16 20:56:38 CEST. --
Apr 11 13:17:15 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:42:43 raspberrypi apache2[669]: Starting web server: apache2 failed!
Apr 16 20:42:43 raspberrypi apache2[669]: The apache2 instance did not start within 20 seconds. Please read the log files to
Apr 16 20:42:43 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:42:43 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:42:43 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:50:03 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:50:24 raspberrypi apache2[1447]: Starting web server: apache2 failed!
Apr 16 20:50:24 raspberrypi apache2[1447]: The apache2 instance did not start within 20 seconds. Please read the log files to
Apr 16 20:50:24 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:50:24 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:50:24 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:50:26 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:50:46 raspberrypi apache2[1547]: Starting web server: apache2 failed!
Apr 16 20:50:46 raspberrypi apache2[1547]: The apache2 instance did not start within 20 seconds. Please read the log files to
Apr 16 20:50:46 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:50:46 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:50:46 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:53:41 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:54:01 raspberrypi apache2[1803]: Starting web server: apache2 failed!
Apr 16 20:54:01 raspberrypi apache2[1803]: The apache2 instance did not start within 20 seconds. Please read the log files to
Apr 16 20:54:01 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:54:01 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:54:01 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:56:13 raspberrypi systemd[1]: Stopped LSB: Apache2 web server.
Apr 16 20:56:18 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:56:38 raspberrypi apache2[2061]: Starting web server: apache2 failed!
Apr 16 20:56:38 raspberrypi apache2[2061]: The apache2 instance did not start within 20 seconds. Please read the log files to
lines 1-29...skipping...
-- Logs begin at Tue 2017-04-11 13:17:02 CEST, end at Sun 2017-04-16 20:56:38 CEST. --
Apr 11 13:17:15 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:42:43 raspberrypi apache2[669]: Starting web server: apache2 failed!
Apr 16 20:42:43 raspberrypi apache2[669]: The apache2 instance did not start within 20 seconds. Please read the log files to discover problems ... (warning).
Apr 16 20:42:43 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:42:43 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:42:43 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:50:03 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:50:24 raspberrypi apache2[1447]: Starting web server: apache2 failed!
Apr 16 20:50:24 raspberrypi apache2[1447]: The apache2 instance did not start within 20 seconds. Please read the log files to discover problems ... (warning).
Apr 16 20:50:24 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:50:24 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:50:24 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:50:26 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:50:46 raspberrypi apache2[1547]: Starting web server: apache2 failed!
Apr 16 20:50:46 raspberrypi apache2[1547]: The apache2 instance did not start within 20 seconds. Please read the log files to discover problems ... (warning).
Apr 16 20:50:46 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:50:46 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:50:46 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:53:41 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:54:01 raspberrypi apache2[1803]: Starting web server: apache2 failed!
Apr 16 20:54:01 raspberrypi apache2[1803]: The apache2 instance did not start within 20 seconds. Please read the log files to discover problems ... (warning).
Apr 16 20:54:01 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:54:01 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:54:01 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Apr 16 20:56:13 raspberrypi systemd[1]: Stopped LSB: Apache2 web server.
Apr 16 20:56:18 raspberrypi systemd[1]: Starting LSB: Apache2 web server...
Apr 16 20:56:38 raspberrypi apache2[2061]: Starting web server: apache2 failed!
Apr 16 20:56:38 raspberrypi apache2[2061]: The apache2 instance did not start within 20 seconds. Please read the log files to discover problems ... (warning).
Apr 16 20:56:38 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 16 20:56:38 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
Apr 16 20:56:38 raspberrypi systemd[1]: Unit apache2.service entered failed state.


Avatar utente
Flane
Messaggi: 2463
Iscritto il: 16/01/2016, 15:02

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda Flane » 16/04/2017, 23:27

fabrizio, hai la porta 22 aperta verso il raspberry e le password di default?

Se partendo dall'immagine ti funziona e dopo qualche giorno no, le possibili cause sono due:

1) SD corrotta
2) hai qualche attacco esterno che ti corrompe il sistema

Se hai porte aperte, chiudile e riparti della mia immagine.

fabriziof
Messaggi: 38
Iscritto il: 21/01/2016, 22:09

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda fabriziof » 16/04/2017, 23:32

L ho fatto, ho chiuso le porte che ti avevo aperto. Ma ripartendo dalla tua immagine ottengo l'effetto che vedi. Cioè Apache non parte. Domani provo un altra sd perchè una Delle due usate mi ha dato dei problemi, quindi Provo con una terza e ti so dire.
Per ora grazie

Avatar utente
NumberOne
Messaggi: 171
Iscritto il: 23/09/2016, 9:20

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda NumberOne » 23/04/2017, 22:31

Buonasera, spero di non inquinare il thread e che questa sia la sezione giusta per l'argomento che devo trattare, altrimenti apro un nuovo post.
Dopo aver installato l'immagine di Solarjessie 2.6, il sistema ha funzionato correttamente da Gennaio ad oggi con un solo piccolo ma fastidioso inconveniente. Praticamente ogni 7-8 giorni, il sistema si blocca completamente ed è necessario togliere l'alimentazione al raspberry perchè tutto torni a funzionare correttamente. Credevo che fosse il power bank a creare problemi (acquistai ad uso UPS un EasyAcc, come consigliato), ma non è così perché ho già ottenuto un blocco dopo averlo scollegato per prova.
Come prima cosa volevo fare un aggiornamento a tutto ciò che è possibile farlo.
Come procedo? Ci sono suggerimenti?
Grazie
Impianto 4Kw -- Solsonica Silver Plus 250w + Aurora PVI 5.0
123solar
Metern

baccoba
Messaggi: 2
Iscritto il: 24/04/2017, 6:47

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda baccoba » 24/04/2017, 6:55

Ciao a tutti, ho letto un po di guide e di topic su questo forum ma credo di non essere in grado.
C'è qualcuno che mi può vendere un kit già pronto all'uso per un inverter Abb 4.2?
Di solito non mi arrendo cosi facilmente, ma forse stavolta la soluzione migliore è affidarsi a qualcosa di già pronto.
Grazie

Avatar utente
Flane
Messaggi: 2463
Iscritto il: 16/01/2016, 15:02

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda Flane » 24/04/2017, 9:10

NumberOne ha scritto:Dopo aver installato l'immagine di Solarjessie 2.6, il sistema ha funzionato correttamente da Gennaio ad oggi con un solo piccolo ma fastidioso inconveniente. Praticamente ogni 7-8 giorni, il sistema si blocca completamente ed è necessario togliere l'alimentazione al raspberry perchè tutto torni a funzionare correttamente. Credevo che fosse il power bank a creare problemi (acquistai ad uso UPS un EasyAcc, come consigliato), ma non è così perché ho già ottenuto un blocco dopo averlo scollegato per prova.
Come procedo? Ci sono suggerimenti?
Grazie


Per ovviare a problemi di blocchi dovuti ad esaurimento memoria o altro, aggiungi la segunete riga in /etc/crontab

Codice: Seleziona tutto

07 00 5,10,15,20,25,30 * * root /sbin/shutdown -r now

e riavvia il raspberry.
In questo modo verrà eseguito un riavvio del Raspi a mezzanotte e 7 minuti ogni 5 giorni.
I riavvi è meglio farli un pò distanti dal momento in cui metern salva i dato (ogni 5') per questo io ho messo le 00:07

Per aggiornare il sistema segui quanto indicato al punto 1.3.2 della wiki

Prima del riavvio esegui anche il seguente comando:

Codice: Seleziona tutto

apt-get clean

serve a cancellare tutti i vari pacchetti debian scaricati per i vari aggiornamenti. Ti libera un bel pò di spazio sulal scheda SD (io avevo quasi 1Gb di roba !!!)

heavy
Messaggi: 8
Iscritto il: 04/01/2017, 15:59

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda heavy » 24/04/2017, 9:12

Buongiorno a tutti,sono 2 mesi che uso questo bellissimo progetto.Ho solo un problema, non riesco a fare il backup su di un alto raspberry che uso come mini nas con s.o. openmediavault.Vorrei sapere se è possibile fare qualche test per verificare dove sbaglio.Grazie mille
Allegati
102.jpg
101.jpg
100.jpg

Avatar utente
NumberOne
Messaggi: 171
Iscritto il: 23/09/2016, 9:20

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda NumberOne » 24/04/2017, 9:48

Flane ha scritto:
NumberOne ha scritto:Dopo aver installato l'immagine di Solarjessie 2.6, il sistema ha funzionato correttamente da Gennaio ad oggi con un solo piccolo ma fastidioso inconveniente. Praticamente ogni 7-8 giorni, il sistema si blocca completamente ed è necessario togliere l'alimentazione al raspberry perchè tutto torni a funzionare correttamente. Credevo che fosse il power bank a creare problemi (acquistai ad uso UPS un EasyAcc, come consigliato), ma non è così perché ho già ottenuto un blocco dopo averlo scollegato per prova.
Come procedo? Ci sono suggerimenti?
Grazie


Per ovviare a problemi di blocchi dovuti ad esaurimento memoria o altro, aggiungi la segunete riga in /etc/crontab

Codice: Seleziona tutto

07 00 5,10,15,20,25,30 * * root /sbin/shutdown -r now

e riavvia il raspberry.
In questo modo verrà eseguito un riavvio del Raspi a mezzanotte e 7 minuti ogni 5 giorni.
I riavvi è meglio farli un pò distanti dal momento in cui metern salva i dato (ogni 5') per questo io ho messo le 00:07

Per aggiornare il sistema segui quanto indicato al punto 1.3.2 della wiki

Prima del riavvio esegui anche il seguente comando:

Codice: Seleziona tutto

apt-get clean

serve a cancellare tutti i vari pacchetti debian scaricati per i vari aggiornamenti. Ti libera un bel pò di spazio sulal scheda SD (io avevo quasi 1Gb di roba !!!)


Grazie! Non è necessario fare un

Codice: Seleziona tutto

apt-get upgrade
oppure un

Codice: Seleziona tutto

apt-get update
?
Grazie....
Impianto 4Kw -- Solsonica Silver Plus 250w + Aurora PVI 5.0
123solar
Metern

Avatar utente
NumberOne
Messaggi: 171
Iscritto il: 23/09/2016, 9:20

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda NumberOne » 24/04/2017, 10:01

Aggiungo: ma la riga va inserita tutta? Compresi i numeri 5,10,15,20,25,30?
Impianto 4Kw -- Solsonica Silver Plus 250w + Aurora PVI 5.0
123solar
Metern

Avatar utente
Flane
Messaggi: 2463
Iscritto il: 16/01/2016, 15:02

Re: Solarjessie v 2.6 - immagine preconfigurata di 123Solar e Meter

Messaggioda Flane » 24/04/2017, 10:09

Se hai letto quello che ho scritto: :?
Per aggiornare il sistema segui quanto indicato al punto 1.3.2 della wiki

Nel link indicato trovi anche i comandi per l'aggiornamento del sistema. :roll:

NumberOne ha scritto:Aggiungo: ma la riga va inserita tutta? Compresi i numeri 5,10,15,20,25,30?

Certo che la riga va scritta tutta, per cosa l'avrei messa altrimenti? :roll:
Quelli sono i giorni a cui riavviare, il 5,10,15,..... di ogni mese


Torna a “MeterN”

Chi c’è in linea

Visitano il forum: Nessuno e 13 ospiti