Open
Description
Is there an existing issue for this?
- I have searched the existing issues and found none that matched mine
Describe the issue
There is a GPO object that is being applied to about ~1000 windows vms, its size is ~476KB in size and we see an error with adsysctl
after running adsysctl update -m
ERROR Error from server: error while updating policy: can't get policies for "hostname redacted": one or more error while parsing downloaded elements: /var/cache/adsys/sysvol/Policies/{UUID redacted}/Machine/Registry.pol: can't parse policy: invalid policy: bufio.Scanner: token too long
Steps to reproduce it
In a ubuntu vm use adsysctl update -m -vvv
on a large GPO object in windows AD.
Ubuntu users: System information
Non Ubuntu users: System information
Environment
- adsys version: 0.16.0ubuntu1`
- Distribution: plucky
- Distribution version: 25.04
Log files
Please redact/remove sensitive information:
adsysctl service cat -vvv
INFO github.com/ubuntu/adsys/internal/config/config.go:79 Init() Using configuration file: /etc/adsys.yaml
DEBUG Connecting as [[2924:773482]]
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:28 (*Service).RegisterGRPCServer.StreamServerInterceptor.func3() New request /service/Cat
DEBUG github.com/ubuntu/adsys/internal/grpc/logconnections/logconnections.go:61 loggedServerStream.RecvMsg() Requesting with parameters:
DEBUG github.com/ubuntu/adsys/internal/authorizer/authorizer.go:112 Authorizer.IsAllowedFromContext() Check if grpc request peer is authorized
DEBUG github.com/ubuntu/adsys/internal/authorizer/authorizer.go:203 Authorizer.isAllowed() Polkit call result, authorized: true
[adsysctl.txt](https://github.com/user-attachments/files/18680013/adsysctl.txt)
Application settings
Please redact/remove sensitive information:
Paste the contents of your adsys.yaml file here, if you created one.
Additional information
No response
Double check your logs
- I have redacted any sensitive information from the logs