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

[Auditbeat] Error from system/package dataset on darwin at startup #18536

Closed
andrewkroh opened this issue May 14, 2020 · 2 comments · Fixed by #18887
Closed

[Auditbeat] Error from system/package dataset on darwin at startup #18536

andrewkroh opened this issue May 14, 2020 · 2 comments · Fixed by #18887

Comments

@andrewkroh
Copy link
Member

A fresh install of Auditbeat on darwin logs this error message:

2020-05-14T14:11:21.423-0400 ERROR [package] package/package.go:238 error encoding packages: gob: type not registered for interface: errors.withStack

For confirmed bugs, please report:

  • Version: 7.6.2
  • Operating System: Darwin
  • Discuss Forum URL:
  • Steps to Reproduce:
    • Download Auditbeat tar.gz for Darwin from website.
    • Extract and run.
    • Look at log.
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 14, 2020
@andrewkroh
Copy link
Member Author

It looks like there is a error in the struct that is being encoding. If we unexport that field gob will skip it.

Need to read the docs more to know if that will affect deserialization across versions.

andrewkroh added a commit to andrewkroh/beats that referenced this issue Jun 1, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536
andrewkroh added a commit that referenced this issue Jun 3, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes #18536
andrewkroh added a commit to andrewkroh/beats that referenced this issue Jun 8, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536

(cherry picked from commit cf7b643)
andrewkroh added a commit to andrewkroh/beats that referenced this issue Jun 8, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536

(cherry picked from commit cf7b643)
andrewkroh added a commit that referenced this issue Jun 8, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes #18536

(cherry picked from commit cf7b643)
andrewkroh added a commit that referenced this issue Jun 9, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes #18536

(cherry picked from commit cf7b643)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this issue Oct 14, 2020
The system/package dataset uses encoding/gob to encode and decode
the Package struct data that it persists. The struct was updated to contain
an error which is an interface type that's not serializable by default.

I have made the field unexpected so that it is ignored by encoding/gob.

Fixes elastic#18536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants