Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent Schedule Failures in High Availability (HA) Setup and API Returning 400 Errors with Debug Logging Enabled in PSU Version 4.4.0 #3784

Open
RubenT91 opened this issue Sep 17, 2024 · 2 comments
Labels
bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team.

Comments

@RubenT91
Copy link
Collaborator

Version

4.3.4

Severity

Medium

Environment

msi

Steps to Reproduce

  • Configure PowerShell Universal (PSU) version 4.4.0 in a high-availability (HA) setup with two nodes.

  • Set up schedules using the New-PSUSchedule cmdlet, ensuring that the schedules are visible and expected to run across all nodes.

  • Monitor schedules for intermittent failures, particularly on one node, while the other node is placed in maintenance mode.

  • Enable debug logging in appsettings.json with the following:
    {
    "Logging": {
    "LogLevel": {
    "Default": "Debug"
    }
    }
    }

  • After enabling debug logging, observe that API endpoints begin returning 400 errors when making API calls.

Expected behavior

All schedules should trigger reliably across nodes in an HA setup, regardless of which node creates the schedule.
Enabling debug logging should not interfere with API endpoint functionality, and all API requests should return valid responses without 400 errors.

Actual behavior

Schedules intermittently fail to trigger on certain nodes in the HA setup, even when one node is placed in maintenance mode. No discernible pattern or errors are present in the logs.
When debug logging is enabled via appsettings.json, API endpoints start returning 400 errors. Removing the debug logging configuration restores API functionality (returns 200).

Additional Environment data

Operating System: Windows Server 2022 (HA setup)
Environment: MSI installation
Debug logs were requested but enabling them caused API errors, which could be part of the root cause.

Screenshots/Animations

No response

@RubenT91 RubenT91 added bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team. labels Sep 17, 2024
@adamdriscoll
Copy link
Member

@RubenT91 - Can you attach the logs?

@RubenT91
Copy link
Collaborator Author

@RubenT91 - Can you attach the logs?

logs.2024-09-18 (1).zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team.
Projects
None yet
Development

No branches or pull requests

2 participants