first user - a lot of issues

299 views
Skip to first unread message

Alex Vanuxem

unread,
Nov 3, 2022, 12:21:24 AM11/3/22
to weewx-user
hey Guys,

I'm trying weewx for the first time, no experience in python, a little bit in php

done the setup as required.

running ubuntu as a virtual machine on windows, want to check it out before i buy a raspberry.

problems: in the config file I see a lot of setups which I dont get when performing the the how to.

sudo tail -f /var/log/syslog doesn't exist, I'm stuck with the nOrth pole default thing.

and sudo ./bin/weewxd doesn't exist???

although i configured the config manually and copied it.

what files do you want to troubleshout?

I've set up a cumulusMX, pwsWD and a meteotemplate website, so this should work too?

Bare with me please,

THX

alex

Alex Vanuxem

unread,
Nov 3, 2022, 7:13:07 PM11/3/22
to weewx-user
Hi Guys,

I'm Alex from Belgium, a weather amateur, got a Vantage Pro 2, airlinks, and soil and leaf sensors.

got a website at  Meteo Sint-Katelijne-Waver, Belgium (sint-katelijne-waver-meteo.be)

so finally i'm getting some data in at var/www/html/weewx/index.html.

using for the moment vantage pro 2 iplink, i have also wll, thats for later.

but when i start weewx i get a lot of errors see attachment.

next thing is to send it to my website, i'm missing something... 

thanks




Op donderdag 3 november 2022 om 01:21:24 UTC+1 schreef Alex Vanuxem:
errorstartup.txt

vince

unread,
Nov 3, 2022, 7:26:50 PM11/3/22
to weewx-user
You need to install a syslog daemon .

sudo apt-get install -y rsyslog

Alex Vanuxem

unread,
Nov 3, 2022, 8:36:29 PM11/3/22
to weewx-user
thx, installed it, but I'm learning python and linux as we speak, bare with me please.
where can I find the log? not in var/log... apologize for my dumbness, thanks again

Op donderdag 3 november 2022 om 20:26:50 UTC+1 schreef vince:

vince

unread,
Nov 3, 2022, 8:59:28 PM11/3/22
to weewx-user

Alex Vanuxem

unread,
Nov 3, 2022, 9:19:50 PM11/3/22
to weewx...@googlegroups.com
i'm sorry . There's nothing there on both locations specified in the doc you posted.  Thanks though ....any other suggestions? Grtz alex



Op do 3 nov. 2022 21:59 schreef vince <vince...@gmail.com>:
--
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/dc807670-b1e8-46c7-9cef-121c27c8a812n%40googlegroups.com.

vince

unread,
Nov 3, 2022, 10:12:13 PM11/3/22
to weewx-user
Try again.  The next-to-last link in the FAQ.

You have to work a 'little' here please.  I'd suggest you also look into some free linux courses online to help you learn linux enough.

Tom Keffer

unread,
Nov 3, 2022, 10:24:43 PM11/3/22
to weewx...@googlegroups.com
(Vince, I think he went to the correct link.)

Alex, what operating system are you using? These days, almost all operating systems put something in /var/log.

If we can't figure it out, there is a way to get WeeWX to log to a standard file. Add this to the bottom of weewx.conf:

[Logging]
    [[root]]
      handlers = rotate,

    [[handlers]]
        # Log to a set of rotating files
        [[[rotate]]]
            level = DEBUG
            formatter = verbose
            class = logging.handlers.RotatingFileHandler
            filename = /var/tmp/weewx.log
            maxBytes = 10000000
            backupCount = 4

This will put the weewx-related log entries in /var/tmp/weewx.log. Post that.

Alex Vanuxem

unread,
Nov 4, 2022, 6:07:26 PM11/4/22
to weewx...@googlegroups.com
hi thx

i forgot to init.d the rsyslog.

now i have syslog see attach. I can connect to my ftp through the linux gui.

but since today no data is coming in, ???
sorry i'm a newbie.










Op do 3 nov. 2022 om 23:24 schreef Tom Keffer <tke...@gmail.com>:

Alex Vanuxem

unread,
Nov 4, 2022, 6:07:41 PM11/4/22
to weewx...@googlegroups.com


Op vr 4 nov. 2022 om 19:07 schreef Alex Vanuxem <vanuxe...@gmail.com>:
errors.txt

Alex Vanuxem

unread,
Nov 4, 2022, 6:08:52 PM11/4/22
to weewx...@googlegroups.com
the first is an errorlog when i start weewx
the second is errorlog of syslog

thx
errorssyslog.txt

vince

unread,
Nov 4, 2022, 6:47:04 PM11/4/22
to weewx-user
We really need more information on your setup.

It 'seems' like you are trying to run a rather unusual configuration.

I noticed this in your errors.txt file:
  • "Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29"
           ==> are you trying to run weewx under Windows WSL perhaps ?

I also see the following:
  • Message: 'Socket error while opening port %d to ethernet host %s.' Arguments: (22222, '192.168.0.248') --- Logging error --- Traceback (most recent call last): File "/usr/share/weewx/weewx/drivers/vantage.py", line 338, in openPort self.socket.connect((self.host, self.port)) OSError: [Errno 113] No route to host
             ==> this is a networking issue in your setup

We can't try to duplicate the problem(s) without knowing more about your setup.

Rainer Lang

unread,
Nov 4, 2022, 9:24:32 PM11/4/22
to weewx...@googlegroups.com
When you want to use weewx under WSL (which works perfectly by the way - at least with the Interceptor and the Ecowitt Gateway driver),
you need to make sure that the connectivity between the virtual machine in which WSL is running and the local network the WSL host computer is running in
has been established.
There are recipes for that - Google is your friend - they describe Windows Powershell commands to be applied for this to work.

That's not a weewx specific issue - it applies to any application running in WSL (Windows Subsystem for Linux) and needing to contact/communicate
with the local network of the host computer.
--
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.

Alex Vanuxem

unread,
Nov 5, 2022, 2:31:50 AM11/5/22
to weewx...@googlegroups.com
hey,

It was under wsl.
but now i installed under windows 11, hyper-v and installed an ubuntu latest version under a virtual machine, i have the full program;
now i'm struggling again;
again no syslog, it says its installed, but cant start it
i can invoke ./bin/weewxd , i see a lot of data coming in in my terminal, but no reports to var/www/html/ weewx,
i guess it something to do with permissions? or am i just dumb
thank you for your time,


 




Op vr 4 nov. 2022 om 22:24 schreef Rainer Lang <lang....@gmail.com>:

Rainer Lang

unread,
Nov 5, 2022, 6:33:41 AM11/5/22
to weewx...@googlegroups.com
maybe we are talking cross-purpose:
what you describe below is exactly the installation of WSL (exactly speaking WSL2) under Windows 11.
Also with Win 11 you have to create the connection between the Windows 11 installation and the VM if some application or device in the local network
wants to connect with an application inside the VM (here weewx).
Ubuntu on WSL2 doesn't contain by default certain services like systemd or rsyslogd. They need to be installed by you manually.
Again, there is plenty of documentation for this. Especially for installing systemd under WSL2.
e.g. for the network integration and firewall
If you use such environments, you need to know their "shortcoming" and needs. 😎

Rainer Lang

unread,
Nov 5, 2022, 8:23:21 AM11/5/22
to weewx...@googlegroups.com
one more thing:
first of all you have to check if systemd is installed in your ubuntu installation - if not you need to install it (or something equivalent)
how to find out ?
run
sudo service --status-all
(or when you are the root user without the "sudo")

If systemd is not installed, have a look at

e.g. https://github.com/DamionGans/ubuntu-wsl2-systemd-script

with the below commands you can install systemd under ubuntu on WSL2

sudo apt install git
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
cd ubuntu-wsl2-systemd-script/
bash ubuntu-wsl2-systemd-script.sh
# Enter your password and wait until the script has finished
systemctl


You also have to look if the rsyslog service is installed/running (see above command service --status-all)
if not, you can try

sudo apt-get install rsyslog

Alex Vanuxem

unread,
Nov 6, 2022, 10:43:46 PM11/6/22
to weewx...@googlegroups.com
thx man; 

so where I am at:
installed hyper-v on windows 11
installed an ubuntu virtual machine
tried to instal weewx
got a syslog see attachment
got data in, but with errors, see log
still need to connect the virtual machine with windows, struggling with that
still need to install system.d struggling with that too





Op za 5 nov. 2022 om 09:23 schreef Rainer Lang <lang....@gmail.com>:
syslog.txt

Rainer Lang

unread,
Nov 7, 2022, 8:23:21 AM11/7/22
to weewx...@googlegroups.com
this log doesn't say anything regarding weewx except that weewx wrote two records to its database which is already (at least a partial) success.
Such clipped logfiles are not very helpful.
Otherwise I cannot see any weewx related error.
You have to add debug = 1 to your weewx.conf (at the top of weewx.conf - change debug = 0 to debug =1),
save and restart weewx.
And then provide the COMPLETE syslog entries from weewx start until at least one, better two, archiving cycles.
One cycle starts usually every 5 minutes (depending on your settings in weewx.conf).
Without that we can only poke in the dark.

Alex Vanuxem

unread,
Nov 7, 2022, 11:34:30 PM11/7/22
to weewx...@googlegroups.com
Hi Rainer,

don't seem to be able to install the systemd with the script, im sorry

after which when i close the terminal and re-open it , it closes really quick, and i can read something about 'sleeping'..
can't reopen anymore
in attachment the log i get after installing the script

thx for your effort



Op ma 7 nov. 2022 om 09:23 schreef Rainer Lang <lang....@gmail.com>:
systemd.txt

Alex Vanuxem

unread,
Nov 9, 2022, 1:34:01 AM11/9/22
to weewx-user
progress:
using windows 11 22H2 Pro
using wsl2
using ubuntu 20.04
got systemd and syslog installed
got data sending to /var/www/weewx/html

strugling with the connection between windows and wsl; can somebody help with a updated anw working how to, tried a 1000 things, not much succes.

how to upload to my external paid server?
is the path : /weewx  /weewx/ /wwwroot/weewx or any other combinations?
installed also vsftpd

see attachment for ftp settings and syslog

many thx , learning a lot about linux, many thx!!



Op dinsdag 8 november 2022 om 00:34:30 UTC+1 schreef Alex Vanuxem:
ftp settings.txt
syslog.txt
Reply all
Reply to author
Forward
0 new messages