Open fgregg opened 2 years ago
|
| Runner_20220527-192855-utc.log |
| [2022-05-27 19:28:55Z INFO HostContext] No proxy settings were found based on environmental variables (http_proxy/https_proxy/HTTP_PROXY/HTTPS_PROXY) |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known config file 'Credentials': '/tmp/runner/.credentials' |
| [2022-05-27 19:28:55Z INFO Listener] Runner is built for Linux (X64) - linux-x64. |
| [2022-05-27 19:28:55Z INFO Listener] RuntimeInformation: Linux 4.14.255-276-224.499.amzn2.x86_64 #1 SMP Tue May 3 22:30:10 UTC 2022. |
| [2022-05-27 19:28:55Z INFO Listener] Version: 2.284.0 |
| [2022-05-27 19:28:55Z INFO Listener] Commit: 9027c154d05776c16f6df6c0345bc9ec20440ebe |
| [2022-05-27 19:28:55Z INFO Listener] Culture: |
| [2022-05-27 19:28:55Z INFO Listener] UI Culture: |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO Listener] Validating directory permissions for: '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Parse |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Parsing 14 args |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: False |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding Command: configure |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: url |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding option 'url': 'https://github.com/dedupeio/dedupe' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: token |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding option 'token': '***' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: name |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding option 'name': 'DEFAULT-LAMBDA-DO-NOT-REMOVE' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: runnergroup |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding option 'runnergroup': 'lambda' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: labels |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding option 'labels': 'lambda' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: work |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] Adding option 'work': '_work' |
| [2022-05-27 19:28:55Z INFO CommandLineParser] parsing argument |
| [2022-05-27 19:28:55Z INFO CommandLineParser] HasArgs: True |
| [2022-05-27 19:28:55Z INFO CommandLineParser] arg: replace |
| [2022-05-27 19:28:55Z INFO Listener] Arguments parsed |
| [2022-05-27 19:28:55Z INFO Runner] ExecuteCommand |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] currentAssemblyLocation: /tmp/runner/bin/Runner.Listener.dll |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] binPath: /tmp/runner/bin |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] RootFolder: /tmp/runner |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known config file 'Runner': '/tmp/runner/.runner' |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] ConfigFilePath: /tmp/runner/.runner |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known config file 'Credentials': '/tmp/runner/.credentials' |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] CredFilePath: /tmp/runner/.credentials |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known config file 'MigratedCredentials': '/tmp/runner/.credentials_migrated' |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] MigratedCredFilePath: /tmp/runner/.credentials_migrated |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:55Z INFO HostContext] Well known config file 'Service': '/tmp/runner/.service' |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] ServiceConfigFilePath: /tmp/runner/.service |
| [2022-05-27 19:28:55Z INFO CommandSettings] Flag 'help': 'False' |
| [2022-05-27 19:28:55Z INFO CommandSettings] Flag 'version': 'False' |
| [2022-05-27 19:28:55Z INFO CommandSettings] Flag 'commit': 'False' |
| [2022-05-27 19:28:55Z INFO CommandSettings] Flag 'check': 'False' |
| [2022-05-27 19:28:55Z INFO CommandSettings] Command 'configure': 'True' |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: -------------------------------------------------------------------------------- |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | ____ _ _ _ _ _ _ _ _ | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | / ___(_) |_| | | |_ _| |__ / \ ___| |_(_) ___ _ __ ___ | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | | | _| | __| |_| | | | | '_ \ / _ \ / __| __| |/ _ \| '_ \/ __| | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | | |_| | | |_| _ | |_| | |_) | / ___ \ (__| |_| | (_) | | | \__ \ | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | \____|_|\__|_| |_|\__,_|_.__/ /_/ \_\___|\__|_|\___/|_| |_|___/ | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE: | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE: Self-hosted runner registration |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: | | |
| [2022-05-27 19:28:55Z INFO Terminal] WRITE LINE: -------------------------------------------------------------------------------- |
| [2022-05-27 19:28:55Z INFO ConfigurationManager] ConfigureAsync |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] IsConfigured() |
| [2022-05-27 19:28:55Z INFO ConfigurationStore] IsConfigured: False |
| [2022-05-27 19:28:55Z INFO ConfigurationManager] Is configured: False |
| [2022-05-27 19:28:55Z INFO CommandSettings] Arg 'url': 'https://github.com/dedupeio/dedupe' |
| [2022-05-27 19:28:55Z INFO CommandSettings] Remove url from Arg dictionary. |
| [2022-05-27 19:28:55Z INFO CommandSettings] Arg 'token': '***' |
| [2022-05-27 19:28:55Z INFO CommandSettings] Remove token from Arg dictionary. |
| [2022-05-27 19:28:55Z INFO ConfigurationManager] Http response code: OK from 'POST https://api.github.com/actions/runner-registration' |
| [2022-05-27 19:28:55Z INFO ConfigurationManager] cred retrieved via GitHub auth |
| [2022-05-27 19:28:55Z INFO RunnerServer] Establish connection with 100 seconds timeout. |
| [2022-05-27 19:28:55Z INFO GitHubActionsService] Starting operation Location.GetConnectionData |
| [2022-05-27 19:28:55Z INFO RunnerServer] Establish connection with 60 seconds timeout. |
| [2022-05-27 19:28:55Z INFO GitHubActionsService] Starting operation Location.GetConnectionData |
| [2022-05-27 19:28:55Z INFO RunnerServer] Establish connection with 60 seconds timeout. |
| [2022-05-27 19:28:55Z INFO GitHubActionsService] Starting operation Location.GetConnectionData |
| [2022-05-27 19:28:56Z INFO GitHubActionsService] Finished operation Location.GetConnectionData |
| [2022-05-27 19:28:56Z INFO GitHubActionsService] Finished operation Location.GetConnectionData |
| [2022-05-27 19:28:56Z INFO GitHubActionsService] Finished operation Location.GetConnectionData |
| [2022-05-27 19:28:58Z INFO Terminal] WRITE LINE: |
| [2022-05-27 19:28:58Z INFO ConfigurationManager] Test Connection complete. |
| [2022-05-27 19:28:58Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:58Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:58Z INFO HostContext] Well known config file 'RSACredentials': '/tmp/runner/.credentials_rsaparams' |
| [2022-05-27 19:28:58Z INFO RSAFileKeyManager] Creating new RSA key using 2048-bit key length |
| [2022-05-27 19:28:58Z INFO RSAFileKeyManager] Successfully saved RSA key parameters to file /tmp/runner/.credentials_rsaparams |
| [2022-05-27 19:28:58Z INFO RSAFileKeyManager] Which: 'chmod' |
| [2022-05-27 19:28:58Z INFO RSAFileKeyManager] Location: '/bin/chmod' |
| [2022-05-27 19:28:58Z INFO HostContext] Well known directory 'Bin': '/tmp/runner/bin' |
| [2022-05-27 19:28:58Z INFO HostContext] Well known directory 'Root': '/tmp/runner' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Starting process: |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] File name: '/bin/chmod' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Arguments: '600 /tmp/runner/.credentials_rsaparams' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Working directory: '/tmp/runner' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Require exit code zero: 'False' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Encoding web name: ; code page: '' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Force kill process on cancellation: 'False' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Redirected STDIN: 'False' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Persist current code page: 'False' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Keep redirected STDIN open: 'False' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] High priority process: 'False' |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Failed to update oom_score_adj for PID: 105. |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] System.UnauthorizedAccessException: Access to the path '/proc/105/oom_score_adj' is denied. |
| ---> System.IO.IOException: Permission denied |
| --- End of inner exception stack trace --- |
| at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) |
| at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) |
| at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options) |
| at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) |
| at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize) |
| at System.IO.StreamWriter..ctor(String path) |
| at System.IO.File.WriteAllText(String path, String contents) |
| at GitHub.Runner.Sdk.ProcessInvoker.WriteProcessOomScoreAdj(Int32 processId, Int32 oomScoreAdj) |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Process started with process id 105, waiting for process exit. |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished. |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished. |
| [2022-05-27 19:28:58Z INFO ProcessInvokerWrapper] Finished process 105 with exit code 0, and elapsed time 00:00:00.0176944. |
| [2022-05-27 19:28:58Z INFO RSAFileKeyManager] Successfully set permissions for RSA key parameters file /tmp/runner/.credentials_rsaparams |
| [2022-05-27 19:28:58Z INFO CommandSettings] Arg 'runnergroup': 'lambda' |
| [2022-05-27 19:28:58Z INFO CommandSettings] Remove runnergroup from Arg dictionary. |
| [2022-05-27 19:28:58Z INFO Terminal] WRITE LINE: |
| [2022-05-27 19:28:58Z ERR Runner] GitHub.DistributedTask.WebApi.TaskAgentPoolNotFoundException: Could not find any self-hosted runner group named "lambda". |
| at GitHub.Runner.Listener.Configuration.ConfigurationManager.ConfigureAsync(CommandSettings command) |
| at GitHub.Runner.Listener.Runner.ExecuteCommand(CommandSettings command) |
| [2022-05-27 19:28:58Z ERR Terminal] WRITE ERROR: Could not find any self-hosted runner group named "lambda". |
| [2022-05-27 19:28:58Z INFO Listener] Runner execution has finished with return code 1 |
| Done reading logs... |
| END RequestId: 4d6d56ed-f846-418b-856a-c6684b7d0638 |
| REPORT RequestId: 4d6d56ed-f846-418b-856a-c6684b7d0638 Duration: 5126.05 ms Billed Duration: 5218 ms Memory Size: 2048 MB Max Memory Used: 630 MB Init Duration: 91.71 ms
it looks to me that the error is that there is no runner group called lambda
set up.
I'm working with a github organization, not enterprise, so i can't add a new runner group.
I tried renaming the name of the default runner group to "lambda" but that did not seem to help.
i edited the code in the runner that tried to add the runner to a runner group, and that got things working.
https://github.com/nwestfall/lambda-github-runner/blob/main/src/lambda-github-runner/main.go#L97
Yeah, I also had good luck with adding --ephemeral
to that; neatly solves the deregistration problem.
I'm still seeing the runners hanging around until they hit the timeout though; not quite sure yet what the fix is for that.
The default runner can't seem to stand itself up.