File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,21 @@ trap "cleanup_secrets" EXIT
72
72
AGENT_PRIVATE_KEY_PATH=" ${SECRETS_MOUNT_POINT} /agent.key"
73
73
AGENT_PUBLIC_KEY_PATH=" ${SECRETS_MOUNT_POINT} /agent.pub"
74
74
if [[ ! -f " ${AGENT_PRIVATE_KEY_PATH} " ]]; then
75
- die " Unable to open agent private key path '${AGENT_PRIVATE_KEY_PATH} '! Make sure your agent has this file deployed within it!"
75
+ echo " Unable to open agent private key path '${AGENT_PRIVATE_KEY_PATH} '! Make sure your agent has this file deployed within it!"
76
+ echo " NOTE: This is a known bug where this agent is old, caused by the agent not restarting after a previous job."
77
+ echo " see https://github.com/JuliaCI/sandboxed-buildkite-agent/issues/42"
78
+ echo " Showing debug information..."
79
+ powershell.exe -Command " & {
80
+ \$ providers = @('nssm', 'User32');
81
+ foreach (\$ provider in \$ providers) {
82
+ Write-Host \"\` n ProviderName: \$ provider\` n\" ;
83
+ Get-WinEvent -LogName Application -FilterXPath \" *[System[Provider[@Name='\$ provider']]]\" -MaxEvents 50 |
84
+ Sort-Object TimeCreated |
85
+ Select-Object TimeCreated, Id, LevelDisplayName, Message |
86
+ Format-Table -AutoSize
87
+ }
88
+ }"
89
+ exit 1
76
90
else
77
91
if ! openssl rsa -inform PEM -in " ${AGENT_PRIVATE_KEY_PATH} " -noout 2> /dev/null; then
78
92
die " Secret private key path '${AGENT_PRIVATE_KEY_PATH} ' is not a valid private RSA key!"
You can’t perform that action at this time.
0 commit comments