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
+45 21204417
www.jensjk.dk


Den søn. 19. feb. 2023 kl. 19.09 skrev vince <[email protected]>:

> 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.
>
>
>
> --
> 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
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/72187f72-7039-4405-9a7d-ade073340459n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/72187f72-7039-4405-9a7d-ade073340459n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAJPduSQDWQiv%2Bc5mxhyVreBpshaYR7OKqfr9jkHk%2Bvwa4QLLuQ%40mail.gmail.com.

Reply via email to