Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucketpipelines/renovate-scan:0.5.0 - 401 Unauthorized error

Tech Mwah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 4, 2024

I am using bitbucket renovate scan pipe in my bitbucket-pipeline yaml. Added all necessary environment variables as mentioned below.

Still getting 401 Unauthorized error.

 

RENOVATE_USERNAME: $RENOVATE_USERNAME

RENOVATE_PASSWORD: $RENOVATE_PASSWORD

RENOVATE_USER_EMAIL: $RENOVATE_USER_EMAIL

CONFIG_FILE_PATH: 'config.yaml'

RENOVATE_DRY_RUN: 'true'

GITHUB_COM_TOKEN: "value"

 

Error: 

 

WARN: env config dryRun property has been changed to full
255
INFO: Repository started (repository=mwahlive/culture-dashboard-server)
256
"renovateVersion": "37.6.3"
257
ERROR: Repository has unknown error (repository=mwahlive/culture-dashboard-server)
258
"err": {
259
"name": "HTTPError",
260
"code": "ERR_NON_2XX_3XX_RESPONSE",
261
"timings": {
262
"start": 1722825530471,
263
"socket": 1722825530472,
264
"lookup": 1722825530473,
265
"connect": 1722825530475,
266
"secureConnect": 1722825530479,
267
"upload": 1722825530479,
268
"response": 1722825530523,
269
"end": 1722825530524,
270
"phases": {
271
"wait": 1,
272
"dns": 1,
273
"tcp": 2,
274
"tls": 4,
275
"request": 0,
276
"firstByte": 44,
277
"download": 1,
278
"total": 53
279
}
280
},
281
"message": "Response code 401 (Unauthorized)",
282
"stack": "HTTPError: Response code 401 (Unauthorized)\n at Request.<anonymous> (/opt/containerbase/tools/renovate/37.6.3/node_modules/got/dist/source/as-promise/index.js:118:42)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)",
283
"options": {
284
"headers": {
285
"user-agent": "RenovateBot/37.6.3 (https://github.com/renovatebot/renovate)",
286
"accept": "application/json",
287
"authorization": "***********",
288
"accept-encoding": "gzip, deflate, br"
289
},
291
"hostType": "bitbucket",
292
"username": "",
293
"password": "",
294
"method": "GET",
295
"http2": false
296
},
297
"response": {
298
"statusCode": 401,
299
"statusMessage": "Unauthorized",
300
"body": "",
301
"headers": {
302
"date": "Mon, 05 Aug 2024 02:38:50 GMT",
303
"content-type": "text/plain",
304
"content-length": "0",
305
"server": "AtlassianEdge",
306
"www-authenticate": "BitbucketCustom realm=Bitbucket.org HTTP",
307
"vary": "Origin",
308
"x-dc-location": "Micros-3",
309
"x-served-by": "14f9cc1e8d05",
310
"x-version": "cf7573d062f3",
311
"x-static-version": "cf7573d062f3",
312
"x-request-count": "826",
313
"x-render-time": "0.0080413818359375",
314
"x-b3-traceid": "6a88e39e19904299bf40723e13fa288b",
315
"x-b3-spanid": "f94dd37d99370b61",
316
"x-frame-options": "SAMEORIGIN",
317
"x-usage-user-time": "0.012645",
318
"x-usage-system-time": "0.000217",
319
"x-usage-input-ops": "0",
320
"x-usage-output-ops": "0",
321
"x-trace-id": "6a88e39e19904299bf40723e13fa288b",
322
"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
323
"api-via-stargate": "True",
324
"x-content-type-options": "nosniff",
325
"x-xss-protection": "1; mode=block",
326
"atl-traceid": "6a88e39e19904299bf40723e13fa288b",
327
"report-to": "{\"endpoints\": [{\"url\": \"https://*****\"}], \"group\": \"endpoint-1\", \"include_subdomains\": true, \"max_age\": 600}",
328
"nel": "{\"failure_fraction\": 0.001, \"include_subdomains\": true, \"max_age\": 600, \"report_to\": \"endpoint-1\"}",
329
"connection": "close"
330
},
331
"httpVersion": "1.1",
332
"retryCount": 0
333
}
334
}
335
INFO: Repository finished (repository=***)
336
"cloned": undefined,
337
"durationMs": 73

1 answer

2 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2024

G'day, @Tech Mwah 

Have you reviewed our documentation here and verified that you've followed all the required steps, especially the creation of a new account for using Renovate bots?

I would also suggest you enable the debug mode on the pipe to get verbose logs to help identify the issue.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events