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

make systemd script bit more resilient #1

Open
natarajmb opened this issue May 10, 2020 · 1 comment
Open

make systemd script bit more resilient #1

natarajmb opened this issue May 10, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@natarajmb
Copy link
Owner

natarajmb commented May 10, 2020

Some time packages fail to download due to network or certificate signing (slow processing on certs on RPI I think) and fails the package install. It would be nice to have the script to restart on such failures. It would need files copied into the root folder to be moved into a cleaner place to pick for the second run.

Apr 1 17:24:32 shimsha post_first_boot.sh[2757]: Err:6 https://packages.cloud.google.com/apt kubernetes-xenial Release Apr 1 17:24:32 shimsha post_first_boot.sh[2757]: Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 216.58.210.238 443]

Though key was downloaded and added before above error like here
Apr 1 17:24:31 shimsha post_first_boot.sh[2567]: Warning: apt-key output should not be parsed (stdout is not a terminal) Apr 1 17:24:31 shimsha post_first_boot.sh[2567]: OK Apr 1 17:24:31 shimsha post_first_boot.sh[2753]: deb https://apt.kubernetes.io/ kubernetes-xenial main

@natarajmb
Copy link
Owner Author

Its sounds like my setup as most times this works and only few cases it fails as suggested here kubernetes/kubernetes#39592 hence making systemd rerun should be an ideal fix.

@natarajmb natarajmb self-assigned this May 10, 2020
@natarajmb natarajmb added the enhancement New feature or request label May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant