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

0 Members and 1 Guest are viewing this topic.

Offline youngros

  • Senior Member
  • **
  • Posts: 87
    • 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: 1550
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 »
Froggit WH4000SE (=EW 2320E) 1.6.4/GW1100 2.1.4/Froggit DP1500 1.6.8 (+EW GW1000 (4) 1.6.8/7.2 test/backup)/HP1000SE Pro (HP2551) 1.6.4/1.7.8, WH2650 WiFi (2) 1.7.2,GW2000 2.1.4;
Ecowitt WS90-,WS80,WH40,WH65,WH31(5),WH31-EP(1),WN30/DP30 (1),WH32(1),WH32-EP(1),WH32B [T/H/P] (1), WH57 [Lightning] (1), WH41 [PM2.5] (2), WH51 [SoilMoisture] (5), WH45, WH55 (2)
MeteobridgePro(2)[test,prod 5.4 May 07 2022, 14745 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3184/MB RPi4(2671)
Barani Meteoshield Pro, MetSpec Rad02
Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline vinceskahan

  • Senior Member
  • **
  • Posts: 85
    • 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 Seagate Dockstar (pogoplug)
  EcoWitt GW1000, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture (docker)
Home site:        https://www.skahan.net/
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:             CW6881