Failure in my network with weewx and raspbian

117 views
Skip to first unread message

Antonio R

unread,
Jun 20, 2017, 12:35:48 PM6/20/17
to weewx-user
I've been using a weewx image for years, and lately what happens to me is, that without failing in the program, what happens is that my network drops down, the connection fails, the router reboots, I do not have any speed And when I disconnect the raspberry Pi all perfect, I spent a few days using another wview program and everything perfect.
The log does not give me any fault, right now I do not have it so, but previously, I get to configure all the devices in my network with fixed IP, so that there were conflicts with the IP and nothing, I despair and dismantle the raspberry Pi, Now I have come again the desire to try and I am in it, when this happens to me, it is nothing more to assemble the image, it is to the four days aprox, during this time everything well.
Let's see if anyone has ever seen this ???.
If it were of interest you could attach the weewx.conf or the log file.
To say that I am a novice in Raspbian, all the montages I have done have been with images already configured and not really installed from scratch, with raspbian and the image of weewx, I have only done it a few times.
Thank you

http://62.175.41.238/weewx/
Station Watson
W-8681  FineOffsetUSB
Raspbian Jessie-Lite 10/04/2017

Thomas Keffer

unread,
Jun 20, 2017, 12:50:37 PM6/20/17
to weewx-user
My apologies, but it is hard to understand what problem you are trying to solve.

Any Spanish speakers out there who could translate?

Also, it would help to include the log.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Antonio R

unread,
Jun 20, 2017, 1:06:27 PM6/20/17
to weewx-user
Ok, this is a google translation, but like in all languages, it does not end up doing it right.
Thank you very much for replying and I attached the log, although for the moment, there is no fault, so I can observe.

Well the only fault that has, is the one that usually has this type of stations the typical failure
Fousb: unstable read: blocks differ for ptr 0x000580


To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
weewx.log
Message has been deleted

Thomas Keffer

unread,
Jun 20, 2017, 1:18:35 PM6/20/17
to weewx-user
On Tue, Jun 20, 2017 at 10:14 AM, Andrew Milner <andrew.s...@gmail.com> wrote:
unstable read, blocks differ - it is 'normal' to have 5-10 of these error messages per day with fousb and wh1080/2080 stations - so do not worry about those.


​... which is what he noted.

Antonio R

unread,
Jun 20, 2017, 1:36:15 PM6/20/17
to weewx...@googlegroups.com
Ok thanks a lot, but what worries me is in a few days, the fall of my internet connection, because of weewx.
Thanks friend.

Antonio Rocamora










--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/No901m846_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.

mwall

unread,
Jun 20, 2017, 1:55:41 PM6/20/17
to weewx-user
On Tuesday, June 20, 2017 at 1:36:15 PM UTC-4, Antonio R wrote:
Ok thanks a lot, but what worries me is in a few days, the fall of my internet connection, because of weewx.
Thanks friend.


perhaps this would be easier if you wrote in your mother tongue.  then let others attempt the translations as needed.

m

Thomas Keffer

unread,
Jun 20, 2017, 1:56:15 PM6/20/17
to weewx-user
I don't see how weewx could cause your internet connection to fail.

The other way around is possible: a bad internet connection could cause weewx to fail, but that would be a bug.

If and when you have the problem again, be sure to submit the log. It is impossible to diagnose the problem without knowing precisely what we are trying to solve!

-tk



--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.

Antonio R

unread,
Jun 21, 2017, 3:06:53 AM6/21/17
to weewx...@googlegroups.com
Okay Thomas, I'll be attentive and when I start failing I'll let you know.
Indeed a friend of my area told me the same as you, but I see that my connection falls for no reason.
Thank you very much when my connection fails, I will attach all the data you have.
Thank you very much.

Antonio Rocamora









Antonio R

unread,
Jun 21, 2017, 11:47:09 AM6/21/17
to weewx-user

The failures begin.
The page does not update this at 9:12 a.m.
Internet does not fail, for now.



weewx.log

Thomas Keffer

unread,
Jun 21, 2017, 4:52:54 PM6/21/17
to weewx-user
The problem is that you have a bad UTF-8 character in one of the templates used in StdReport. This caused an exception, preventing the HTML file from being generated. It has nothing to do with the network.

These UTF-8 errors can be tough to find. Check the file index.html.tmpl carefully for a bad character. If you don't know how to do this, I will try to help.

-tk


--

Thomas Keffer

unread,
Jun 21, 2017, 5:05:00 PM6/21/17
to weewx-user
Incidentally, these errors are slightly easier to find with the current version of Weewx. Starting with V3.3.0 it will tell you which template the problem is in. 

You have V3.1.0.

Consider upgrading.

-tk

Antonio R

unread,
Jun 22, 2017, 3:35:31 AM6/22/17
to weewx-user
Ok, network problems, so far have not started.
The index.html template, I changed it to one that I had before running, now the raspberry does not work is blocked.


El martes, 20 de junio de 2017, 18:35:48 (UTC+2), Antonio R escribió:

Antonio R

unread,
Jun 22, 2017, 11:55:50 AM6/22/17
to weewx-user


It is not possible to run with weewx, now I am blocked, I can no longer connect to the IP address and I am not generating the web page.
LED is red.
I would like to know if there is any image to download that does not fail exclusively for my FineOffsetUSB and that I configure only personal data.
I would also keep a backup for future bugs.
Now the copy I have, when I install again always gives the same faults, I think origin is not good.






I changed the version, now it seems to work fine.

It is newly installed.
The log looks correct.




El martes, 20 de junio de 2017, 18:35:48 (UTC+2), Antonio R escribió:
weewx.log

Thomas Keffer

unread,
Jun 22, 2017, 12:02:33 PM6/22/17
to weewx-user
Antonio,

I am still trying to understand what the problem is. Your log looks fine. Please submit a log that shows the problem.

Si lo prefiere, escriba su problema en español.

-tk

--

Antonio R

unread,
Jun 22, 2017, 12:11:51 PM6/22/17
to weewx-user
El problema es que las imagenes que instalo, o por una cosa o por otra, terminan corrompiendo, me quedo sin comunicacion, se bloquea (led rojo) ahora la ultima imagen que tenia funcionando, el log que ultimo he mandado, no se veian fallos, anteriormente si, pero casi seguro fue que edite el archivo index.html y modifique algo que no deje en formato utf-8, asi que borre el index.html por uno que tengo de copia de seguridad y fue perfecto, pero ahora me encuentro que no funciona bien la raspberry el led esta rojo y no tengo acceso al registro log.
Me gustaria saber si hay accesible alguna imagen creada para la FineOffsetUSB   que yo solo tenga que editar weewx.conf y el index.html, creo que todo el problema viene de la imagen de la que parto desde un inicio.
Tambien he probado instalar raspbian jessie-lite y luego instalar con script wget o con APT y nunca me sale bien, por lo que estoy desanimado.

Muchas gracias Thomas por tu interes, te lo agradezco amigo y perdon por el traductor.


El martes, 20 de junio de 2017, 18:35:48 (UTC+2), Antonio R escribió:

Thomas Keffer

unread,
Jun 22, 2017, 12:18:04 PM6/22/17
to weewx-user
Entiendo ahora. No creo que tu problema esté relacionado con weewx. Probablemente es un problema de red. Intente conectarse a su Raspberry Pi usando un teclado USB y un monitor HDMI.

No tengo imagen creada para la FineOffsetUSB.

-tk

--

Antonio R

unread,
Jun 22, 2017, 12:26:28 PM6/22/17
to weewx...@googlegroups.com
Ok, un colega de la zona me dijo lo mismo, pero el tema esta en que la imagen funciona tres cuatro dias bien.   "Bueno ahora esta fallando antes" y luego empieza a fallar y la red me la ralentiza tanto que no puedo conectarme ni con dispositivos moviles, ni  a traves de  Ethernet, tengo 120 Mb contratados de fibra optica.
Despues instalo otro programa como wview y me va bien no me falla nada, el problema es que fue una imagen que consegui y no hice copia de seguridad y por un problema con el formato de hora, se ve que modifique algo que no debia haberlo hecho y la rompi.
En cuanto a conectarme me conecto bien por ssh a traves de Putty y edito y modifico tambien con WinScp. No tengo problemas de poderme conectar via ssh, a no ser que la imagen se haya roto.
Ahora mismo acabo de instalar la imagen de weewx que tengo guardada por si hay problemas y cuando la instalo empieza a funcionar perfectamente, luego fallara seguro.

Gracias Thomas.

Antonio Rocamora










--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/No901m846_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.

Antonio R

unread,
Jun 22, 2017, 12:28:55 PM6/22/17
to weewx...@googlegroups.com

Sin problemas funcionando, hasta el proximo fallo, no consigo que funcione un mes seguido.

Y la red de internet funciona perfectamente.

http://62.175.41.238/weewx/


Antonio Rocamora









Thomas Keffer

unread,
Jun 22, 2017, 1:02:48 PM6/22/17
to weewx-user
OK. Espere hasta el siguiente fallo, luego (muy importante) incluya el registro.

-tk

Thomas Keffer

unread,
Jun 22, 2017, 2:22:52 PM6/22/17
to weewx-user
Otra cosa: no hay diferencia entre una imagen weewx para el Fine Offset, y cualquier otra imagen. La única diferencia está en el archivo weewx.conf.

Usted puede utilizar el programa wee_debug para ofuscar las contraseñas en su weewx.conf, luego publicarlo.

Andrew Milner

unread,
Jun 22, 2017, 8:54:02 PM6/22/17
to weewx-user
I noticed in the log which Antonio published that his dates went from 11 June, back to 1970 and then to 22 June which makes me wonder if he has got bad data in the database possibly causing issues - especially if his rpi is losing network connection frequently and restarting often (which also seems likely).  

Antonio Rocamora











Antonio Rocamora










To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/No901m846_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Thomas Keffer

unread,
Jun 22, 2017, 9:32:01 PM6/22/17
to weewx-user
Yes, but weewx waits until a sane time appears so, provided NTP is doing its job, this should be ok.

Antonio: ¿Qué pasó entre el 11 y el 22 de junio? ¿Tu RPi estaba fuera de línea?

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.

Andrew Milner

unread,
Jun 22, 2017, 9:41:22 PM6/22/17
to weewx-user
I agree with you Tom - in 'normal' circumstances.  However 11-22 is a long time (during which he was posting failures).  I am suspicious about both the base rpi install (since he appears to use images rather than installing) and maybe even his sd card - especially if he has networking issues and/or the notorious rpi power problems underlying the problems.  The jump from 3.1 to 3.7 for weewx makes me also suspect that regular base update/upgrades may not be being done as standard maintenance tasks either.  Seeking to use images as backups makes me suspicious that if an old 'image' is used to get things running - this old image is not then updated, with an end result being that one is just not sure exactly what is running.  Just my two pennyworth.  Back over to you and I'll try to keep my nose out of this one - mainly because my Spanish is worse than my american!!

Antonio R

unread,
Jun 23, 2017, 2:46:00 AM6/23/17
to weewx-user
Yo pienso que las diferencias de fecha, es por las imagenes que instalo, cuando falla una imagen meto otra tarjeta SD y creo que sera eso.
Los saltos de version de weewx, creo que en el registro no salen, pero es verdad que como tengo dos imagenes puede que instalara la imagen vieja weewx 3.1 y ahora estoy utilizando 3.7.
Ahora viene los malo, ayer funcionando perfectamente, esta mañana despierto y veo que no genera la web, ni en 192.168.1.5/weewx y tampoco    http://62.175.41.238/weewx/, el registro no le veo ningun problema, ahora lo adjunto y lo que si veo es que subo datos a aprs.fi, wunderground y awekas.
Adjunto el nuevo log.

Agradezco mucho la ayuda que me estais prestando, pero como veis no tengo un dia en el que no tenga algun fallo en weewx.
Lo utilizo con tres tarjetas SD distintas.



El martes, 20 de junio de 2017, 18:35:48 (UTC+2), Antonio R escribió:
weewx.log

Andrew Milner

unread,
Jun 23, 2017, 2:56:29 AM6/23/17
to weewx-user
Why was weewx restarted at 0526 on 23 Jun??  There was no reported error.

Even with the restart your installation loads to awekas, CWOP and wunderground OK all the time - so weewx is continuing to operate correctly.

What exactly is your problem??

Antonio R

unread,
Jun 23, 2017, 3:11:26 AM6/23/17
to weewx...@googlegroups.com
El problema es que, weewx se para cuando le apetece, ahora mismo no esta generando la web, aunque como dices si esta funcionando pues manda datos a Awekas, Wunderground y CWOP, pero aunque me conecto a traves de mi IP interna por ssh con Putty y WinScp, la pagina web no me la esta generando.
http://192.168.1.5/weewx/  no funciona y en mi router si estoy conectado.

He realizado un sudo reboot a la raspberry y me sale una hora que no entiendo hoy dia 23/06  08:55 h.
Como no genera la pagina web a ver si con el sudo reboot arranca la pagina web.


Adjunto el ultimo Log



Antonio Rocamora










--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/No901m846_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
weewx.log

Andrew Milner

unread,
Jun 23, 2017, 3:36:06 AM6/23/17
to weewx-user
The log showed that weewx was copying the files to /var/www/html/weewx as expected.

The display of the website and delivery of the pages is not handled by weewx, but by your web server.  Weewx only puts the files in the correct place.

When you are connected to the raspberry by ssh you can check the times of the files in /var/www/html/weewx, and hopefully you will find they are the latest!!

Antonio Rocamora










To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Antonio R

unread,
Jun 23, 2017, 6:40:02 AM6/23/17
to weewx...@googlegroups.com
Los archivos parece que si los genera, conectandome por ssh y con WinScp veo que los esta generando a la hora correcta y coincide con weewx.log, esta es el pantallazo de WinScp

https://prnt.sc/fn7zn8

todo bien aunque no los veo dentro de mi red ni en el el redireccionamiento que tengo de (noip.com) a mi red.
Seguire investigando.

Muchas gracias por la ayuda.

Antonio Rocamora










To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.

Andrew Milner

unread,
Jun 23, 2017, 7:15:13 AM6/23/17
to weewx-user
depending on what web server you are using the cause of not being able to see the files could be for many reasons - but it is definitely not a problem with weewx!!

Antonio Rocamora

unread,
Jun 23, 2017, 7:36:59 AM6/23/17
to weewx...@googlegroups.com
Ok, buscare a ver cual puede ser la razon.
Ayer instale la imagen despues de los fallos que tuve y esta noche pasada madrugada, mientras dormia se ha estropeado y al levantarme ya no funcionaba la pagina web ni en mi red interna ni en el redirecionamiento que tengo a mi IP.

Gracias



Enviado desde mi iPhone
Reply all
Reply to author
Forward
0 new messages