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 '<class 'socket.timeout'>': 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 = /var/www/html/weewx/belchertown
# Most FTP servers use port 21
port = 22
# Set to 1 to use passive mode, zero for active mode
passive = 1
With sftp client I could transfer files to target machine without any
issues.
Any ideas what can I check or doing for solving the problems?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/5f4008f4-0a3b-4b83-8ce0-bbcf68c27fe6o%40googlegroups.com.