the ftp is working, I load up different files from other things and I was 
able to connect to the ftp with the command wget.... and download a file to 
the raspberry pi so the ftp is working and I can talk to the ftp with 
raspberry

and I did sudo apt-get install ftp 

tomn...@frontier.com schrieb am Dienstag, 29. Dezember 2020 um 15:25:42 
UTC+1:

> Are you sure the ftp server name is correct?
> > host testserver.provider.eu 
> Host testserver.provider.eu not found: 3(NXDOMAIN)
>
> This is a DNS lookup, from the US, but that shouldn't matter.  Does the 
> host name resolve to an ip address for you?
> Did you get ftp installed and can you connect and transfer files by hand.  
> No point in trying to debug using weewx,
> just run ftp from the command line and put/get a file.  Then retry weewx.
> Chris
>
> On Tuesday, December 29, 2020 at 3:58:10 AM UTC-7 Thomas Hackler wrote:
>
>> 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/24f2c62c-6db9-4ef0-90e1-d359f369f2ben%40googlegroups.com.

Reply via email to