[weewx-user] Re: sftp upload not working
Thank you Fam De Munck. Sent me exactly where I needed to go. On Wednesday, July 1, 2020 at 2:53:41 AM UTC-4 Fam de Munck wrote: > It seems you are confusing sftp and ftps. > > Please have a look at: > https://github.com/weewx/weewx/wiki > http://www.weewx.com/docs/usersguide.htm#config_FTP > > > Op dinsdag 30 juni 2020 17:21:05 UTC+2 schreef Andre: > >> I have problems to upload with sftp from my RPi to my new vServer. >> >> Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Running >> report 'FTP' >> Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Found >> configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP' >> Jun 30 16:56:28 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting >> secure connection to x.xx.xxx.xxx >> Jun 30 16:56:29 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:29 CEST (1593528989) >> Jun 30 16:56:31 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:31 CEST (1593528991) >> Jun 30 16:56:33 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:33 CEST (1593528993) >> Jun 30 16:56:35 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:35 CEST (1593528995) >> Jun 30 16:56:37 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:37 CEST (1593528997) >> Jun 30 16:56:39 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:39 CEST (1593528999) >> Jun 30 16:56:41 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:41 CEST (1593529001) >> Jun 30 16:56:43 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:43 CEST (1593529003) >> Jun 30 16:56:45 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:45 CEST (1593529005) >> Jun 30 16:56:47 weewx weewx[2174] INFO weewx.restx: MQTT: Published >> record 2020-06-30 16:56:47 CEST (1593529007) >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: ftpgenerator: >> (0): caught exception '': timed out >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> Traceback (most recent call last): >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/share/weewx/weewx/reportengine.py", line 330, in run >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> n = ftp_data.run() >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> ftp_server.connect(self.server, self.port) >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/lib/python3.7/ftplib.py", line 155, in connect >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> self.welcome = self.getresp() >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/lib/python3.7/ftplib.py", line 236, in getresp >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> resp = self.getmultiline() >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/lib/python3.7/ftplib.py", line 226, in getmultiline >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> nextline = self.getline() >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/lib/python3.7/ftplib.py", line 204, in getline >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> line = self.file.readline(self.maxline + 1) >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >>File "/usr/lib/python3.7/socket.py", line 589, in readinto >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> return self._sock.recv_into(b) >> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >> socket.timeout: timed out >> Jun 30 16:56:48 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting >> secure connection to x.xx.xxx.xxx >> >> [[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 = username >> password = "password" >> server = x.xx.xxx.xxx# The ftp server name, e.g, >> www.myserver.org >> path = /var/www/html/www.doamainname.com/public_html# The >> destination directory, e.g., /weather >> >> # Set to True for an FTP over TLS (FTPS) connection. Not all >> servers >>
[weewx-user] Re: sftp upload not working
It seems you are confusing sftp and ftps. Please have a look at: https://github.com/weewx/weewx/wiki http://www.weewx.com/docs/usersguide.htm#config_FTP Op dinsdag 30 juni 2020 17:21:05 UTC+2 schreef Andre: > > I have problems to upload with sftp from my RPi to my new vServer. > > Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Running > report 'FTP' > Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Found > configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP' > Jun 30 16:56:28 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting > secure connection to x.xx.xxx.xxx > Jun 30 16:56:29 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:29 CEST (1593528989) > Jun 30 16:56:31 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:31 CEST (1593528991) > Jun 30 16:56:33 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:33 CEST (1593528993) > Jun 30 16:56:35 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:35 CEST (1593528995) > Jun 30 16:56:37 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:37 CEST (1593528997) > Jun 30 16:56:39 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:39 CEST (1593528999) > Jun 30 16:56:41 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:41 CEST (1593529001) > Jun 30 16:56:43 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:43 CEST (1593529003) > Jun 30 16:56:45 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:45 CEST (1593529005) > Jun 30 16:56:47 weewx weewx[2174] INFO weewx.restx: MQTT: Published > record 2020-06-30 16:56:47 CEST (1593529007) > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: ftpgenerator: > (0): caught exception '': timed out > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > Traceback (most recent call last): > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/share/weewx/weewx/reportengine.py", line 330, in run > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > n = ftp_data.run() > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > ftp_server.connect(self.server, self.port) > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/lib/python3.7/ftplib.py", line 155, in connect > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > self.welcome = self.getresp() > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/lib/python3.7/ftplib.py", line 236, in getresp > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > resp = self.getmultiline() > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/lib/python3.7/ftplib.py", line 226, in getmultiline > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > nextline = self.getline() > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/lib/python3.7/ftplib.py", line 204, in getline > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > line = self.file.readline(self.maxline + 1) > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: >File "/usr/lib/python3.7/socket.py", line 589, in readinto > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > return self._sock.recv_into(b) > Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: > socket.timeout: timed out > Jun 30 16:56:48 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting > secure connection to x.xx.xxx.xxx > > [[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 = username > password = "password" > server = x.xx.xxx.xxx# The ftp server name, e.g, > www.myserver.org > path = /var/www/html/www.doamainname.com/public_html# The > destination directory, e.g., /weather > > # Set to True for an FTP over TLS (FTPS) connection. Not all > servers > # support this. > secure_ftp = true > > # To upload files from something other than what HTML_ROOT is set > # to above, specify a different HTML_ROOT here. > HTML_ROOT =