Author Topic: Ftp upload not working - UPDATE, it is now!  (Read 1136 times)

0 Members and 1 Guest are viewing this topic.

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Ftp upload not working - UPDATE, it is now!
« on: August 15, 2021, 12:34:43 PM »
Yesterday I got this working with the Simulator, but today I installed Weewx fresh and connected the Vantage Vue, filled everything in for the ftp as I did yesterday and get loads of errors like

ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -2] Name or service not known

Difficult to post all of them as this is Win10 and Weewx is on another computer that is difficult for me to use for typing.
This is not wrong name/username/password as I know that gives a different error.

Linux Mint 19

Literally posted this, went back to check the log and it is working. Maybe a hosting issue, will never know.
« Last Edit: August 15, 2021, 12:40:57 PM by youngros »

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3296
Re: Ftp upload not working - UPDATE, it is now!
« Reply #1 on: August 16, 2021, 03:58:24 PM »
could you share the system log from the weewx start until the first archiving and report generation !?
also share the [[FTP]] stanza from your [StdReport] section in weewx.conf (remove, scramble username and password !).
Best is the whole weewx.conf (without passwords  ;) ) so we can see which skin you are using...
Then we have a better possibility to see what might have gone wrong.

When you connect to your Linux computer via VNC, you can mark and copy the syslog text and then paste it into a Windows document or in the browser.

If your Linux installation doesn't have a UI and only a CLI, mount one of your Windows drives in the same network to your Linux server:

sudo mkdir /mnt/transfer  #create a mount point
sudo mount -t cifs -o username=Win-USERNAME,password=Win-PASSWORD //your-Win-PC-IP-Address/c /mnt/transfer

then you can copy the syslog to your PC - and edit it there

sudo cp /var/log/syslog /mnt/transfer

this will copy the syslog to the root directory of your Win-PC C: drive
« Last Edit: August 16, 2021, 04:01:57 PM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 180
    • home site
Re: Ftp upload not working - UPDATE, it is now!
« Reply #2 on: August 20, 2021, 02:04:31 PM »
ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -2] Name or service not known

Check that the FQDN in your weewx.conf is resolvable from your weewx system.

See if https://stackoverflow.com/questions/44591027/socket-gaierror-errno-2-name-or-service-not-known-with-python3 helps any
WeeWX sites:
  Davis VP2+DFARS to a pi4
  EcoWitt GW1000, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture (docker)
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881

 

anything