One of two server is missing default logging targets

One of two server is missing default logging targets

avatar
Product: PowerShell Universal
Version: 4.0.1


Hello all,


we are using two PU servers in cluster. Unfortunately, since the update to 4.0.1 I have the problem that I no longer get logs from one of the two servers.


When I look at the new logging targets, I see on ServerA:



And on ServerB:



Wenn ich versuche auf ServerA ein Logging Target hinzuzufügen, dann erhalte ich kurzzeitig folgende Fehlermeldung:



How do I get state from server B back to server A now? I have already copied the appsettings.json from B to A, unfortunately without success.


Thanks!

All Comments (23)

avatar

Do you have a logging.ps1 in either of your servers’ .universal folders?

Adam Driscoll

PowerShell Expert and Software Architect at Devolutions

avatar
(anonymous user)

Wenn ich versuche auf ServerA ein Logging Target hinzuzufügen, dann erhalte ich kurzzeitig folgende Fehlermeldung:

You know end users are frustrated when they switch to german mid-post.

avatar

It was late, sorry

avatar

No, this file does not exist in our system. Until now I always assumed that the log directory is configured via the appsettings.json file.


What does a simple logging.ps1 look like? Just create the file without any content?


Thanks!

avatar
(anonymous user)

Many things were fixed for me after just creating an empty logging/authentication/endpoints/etc.ps1 within the .universal folder.

The application will be able to write it’s bare minimum on next startup


Worth a try, for sure!

avatar

Crazy, worked immediately after restarting the service. Thanks for the tip!

avatar

Nevermind…

avatar
(anonymous user)

Same issue as before?