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

Issue: go bufio.scanner GPO size too large #1191

Open
2 tasks done
casual-lemon opened this issue Feb 5, 2025 · 0 comments
Open
2 tasks done

Issue: go bufio.scanner GPO size too large #1191

casual-lemon opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@casual-lemon
Copy link

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

report.txt

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
@casual-lemon casual-lemon added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant