Beginner problems: no access to weather data in browser ? FTP problem

130 views
Skip to first unread message

Thomas Hackler

unread,
Dec 27, 2020, 11:03:05 AM12/27/20
to weewx-user

Hello,

I am new with linux and weewx. I use a Froggit DP1500 Gateway with different DP50 sensors and a WH3000 on a Raspberry Pi 3 Model A+.

I installed weewx on the pi and the driver for GW1000. Attached you can find the log file created with debug = 2

 

My problem is now that I have no access to the data. If I use localhost/weewx in the browser to show weatherdata on the Pi no site will appear and the upload of the data to my ftp doesn’t work too.

I would like to test the site from another computer in my network because the chromium browser is extremely slow on the pi.

I tried 192.168.178.24/weewx/index.html but it doesn’t work. 24 is the adress of the pi.

I have access to the sensors with WS View App on Android and I upload the data to ecowitt.

If I use wee_config --reconfigure --driver=user.gw1000

I use the ip address of the station I can see in WS View, it is 192.168.178.34 . Which port should I use ? Standard is 45000 ?

In the log file there are errors because of the FTP service.

I don’t know what I have to do or where to start? The first step for me would be to see weather data in a browser. Sorry I am a beginner

Thank you in advance for your help!

Attached is the mylog file, weewx.config and skin.conf

Regards

Thomas

Thomas Hackler

unread,
Dec 27, 2020, 11:05:17 AM12/27/20
to weewx-user
I cannot attach my log files, why ?

p q

unread,
Dec 27, 2020, 12:53:07 PM12/27/20
to weewx...@googlegroups.com
If you want to show your data on another computer using a web browser, you'll want to set up a web server on the PI. It's not hard to set up Apache. Performance-wise, it will run fine on a Raspi3.

On Sun, Dec 27, 2020 at 8:05 AM Thomas Hackler <kon...@apfelmanufaktur.de> wrote:
I cannot attach my log files, why ?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1a11b43b-24dd-4048-9900-d85c91eb457dn%40googlegroups.com.


--
Peter Quinn
(415)794-2264

vince

unread,
Dec 27, 2020, 12:57:05 PM12/27/20
to weewx-user
This comes up frequently.
A webserver is not installed in the Rasperry Pi os by default.
You have to install the one of your choosing.

Simply run:
    sudo apt-get install nginx

Then the URL you are trying to access will work.

gjr80

unread,
Dec 27, 2020, 2:49:16 PM12/27/20
to weewx-user
Hi,

Really going to see that log. The wiki entry Help! Posting to weewx user might help.

Alternatively, try copy and pasting directly rather than attaching a file. While you are at it can you make sure you set debug = 1 in weewx.conf and you restart WeeWX and let it run for a few archive periods. Then take a copy and of the log from when you started WeeWX through until the few archive periods have elapsed. Post the log extract here. 

Gary

Thomas Hackler

unread,
Dec 27, 2020, 3:15:20 PM12/27/20
to weewx-user
thanks for the advice with the webserver, now I can reach the website! Nice!
I still have the FTP problem

@ gjr80 here is the log file, I still cannot attach the file, I don't know why

Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****    File "/usr/lib/python2.7/Queue.py", line 177, in get
Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****      self.not_empty.wait(remaining)
Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****    File "/usr/lib/python2.7/threading.py", line 359, in wait
Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****      _sleep(delay)
Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****    File "/usr/share/weewx/weewxd", line 257, in sigTERMhandler
Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****      raise Terminate
Dec 27 20:58:04 raspberrypi weewx[2469] DEBUG __main__:     ****  Terminate
Dec 27 20:58:09 raspberrypi weewx[2509]: Stopping weewx weather system: weewx..
Dec 27 20:58:09 raspberrypi systemd[1]: weewx.service: Succeeded.
Dec 27 20:58:09 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Dec 27 20:58:50 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Dec 27 20:58:51 raspberrypi weewx[2605] INFO __main__: Initializing weewx version 4.2.0
Dec 27 20:58:51 raspberrypi weewx[2605] INFO __main__: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Dec 27 20:58:51 raspberrypi weewx[2605] INFO __main__: Platform Linux-5.4.51-v7+-armv7l-with-debian-10.4
Dec 27 20:58:51 raspberrypi weewx[2605] INFO __main__: Locale is 'de_DE'
Dec 27 20:58:51 raspberrypi weewx[2605] INFO __main__: PID file is /var/run/weewx.pid
Dec 27 20:58:51 raspberrypi weewx[2592]: Starting weewx weather system: weewx.
Dec 27 20:58:51 raspberrypi systemd[1]: Started LSB: weewx weather system.
Dec 27 20:58:51 raspberrypi weewx[2609] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Dec 27 20:58:51 raspberrypi weewx[2609] INFO __main__: Debug is 1
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG __main__: Initializing engine
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: Loading station type GW1000 (user.gw1000)
Dec 27 20:58:51 raspberrypi weewx[2609] INFO user.gw1000: field map is {'UV': 'uvi', 'dateTime': 'datetime', 'dayRain': 'rainday', 'daymaxwind': 'daymaxwind', 'dewpoint': 'dewpoint', 'extraHumid1': 'humid1', 'extraHumid2': 'humid2', 'extraHumid3': 'humid3', 'extraHumid4': 'humid4', 'extraHumid5': 'humid5', 'extraHumid6': 'humid6', 'extraHumid7': 'humid7', 'extraHumid8': 'humid8', 'extraTemp1': 'temp1', 'extraTemp2': 'temp2', 'extraTemp3': 'temp3', 'extraTemp4': 'temp4', 'extraTemp5': 'temp5', 'extraTemp6': 'temp6', 'extraTemp7': 'temp7', 'extraTemp8': 'temp8', 'heatindex': 'heatindex', 'hourRain': 'rainhour', 'inHumidity': 'inhumid', 'inTemp': 'intemp', 'leak1': 'leak1', 'leak2': 'leak2', 'leak3': 'leak3', 'leak4': 'leak4', 'lightning_distance': 'lightningdist', 'lightning_last_det_time': 'lightningdettime', 'lightning_strike_count': 'lightning_strike_count', 'luminosity': 'light', 'monthRain': 'rainmonth', 'outHumidity': 'outhumid', 'outTemp': 'outtemp', 'pm2_5': 'pm251', 'pm2_51_24hav': 'pm251_24hav', 'pm2_52': 'pm252', 'pm2_52_24hav': 'pm252_24hav', 'pm2_53': 'pm253', 'pm2_53_24hav': 'pm253_24hav', 'pm2_54': 'pm254', 'pm2_54_24hav': 'pm254_24hav', 'pressure': 'absbarometer', 'rain': 'rain', 'rainRate': 'rainrate', 'relbarometer': 'relbarometer', 'soilMoist1': 'soilmoist1', 'soilMoist2': 'soilmoist2', 'soilMoist3': 'soilmoist3', 'soilMoist4': 'soilmoist4', 'soilMoist5': 'soilmoist5', 'soilMoist6': 'soilmoist6', 'soilMoist7': 'soilmoist7', 'soilMoist8': 'soilmoist8', 'soilMoist9': 'soilmoist9', 'soilMoist10': 'soilmoist10', 'soilMoist11': 'soilmoist11', 'soilMoist12': 'soilmoist12', 'soilMoist13': 'soilmoist13', 'soilMoist14': 'soilmoist14', 'soilMoist15': 'soilmoist15', 'soilMoist16': 'soilmoist16', 'soilTemp1': 'soiltemp1', 'soilTemp2': 'soiltemp2', 'soilTemp3': 'soiltemp3', 'soilTemp4': 'soiltemp4', 'soilTemp5': 'soiltemp5', 'soilTemp6': 'soiltemp6', 'soilTemp7': 'soiltemp7', 'soilTemp8': 'soiltemp8', 'soilTemp9': 'soiltemp9', 'soilTemp10': 'soiltemp10', 'soilTemp11': 'soiltemp11', 'soilTemp12': 'soiltemp12', 'soilTemp13': 'soiltemp13', 'soilTemp14': 'soiltemp14', 'soilTemp15': 'soiltemp15', 'soilTemp16': 'soiltemp16', 'stormRain': 'rainevent', 'totalRain': 'raintotals', 'uvradiation': 'uv', 'weekRain': 'rainweek', 'wh25_batt': 'wh25_batt', 'wh26_batt': 'wh26_batt', 'wh31_ch1_batt': 'wh31_ch1_batt', 'wh31_ch2_batt': 'wh31_ch2_batt', 'wh31_ch3_batt': 'wh31_ch3_batt', 'wh31_ch4_batt': 'wh31_ch4_batt', 'wh31_ch5_batt': 'wh31_ch5_batt', 'wh31_ch6_batt': 'wh31_ch6_batt', 'wh31_ch7_batt': 'wh31_ch7_batt', 'wh31_ch8_batt': 'wh31_ch8_batt', 'wh40_batt': 'wh40_batt', 'wh41_ch1_batt': 'wh41_ch1_batt', 'wh41_ch2_batt': 'wh41_ch2_batt', 'wh41_ch3_batt': 'wh41_ch3_batt', 'wh41_ch4_batt': 'wh41_ch4_batt', 'wh51_ch1_batt': 'wh51_ch1_batt', 'wh51_ch2_batt': 'wh51_ch2_batt', 'wh51_ch3_batt': 'wh51_ch3_batt', 'wh51_ch4_batt': 'wh51_ch4_batt', 'wh51_ch5_batt': 'wh51_ch5_batt', 'wh51_ch6_batt': 'wh51_ch6_batt', 'wh51_ch7_batt': 'wh51_ch7_batt', 'wh51_ch8_batt': 'wh51_ch8_batt', 'wh51_ch9_batt': 'wh51_ch9_batt', 'wh51_ch10_batt': 'wh51_ch10_batt', 'wh51_ch11_batt': 'wh51_ch11_batt', 'wh51_ch12_batt': 'wh51_ch12_batt', 'wh51_ch13_batt': 'wh51_ch13_batt', 'wh51_ch14_batt': 'wh51_ch14_batt', 'wh51_ch15_batt': 'wh51_ch15_batt', 'wh51_ch16_batt': 'wh51_ch16_batt', 'wh55_ch1_batt': 'wh55_ch1_batt', 'wh55_ch2_batt': 'wh55_ch2_batt', 'wh55_ch3_batt': 'wh55_ch3_batt', 'wh55_ch4_batt': 'wh55_ch4_batt', 'wh57_batt': 'wh57_batt', 'wh65_batt': 'wh65_batt', 'wh68_batt': 'wh68_batt', 'windDir': 'winddir', 'windGust': 'gustspeed', 'windSpeed': 'windspeed', 'windchill': 'windchill', 'ws80_batt': 'ws80_batt', 'yearRain': 'rainyear'}
Dec 27 20:58:51 raspberrypi weewx[2609] INFO user.gw1000: driver version is 0.1.0b12
Dec 27 20:58:51 raspberrypi weewx[2609] INFO user.gw1000: GW1000 address is 192.168.178.34:45000
Dec 27 20:58:51 raspberrypi weewx[2609] INFO user.gw1000: poll interval is 20 seconds
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG user.gw1000: max tries is 3, retry wait time is 10 seconds
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG user.gw1000: broadcast address is 255.255.255.255:46000, socket timeout is 2 seconds
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: StdConvert target unit is 0x1
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.manager: Daily summary version is 2
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: Archive will use data binding wx_binding
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: Record generation will be attempted in 'software'
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: Using archive interval of 300 seconds (software record generation)
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.restx: StationRegistry: Registration not requested.
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.restx: Wunderground: Posting not enabled.
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.restx: PWSweather: Posting not enabled.
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.restx: CWOP: Posting not enabled.
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.restx: WOW: Posting not enabled.
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.restx: AWEKAS: Posting not enabled.
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Dec 27 20:58:51 raspberrypi weewx[2609] INFO __main__: Starting up weewx version 4.2.0
Dec 27 20:58:51 raspberrypi weewx[2609] DEBUG weewx.engine: Station does not support reading the time
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.manager: Starting backfill of daily summaries
Dec 27 20:58:51 raspberrypi weewx[2609] INFO weewx.engine: Starting main packet loop.
Dec 27 20:58:51 raspberrypi weewx[2609] INFO user.gw1000: Using 'rainyear' for rain total
Dec 27 20:58:51 raspberrypi weewx[2609] INFO user.gw1000: skipping rain measurement of 6.1: no last rain
Dec 27 20:59:11 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 20:59:31 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 20:59:51 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:00:12 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:00:32 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:00:32 raspberrypi weewx[2609] INFO weewx.manager: Added record 2020-12-27 21:00:00 CET (1609099200) to database 'weewx.sdb'
Dec 27 21:00:32 raspberrypi weewx[2609] INFO weewx.manager: Added record 2020-12-27 21:00:00 CET (1609099200) to daily summary in 'weewx.sdb'
Dec 27 21:00:32 raspberrypi weewx[2609] DEBUG weewx.reportengine: Running reports for latest time in the database.
Dec 27 21:00:32 raspberrypi weewx[2609] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Dec 27 21:00:32 raspberrypi weewx[2609] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Dec 27 21:00:33 raspberrypi weewx[2609] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Dec 27 21:00:33 raspberrypi weewx[2609] DEBUG weewx.manager: Daily summary version is 2
Dec 27 21:00:37 raspberrypi weewx[2609] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 3.96 seconds
Dec 27 21:00:37 raspberrypi weewx[2609] DEBUG weewx.manager: Daily summary version is 2
Dec 27 21:00:45 raspberrypi weewx[2609] INFO weewx.imagegenerator: Generated 45 images for report SeasonsReport in 8.43 seconds
Dec 27 21:00:45 raspberrypi weewx[2609] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weewx.reportengine: Running report 'FTP'
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 27 21:00:45 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:00:45 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Dec 27 21:00:52 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:01:12 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:01:32 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:01:53 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:02:13 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:02:33 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:02:53 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:03:13 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:03:33 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:03:53 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:04:14 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:04:34 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:04:54 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:05:14 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:05:34 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:05:34 raspberrypi weewx[2609] INFO weewx.manager: Added record 2020-12-27 21:05:00 CET (1609099500) to database 'weewx.sdb'
Dec 27 21:05:34 raspberrypi weewx[2609] INFO weewx.manager: Added record 2020-12-27 21:05:00 CET (1609099500) to daily summary in 'weewx.sdb'
Dec 27 21:05:34 raspberrypi weewx[2609] DEBUG weewx.reportengine: Running reports for latest time in the database.
Dec 27 21:05:34 raspberrypi weewx[2609] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Dec 27 21:05:34 raspberrypi weewx[2609] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Dec 27 21:05:35 raspberrypi weewx[2609] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Dec 27 21:05:35 raspberrypi weewx[2609] DEBUG weewx.manager: Daily summary version is 2
Dec 27 21:05:36 raspberrypi weewx[2609] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.69 seconds
Dec 27 21:05:36 raspberrypi weewx[2609] DEBUG weewx.manager: Daily summary version is 2
Dec 27 21:05:37 raspberrypi weewx[2609] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.08 seconds
Dec 27 21:05:37 raspberrypi weewx[2609] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weewx.reportengine: Running report 'FTP'
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 27 21:05:37 raspberrypi weewx[2609] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 27 21:05:37 raspberrypi weewx[2609] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Dec 27 21:05:54 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:06:15 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:06:35 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:06:55 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:07:16 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:07:35 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:07:55 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:08:16 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:08:36 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:08:55 raspberrypi kernel: [17158.650862] Indeed it is in host mode hprt0 = 00021501
Dec 27 21:08:55 raspberrypi kernel: [17158.860804] usb 1-1: new high-speed USB device number 6 using dwc_otg
Dec 27 21:08:55 raspberrypi kernel: [17158.861613] Indeed it is in host mode hprt0 = 00001101
Dec 27 21:08:55 raspberrypi kernel: [17159.110014] usb 1-1: New USB device found, idVendor=0718, idProduct=0432, bcdDevice= 1.10
Dec 27 21:08:55 raspberrypi kernel: [17159.110026] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 27 21:08:55 raspberrypi kernel: [17159.110032] usb 1-1: Product: Nano
Dec 27 21:08:55 raspberrypi kernel: [17159.110038] usb 1-1: Manufacturer: Imation
Dec 27 21:08:55 raspberrypi kernel: [17159.110044] usb 1-1: SerialNumber: 078A01165F04
Dec 27 21:08:55 raspberrypi kernel: [17159.110495] usb-storage 1-1:1.0: USB Mass Storage device detected
Dec 27 21:08:55 raspberrypi kernel: [17159.115977] scsi host0: usb-storage 1-1:1.0
Dec 27 21:08:55 raspberrypi mtp-probe: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1"
Dec 27 21:08:55 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device
Dec 27 21:08:56 raspberrypi mtp-probe: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1"
Dec 27 21:08:56 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device
Dec 27 21:08:56 raspberrypi kernel: [17160.191958] scsi 0:0:0:0: Direct-Access     Imation  Nano             PMAP PQ: 0 ANSI: 0 CCS
Dec 27 21:08:56 raspberrypi kernel: [17160.192350] scsi 0:0:0:0: Attached scsi generic sg0 type 0
Dec 27 21:08:57 raspberrypi kernel: [17160.410150] sd 0:0:0:0: [sda] 3913728 512-byte logical blocks: (2.00 GB/1.87 GiB)
Dec 27 21:08:57 raspberrypi kernel: [17160.410317] sd 0:0:0:0: [sda] Write Protect is off
Dec 27 21:08:57 raspberrypi kernel: [17160.410325] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
Dec 27 21:08:57 raspberrypi kernel: [17160.410515] sd 0:0:0:0: [sda] No Caching mode page found
Dec 27 21:08:57 raspberrypi kernel: [17160.410523] sd 0:0:0:0: [sda] Assuming drive cache: write through
Dec 27 21:08:57 raspberrypi kernel: [17160.464393]  sda: sda1
Dec 27 21:08:57 raspberrypi kernel: [17160.467791] sd 0:0:0:0: [sda] Attached SCSI removable disk
Dec 27 21:08:57 raspberrypi kernel: [17161.054988] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Dec 27 21:08:57 raspberrypi systemd[1]: Started Clean the /media/pi/XBA mount point.
Dec 27 21:08:57 raspberrypi udisksd[329]: Mounted /dev/sda1 at /media/pi/XBA on behalf of uid 1000
Dec 27 21:08:58 raspberrypi weewx[2609] DEBUG user.gw1000: Failed to obtain response to attempt 1 to send command 'CMD_GW1000_LIVEDATA': timed out
Dec 27 21:09:10 raspberrypi weewx[2609] DEBUG user.gw1000: Failed to obtain response to attempt 2 to send command 'CMD_GW1000_LIVEDATA': timed out
Dec 27 21:09:22 raspberrypi weewx[2609] DEBUG user.gw1000: Failed to obtain response to attempt 3 to send command 'CMD_GW1000_LIVEDATA': timed out
Dec 27 21:09:22 raspberrypi weewx[2609] ERROR user.gw1000: Failed to obtain response to command 'CMD_GW1000_LIVEDATA' after 3 attempts
Dec 27 21:09:22 raspberrypi weewx[2609] DEBUG user.gw1000: IP address specified in 'weewx.conf', re-discovery was not attempted
Dec 27 21:09:22 raspberrypi weewx[2609] ERROR user.gw1000: Unable to obtain live sensor data
Dec 27 21:09:22 raspberrypi weewx[2609] DEBUG user.gw1000: Next update in 20 seconds
Dec 27 21:09:22 raspberrypi weewx[2609] INFO weewx.engine: Main loop exiting. Shutting engine down.
Dec 27 21:09:22 raspberrypi weewx[2609] INFO weewx.engine: Shutting down StdReport thread
Dec 27 21:09:22 raspberrypi weewx[2609] DEBUG weewx.engine: StdReport thread has been terminated
Dec 27 21:09:23 raspberrypi weewx[2609] INFO user.gw1000: Gw1000Collector thread has been terminated
Dec 27 21:09:23 raspberrypi weewx[2609] CRITICAL __main__: Caught WeeWxIOError: Failed to obtain response to command 'CMD_GW1000_LIVEDATA' after 3 attempts
Dec 27 21:09:23 raspberrypi weewx[2609] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Dec 27 21:10:21 raspberrypi systemd[1]: Stopping LSB: weewx weather system...
Dec 27 21:10:21 raspberrypi weewx[2609] INFO __main__: Received signal TERM (15).
Dec 27 21:10:26 raspberrypi weewx[2760]: Stopping weewx weather system: weewx..
Dec 27 21:10:26 raspberrypi systemd[1]: weewx.service: Succeeded.
Dec 27 21:10:26 raspberrypi systemd[1]: Stopped LSB: weewx weather system.


gjr80

unread,
Dec 27, 2020, 3:22:13 PM12/27/20
to weewx-user
I am no ftp expert but it seems you WeeWX machine is unable to resolve your ftp server URL. Can you ftp to your ftp server from the command line on you WeeWX machine?

Gary

vince

unread,
Dec 27, 2020, 3:54:26 PM12/27/20
to weewx-user
Also, your log had things in it like "/usr/lib/python2.7/socket.py" which tells me it is trying to use python2 when a modern raspi os uses python3 as the default.   Did you use the wrong instructions when you installed weewx ?  You should have used the python3 instructions.

Please provide the output of:
  • sudo cat /etc/os-release
  • sudo cat /etc/debian_version
  • sudo cat /boot/issue.txt

Thomas Hackler

unread,
Dec 27, 2020, 4:16:24 PM12/27/20
to weewx-user
$ sudo cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"


Version 10.4

$ sudo cat /boot/issue.txt
Raspberry Pi reference 2020-08-20
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 9a3a10bf1019ebb2d59053564dc6b90068bad27d, stage4

gjr80

unread,
Dec 27, 2020, 4:22:38 PM12/27/20
to weewx-user

Don’t really see this as being too much of an issue. The main python 2/3 issue that seems to come up is lack of prerequisites (for whatever reason). Since WeeWX is running fine (with just an ftp error) this suggests all the prerequisites are there. I’d suggest you don’t go down the path of trying to change an existing python2 (WeeWX) install from python2 to python3 just yet or you may well start having prerequisites issues.

Gary

Thomas Hackler

unread,
Dec 28, 2020, 3:09:15 PM12/28/20
to weewx-user
how can I check if my Pi can communicate with the ftp server?
the ftp server is working

vince

unread,
Dec 28, 2020, 3:28:46 PM12/28/20
to weewx-user
Google "how to use ftp linux" perhaps ?

Typically you want to check such things from the command line to know the server and your username/password work, and then work getting weewx configured to match.

Thomas Hackler

unread,
Dec 28, 2020, 4:28:20 PM12/28/20
to weewx-user
with wget I was able to download a test file from the ftp, so in principle the pi can talk with the ftp

the ftp command is not working, this was my problem, I get -bash: ftp: command not found

it is not easy for windows people as linux beginner to start with weewx.....

vince

unread,
Dec 28, 2020, 4:40:53 PM12/28/20
to weewx-user
On Monday, December 28, 2020 at 1:28:20 PM UTC-8 Thomas Hackler wrote:
the ftp command is not working, this was my problem, I get -bash: ftp: command not found


I am assuming you are on a raspberry pi.
If so, you need to install ftp via "sudo apt-get install ftp"
 
it is not easy for windows people as linux beginner to start with weewx.....

Please invest some time in learning linux.  It will help.

https://www.edx.org/course/introduction-to-linux is a free course that over 600,000 people have taken. You can enroll for free and learn at your own pace.  There is no need to pay for the certificate.

Thomas Hackler

unread,
Dec 28, 2020, 5:25:16 PM12/28/20
to weewx-user
this is the error message from the log file, maybe somebody see the reason for the problem:

Dec 28 23:15:42 raspberrypi weewx[7606] DEBUG weewx.reportengine: Running report 'FTP'
Dec 28 23:15:42 raspberrypi weewx[7606] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Dec 28 23:15:42 raspberrypi weewx[7606] DEBUG weeutil.ftpupload: Attempting connection to ftp://xxxxyyyyzzzzz.eu
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 557, in create_connection
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****  gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 28 23:15:42 raspberrypi weewx[7606] DEBUG weeutil.ftpupload: Attempting connection to ftp://grabowski2000.selfhost.eu
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.gaierror'>': [Errno -2] Der Name oder der Dienst ist nicht bekannt
Dec 28 23:15:42 raspberrypi weewx[7606] ERROR weewx.reportengine:         ****  Traceback (most recent call last):

vince

unread,
Dec 28, 2020, 6:31:24 PM12/28/20
to weewx-user
Please show us the FTP section of weewx.conf with your username and password xxxxxx'd out

A socket.gaierror usually is the hostname does not resolve to an ip address, meaning you have a possible typo error in weewx.conf

Thomas Hackler

unread,
Dec 29, 2020, 5:58:10 AM12/29/20
to weewx-user
I tried it with passive and active mode, it is only ftp, no sftp  
Port is 21, maybe the problem ist html_root ?

[[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp

        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true
        user = fakeuser
        password = "xxxxxxxxx"
        server = ftp://testserver.provider.eu    # The ftp server name, e.g, www.myserver.org
        path = /weather    # The destination directory, e.g., /weather

        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = /var/www/html/weewx

        # Most FTP servers use port 21
        port = 21

        # Set to 1 to use passive mode, zero for active mode
        passive = 0

tomn...@frontier.com

unread,
Dec 29, 2020, 9:25:42 AM12/29/20
to weewx-user
Are you sure the ftp server name is correct?
Host testserver.provider.eu not found: 3(NXDOMAIN)

This is a DNS lookup, from the US, but that shouldn't matter.  Does the host name resolve to an ip address for you?
Did you get ftp installed and can you connect and transfer files by hand.  No point in trying to debug using weewx,
just run ftp from the command line and put/get a file.  Then retry weewx.
Chris

Thomas Hackler

unread,
Dec 29, 2020, 10:55:50 AM12/29/20
to weewx-user
the ftp is working, I load up different files from other things and I was able to connect to the ftp with the command wget.... and download a file to the raspberry pi so the ftp is working and I can talk to the ftp with raspberry

and I did sudo apt-get install ftp

p q

unread,
Dec 29, 2020, 11:05:32 AM12/29/20
to weewx...@googlegroups.com
Are you sure that wget is using FTP? This article says that HTTP is the default: https://networkengineering.stackexchange.com/questions/30430/what-is-the-transport-protocol-used-in-wget#:~:text=It%20supports%20HTTP%2C%20HTTPS%2C%20and,question%20is%3A%20wget%20uses%20TCP.

I second the recommendation that you make sure you can access the ftp site manually. You can try on windows first to make sure you have all the credentials correct.

--
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.


--
Peter Quinn
(415)794-2264

Thomas Hackler

unread,
Dec 29, 2020, 11:35:52 AM12/29/20
to weewx-user
ok its working... I found out the problem

the problem is "ftp://" before the server name in the weewx config file
only the name of the server will work

the ftp  command is working in the same why this is how I found it out
Reply all
Reply to author
Forward
0 new messages