Nov 9 06:47:02 weewx[32067]: sync: http request failed (400 Bad Request): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">#012<html><head>#012<title>400 Bad Request</title>#012</head><body>#012<h1>Bad Request</h1>#012<p>Your browser sent a request that this server could not understand.<br />#012</p>#012<hr>#012<address>Apache/2.2.22 (Debian) Server at my.domain.com Port 80</address>#012</body></html>
Nov 9 06:47:02 weewx[32067]: sync: fatal syncronization error
Nov 9 06:47:02 weewx[32067]: **** Reason: sync: Request to http://my.domain.com/updateData.php failed, server returned 400 status with reason 'Bad Request'. Check your entity configuration.
I'm running my webserver behind a proxy. From time to time i get a strange timeout on this and the sync service stops. Seems like sync service is very sensitive to this error. Any ideas here how this can be avoided? |
Nov 906:47:02 weewx[32067]: sync: http request failed (400BadRequest):<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">#012<html><head>#012<title>400 Bad Request</title>#012</head><body>#012<h1>Bad Request</h1>#012<p>Your browser sent a request that this server could not understand.<br />#012</p>#012<hr>#012<address>Apache/2.2.22 (Debian) Server at my.domain.com Port 80</address>#012</body></html> Nov 906:47:02 weewx[32067]: sync: fatal syncronization error Nov 906:47:02 weewx[32067]: **** Reason: sync:Request to http://my.domain.com/updateData.php failed, server returned 400 status with reason 'Bad Request'. Check your entity configuration. -- 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/DnaWsMpC9vE/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. |
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
|
--
--
[ ok ] Starting weewx (via systemctl): weewx.service.
root@jeanlinux:/# tail -f /var/log/syslog
Jan 24 01:15:45 jeanlinux weewx[13037]: **** File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
Jan 24 01:15:45 jeanlinux weewx[13037]: **** self.loadServices(config_dict)
Jan 24 01:15:45 jeanlinux weewx[13037]: **** File "/usr/share/weewx/weewx/engine.py", line 136, in loadServices
Jan 24 01:15:45 jeanlinux weewx[13037]: **** self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
Jan 24 01:15:45 jeanlinux weewx[13037]: **** File "/usr/share/weewx/weeutil/weeutil.py", line 973, in _get_object
Jan 24 01:15:45 jeanlinux weewx[13037]: **** mod = __import__(module)
Jan 24 01:15:45 jeanlinux weewx[13037]: **** File "/usr/share/weewx/user/sync.py", line 6, in <module>
Jan 24 01:15:45 jeanlinux weewx[13037]: **** import urllib3
Jan 24 01:15:45 jeanlinux weewx[13037]: **** ImportError: No module named urllib3
Jan 24 01:15:45 jeanlinux weewx[13037]: **** Exiting.
root@jeanlinux:/# apt-get install urllib3In English
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet urllib3
jeanlinux root @: / # apt-get install urllib3
Reading package lists ... Done
Shaft Construction dependencies
Reading state information ... Done
E: Could not find package urllib3
apt-cache search urllib3
python-pysocks - socket-like interface for tunneling through SOCKS - Python 2.x
python3-pysocks - socket-like interface for tunneling through SOCKS - Python 3.x
python-urllib3 - HTTP library with thread-safe connection pooling for Python
python-urllib3-whl - HTTP library with thread-safe connection pooling
python3-urllib3 - HTTP library with thread-safe connection pooling for Python3
python-requests - elegant and simple HTTP library for Python2, built for human beings
python-requests-whl - elegant and simple HTTP library for Python, built for human beings
python3-requests - elegant and simple HTTP library for Python3, built for human beings
python-awsauth - AWS authentication for Amazon S3 for the python-requests module
python3-awsauth - AWS authentication for Amazon S3 for the python3-requests module
sudo pip install urllib3
--
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.
[ ok ] Starting weewx (via systemctl): weewx.service.
root@jeanlinux:/etc/weewx# tail -f /var/log/syslog
Jan 25 02:15:16 jeanlinux weewx[16890]: **** File "/usr/share/weewx/user/sync.py", line 176, in back_fill
Jan 25 02:15:16 jeanlinux weewx[16890]: **** last_datetime_synced = self.fetch_latest_remote_datetime()
Jan 25 02:15:16 jeanlinux weewx[16890]: **** File "/usr/share/weewx/user/sync.py", line 228, in fetch_latest_remote_datetime
Jan 25 02:15:16 jeanlinux weewx[16890]: **** http_response = self.make_http_request(self.latest_url, postdata)
Jan 25 02:15:16 jeanlinux weewx[16890]: **** File "/usr/share/weewx/user/sync.py", line 281, in make_http_request
Jan 25 02:15:16 jeanlinux weewx[16890]: **** raise SyncError, "sync archive: Failed to invoke %s after %d tries" % (url, self.http_max_tries)
Jan 25 02:15:16 jeanlinux weewx[16890]: **** SyncError: sync archive: Failed to invoke http://meteo-landeda.org/web/meso/data.php after 3 tries
Jan 25 02:15:16 jeanlinux weewx[16890]: **** Exiting.
<config.json>
Luc
The great thank you
I had already created the bdd mesowx and what was with ....
http://www.meteo-landeda.org
Correction: This line should have unit "mm" and not "in" as was stated in the previous message.'rain': new meso.FieldDef('rain', mesowx.Unit.mm, 2, meso.Agg.sum, 'Rain'),
--
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.