FTP not connecting -- weewx on a raspberry pi

564 views
Skip to first unread message

Jerry Deibel

unread,
Jan 7, 2016, 2:50:37 PM1/7/16
to weewx-user
Hello all,
I have a ws1400-ip  that I want to run with weewx on my raspberry pi.

First,  I installed weewx , using ( ./setup.py  as the build)  on my linux (mint) pc  and installed the ObserverIP driver for it.
The driver is 0.5mw, which is the current one.
The weewx.conf setup in the ftp section is..
user = xxxx
password = "xxxxxxxxx"
server = n2uz.net
path = /public_html/myweather
port = 21
passive = 1
As a side note I use FILEZILLA to maintain my web page.
This works on the linux mint 17.1  pc   THE WEB PAGE Is BEING UPDATED.

I then Installed weewx the same way on the raspberry pi 
 ./setup.py as the build
 The driver is the same 0.5mw
 The weewx.conf setup is the same ...        user = xxxx    password = "xxxxxxxxx"   server = n2uz.net    path = /public_html/myweather etc etc...
I can use FILLZILLA on the raspberry pi and CONNECT   to my site (n2uz.net)
Here is the syslog...
Jan  7 14:07:24 raspberrypi weewx[2685]: engine: Initializing weewx
version 3.3.1
Jan  7 14:07:24 raspberrypi weewx[2685]: engine: Using Python 2.7.3
(default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Jan  7 14:07:24 raspberrypi weewx[2685]: engine: Platform
Linux-3.18.7-v7+-armv7l-with-debian-7.8
Jan  7 14:07:24 raspberrypi weewx[2685]: engine: Using configuration
file /home/weewx/weewx.conf
Jan  7 14:07:24 raspberrypi weewx[2685]: engine: Loading station type
ObserverIP (user.observerip)
Jan  7 14:07:25 raspberrypi weewx[2685]: observerip: version is 0.5mw
Jan  7 14:07:25 raspberrypi weewx[2685]: observerip: Unknown firmware
version: ����������
Jan  7 14:07:25 raspberrypi weewx[2685]: observerip: polling interval is 16.0
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: StdConvert target unit is 0x1
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Archive will use data
binding wx_binding
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Record generation
will be attempted in 'hardware'
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Using archive
interval of 300 seconds
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Using binding
'wx_binding' to database 'weewx.sdb'
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Starting backfill of
daily summaries
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Daily summaries up to date.
Jan  7 14:07:25 raspberrypi weewx[2685]: restx: StationRegistry:
Registration not requested.
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Starting up weewx version 3.3.1
Jan  7 14:07:25 raspberrypi weewx[2685]: engine: Starting main packet loop.
Jan  7 14:10:32 raspberrypi weewx[2685]: manager: added record
2016-01-07 14:10:00 EST (1452193800) to database 'weewx.sdb'
Jan  7 14:10:32 raspberrypi weewx[2685]: manager: added record
2016-01-07 14:10:00 EST (1452193800) to daily summary in 'weewx.sdb'
Jan  7 14:10:40 raspberrypi weewx[2685]: cheetahgenerator: Generated
14 files for report StandardReport in 6.56 seconds
Jan  7 14:10:46 raspberrypi weewx[2685]: genimages: Generated 36
images for StandardReport in 5.51 seconds
Jan  7 14:10:46 raspberrypi weewx[2685]: ftpupload: Unable to connect
or log into server : 530 Login incorrect.
Jan  7 14:10:46 raspberrypi weewx[2685]: ftpupload: Unable to connect
or log into server : 530 Login incorrect.
Jan  7 14:10:55 raspberrypi weewx[2685]: ftpupload: Unable to connect
or log into server : 530 Login incorrect.
Jan  7 14:10:55 raspberrypi weewx[2685]: ftpupload: Attempted 3 times
to connect to server n2uz.net. Giving up.
^Cpi@raspberrypi ~ $

 I did enabel SSH to try that and still no go.
Strange that FILEZILLA can connect ok.
Also, before I changed the weewx.conf for FTP.  The local (file:///home/weewx/public_html/index.html)  was updating normally.

Jerry

Jerry Deibel

unread,
Jan 7, 2016, 4:04:09 PM1/7/16
to weewx-user
Just to clarify something on my original post..
The password = "xxxxxxxxx"  is in double quotes because my web host requires a password with a special character.
Both the linux and PI boxes have the double quotes.
Jerry

Luc Heijst

unread,
Jan 7, 2016, 4:28:37 PM1/7/16
to weewx-user
Hi Jerry,

Probably this has nothing to do with your current problem, but I would expect the name of the ftp server start with "ftp." (like: ftp.n2uz.net) and the server path to be "/myweather" and not "/public_html/myweather"
I have seen messages where was stated that a # character in the password caused problems.

Luc

Thomas Keffer

unread,
Jan 7, 2016, 8:39:50 PM1/7/16
to weewx-user
Jerry,

You didn't respond in the old thread, but I assume adding the double quotes solved your earlier FTP problem. 

As for this problem, it's probably just some simple oversight. If you're really stuck, you can send me your config file.

-tk

--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jerry Deibel

unread,
Jan 9, 2016, 10:38:47 AM1/9/16
to weewx-user
Thank you all for responding to my FTP connect problem.
IT IS FIXED and it was the DOUBLE QUOTES on the password that WAS the culprit.
Like I said in my post, FTP worked on my desktop running linux mint 17.1 with Weewx, but not on the Pi  using the same weewx conf file.
The FIX is to use single quotes on the password.
The linux desktop running weewx will ftp with no problems using either single or double quotes ( because of special character in password).
The raspberry pi running weewx will ftp ok with the single quotes on the  password, but FAILS with double quotes.
I am using raspbian op system for the pi.
Jerry


On Thursday, January 7, 2016 at 2:50:37 PM UTC-5, Jerry Deibel wrote:
Reply all
Reply to author
Forward
0 new messages