Problem with upload report via FTP on ALTERVISTA

318 views
Skip to first unread message

Gian Luca C.

unread,
Feb 6, 2015, 4:22:31 PM2/6/15
to weewx...@googlegroups.com
Hi to all,
I am trying to send the files in the folder public_html on altervista site via ftp . In the file weewx.conf I set the access to the ftp site but reading weewx log I see that it says "ftpupload : attempt # 1 . Failed uploading ftp_server_address / public_html / monthrain.png to ftp_server_address. Reason : 553 Unable to open that file : No such file or directory " , this message appears for all the files in the folder . The result of course is that no files are sent to the ftp site. I just can not understand why . If I copy the folder manually on the server via ftp the data is copied correctly .
Any suggestion?
Thx in advance

Thomas Keffer

unread,
Feb 6, 2015, 4:27:44 PM2/6/15
to weewx-user
Take a look at this thread.

Generally, the problem is on side of the FTP server, usually a permissions problem.

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

Gian Luca C.

unread,
Feb 6, 2015, 4:50:49 PM2/6/15
to weewx...@googlegroups.com
Thx for your replay. I'have already read this post but the problem doesn't solved.

This is my log:

Feb  6 22:46:11 raspberrypi weewx[2201]: ftpupload: attempt #1. Failed uploading gianluca76.xxx.org/public_html/mobile.html to ftp.gianluca76.xxx.org. Reason: 553 Impossibile aprire quel file: No such file or directory
Feb  6 22:46:11 raspberrypi weewx[2201]: ftpupload: attempt #2. Failed uploading gianluca76.xxx.org/public_html/mobile.html to ftp.gianluca76.xxx.org. Reason: 553 Impossibile aprire quel file: No such file or directory
Feb  6 22:46:11 raspberrypi weewx[2201]: ftpupload: attempt #3. Failed uploading gianluca76.xxx.org/public_html/mobile.html to ftp.gianluca76.xxx.org. Reason: 553 Impossibile aprire quel file: No such file or directory
Feb  6 22:46:11 raspberrypi weewx[2201]: ftpupload: Failed to upload file gianluca76.xxx.org/public_html/mobile.html

This is weewx.conf:

[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
    
    # The database binding indicates which data should be used in reports
    data_binding = wx_binding
    
    # Each subsection represents a report you wish to run.
    
    [[StandardReport]]
        # See the customizing guide to change the units, plot types and line
        # colors, modify the fonts, display additional sensor data, and other
        # customizations.  Many of those changes can be made here by overriding
        # parameters, or by modifying templates within the skin itself.
        
        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Standard
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_speed2 = meter_per_second2
                group_pressure = mbar
                group_rain = mm
                group_rainrate = mm_per_hour
                group_temperature = degree_C
                group_degree_day = degree_C_day
                group_speed = meter_per_second
    
    [[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 = xxx
        password = xxx
        server = ftp.gianluca76.xxxorg
        path = /meteo

        
        # 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

Thomas Keffer

unread,
Feb 6, 2015, 8:21:41 PM2/6/15
to weewx-user
Gian,

This is almost surely a permissions problem. 

The FTP server will put the user in a certain directory (it varies from server to server). You must have write permission in the subdirectory "meteo" of this directory. 

If you can't figure it out, I can make the same offer I made to Paolo: send me the [[FTP]] section, with user name and password, in a private message and I'll give it a try.

-tk

Jarmo Seppänen

unread,
Feb 7, 2015, 3:37:54 AM2/7/15
to weewx...@googlegroups.com
Hi Gian Luca,

I'm also using Altervista and it works very well.

Please check from the Altervista console if you have enabled some access rights to the /meteo folder
If so, remove them from Applications => Filemanagement. You can see if there are access right enabled by choosing the /meteo folder and if the lock icon is closed there is .htaccess file in place.

Also verify from your HTML_ROOT that there actually is files that your are trying to upload i.e. mobile.html and others.
for example I have folder simple under HTML_ROOT and therefore it needs to be reflected to the FTP section in weewx.conf.
Like this:
HTML_ROOT = public_html/simple

jaMO

Gian Luca C.

unread,
Feb 7, 2015, 5:07:15 AM2/7/15
to weewx...@googlegroups.com
I solved The problem. In public_HTML there was a file #ftp.last corrupted. So I excluded The FTP upload from weewx.conf and restart weewx. Then I include FTP upload in weewx.conf and reboot again. After this The file corrupted was erased and upload started.
THX to all.
Reply all
Reply to author
Forward
0 new messages