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.rai...@gmail.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.
>
>
> On 06.11.2022 23:43, Alex Vanuxem wrote:
>
> 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
> <https://groups.google.com/d/msgid/weewx-user/CAHaYyo%2BRqGAXg_xSZn3TyH7WZTrKOq8mrjKJfGv2-U0FPOHjAA%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/f5a3886c-76e3-c538-a621-6d6d6c103014%40gmail.com
> <https://groups.google.com/d/msgid/weewx-user/f5a3886c-76e3-c538-a621-6d6d6c103014%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/CAHaYyoKvZewhQwUPsrQPZPOYc%3DMq00rFCpUYEovYjzMXouc3vw%40mail.gmail.com.
alex@LAPTOP-M848VS7O:~/ubuntu-wsl2-systemd-script$ bash 
ubuntu-wsl2-systemd-script.sh
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [462 
kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [101 
kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 
Packages [372 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted 
Translation-en [57.4 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages 
[603 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en 
[77.0 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f 
Metadata [2408 B]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 
Packages [4192 B]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/multiverse 
Translation-en [900 B]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f 
Metadata [228 B]
Get:16 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata 
[286 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata 
[8372 B]
Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [696 
kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [159 
kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata 
[10.8 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages 
[409 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en 
[63.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f 
Metadata [544 B]
Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages 
[744 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en 
[123 kB]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f 
Metadata [4404 B]
Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages 
[13.7 kB]
Get:31 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en 
[4228 B]
Get:32 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f 
Metadata [420 B]
Get:33 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages 
[3008 B]
Get:34 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en 
[1432 B]
Get:35 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f 
Metadata [272 B]
Get:36 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f 
Metadata [116 B]
Get:37 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages 
[6748 B]
Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en 
[9360 B]
Get:39 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f 
Metadata [352 B]
Get:40 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f 
Metadata [116 B]
Fetched 24.6 MB in 7s (3400 kB/s)
Reading package lists... Done
(Reading database ... 24075 files and directories currently installed.)
Preparing to unpack .../0-dbus-x11_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking dbus-x11 (1.12.20-2ubuntu4.1) over (1.12.20-2ubuntu4) ...
Preparing to unpack .../1-dbus_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking dbus (1.12.20-2ubuntu4.1) over (1.12.20-2ubuntu4) ...
Preparing to unpack .../2-libdbus-1-3_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.12.20-2ubuntu4.1) over (1.12.20-2ubuntu4) ...
Selecting previously unselected package daemonize.
Preparing to unpack .../3-daemonize_1.7.8-1_amd64.deb ...
Unpacking daemonize (1.7.8-1) ...
Selecting previously unselected package dbus-user-session.
Preparing to unpack .../4-dbus-user-session_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking dbus-user-session (1.12.20-2ubuntu4.1) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../5-libfreetype6_2.11.1+dfsg-1ubuntu0.1_amd64.deb ...
Unpacking libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.1) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../6-fonts-dejavu-core_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-core (2.37-2build1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../7-fontconfig-config_2.13.1-4.2ubuntu5_all.deb ...
Unpacking fontconfig-config (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../8-libfontconfig1_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../9-fontconfig_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking fontconfig (2.13.1-4.2ubuntu5) ...
Setting up libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.1) ...
Setting up libdbus-1-3:amd64 (1.12.20-2ubuntu4.1) ...
Setting up dbus (1.12.20-2ubuntu4.1) ...
Setting up fonts-dejavu-core (2.37-2build1) ...
Setting up daemonize (1.7.8-1) ...
Setting up dbus-x11 (1.12.20-2ubuntu4.1) ...
Setting up fontconfig-config (2.13.1-4.2ubuntu5) ...
Setting up dbus-user-session (1.12.20-2ubuntu4.1) ...
Setting up libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
Regenerating fonts cache... done.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
'\\wsl.localhost\Ubuntu-22.04\home\alex\ubuntu-wsl2-systemd-script'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

SUCCESS: Specified value was saved.
'\\wsl.localhost\Ubuntu-22.04\home\alex\ubuntu-wsl2-systemd-script'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

SUCCESS: Specified value was saved.
alex@LAPTOP-M848VS7O:~/ubuntu-wsl2-systemd-script$ systemctl
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
alex@LAPTOP-M848VS7O:~/ubuntu-wsl2-systemd-script$ cd
alex@LAPTOP-M848VS7O:~$ systemctl
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
alex@LAPTOP-M848VS7O:~$



Reply via email to