No upload

170 views
Skip to first unread message

Jens-Jørgen Kjærgaard

unread,
Feb 18, 2023, 1:21:01 AM2/18/23
to weewx-user
In two days now, the station is not uploading files. They are correctly generated, but I get a timeout on ftpupload:


Feb 18 00:00:37 raspberrypi systemd[1]: logrotate.service: Succeeded.
Feb 18 00:00:37 raspberrypi systemd[1]: Started Rotate log files.
Feb 18 00:00:38 raspberrypi systemd[1]: man-db.service: Succeeded.
Feb 18 00:00:38 raspberrypi systemd[1]: Started Daily man-db regeneration.
Feb 18 00:01:01 raspberrypi CRON[4827]: (root) CMD (python /home/jjk/1lyd.py)
Feb 18 00:01:01 raspberrypi CRON[4828]: (root) CMD (/home/jjk/soetemp-txt.py)
Feb 18 00:01:01 raspberrypi CRON[4830]: (root) CMD (/home/jjk/raspi.sh)
Feb 18 00:01:01 raspberrypi CRON[4814]: (CRON) info (No MTA installed, discarding output)
Feb 18 00:01:02 raspberrypi CRON[4813]: (CRON) info (No MTA installed, discarding output)
Feb 18 00:01:08 raspberrypi weewx[470]: pond: found value of 39.4
Feb 18 00:01:08 raspberrypi weewx[470]: lyd: found value of 7.5
Feb 18 00:01:08 raspberrypi weewx[470]: manager: Added record 2023-02-18 00:00:00 CET (1676674800) to database 'weewx.sdb'
Feb 18 00:01:08 raspberrypi weewx[470]: manager: Added record 2023-02-18 00:00:00 CET (1676674800) to daily summary in 'weewx.sdb'
Feb 18 00:01:08 raspberrypi weewx[470]: restx: StationRegistry: wait interval (7200 < 604800) has not passed for record 2023-02-18 00:00:00 CET (1676674800)
Feb 18 00:01:08 raspberrypi weewx[470]: reportengine: Running reports for latest time in the database.
Feb 18 00:01:08 raspberrypi weewx[470]: reportengine: Running report StandardReport
Feb 18 00:01:08 raspberrypi weewx[470]: reportengine: Found configuration file /home/jjk/weewx/skins/Standard/skin.conf for report StandardReport
Feb 18 00:01:08 raspberrypi weewx[470]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Feb 18 00:01:08 raspberrypi weewx[470]: manager: Daily summary version is 2.0
Feb 18 00:01:09 raspberrypi weewx[470]: cheetahgenerator: Generated 16 files for report StandardReport in 1.37 seconds
Feb 18 00:01:09 raspberrypi weewx[470]: manager: Daily summary version is 2.0
Feb 18 00:01:15 raspberrypi weewx[470]: imagegenerator: Generated 41 images for StandardReport in 5.44 seconds
Feb 18 00:01:15 raspberrypi weewx[470]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 18 00:01:15 raspberrypi weewx[470]: reportengine: Running report FTP
Feb 18 00:01:15 raspberrypi weewx[470]: reportengine: Found configuration file /home/jjk/weewx/skins/Ftp/skin.conf for report FTP
Feb 18 00:01:15 raspberrypi weewx[470]: ftpupload: Attempting connection to linux83.unoeuro.com
Feb 18 00:01:15 raspberrypi weewx[470]: ftpupload: Connected to linux83.unoeuro.com
Feb 18 00:01:35 raspberrypi weewx[470]: ftpupload: Attempt #1. Failed uploading /public_html/hytte/weekinside.png to linux83.unoeuro.com. Reason: timed out
Feb 18 00:01:41 raspberrypi CRON[4815]: (CRON) info (No MTA installed, discarding output)
Feb 18 00:02:16 raspberrypi weewx[470]: ftpupload: Attempt #3. Failed uploading /public_html/hytte/weekinside.png to linux83.unoeuro.com. Reason: timed out
Feb 18 00:02:16 raspberrypi weewx[470]: ftpupload: Failed to upload file /public_html/hytte/weekinside.png
Feb 18 00:02:36 raspberrypi weewx[470]: ftpupload: Attempt #1. Failed uploading /public_html/hytte/weekpond.png to linux83.unoeuro.com. Reason: timed out
Feb 18 00:02:56 raspberrypi weewx[470]: ftpupload: Attempt #2. Failed uploading /public_html/hytte/weekpond.png to linux83.unoeuro.com. Reason: timed out
Feb 18 00:03:16 raspberrypi weewx[470]: ftpupload: Attempt #3. Failed uploading /public_html/hytte/weekpond.png to linux83.unoeuro.com. Reason: timed out
Feb 18 00:03:16 raspberrypi weewx[470]: ftpupload: Failed to upload file /public_html/hytte/weekpond.png

Manually , I can upload all - and ftp works fine?

Tom Keffer

unread,
Feb 18, 2023, 8:24:28 AM2/18/23
to weewx...@googlegroups.com
I thought you switched to rsync? If at all possible, you should see the transition through --- rsync is far superior to FTP.

Regarding FTP, I am assuming that you did not change anything, such as switching to FTPS?

What version of WeeWX? 

Run again, this time using debug=1 and post the log. The debug setting will give us information about how the server is responding.

It's possible your host switched FTP software, or changed a setting. Some servers are known to have bugs. It would help if we knew which server they are using.

-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/0e04518c-1199-496a-8480-ab8b1a03a1e0n%40googlegroups.com.

Jens-Jørgen Kjærgaard

unread,
Feb 18, 2023, 9:19:46 AM2/18/23
to weewx-user
I am already using debug=1.
Weewx 3.8.0
No change in FTP, nothing changed at all, just stopped working.
I post here the moment it happened:

Feb 15 20:00:22 raspberrypi weewx[472]: imagegenerator: Generated 21 images for StandardReport in 1.67 seconds
Feb 15 20:00:22 raspberrypi weewx[472]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 15 20:00:30 raspberrypi weewx[472]: ftpgenerator: ftp'd 37 files in 8.03 seconds
Feb 15 20:30:32 raspberrypi weewx[472]: manager: Added record 2023-02-15 20:30:00 CET (1676489400) to database 'weewx.sdb'
Feb 15 20:30:32 raspberrypi weewx[472]: manager: Added record 2023-02-15 20:30:00 CET (1676489400) to daily summary in 'weewx.sdb'
Feb 15 20:30:34 raspberrypi weewx[472]: cheetahgenerator: Generated 16 files for report StandardReport in 1.33 seconds
Feb 15 20:30:35 raspberrypi weewx[472]: imagegenerator: Generated 11 images for StandardReport in 0.69 seconds
Feb 15 20:30:35 raspberrypi weewx[472]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 15 20:30:41 raspberrypi weewx[472]: ftpgenerator: ftp'd 27 files in 6.17 seconds
Feb 15 21:00:46 raspberrypi weewx[472]: manager: Added record 2023-02-15 21:00:00 CET (1676491200) to database 'weewx.sdb'
Feb 15 21:00:46 raspberrypi weewx[472]: manager: Added record 2023-02-15 21:00:00 CET (1676491200) to daily summary in 'weewx.sdb'
Feb 15 21:00:48 raspberrypi weewx[472]: cheetahgenerator: Generated 16 files for report StandardReport in 1.31 seconds
Feb 15 21:00:51 raspberrypi weewx[472]: imagegenerator: Generated 31 images for StandardReport in 2.97 seconds
Feb 15 21:00:51 raspberrypi weewx[472]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 15 21:01:11 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 21:01:31 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 21:01:51 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 21:01:51 raspberrypi weewx[472]: ftpgenerator: ftp'd 0 files in 60.35 seconds
Feb 15 21:07:06 raspberrypi kernel: [192177.988627] w1_master_driver w1_bus_master1: Attaching one wire slave 28.031504aba7ff crc 78
Feb 15 21:14:47 raspberrypi kernel: [192638.821721] w1_master_driver w1_bus_master1: Attaching one wire slave 28.031504aba7ff crc 78
Feb 15 21:17:20 raspberrypi kernel: [192792.392712] w1_master_driver w1_bus_master1: Attaching one wire slave 28.031504aba7ff crc 78
Feb 15 21:30:49 raspberrypi kernel: [193601.358132] w1_master_driver w1_bus_master1: Attaching one wire slave 28.031504aba7ff crc 78
Feb 15 21:31:00 raspberrypi weewx[472]: manager: Added record 2023-02-15 21:30:00 CET (1676493000) to database 'weewx.sdb'
Feb 15 21:31:00 raspberrypi weewx[472]: manager: Added record 2023-02-15 21:30:00 CET (1676493000) to daily summary in 'weewx.sdb'
Feb 15 21:31:02 raspberrypi weewx[472]: cheetahgenerator: Generated 16 files for report StandardReport in 1.34 seconds
Feb 15 21:31:02 raspberrypi weewx[472]: imagegenerator: Generated 11 images for StandardReport in 0.68 seconds
Feb 15 21:31:02 raspberrypi weewx[472]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 15 21:31:22 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 21:31:42 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 21:32:03 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 21:32:03 raspberrypi weewx[472]: ftpgenerator: ftp'd 0 files in 60.33 seconds
Feb 15 22:00:20 raspberrypi weewx[472]: manager: Added record 2023-02-15 22:00:00 CET (1676494800) to database 'weewx.sdb'
Feb 15 22:00:20 raspberrypi weewx[472]: manager: Added record 2023-02-15 22:00:00 CET (1676494800) to daily summary in 'weewx.sdb'
Feb 15 22:00:21 raspberrypi weewx[472]: cheetahgenerator: Generated 16 files for report StandardReport in 1.33 seconds
Feb 15 22:00:23 raspberrypi weewx[472]: imagegenerator: Generated 21 images for StandardReport in 1.67 seconds
Feb 15 22:00:23 raspberrypi weewx[472]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 15 22:00:43 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 22:01:03 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 22:01:23 raspberrypi weewx[472]: ftpupload: Unable to connect or log into server : timed out
Feb 15 22:01:23 raspberrypi weewx[472]: ftpgenerator: ftp'd 0 files in 60.33 seconds
Feb 15 22:30:33 raspberrypi weewx[472]: manager: Added record 2023-02-15 22:30:00 CET (1676496600) to database 'weewx.sdb'
Feb 15 22:30:34 raspberrypi weewx[472]: manager: Added record 2023-02-15 22:30:00 CET (1676496600) to daily summary in 'weewx.sdb'
Feb 15 22:30:34 raspberrypi weewx[472]: engine: garbage collected 18609 objects
Feb 15 22:30:35 raspberrypi weewx[472]: cheetahgenerator: Generated 16 files for report StandardReport in 1.33 seconds
Feb 15 22:30:36 raspberrypi weewx[472]: imagegenerator: Generated 11 images for StandardReport in 0.69 seconds
Feb 15 22:30:36 raspberrypi weewx[472]: copygenerator: copied 0 files to /home/jjk/weewx/public_html
Feb 15 22:40:39 raspberrypi weewx[472]:         ****  Traceback (most recent call last):
Feb 15 22:40:39 raspberrypi weewx[472]:         ****    File "/home/jjk/weewx/bin/weewx/reportengine.py", line 325, in run
Feb 15 22:40:39 raspberrypi weewx[472]:         ****      n = ftp_data.run()
Feb 15 22:40:39 raspberrypi weewx[472]:         ****    File "/home/jjk/weewx/bin/weeutil/ftpupload.py", line 137, in run
Feb 15 22:40:39 raspberrypi weewx[472]:         ****      self._make_remote_dir(ftp_server, remote_dir_path)
Feb 15 22:40:39 raspberrypi weewx[472]:         ****    File "/home/jjk/weewx/bin/weeutil/ftpupload.py", line 240, in _make_remote_dir
Feb 15 22:40:39 raspberrypi weewx[472]:         ****      raise IOError, "Unable to create remote directory %s" % remote_dir_path
Feb 15 22:40:39 raspberrypi weewx[472]:         ****  IOError: Unable to create remote directory /public_html/hytte/backgrounds
Feb 15 23:00:47 raspberrypi weewx[472]: manager: Added record 2023-02-15 23:00:00 CET (1676498400) to database 'weewx.sdb'
Feb 15 23:00:47 raspberrypi weewx[472]: manager: Added record 2023-02-15 23:00:00 CET (1676498400) to daily summary in 'weewx.sdb'

Tom Keffer

unread,
Feb 18, 2023, 11:10:56 AM2/18/23
to weewx...@googlegroups.com
That version of WeeWX is over 5 years old. There have been some substantive changes to the FTP uploader, mostly about FTPS. Again, are you using FTPS? It would be simplest if you just show the [[FTP]] section of weewx.conf, taking care to obfuscate any passwords.

If it suddenly stopped working, then it's possible your host changed the server. Again, it would help if we knew what kind of server they are using. Or, possibly, there is a firewall issue.

You say that you can connect manually?

If all else fails, email me your username and credentials and I'll try on my end.

-tk

Jens-Jørgen Kjærgaard

unread,
Feb 18, 2023, 11:31:53 AM2/18/23
to weewx-user
I've tried to get information on the server or whether they changed anything, but it does not seem so. The site is hosted by simply.com (unoeuro.com).

Should I update to a newer version of weewx?
I think I have tried rsync sometime long ago, and tried the option now again, but get: Permission denied (publickey) when I try to generate the keys.

The section of weewx.conf you asked for:

 [[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 = replace with the ftp username
        #password = replace with the ftp password; put in quotes to guard against parsing errors.
        #server = replace with the ftp server name, e.g, www.threefools.org
        #path = replace with the ftp 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 = public_html
       
        # Most FTP servers use port 21
        port = 21
       
        # Set to 1 to use passive mode, zero for active mode
        passive = 1
       
        # If you wish to use FTP, uncomment and fill out the next four lines:
        user = jensjk.dk
        password = x
        server = linux83.unoeuro.com
        path = /public_html/hytte



vince

unread,
Feb 18, 2023, 12:55:16 PM2/18/23
to weewx-user
Your problem is here......

Feb 15 22:40:39 raspberrypi weewx[472]:         ****  Traceback (most recent call last):
Feb 15 22:40:39 raspberrypi weewx[472]:         ****    File "/home/jjk/weewx/bin/weewx/reportengine.py", line 325, in run
Feb 15 22:40:39 raspberrypi weewx[472]:         ****      n = ftp_data.run()
Feb 15 22:40:39 raspberrypi weewx[472]:         ****    File "/home/jjk/weewx/bin/weeutil/ftpupload.py", line 137, in run
Feb 15 22:40:39 raspberrypi weewx[472]:         ****      self._make_remote_dir(ftp_server, remote_dir_path)
Feb 15 22:40:39 raspberrypi weewx[472]:         ****    File "/home/jjk/weewx/bin/weeutil/ftpupload.py", line 240, in _make_remote_dir
Feb 15 22:40:39 raspberrypi weewx[472]:         ****      raise IOError, "Unable to create remote directory %s" % remote_dir_path
Feb 15 22:40:39 raspberrypi weewx[472]:         ****  IOError: Unable to create remote directory /public_html/hytte/backgrounds


The path=/public_html/hytte/backgrounds is almost certainly wrong.   That would be a privileged (unusual) location on any kind of system.

You want the absolute pathname on the filesystem of the remote computer, which likely starts with "/home/<account>" or "/var/www/<account>" or something similar.

If you can log into the remote computer and get a shell, type "pwd" and see what it reports.

Jens-Jørgen Kjærgaard

unread,
Feb 18, 2023, 1:15:50 PM2/18/23
to weewx-user
But this setup has worked for years without problems?

Jens-Jørgen Kjærgaard

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/bOo_GqhTdh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/414b00e0-b0db-470d-aef3-4e7ce8a78ce6n%40googlegroups.com.

vince

unread,
Feb 18, 2023, 2:05:45 PM2/18/23
to weewx-user
On Saturday, February 18, 2023 at 10:15:50 AM UTC-8 Jens-Jørgen Kjærgaard wrote:
But this setup has worked for years without problems?


If 'you' did not change anything, then the only explanation is 'they' changed something.   It happens.


Try path=/var/www/jensjk.dk/public_html/hytte and see if that works.

Jens-Jørgen Kjærgaard

unread,
Feb 19, 2023, 2:57:01 AM2/19/23
to weewx...@googlegroups.com
Tried you suggestion, didn't work:

Feb 19 08:40:21 raspberrypi weewx[474]: ftpupload: Attempt #3. Failed uploading /var/www/jensjk.dk/public_html/hytte/weekwind.png to linux83.unoeuro.com. Reason:
Feb 19 08:40:21 raspberrypi weewx[474]: ftpupload: Failed to upload file /var/www/jensjk.dk/public_html/hytte/weekwind.png
Feb 19 08:40:21 raspberrypi weewx[474]: ftpupload: Got error while attempting to make remote directory /var/www/jensjk.dk/public_html/hytte/backgrounds
Feb 19 08:40:21 raspberrypi weewx[474]:      ****  Error:
Feb 19 08:40:21 raspberrypi weewx[474]: ftpupload: Got error while attempting to make remote directory /var/www/jensjk.dk/public_html/hytte/backgrounds
Feb 19 08:40:21 raspberrypi weewx[474]:      ****  Error:
Feb 19 08:40:21 raspberrypi weewx[474]: ftpupload: Got error while attempting to make remote directory /var/www/jensjk.dk/public_html/hytte/backgrounds
Feb 19 08:40:21 raspberrypi weewx[474]:      ****  Error:
Feb 19 08:40:21 raspberrypi weewx[474]: ftpupload: Unable to create remote directory /var/www/jensjk.dk/public_html/hytte/backgrounds
Feb 19 08:40:21 raspberrypi weewx[474]: ftpgenerator: Caught exception <type 'exceptions.IOError'>: Unable to create remote directory /var/www/jensjk.dk/public_html/hytte/backgrounds
Feb 19 08:40:21 raspberrypi weewx[474]:         ****  Traceback (most recent call last):
Feb 19 08:40:21 raspberrypi weewx[474]:         ****    File "/home/jjk/weewx/bin/weewx/reportengine.py", line 325, in run
Feb 19 08:40:21 raspberrypi weewx[474]:         ****      n = ftp_data.run()
Feb 19 08:40:21 raspberrypi weewx[474]:         ****    File "/home/jjk/weewx/bin/weeutil/ftpupload.py", line 137, in run
Feb 19 08:40:21 raspberrypi weewx[474]:         ****      self._make_remote_dir(ftp_server, remote_dir_path)
Feb 19 08:40:21 raspberrypi weewx[474]:         ****    File "/home/jjk/weewx/bin/weeutil/ftpupload.py", line 240, in _make_remote_dir
Feb 19 08:40:21 raspberrypi weewx[474]:         ****      raise IOError, "Unable to create remote directory %s" % remote_dir_path
Feb 19 08:40:21 raspberrypi weewx[474]:         ****  IOError: Unable to create remote directory /var/www/jensjk.dk/public_html/hytte/backgrounds
Feb 19 08:40:21 raspberrypi weewx[474]: reportengine: Running report RSYNC
Feb 19 08:40:21 raspberrypi weewx[474]: reportengine: Found configuration file /home/jjk/weewx/skins/Rsync/skin.conf for report RSYNC
Feb 19 08:40:21 raspberrypi weewx[474]: rsyncgenerator: rsync upload not requested. Skipped.

I will now try to install a newer version of weewx.

Jens-Jørgen Kjærgaard
Tuenvej 818
9870 Sindal


--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/bOo_GqhTdh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Tom Keffer

unread,
Feb 19, 2023, 6:55:23 AM2/19/23
to weewx...@googlegroups.com
I doubt a newer version of WeeWX will make a difference. That part hasn't changed.

The article that Vince linked to is where to find the results in the WWW, not where to have FTP upload to.

Keep trying different paths. For example, path = public_html/hytte (no leading slash).

Also, you may have the right path, but the wrong permissions on the server. Log into the web server (if you can) and make sure that the permissions have been set correctly.

-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/CAJPduST7tLfbKJpw%2Br87NOHnkE5WUfp51XoVw-B7OG_sVrL6Dg%40mail.gmail.com.

vince

unread,
Feb 19, 2023, 1:09:06 PM2/19/23
to weewx-user
On Sunday, February 19, 2023 at 3:55:23 AM UTC-8 Tom Keffer wrote:
The article that Vince linked to is where to find the results in the WWW, not where to have FTP upload to.


Sigh - yes.  Agree.  Sorry for the confusion.
The webserver could be mapping a user's public_html to the path in the link I provided.
 
Keep trying different paths. For example, path = public_html/hytte (no leading slash).


Agree.  I'd try that next.
The leading slash in the previous posts is very likely wrong.

Also, you may have the right path, but the wrong permissions on the server. Log into the web server (if you can) and make sure that the permissions have been set correctly.

Agree.  Manually ftp 'any' file from the shell and see if it works.

To figure it all out, a manual ftp from the shell would likely answer the questions.
  • ftp linux83.unoeuro.com
  • when prompted, enter your username
  • when prompted, enter its password
  • the prompt will change to ftp>
  •    then you can use the 'pwd' command to get the full pathname for your user's home directory
  •    you can run the 'ls' command to see if there's a public_html tree there and what it's permissions are
  •    enter 'bye' to exit
pi@raspberrypi:~ $ ftp pi
Connected to pi.
220 raspberrypi FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.
Name (pi:pi): pi
331 Password required for pi.
Password:
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User pi logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/pi" is current directory.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 132
-rw------- 1 pi   pi    6562 Feb  8 13:01 .bash_history
-rw-r--r-- 1 pi   pi     220 Dec  2  2020 .bash_logout
-rw-r--r-- 1 pi   pi    3523 Dec  2  2020 .bashrc
-rw------- 1 pi   pi      40 Jun 27  2021 .lesshst
-rw-r--r-- 1 pi   pi     807 Dec  2  2020 .profile
-rw-r--r-- 1 pi   pi      75 May 26  2021 .selected_editor
drwx------ 2 pi   pi    4096 Dec  7  2021 .ssh
-rw------- 1 pi   pi    8626 Jun 27  2021 .viminfo
-rw-r--r-- 1 pi   pi      53 May 26  2021 .vimrc
226 Transfer complete.
ftp> bye
221 Goodbye
.

 

Jens-Jørgen Kjærgaard

unread,
Feb 20, 2023, 8:26:01 AM2/20/23
to weewx...@googlegroups.com
I think the problem was in the ftp-server - now I am near a solution.
However, while waiting, I installed weewx 4.10.1, and used my old configuration, installing in /home/jjk/weewx:

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

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 1

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/jjk/weewx

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 4.10.1

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

#   This section is for information about the station.

However, when I use 
sudo cp util/systemd/weewx.service /etc/systemd/system
sudo systemctl enable weewx
sudo systemctl start weewx
it apparently starts, but when checking with sudo tail -f /var/log/syslog, it has exited, haven't been able to find:

Feb 20 14:19:58 raspberrypi systemd[5453]: weewx.service: Failed to execute command: No such file or directory
Feb 20 14:19:58 raspberrypi systemd[5453]: weewx.service: Failed at step EXEC spawning /home/weewx/bin/weewxd: No such file or directory
Feb 20 14:19:58 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=203/EXEC
Feb 20 14:19:58 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.

- apparently, it is looking for weewxd in the default directory, and not in /home/jjk/weewx?
I must have missed something?

Jens-Jørgen Kjærgaard
Tuenvej 818
9870 Sindal
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/bOo_GqhTdh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Tom Keffer

unread,
Feb 20, 2023, 8:37:10 AM2/20/23
to weewx...@googlegroups.com
I would not be surprised if the problem is with your web service provider.

You need to modify /etc/systemd/system/weewx.service to point to the correct location for weewxd. Look for option "ExecStart".

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/CAJPduSQDWQiv%2Bc5mxhyVreBpshaYR7OKqfr9jkHk%2Bvwa4QLLuQ%40mail.gmail.com.

Jens-Jørgen Kjærgaard

unread,
Feb 20, 2023, 10:07:37 AM2/20/23
to weewx-user
Yes, the problem was with my web service provider - could have spared you, Vince and me a lot of trouble, but they wouldn't admit it in the first place, only when I persisted.

vince

unread,
Feb 20, 2023, 10:42:38 AM2/20/23
to weewx-user
Good to hear you solved it !
Reply all
Reply to author
Forward
0 new messages