Closed IgitBuh closed 11 months ago
Can you share your parameter.json and the debug log?
Yes sure:
I noticed that the command prompt from creating the file was still open, so here's also the creation output:
Where can I find the debug log that you would like to see?
Where can I find the debug log that you would like to see?
just add an environment variable ISM7_DEBUG=true
Done. Is this debug info you would like to see?
> <?xml version="1.0" encoding="utf-16"?><direct-logon-request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><password>REMOVED</password></direct-logon-request>
< <?xml version="1.0" encoding="utf-8"?><direct-logon-response state="ok" sid="1"><installationname>WolfLink</installationname><serialnumber>REMOVED2</serialnumber><date-time>2023-07-15T12:09:53</date-time><ism-softwareversion>300.10.1.300.300.1</ism-softwareversion><ism-hardwareversion>3.0</ism-hardwareversion><type>WOLFLink</type></direct-logon-response>
> <?xml version="1.0" encoding="utf-16"?><read-systemconfig-request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" sid="1" />
< <?xml version="1.0" encoding="utf-8"?><read-systemconfig-response sid="1"><gateway type="WOLFLink" softwareNumber="1" softwareVersion="300" wlan="false" g3="false"/><busconfig type="ebus"><busDevices><busDevice ba="0x8" sv="0x1" sr="0x50" cfg="0x440" did="0x29"/><busDevice ba="0x35" sv="0x2" sr="0x4" cfg="0xC000" did="0x20"/><busDevice ba="0x51" sv="0x1" sr="0x0" cfg="0x10" did="0x14"/></busDevices></busconfig><modbusconfig><busDevices></busDevices></modbusconfig></read-systemconfig-response>
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at ism7mqtt.Ism7Config.AddDevice(String ip, String ba) in /app/ISM7/Ism7Config.cs:line 76
at ism7mqtt.Ism7Client.LoadInitialValuesAsync(CancellationToken cancellationToken) in /app/ISM7/Ism7Client.cs:line 281
at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ISM7/ResponseDispatcher.cs:line 32
at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ISM7/Ism7Client.cs:line 213
Which docker tag are you using? If I'm correct you are using latest
which is not compatible with the config of v0.0.13
- so you should either use v0.0.13
or master
This is unexpected. In my experience the latest
docker image always refers to the latest official release, which in this case here should be the same as v0.0.13
. Is it not? If this is really the case, then please consider adding something like latest-beta
(or latest-nightly
or master
which you already have) for images that are not an official release. Please notice that the releases page also marks v0.0.13 with the "Latest" label.
Okay, since there are no compiled versions of ism7config for the current master code, I guess I'll now install the v0.0.13
docker image instead.
OK, switching out the docker container from latest
to v0.0.13
seemed to do the trick. Thanks!
(Although I got an error first and had to change DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
from false
to true
. In the latest
image this value is already true
by default.)
Great - I'll update the latest tag to also point to the latest release. I haven't done this before, because I haven't got any feedback if this still works (besides my own setup).
Which error do you get when setting DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
? This was needed to get ism7config working inside docker.
Which error do you get when setting
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
? This was needed to get ism7config working inside docker.
Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode+Settings..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.Globalization.CultureInfo.get_CurrentCulture()
at System.ComponentModel.BaseNumberConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
at System.ComponentModel.TypeConverter.ConvertFromString(System.String)
at ism7mqtt.Program.GetEnvInt32(System.String, Int32)
at ism7mqtt.Program+<Main>d__3.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[ism7mqtt.Program+<Main>d__3, ism7mqtt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__3 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[ism7mqtt.Program+<Main>d__3, ism7mqtt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__3 ByRef)
at ism7mqtt.Program.Main(System.String[])
at ism7mqtt.Program.<Main>(System.String[])
fwiw: I'm running Docker on my Synology NAS.
I am indescribably grateful for this project that you have set up here. I'm sure this was a huge amount of work that you have done here over the past 2+ years. It was a pain not having the CHA data in my network since it was installed. Now I have a new playground. Thank you! Can I invite you for a beer and/or meal next time I come to Berlin (could be next year)?
I've updated the latest tag and also changed the invariant globalization, so you don't need to set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
anymore.
I switched to the latest
docker image and can confirm that it's working now as expected. Thanks!
I have finally received my ism7 module and have set up ism7mqtt 0.0.13 from scratch, created the parameter.json and am trying to use the official docker image.
However, after configuring the container, starting it throws the following error and I have no idea what this could mean:
How can I solve this or what can I do to find the reason for this error message?