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

Disable repository expiration checks in Journalbeat builds #18005

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Apr 27, 2020

Journalbeat builds are failing in all branches with errors like the following one:

W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
WARNING: The following packages cannot be authenticated!
  liblzma5:i386 libgpg-error0:i386
E: There are problems and -y was used without --force-yes
Error: running "apt-get install -y --no-install-recommends -o Acquire::Check-Valid-Until=false libsystemd-dev:i386 libsystemd0:i386 libgcrypt20:i386" failed with exit code 100

Jessie repositories are not updated anymore and their keys got outdated a couple of days ago.

# apt-key list | grep expired
pub   4096R/46925553 2012-04-27 [expired: 2020-04-25]
pub   4096R/65FFB764 2012-05-08 [expired: 2019-05-07]

I tried to disable only expiration checks with -o Acquire::Check-Valid-Until=false but it was not enough.

I am disabling all authentication checks for packages installation during Journalbeat builds. We should review this in a follow up, so we don't build with unauthenticated packages.

@jsoriano jsoriano added bug :Packaging review needs_backport PR is waiting to be backported to other branches. [zube]: In Review Team:Integrations Label for the Integrations team v7.7.0 labels Apr 27, 2020
@jsoriano jsoriano self-assigned this Apr 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@jsoriano
Copy link
Member Author

run beats-ci/package

@jsoriano
Copy link
Member Author

Open PR in golang-crossbuild in case we decide to go for Debian 9 elastic/golang-crossbuild#48

@jsoriano
Copy link
Member Author

Alternatively, upgrade the image used to build Journalbeat: #18008

Copy link
Contributor

@mikemadden42 mikemadden42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mage package for journalbeat now works with your fix. Other command like make release-manager-snapshot also work.

@jsoriano jsoriano merged commit 7f037bf into elastic:master Apr 27, 2020
@jsoriano jsoriano deleted the jenkinsfile-debian-expiration branch April 27, 2020 16:20
@jsoriano jsoriano added v7.8.0 and removed needs_backport PR is waiting to be backported to other branches. labels Apr 27, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Apr 27, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Apr 27, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Apr 27, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Apr 27, 2020
mikemadden42 pushed a commit that referenced this pull request Apr 27, 2020
mikemadden42 pushed a commit that referenced this pull request Apr 27, 2020
mikemadden42 pushed a commit that referenced this pull request Apr 27, 2020
mikemadden42 pushed a commit that referenced this pull request Apr 27, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants