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.rai...@gmail.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
>
> On 05.11.2022 07:33, Rainer Lang wrote:
>
> 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
>
> https://stackoverflow.com/questions/61002681/connecting-to-wsl2-server-via-local-network
> If you use such environments, you need to know their "shortcoming" and
> needs. 😎
>
> On 05.11.2022 03:31, Alex Vanuxem wrote:
>
> 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.rai...@gmail.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.
>>
>> On 04.11.2022 19:47, vince wrote:
>>
>> 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.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/19a056c8-8f87-4460-b31c-feb78448ccbbn%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/19a056c8-8f87-4460-b31c-feb78448ccbbn%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 weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/fef7077b-712b-cc8e-9aa2-02c9e91e260f%40gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/fef7077b-712b-cc8e-9aa2-02c9e91e260f%40gmail.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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAHaYyo%2BUxKKd55E8VixmNnARUgsF-bEzqZvNQbjjD8UGxDNjLA%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAHaYyo%2BUxKKd55E8VixmNnARUgsF-bEzqZvNQbjjD8UGxDNjLA%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/fbd1bfa3-b750-b82d-b034-f9c733d6f5e4%40gmail.com
> <https://groups.google.com/d/msgid/weewx-user/fbd1bfa3-b750-b82d-b034-f9c733d6f5e4%40gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAHaYyo%2BRqGAXg_xSZn3TyH7WZTrKOq8mrjKJfGv2-U0FPOHjAA%40mail.gmail.com.
Nov  6 23:35:17 alex-Virtual-Machine weewx[9074] INFO weewx.manager: Added 
record 2022-11-05 12:04:00 CET (1667646240) to database 'weewx.sdb'
Nov  6 23:35:17 alex-Virtual-Machine weewx[9074] INFO weewx.manager: Added 
record 2022-11-05 12:04:00 CET (1667646240) to daily summary in 'weewx.sdb'
Nov  6 23:35:18 alex-Virtual-Machine systemd[1286]: 
vte-spawn-98378655-80a2-4503-b8c5-9375465121ce.scope: Consumed 4.968s CPU time.
Nov  6 23:35:18 alex-Virtual-Machine systemd[1286]: 
gnome-terminal-server.service: Consumed 1.957s CPU time.
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating service name='org.gnome.ControlCenter.SearchProvider' 
requested by ':1.44' (uid=1000 pid=1618 comm="/usr/bin/gnome-shell " 
label="unconfined")
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating service name='org.gnome.Nautilus' requested by ':1.44' 
(uid=1000 pid=1618 comm="/usr/bin/gnome-shell " label="unconfined")
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating service name='org.gnome.Calculator.SearchProvider' 
requested by ':1.44' (uid=1000 pid=1618 comm="/usr/bin/gnome-shell " 
label="unconfined")
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating service name='org.gnome.Characters.BackgroundService' 
requested by ':1.44' (uid=1000 pid=1618 comm="/usr/bin/gnome-shell " 
label="unconfined")
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating via systemd: service name='org.gnome.Terminal' 
unit='gnome-terminal-server.service' requested by ':1.44' (uid=1000 pid=1618 
comm="/usr/bin/gnome-shell " label="unconfined")
Nov  6 23:35:22 alex-Virtual-Machine systemd[1286]: Starting GNOME Terminal 
Server...
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 
'org.gnome.ControlCenter.SearchProvider'
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 'org.gnome.Nautilus'
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 
'org.gnome.Characters.BackgroundService'
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 'org.gnome.Calculator.SearchProvider'
Nov  6 23:35:22 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 'org.gnome.Terminal'
Nov  6 23:35:22 alex-Virtual-Machine systemd[1286]: Started GNOME Terminal 
Server.
Nov  6 23:35:23 alex-Virtual-Machine nautilus[9087]: Connecting to 
org.freedesktop.Tracker3.Miner.Files
Nov  6 23:35:24 alex-Virtual-Machine systemd[1286]: Started Application 
launched by gnome-shell.
Nov  6 23:35:24 alex-Virtual-Machine systemd[1286]: Started VTE child process 
9155 launched by gnome-terminal-server process 9092.
Nov  6 23:36:36 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating service name='org.gnome.Nautilus' requested by ':1.44' 
(uid=1000 pid=1618 comm="/usr/bin/gnome-shell " label="unconfined")
Nov  6 23:36:36 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 'org.gnome.Nautilus'
Nov  6 23:36:36 alex-Virtual-Machine dbus-daemon[553]: [system] Activating via 
systemd: service name='org.freedesktop.hostname1' 
unit='dbus-org.freedesktop.hostname1.service' requested by ':1.201' (uid=1000 
pid=9186 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
Nov  6 23:36:36 alex-Virtual-Machine systemd[1]: Starting Hostname Service...
Nov  6 23:36:36 alex-Virtual-Machine gnome-shell[1618]: Could not create 
transient scope for PID 0: GDBus.Error:org.freedesktop.systemd1.UnitExists: 
Unit app-gnome-org.gnome.Nautilus-0.scope already exists.
Nov  6 23:36:36 alex-Virtual-Machine gnome-shell[1618]: Can't update stage 
views actor <unnamed>[<MetaWindowGroup>:0x55c74b0da340] is on because it needs 
an allocation.
Nov  6 23:36:36 alex-Virtual-Machine gnome-shell[1618]: Can't update stage 
views actor <unnamed>[<MetaWindowActorX11>:0x55c74f286f40] is on because it 
needs an allocation.
Nov  6 23:36:36 alex-Virtual-Machine gnome-shell[1618]: Can't update stage 
views actor <unnamed>[<MetaSurfaceActorX11>:0x55c74cc954c0] is on because it 
needs an allocation.
Nov  6 23:36:36 alex-Virtual-Machine dbus-daemon[553]: [system] Successfully 
activated service 'org.freedesktop.hostname1'
Nov  6 23:36:36 alex-Virtual-Machine systemd[1]: Started Hostname Service.
Nov  6 23:36:37 alex-Virtual-Machine nautilus[9186]: Called "net usershare 
info" but it failed: Failed to execute child process β€œnet” (No such file or 
directory)
Nov  6 23:36:56 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Activating service name='org.gnome.gedit' requested by ':1.245' 
(uid=1000 pid=9186 comm="/usr/bin/nautilus --gapplication-service " 
label="unconfined")
Nov  6 23:36:56 alex-Virtual-Machine dbus-daemon[1309]: [session uid=1000 
pid=1309] Successfully activated service 'org.gnome.gedit'
Nov  6 23:36:56 alex-Virtual-Machine gnome-shell[1618]: Can't update stage 
views actor <unnamed>[<MetaWindowGroup>:0x55c74b0da340] is on because it needs 
an allocation.
Nov  6 23:36:56 alex-Virtual-Machine gnome-shell[1618]: Can't update stage 
views actor <unnamed>[<MetaWindowActorX11>:0x55c74f286b50] is on because it 
needs an allocation.
Nov  6 23:36:56 alex-Virtual-Machine gnome-shell[1618]: Can't update stage 
views actor <unnamed>[<MetaSurfaceActorX11>:0x55c74cc95140] is on because it 
needs an allocation.

Reply via email to