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
vince schrieb am Dienstag, 29. Dezember 2020 um 00:31:24 UTC+1:
> 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
>
> On Monday, December 28, 2020 at 2:25:16 PM UTC-8 Thomas Hackler wrote:
>
>> 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 schrieb am Montag, 28. Dezember 2020 um 22:40:53 UTC+1:
>>
>>> 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.
>>>
>>>
--
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/e0ebebcb-55b7-4d9d-a516-10ee438b1aaen%40googlegroups.com.