You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issues deploying through gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden #84
Firstly I thought there might be something wrong with my gitlab token so I made sure the token works fine. I logged into the box running caprover and ran docker login registry.gitlab.com and successfully logged in with the token as password. I was then able to pull the docker images from gitlab registry. For testing purposes I gave full access rights - api, read_user, read_api, read_repository, write_repository, read_registry, write_registry. So I can't imagine the token being the issue.
I then tailed the caprover container to see why its failing and got the following error message:
> POST /api/v2/login 200 219.602 ms - 307
GET /api/v2/user/apps/appDefinitions 200 3.679 ms - 5517
POST /api/v2/user/apps/appData/projectName-dev?detached=1 200 1.431 ms - 58
GET /api/v2/user/apps/appData/projectName-dev 200 1.529 ms - 750
(node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error - Get https://registry.gitlab.com/v2/group-name/project-name/my-build-image/manifests/5d22fa126f7c504e3aac53564f6eb8ca5dd0f696: denied: access forbidden
at /usr/src/app/node_modules/docker-modem/lib/modem.js:301:17
at IncomingMessage.<anonymous> (/usr/src/app/node_modules/docker-modem/lib/modem.js:328:9)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:25) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 66)
GET /api/v2/user/apps/appData/projectName-dev 200 2.615 ms - 990`
I've also made sure that I've added the remote registry under cluster. Followed the instructions on https://caprover.com/docs/ci-cd-integration.html
It seems like its failing to pull docker images even though I'm able to pull it from the box running caprover. Am I missing something?
I am using caprover version caprover/caprover:1.8.2
Please assist.
Thanks,
Junayed
Activity
ghost changed the title [-](node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error - Get https://registry.gitlab.com/v2/group-name/project-name/my-build-image/manifests/5d22fa126f7c504e3aac53564f6eb8ca5dd0f696: denied: access forbidden[/-][+](node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error[/+]on Feb 8, 2021
ghost changed the title [-](node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error[/-][+]Issues deploying though gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden[/+]on Feb 8, 2021
ghost changed the title [-]Issues deploying though gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden[/-][+]Issues deploying through gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden[/+]on Feb 8, 2021
Activity
[-](node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error - Get https://registry.gitlab.com/v2/group-name/project-name/my-build-image/manifests/5d22fa126f7c504e3aac53564f6eb8ca5dd0f696: denied: access forbidden[/-][+](node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error[/+][-](node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error[/-][+]Issues deploying though gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden[/+][-]Issues deploying though gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden[/-][+]Issues deploying through gitlabci - (node:25) UnhandledPromiseRejectionWarning: Error: (HTTP code 500) server error denied: access forbidden[/+]githubsaturn commentedon Feb 8, 2021
Can you please try this?
1- Add this as your docker registry:
2- Create a new app
3- Go to deployment tab - Method 6: Deploy via ImageName and deploy this image:
Does this work?
githubsaturn commentedon Feb 9, 2021
I'd doubt that it is the case, but you can try it out and create a test account without any dots.
githubsaturn commentedon Feb 9, 2021
Interesting. Can you try enabling 2 factor auth for the second account to see if it makes any difference?
githubsaturn commentedon Feb 9, 2021
Okay... This is getting really weird... I just created an account with a dot and I was able to get the image deployed. Try this:
Note that there is a
1at the end of image prefix (but it's not on username).And deploy this image:
githubsaturn commentedon Feb 9, 2021
This is incorrect. Your image prefix is is
naked-shefin this example.