i just changed my node-red installation to a new pc, switched from windows 10 to windows 11. just installed node-red with the modules i used in the past version.
node-red-contrib-huemagic-fork
node-red-contrib-modbus
node-red-contrib-ola
node-red-dashboard
unfortunally after the deploy from the past flow (worked for a year and a half without any problems) into the new version, node-red seems to break down after a few minutes. somethimes when no nodes are triggerd or something.
i get the following error:
7 Jan 20:44:25 - [red] Uncaught Exception:
7 Jan 20:44:25 - [error] TypeError: Cannot read properties of undefined (reading 'getSessions')
at loadSessions (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\editor-api\lib\auth\tokens.js:61:34)
at Object.get (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\editor-api\lib\auth\tokens.js:93:16)
at handleAuthPacket (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\editor-api\lib\editor\comms.js:82:16)
at WebSocket.<anonymous> (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\editor-api\lib\editor\comms.js:137:17)
at WebSocket.emit (node:events:524:28)
at Receiver.receiverOnMessage (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\ws\lib\websocket.js:1070:20)
at Receiver.emit (node:events:524:28)
at Receiver.dataMessage (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\ws\lib\receiver.js:517:14)
at Receiver.getData (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\ws\lib\receiver.js:435:17)
at Receiver.startLoop (C:\Users\pc\AppData\Roaming\npm\node_modules\node-red\node_modules\ws\lib\receiver.js:143:22)
i tried to read other topics with similar problems, but nothing seems to work or make any sence for my situation.
i did check the install log when i installed it, didn't got any errors.
but i thing i didn't the windows build tools. i just opened the nodejs installer again and did check the box now. if correct it opened a new powershell with the installation going on.
however it does give some errors.
[45b0:0009][2025-01-07T21:30:30] Telemetry property VS.SetupEngine.Id : VisualStudio/16.11.42+35425.106
[45b0:0009][2025-01-07T21:30:30] Telemetry property VS.SetupEngine.Branch : d16.11
[45b0:0009][2025-01-07T21:30:30] Telemetry property VS.SetupEngine.BuildNumber : 16.11.35425.106
[45b0:0009][2025-01-07T21:30:30] Telemetry property VS.SetupEngine.InstanceId : b1a4a8e4
[45b0:0009][2025-01-07T21:30:30] Telemetry property VS.SetupEngine.EngineVersion : 3.12.2149.20818
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.Windows.UniversalCRT.Msu.8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.2,6.3)'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.Windows.UniversalCRT.Msu.81 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.3,6.4)'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.Net.4.7.2.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.16299]'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.Windows.UniversalCRT.Msu.7 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.VisualStudio.Debugger.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.17763]'.
[45b0:0009][2025-01-07T21:30:30] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.Windows.UniversalCRT.Msu.8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.2,6.3)'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.Windows.UniversalCRT.Msu.81 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.3,6.4)'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.Net.4.7.2.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.16299]'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.Windows.UniversalCRT.Msu.7 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.VisualStudio.Debugger.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.VisualStudio.Debugger.Remote.DbgHelp.Win8 is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.3]'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1.1,10.0.17763]'.
[45b0:0009][2025-01-07T21:30:31] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22631.0' is not in the supported version range '[6.1,6.2)'.
Warning: [45b0:0009][2025-01-07T21:30:31] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\b1a4a8e4\catalog.previous.json'
[45b0:0009][2025-01-07T21:30:31] Adding packages from --add
[45b0:0005][2025-01-07T21:30:31] Planning graph selection
[45b0:0005][2025-01-07T21:30:31] Graph.PlanSelection completed in 2ms
[45b0:0005][2025-01-07T21:30:31] Building the required chain
[45b0:0005][2025-01-07T21:30:31] Committing graph selection
[45b0:0005][2025-01-07T21:30:31] Graph.CommitSelection completed in 1ms
[45b0:0005][2025-01-07T21:30:31] Updating graph selection
[45b0:0005][2025-01-07T21:30:31] Graph.UpdateSelection completed in 3ms
[45b0:0005][2025-01-07T21:30:31] Notifying VMs with the updated selections: GroupSelected - Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows10SDK.19041 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde
[45b0:001c][2025-01-07T21:30:31] Extension signature validation returned 0 unsigned extensions and 0 invalidly signed extensions.
[45b0:001c][2025-01-07T21:30:31] No restart manager available. Assuming no reboot required for instance state.
[45b0:001c][2025-01-07T21:30:31] No restart manager available. Assuming no reboot required for instance state.
[45b0:0013][2025-01-07T21:30:31] ManifestVerifier Result: Success
[45b0:0013][2025-01-07T21:30:31] Creating a UnelevatedProductModifier to modify the following packages: Microsoft.VisualStudio.Product.BuildTools Microsoft.VisualStudio.Workload.MSBuildTools Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.Roslyn.Compiler Microsoft.Component.MSBuild Microsoft.VisualStudio.Component.CoreBuildTools Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows10SDK.19041 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core
[45b0:0013][2025-01-07T21:30:31] Created a UnelevatedProductModifier
[45b0:0013][2025-01-07T21:30:31] Decorating UnelevatedProductModifier with UnelevatedInstallerTelemetryDecorator
[45b0:0013][2025-01-07T21:30:31] ManifestVerifier Result: Success
Warning: [45b0:0008][2025-01-07T21:30:31] The operation was canceled.
Warning: [45b0:0003][2025-01-07T21:30:31] Didn't find any channel feed.
Warning: [45b0:0008][2025-01-07T21:30:31] Didn't find any channel feed.
[45b0:001f][2025-01-07T21:30:31] WebClient error 'RequestCanceled' with 'https://aka.ms/vs/channels' - ExecuteWithRetryAsync failed along with a cancellation request
Warning: [45b0:001f][2025-01-07T21:30:31] Failed to get the HttpWebResponse while invoking a HEAD request against https://aka.ms/vs/channels:System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at Microsoft.VisualStudio.Setup.Download.WebRequestService.<>c__DisplayClass9_0.<ExecuteWithRetryAsync>b__0(Object _)
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<MungeUriAsync>d__28.MoveNext()
[45b0:001f][2025-01-07T21:30:31] Download requested: https://aka.ms/vs/channels
Warning: [45b0:0024][2025-01-07T21:30:31] Failed to download channels file from https://aka.ms/vs/channels: A task was canceled.
[45b0:0025][2025-01-07T21:30:31] WebClient error 'RequestCanceled' with 'https://aka.ms/vs/installer/latest/feed' - ExecuteWithRetryAsync failed along with a cancellation request
Warning: [45b0:0025][2025-01-07T21:30:31] Failed to get the HttpWebResponse while invoking a HEAD request against https://aka.ms/vs/installer/latest/feed:System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at Microsoft.VisualStudio.Setup.Download.WebRequestService.<>c__DisplayClass9_0.<ExecuteWithRetryAsync>b__0(Object _)
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<MungeUriAsync>d__28.MoveNext()
[45b0:0025][2025-01-07T21:30:31] Download requested: https://aka.ms/vs/installer/latest/feed
Warning: [45b0:0011][2025-01-07T21:30:31] Failed to update the latest installer feed A task was canceled.
Warning: [45b0:0011][2025-01-07T21:30:31] Didn't find any channel feed.
[45b0:0004][2025-01-07T21:30:31] Status changed to NoUpdate
Warning: [45b0:000d][2025-01-07T21:30:31] Didn't find any channel feed.
Warning: [45b0:001c][2025-01-07T21:30:31] Didn't find any channel feed.
[45b0:0010][2025-01-07T21:30:31] Authenticode verification returned 0x00000000 for path: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe.
i tried to find it in the settings file, but i'm not sure where to look. the structure as shown in the github link is different from my folder structure. is there a specific file i can search for to check if those settings are in there?
just did, tried to start node-red and after a few times triggering nodes it does have the same issue, kills node red with the same error in the terminal screen.
also checked for windows updates. but everything is up to date aswell as node-red itself.
i can also try to reinstall nodejs, but i'm affraid that won't help.