ftp does not work

87 views
Skip to first unread message

Astrid

unread,
Mar 23, 2020, 10:36:07 AM3/23/20
to weewx-user
Hello!

I am using weewx 3.9.2 on leap 15.1

In the moment I want to use the
Standard-skin, not the ftp-skin.
(I will decide the skin later on.)

On my computer the files are
put on /var/www/htdocs/weewx folder
very well and updatet.

But it does not work, that the files
are put to external webserver via ftp.

A subset of lines from my weewx.conf:

WEEWX_ROOT = /
[StdReport]
    HTML_ROOT = /var/www/htdocs/weewx # -> this works
    [[StandardReport]]
        skin = Standard
        enable = true
    [[FTP]]
        ##skin = Ftp # -> to keep the Standard-Skin
        enable = true
        user = myuser
        password = mypw
        server = mysubserver
        path = /             # -> this is ok to, there is a special ftpuser, which points to the correct folder

        HTML_ROOT = /   # ??? is this where it goes on my subserver, or where it copy from local?

        port = 21
        passive = 1
       
If I did on commandline
ftp myuser@mysubserver
it works and I am in correct folder, where the weewx-files
should be placed.
I did
put test.file
and it works too.
So I think, the default-ftp-parameter port 21 and passive are ok?

But why the weewx did not put on ftp... :(
How I can get it work?

Regards, Astrid


Thomas Keffer

unread,
Mar 23, 2020, 10:48:22 AM3/23/20
to weewx-user
We will need to see the log file. See the Wiki article Help! Posting to weewx-user for how to post a useful log file.

To answer your questions:
  1. HTML_ROOT is where the files are coming from. It is usually specified under the [StdReport] section.  It should not be necessary to specify it again in the [[FTP]] section,
  2. How 'path' is interpreted depends on the FTP server. Usually it is the path relative to the FTP user ('myuser' in your case). It may or may not need a leading slash.
-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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1e2e5583-03a8-44a0-aa86-8f1ee197096b%40googlegroups.com.

Astrid

unread,
Mar 23, 2020, 12:18:45 PM3/23/20
to weewx-user
Hello!

Thanx for your reply.
In weewx.conf I set DEBUG=1 now.
My local system I changed journalctl to old rsyslog.
So that I hope, that I will find something in /var/log/messages
But nothing inside from weewx, ftp or so on.

I looked on logs at serviceprovider, but I found no
hints there too... :(
I found no errormessages there too.

Do you can give me a hint, where I should look?

On local system or on external webserver?

Reagards, Astrid



Thomas Keffer

unread,
Mar 23, 2020, 12:39:05 PM3/23/20
to weewx-user
I really do not know. I am not an OpenSUSE expert, but I assume "journalctl -b" would show you messages since the last boot.

However, if you changed your logging facility, then I have no way of knowing.

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

Astrid

unread,
Mar 23, 2020, 1:41:29 PM3/23/20
to weewx-user
Hello!

Ok, thanx. :) so I switch back to systemd-logger-package.

I hope, this helps:

Mär 23 17:30:26 linux weewx[20473]: manager: Added record 2020-03-23 17:30:00 CET (1584981000) to daily summary in 'weewx.sdb'
Mär 23 17:30:26 linux weewx[20473]: reportengine: Running reports for latest time in the database.
Mär 23 17:30:26 linux weewx[20473]: reportengine: Report 'SeasonsReport' not enabled. Skipping.
Mär 23 17:30:26 linux weewx[20473]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Mär 23 17:30:26 linux weewx[20473]: reportengine: Report 'MobileReport' not enabled. Skipping.
Mär 23 17:30:26 linux weewx[20473]: reportengine: Running report 'StandardReport'
Mär 23 17:30:26 linux weewx[20473]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report 'StandardReport'
Mär 23 17:30:26 linux weewx[20473]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Mär 23 17:30:26 linux weewx[20473]: manager: Daily summary version is 2.0
Mär 23 17:30:28 linux weewx[20473]: cheetahgenerator: Generated 14 files for report StandardReport in 2.42 seconds
Mär 23 17:30:28 linux weewx[20473]: manager: Daily summary version is 2.0
Mär 23 17:30:30 linux weewx[20473]: imagegenerator: Generated 12 images for StandardReport in 1.39 seconds
Mär 23 17:30:30 linux weewx[20473]: copygenerator: copied 0 files to /var/www/htdocs/weewx
Mär 23 17:30:30 linux weewx[20473]: reportengine: Running report 'FTP'
Mär 23 17:30:30 linux weewx[20473]: reportengine: Cannot read skin configuration file /etc/weewx/skins/skin.conf for report 'FTP': Config file not found: "/etc/weewx/skins/skin.conf".
Mär 23 17:30:30 linux weewx[20473]: reportengine: No generators specified for report 'FTP'
Mär 23 17:30:30 linux weewx[20473]: reportengine: Report 'RSYNC' not enabled. Skipping.

The foldername in
/etc/weewx/skins
is
Ftp
not FTP

In weewx.conf I change now to:
[[FTP]]
        skin = Standard
before I comment the line.

Now the journalctl looks better at this place:

Mär 23 18:35:26 linux weewx[4564]: reportengine: Running report 'FTP'
Mär 23 18:35:26 linux weewx[4564]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report 'FTP'
Mär 23 18:35:26 linux weewx[4564]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Mär 23 18:35:26 linux weewx[4564]: manager: Daily summary version is 2.0
Mär 23 18:35:28 linux weewx[4564]: cheetahgenerator: Generated 14 files for report FTP in 1.93 seconds
Mär 23 18:35:28 linux weewx[4564]: manager: Daily summary version is 2.0
Mär 23 18:35:30 linux weewx[4564]: imagegenerator: Generated 12 images for FTP in 1.20 seconds
Mär 23 18:35:30 linux weewx[4564]: copygenerator: copied 14 files to /var/www/htdocs/weewx
Mär 23 18:35:30 linux weewx[4564]: reportengine: Report 'RSYNC' not enabled. Skipping.

But still nothing is uploaded... :(

Regards, Astrid

Thomas Keffer

unread,
Mar 23, 2020, 2:50:57 PM3/23/20
to weewx-user
Astrid, slow down there! You're just changing things randomly. Start with the copy of weewx.conf that was installed, then follow the directions in the User's Guide.

You should end up with something like...

    [[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 = myuser
        password = mypw
        server = mysubserver    # The ftp server name, e.g, www.myserver.org
        path = /      # The destination directory, e.g., /weather

You must not change the values in yellow

Change the values in blue.

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

Astrid

unread,
Mar 23, 2020, 3:49:54 PM3/23/20
to weewx-user
Hello!

Thanx. I will try it.
But I want the skin "Standard" for uploding to ftp.
I do _not_ want to use the skin Ftp.
How can I get this?

Regards, Astrid

Thomas Keffer

unread,
Mar 23, 2020, 4:52:29 PM3/23/20
to weewx-user
I understand your point. Read the [[FTP]] section of the manual. 

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

Thomas Keffer

unread,
Mar 23, 2020, 4:54:36 PM3/23/20
to weewx-user
Sorry. That link did not take. Let me try again.

Read the [[FTP]] section of the manual.

Astrid

unread,
Mar 24, 2020, 8:33:18 AM3/24/20
to weewx-user
Hello!

Thanx a lot, now it works. :)

But I do not understand.
There is standing in FTP-section: skin=Ftp
But it takes the Standard-Skin.
But no matter, that I do not understand.
This it, what I want, the Standard-Skin. ;)
(In the moment, perhaps changing someone
to another.)

Regards, Astrid

Thomas Keffer

unread,
Mar 24, 2020, 8:38:41 AM3/24/20
to weewx-user
The FTP "skin" is not a regular "skin". Unlike other skins, such as Standard, it does not produce graphs and HTML pages. Instead, it uses the reportgenerator machinery to move files via FTP. 

The option "skin" under [[FTP]] is there so reportgenerator can find what it needs to run FTP. It does NOT specify the skin that will be the source. That is specified by HTML_ROOT.

Again, this is all in the documentation. It pays to read it.

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

Astrid

unread,
Mar 24, 2020, 10:46:38 AM3/24/20
to weewx-user
Hello!

Thanx. Yes, I read the documentation.
But I do not understand it in all detail, sorry.

But now with your explanation I understand. :)

Thanx. :)

Regards, Astrid
Reply all
Reply to author
Forward
0 new messages