μλ
νμΈμ. λͺ¨λμ μ€μ ν ν λλ€ νμ₯μ μ€λ₯κ° μμ΅λλ€.
μλ Cloudwatch λ‘κ·Έ:
ERROR Invoke Error
{
"errorType": "Error",
"errorMessage": "Failed handling SQS event",
"stack": [
"Error: Failed handling SQS event",
" at _homogeneousError (/var/runtime/CallbackContext.js:12:12)",
" at postError (/var/runtime/CallbackContext.js:29:54)",
" at callback (/var/runtime/CallbackContext.js:41:7)",
" at /var/runtime/CallbackContext.js:104:16",
" at /var/task/index.js:16834:16",
" at Generator.throw (<anonymous>)",
" at rejected (/var/task/index.js:16816:65)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
ERROR RequestError [HttpError]: Resource not accessible by integration
at /var/task/index.js:15124:23
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
status: 403,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Tue, 17 Nov 2020 17:51:47 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
status: '403 Forbidden',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '93DE:E7C5:957F272:AC944E7:5FB40DB3',
'x-ratelimit-limit': '5600',
'x-ratelimit-remaining': '5598',
'x-ratelimit-reset': '1605639047',
'x-ratelimit-used': '2',
'x-xss-protection': '1; mode=block'
},
request: {
method: 'GET',
url: 'https://api.github.com/repos/RaketaApp/packer-base-ami/actions/runs?status=queued',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'octokit-rest.js/18.0.6 octokit-core.js/3.1.1 Node.js/12.18.4 (linux; x64)',
authorization: 'token [REDACTED]'
},
request: { hook: [Function: bound bound register] }
},
documentation_url: 'https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository'
}
λμΌν μ€λ₯κ° λ°μνμ΅λλ€. μμ κ·Έλ£Ήμμ μ± κΆνμ λΆμ¬ν΄ 보μΈμ.
@adrianmiron μμ νμ ¨λμ?
κ°μ λ¬Έμ +1
@npalm λμμ£Όμκ² μ΄μ?
@adrianmiron Actions κ·Έλ£Ήμ μλνμ§λ§ μ¬μ ν λ¬Έμ κ° μμ΅λλ€. λͺ¨λ κΆνμ 곡μ ν μ μμ΅λκΉ? λλ μ‘°μ§ λ¬λλ₯Ό μλνκ³ μμ΅λλ€.
μ€μΌμΌ μ λλ€κ° λκΈ°μ΄μμ λ©μμ§λ₯Ό κ°μ Έμ€λ λ¬Έμ λ₯Ό μΈμνμ§ λͺ»ν©λλ€. λ€μμΌλ‘ μμ§ λκΈ°μ΄μ μλ μμ μ΄ μλμ§ νμΈν©λλ€. κ·Έλ λ€λ©΄ νμ₯ μ€μ λλ€. 30μ΄ λμ λκΈ°μ΄μ μλ λ©μμ§μ λν΄ νμ₯ λλ€κ° νΈλ¦¬κ±°λ©λλ€. μ€λ₯ λ©μμ§λ λλ€κ° APIλ₯Ό νΈμΆν μ μμμ λνλ λλ€.
λ¬Έμμ λ°λΌ GitHub μ±μ΄ μ€μ λμ΄ μλμ§ νμΈν μ μμ΅λκΉ? νμ₯ λλ€κ° νΈλ¦¬κ±°λμμΌλ―λ‘ λ¦¬ν¬μ§ν 리μ λν΄ μ±μ΄ μ€μΉλ κ² κ°μ΅λλ€. κ·Έλ μ§ μμΌλ©΄ μ΄λ²€νΈκ° μμ λμ§ μμ΅λλ€. λ°λΌμ κΆνμ΄ μ¬λ°λ₯΄κ² μ€μ λμ§ μμ κ²μ²λΌ 보μ΄λ λλΆλΆμ λ Όλ¦¬μ μ λλ€.
@manoj-k-deepr λμΌν μ€λ₯μ λν μ‘°μ¬μμ github μ±μ κΆν λ¬Έμ λ‘ νλͺ λμμ΅λλ€(μ΄λ μ€μ λ‘ repo μμ μ λν 쿼리λ₯Ό μννλ μ±μ λλ€. λ΄κ° λλ€ -> github μ± μΌ 5 λ² κ·Έλ¦¬κ³ κ·Έκ²μ μλμλ€.
μ‘°μ§/리ν¬μ§ν 리μ λν κΆνμ΄ μλ μΈμ νλ©΄μ 곡μ νκ³ μμΉ¨μ λΉκ΅νκ² μ΅λλ€.
@npalm μ κΆν λ¬Έμ μ λλ€. μ‘°μ§μμ μ체 νΈμ€ν μ£Όμ μ‘μΈμ€( μ½κΈ° λ° μ°κΈ° )λ₯Ό μ 곡νμ¬ λ¬Έμ λ₯Ό ν΄κ²°νμ΅λλ€. λ¬Έμμμλ μ£Όμ κΆνμ λν΄ μΈκΈνμ§ μμμ΅λλ€.
Github μ± κΆνμ λ¬Έμ κ° μμ΅λλ€. @npalm λ¬Έμλ₯Ό μ λ°μ΄νΈνκ³ μ ν리μΌμ΄μ μ νμν κΆνμ μ§μ ν μ μμ΅λκΉ?
@mkryva νλ₯νκ² μλνμ΅λλ€. λ¬Έμλ₯Ό μ λ°μ΄νΈν μ μλλ‘ λ¬Έμ λ₯Ό μ΄μ΄ λ‘λλ€. λ¬Έμ κ°μ μ μν PRμ μΈμ λ νμμ λλ€!
κΆν μ λ°μ΄νΈ ν λ€μ μ€λ₯μ ν¨κ» μ€ν¨ν©λλ€.
ERROR AuthFailure.ServiceLinkedRoleCreationNotPermitted: The provided credentials do not have permission to create the service-linked role for EC2 Spot Instances.
UPD: "μ΄ κ³μ μ λν μ΅λ μ€ν μ§ν© μμ² ν λΉλμ λλ¬νμ΅λλ€." λλ¬ΈμΈ κ² κ°μ΅λλ€.
@mcaulifnμ μν (ghes) μμ μ μ΅μ μ»€λ° νμλ μ€ν¨νλ λλ€ νμ₯
DEBUG https://enterprise.github.custom.com/api/v3
ERROR RequestError [HttpError]: request to https://enterprise.github.custom.com/api/v3/app/installations/22/access_tokens
failed, reason: connect ETIMEDOUT 192.168.1.1:443
at /var/task/index.js:2797:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async getInstallationAuthentication (/var/task/index.js:266:7) {
status: 500,
headers: {},
request: {
method: 'POST',
url: 'https://enterprise.github.custom.com/api/v3/app/installations/22/access_tokens',
headers: {
accept: 'application/vnd.github.antiope-preview+json,application/vnd.github.machine-man-preview+json',
'user-agent': 'octokit-request.js/5.4.12 Node.js/12.19.0 (linux; x64)',
authorization: 'bearer [REDACTED]',
'content-length': 0
}
}
}
ERROR RequestError [HttpError]: request to https://enterprise.github.custom.com/api/v3/app/installations/22/access_tokens failed,
reason: connect ETIMEDOUT 192.168.1.1:443 at /var/task/index.js:2797:11 at processTicksAndRejections
(internal/process/task_queues.js:97:5) at async getInstallationAuthentication (/var/task/index.js:266:7)
{ status: 500, headers: {}, request: {
method: 'POST', url: 'https://enterprise.github.custom.com/api/v3/app/installations/22/access_tokens',
headers: { accept: 'application/vnd.github.antiope-preview+json,application/vnd.github.machine-man-preview+json',
'user-agent': 'octokit-request.js/5.4.12 Node.js/12.19.0 (linux; x64)', authorization: 'bearer [REDACTED]',
'content-length': 0 } } }
ERROR Invoke Error
{
"errorType": "Error",
"errorMessage": "Failed handling SQS event",
"stack": [
"Error: Failed handling SQS event",
" at _homogeneousError (/var/runtime/CallbackContext.js:12:12)",
" at postError (/var/runtime/CallbackContext.js:29:54)",
" at callback (/var/runtime/CallbackContext.js:41:7)",
" at /var/runtime/CallbackContext.js:104:16",
" at /var/task/index.js:50911:16",
" at Generator.throw (<anonymous>)",
" at rejected (/var/task/index.js:50893:65)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
@buamod λΉμ μ GHESλ₯Ό μ¬μ©νκ³ μμ΅λκΉ? μ€λ₯Έμͺ½? νμ€ν νκΈ° μν΄ λλ€λ₯Ό λ€μ λΉλνκ³ μ¬μ©νλμ§ νμΈνμ΅λκΉ?
ETIMEDOUT
λ GHESκ° μλ΅νμ§ μμμμ λνλ
λλ€. λΉμ μ νλ‘μ λ€μ μμ΅λκΉ?
@buamod λΉμ μ GHESλ₯Ό μ¬μ©νκ³ μμ΅λκΉ? μ€λ₯Έμͺ½? νμ€ν νκΈ° μν΄ λλ€λ₯Ό λ€μ λΉλνκ³ μ¬μ©νλμ§ νμΈνμ΅λκΉ?
μ΅μ μ»€λ° λλ€λ₯Ό λ°°ν¬νκ³ Ci/build.sh μ€ν¬λ¦½νΈμ λ컀 λͺ λ ΉμΌλ‘ λΉλνμ΅λλ€.
ETIMEDOUT
λ GHESκ° μλ΅νμ§ μμμμ λνλ λλ€. λΉμ μ νλ‘μ λ€μ μμ΅λκΉ?
λ΄κ° λͺ¨λ₯΄λ νλ‘μκ° μμ μ μμ΅λλ€. νλ‘μκ° μλ€κ³ κ°μ ν΄ λ΄ μλ€. μ΄λ»κ² μ λ¬ν©λκΉ?
@buamod νλ‘μ μꡬ μ¬νμ ν¬κ² λ€λ₯Ό μ μμ΅λλ€. μ°κ²°μ ν΅κ³Όνλ λ° νμν μ¬νμ λν΄μλ λ€νΈμν¬ νμ λ¬Έμνλ κ²μ΄ μ’μ΅λλ€.
κ°μ₯ μ μ©ν λκΈ
@npalm μ κΆν λ¬Έμ μ λλ€. μ‘°μ§μμ μ체 νΈμ€ν μ£Όμ μ‘μΈμ€( μ½κΈ° λ° μ°κΈ° )λ₯Ό μ 곡νμ¬ λ¬Έμ λ₯Ό ν΄κ²°νμ΅λλ€. λ¬Έμμμλ μ£Όμ κΆνμ λν΄ μΈκΈνμ§ μμμ΅λλ€.