Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitlab ci - You don't have permission to access the resource

I have developed an angular application, checked in the source codes to gitlab, which trigger the gitlab ci. The job is successful. In the job artifact page, I saw the following folders structure: workspace/public. Inside the public folder, I have the necessary html, javascript, etc.

I try to access using http://xxx.gitlab.io/index.html or even https://xxx.gitlab.io/index.html (where xxx is my gitlab username). I keep getting the below

401
You don't have permission to access the resource.
The resource that you are attempting to access is protected and you don't have the necessary permissions to view it.

This implies that my url is correct, just that I dont have the permission. What kind of permission is it referring to. Am i missing something in my steps?

like image 425
Bruce Wills Avatar asked Oct 17 '25 04:10

Bruce Wills


1 Answers

Seems there can be a few reasons for a dreaded 401. Just in case it can be helpful, I had the exact same 'symptoms'. Job successful and could browse the artifacts. The problem was the job name in the .gitlab-ci.yml was not named 'pages'.

like image 171
Boyd Avatar answered Oct 19 '25 08:10

Boyd