Weewx and FTP

1,319 views
Skip to first unread message

Nicola Ambrosini

unread,
Jan 21, 2015, 9:41:54 AM1/21/15
to weewx...@googlegroups.com
I'm still working to enable FTP on Weewx but no results.... All login details and path are ok on the file .conf but looking on the syslog no words about FTP...

I've seen some screenshot of ather users that in the syslog appear FTP failed, but on mine nothing about FTP...
Please help!!!

Nick

Chris Thompstone

unread,
Jan 21, 2015, 11:26:46 AM1/21/15
to weewx...@googlegroups.com

Try:

debug = 1
in weewx.conf

restart weewx and recheck the log.
What's it say now?

Nicola Ambrosini

unread,
Jan 21, 2015, 12:35:52 PM1/21/15
to weewx...@googlegroups.com
Jan 21 18:34:25 raspberrypi weewx[2236]: reportengine: Running report FTP
Jan 21 18:34:25 raspberrypi weewx[2236]: reportengine: Found configuration file /home/weewx/skins/Ftp/skin.conf for report FTP
Jan 21 18:34:25 raspberrypi weewx[2236]: reportengine: FTP upload not requested. Skipped.
Jan 21 18:34:25 raspberrypi weewx[2236]: reportengine: Running report RSYNC
Jan 21 18:34:25 raspberrypi weewx[2236]: reportengine: Found configuration file /home/weewx/skins/Rsync/skin.conf for report RSYNC
Jan 21 18:34:25 raspberrypi weewx[2236]: reportengine: rsync upload not requested. Skipped.

Chris Thompstone

unread,
Jan 21, 2015, 12:49:38 PM1/21/15
to weewx...@googlegroups.com
look like your ftp section in weewx.conf is not properly filled out.

What does you ftp section look like?

Nicola Ambrosini

unread,
Jan 21, 2015, 1:09:52 PM1/21/15
to weewx...@googlegroups.com
 [[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, uncomment and fill out the next four lines:
        #user = **********
        #password = ************
        #server = ftp.*********.com
        #path = /home6/**********/meteo

Dave Webb KB1PVH

unread,
Jan 21, 2015, 1:12:39 PM1/21/15
to weewx...@googlegroups.com

Young red to remove the # before the four lines.

# If you wish to use FTP, uncomment and fill out the next four lines:
        #user = **********
        #password = ************
        #server = ftp.*********.com
        #path = /home6/**********/meteo

To this

# If you wish to use FTP, uncomment and fill out the next four lines:

         user = **********
         password = ************
         server = ftp.*********.com
         path = /home6/**********/meteo

Dave-KB1PVH

Sent from my Samsung S4

Nicola Ambrosini

unread,
Jan 21, 2015, 1:25:54 PM1/21/15
to weewx...@googlegroups.com
Tnx friends, seems to work now!
73's Dave de IZ3KGI-KC9KFI

Nicola Ambrosini

unread,
Jan 21, 2015, 2:35:56 PM1/21/15
to weewx...@googlegroups.com

Paolo Scarsini

unread,
Jan 28, 2015, 2:37:56 PM1/28/15
to weewx...@googlegroups.com
Sorry, i don't understand what should I put in path...
I wrote in the configuration file path = /weather but in the log file I see 

Reason: 553 Can't open that file: No such file or directory

Can you help me?

Thank you!

Paolo Scarsini

unread,
Jan 29, 2015, 11:56:55 AM1/29/15
to weewx...@googlegroups.com
No one can help me?

Thomas Keffer

unread,
Jan 29, 2015, 12:03:01 PM1/29/15
to weewx-user
Paolo,

I suspect you are not getting any help because you did not post much information. Please post your actual log, not just excerpts from the log.

If you set 

[[FTP]]
  ...
  path = /weather

make sure that the FTP account you are using has write permissions to the subdirectory /weather. Depending on the FTP server, you may even have to create it first.

-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.

Paolo Scarsini

unread,
Jan 29, 2015, 12:48:51 PM1/29/15
to weewx...@googlegroups.com
Thank you so much for the reply!

I've already created the folder /weather and uploaded via filezilla a test file and it works.

Here is the weewx.conf FTP segment:

[[FTP]]
        skin = Ftp

        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        #
        # If you wish to use FTP, uncomment and fill out the next four lines:
        user = *****@aruba.it
        password = ********
        server = ftp.******.com
        path = /weather

        # If you wish to upload files from something other than what HTML_ROOT
        # is set to above, then reset it here:
        #HTML_ROOT = public_html

        # Most FTP servers use port 21, but if yours is different, you can
        # change it here
        port = 21

        # Set to 1 to use passive mode, zero for active mode:
        passive = 1

        # How many times to try to transfer a file before giving up:
        max_tries = 3

And the log file reports:

Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: attempt #1. Failed uploading /weather/weekbarometer.png to ftp.*****.com. Reason: 553 Can't open that file: No such file or directory
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: attempt #2. Failed uploading /weather/weekbarometer.png to ftp.*****.com. Reason: 553 Can't open that file: No such file or directory
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: attempt #3. Failed uploading /weather/weekbarometer.png to ftp.*****.com. Reason: 553 Can't open that file: No such file or directory
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: Failed to upload file /weather/weekbarometer.png
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: attempt #1. Failed uploading /weather/yearwind.png to ftp.*****.com. Reason: 553 Can't open that file: No such file or directory
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: attempt #2. Failed uploading /weather/yearwind.png to ftp.*****.com. Reason: 553 Can't open that file: No such file or directory
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: attempt #3. Failed uploading /weather/yearwind.png to ftp.*****.com. Reason: 553 Can't open that file: No such file or directory
Jan 29 18:31:58 raspberrypi weewx[14699]: ftpupload: Failed to upload file /weather/yearwind.png

Any idea?

Thomas Keffer

unread,
Jan 29, 2015, 1:20:05 PM1/29/15
to weewx-user
What is HTML_ROOT set to?

And, does the source file in $HTML_ROOT exist? That is, does $HTML_ROOT/weather/weekbarometer.png, etc., exist? 

-tk

Paolo Scarsini

unread,
Jan 29, 2015, 1:26:49 PM1/29/15
to weewx...@googlegroups.com
HTML_ROOT is set to public_html...

The file in my raspberry is in public_html/weekbarometer.png

So in weewx.conf should i write      path = /       ?

Thomas Keffer

unread,
Jan 29, 2015, 1:43:15 PM1/29/15
to weewx-user
No, my mistake. The file should be in public_html/weekbarometer.png. It will be put in /weather/weekbarometer.png.

Some questions:

1. What version of weewx are you using?

2. You XXX'd out the server name. That's OK, but do you know what kind of FTP server it is?

3. Do you have any unusual permissions issues? Is the user running weewx the owner of the files?

4. Please post the full [StdReport] section of weewx.conf, removing any passwords.

-tk

Paolo Scarsini

unread,
Jan 29, 2015, 2:32:28 PM1/29/15
to weewx...@googlegroups.com
I try to answer your questions...

1. The weewx version is 2.6.3

2. I don't know what kind of FTP server is... how can I find it out?

3. The user running weewx is the owner

4. The StdReport:

[StdReport]
    # This section specifies what reports, using which skins, to generate.

    # Where the skins reside, relative to WEEWX_ROOT:
    SKIN_ROOT = skins
    
    # Where the generated reports should go, relative to WEEWX_ROOT:
    HTML_ROOT = public_html

    # Each subsection represents a report you wish to run:
    [[StandardReport]]
    
        # What skin this report should be based on:
        skin = Standard

        # You can override values in the skin configuration file here.  For
        # example, uncomment the following lines to display metric units
        # throughout the report, regardless of what is defined in the skin.
        #
        [[[Units]]]
            [[[[Groups]]]]
            group_altitude     = meter
            group_degree_day   = degree_C_day
            group_pressure     = mbar
            group_radiation    = watt_per_meter_squared
            group_rain         = mm
            group_rainrate     = mm_per_hour
            group_speed        = meter_per_second
            group_speed2       = meter_per_second2
            group_temperature  = degree_C
    
    # Here is an example where we create a custom report, still using the
    # standard skin, but where the image size is overridden, and the results
    # are put in a separate subdirectory 'public_html/big'
    #
    #[[BigReport]]
    #    skin = Standard
    #    HTML_ROOT = public_html/big
    #    [[[ImageGenerator]]]
    #        image_width = 600
    #        image_height = 360

    [[FTP]]
        skin = Ftp

        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        #
        # If you wish to use FTP, uncomment and fill out the next four lines:
        user = ****@aruba.it
        password = *****
        server = ftp.****.com
        #path = replace with the destination directory (e.g., /weather)
        path = /weather

        # If you wish to upload files from something other than what HTML_ROOT
        # is set to above, then reset it here:
        #HTML_ROOT = public_html

        # Most FTP servers use port 21, but if yours is different, you can
        # change it here
        port = 21

        # Set to 1 to use passive mode, zero for active mode:
        passive = 1

        # How many times to try to transfer a file before giving up:
        max_tries = 3

    [[RSYNC]]
        skin = Rsync

        # rsync'ing the results to a webserver is treated as just another
        # report, much like the FTP report.
        #
        # If you wish to use rsync, you must configure passwordless ssh using
        # public/private key authentication from the user account that weewx
        # runs as to the user account on the remote machine where the files
        # will be copied.
        #
        # The following configure what system and remote path the files are
        # sent to:
        #server = replace with your server name, e.g, www.threefools.org
        #path = replace with the destination directory (e.g., /weather)
        #user = replace with your username

        # Rsync can be configured to remove files from the remote server if
        # they don't exist under HTML_ROOT locally.  USE WITH CAUTION: if you
        # make a mistake in the remote path, you could could unintentionally
        # cause unrelated files to be deleted. Set to 1 to enable remote file
        # deletion, zero to allow files to accumulate remotely.
        delete = 0

##############################################################################


Thank you so much for your help!

Thomas Keffer

unread,
Jan 29, 2015, 3:15:57 PM1/29/15
to weewx-user
Pretty mysterious. I'm pretty convinced this is an ownership issue on the server, but you say you checked this.

Would you be willing to send me your FTP username and password in a private message? 

-tk

Paolo Scarsini

unread,
Jan 29, 2015, 3:40:58 PM1/29/15
to weewx...@googlegroups.com
We can try...
What you will see?

Thomas Keffer

unread,
Jan 29, 2015, 3:51:12 PM1/29/15
to weewx-user
I want to try to reproduce your error by uploading something. I also want to check permissions. 

-tk

Paolo Scarsini

unread,
Jan 29, 2015, 3:52:55 PM1/29/15
to weewx...@googlegroups.com
Where can I send you my user and password?

Paolo Scarsini

unread,
Jan 29, 2015, 5:39:28 PM1/29/15
to weewx...@googlegroups.com
Thanks to Tom Keffer i solved my problem.

My webserver provider uses the directory name to distinguish between different domains...
So i should use:

path = /www.****.com/weather

Thank you for the help!!!
Reply all
Reply to author
Forward
0 new messages