Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: action publish:gitlab failes with error 404 #16134

Closed
2 tasks done
TalZiv opened this issue Feb 2, 2023 · 2 comments
Closed
2 tasks done

🐛 Bug Report: action publish:gitlab failes with error 404 #16134

TalZiv opened this issue Feb 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@TalZiv
Copy link

TalZiv commented Feb 2, 2023

📜 Description

Hi,

We have created a sample software template on our Gitlab private repository and registered it in Backstage.
After filling in all the details when creating the template, the templating step is successful but the publish step failed
with a 404 error.

We just took this https://github.com/backstage/software-templates/blob/main/scaffolder-templates/springboot-grpc-template/template.yaml and replaced to our host and chnaged the action to "publish:gitlab"

👍 Expected behavior

Publish the skeleton to Gitlab after templating.

👎 Actual Behavior with Screenshots

2023-02-01T12:36:15.444Z Beginning step Publish[2](https://xxxxxxxxx/create/tasks/962efe65-66ca-48bf-a85a-721d40302f81#line-2)2023-02-01T12:36:15.586Z HTTPError: Response code 404 (Not Found)[3](https://xxxxxxxxx/create/tasks/962efe65-66ca-48bf-a85a-721d40302f81#line-3) at Request.<anonymous> (/app/node_modules/got/dist/source/as-promise/index.js:118:42)[4](https://xxxxxxxxxx/create/tasks/962efe65-66ca-48bf-a85a-721d40302f81#line-4) at runMicrotasks (<anonymous>)[5](https://xxxxxxxxxx/create/tasks/962efe65-66ca-48bf-a85a-721d40302f81#line-5) at processTicksAndRejections (node:internal/process/task_queues:96:5)

👟 Reproduction steps

  • Register software template
  • create new software template
  • fill out the deatils
  • run the process

📃 Provide the context for the Bug.

No response

🖥️ Your Environment

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

@TalZiv TalZiv added the bug Something isn't working label Feb 2, 2023
@freben
Copy link
Member

freben commented Feb 6, 2023

A lot of systems respond with 404 when you don't have authorization to perform an action. Could it be that you haven't configured the auth token yet?

@TalZiv
Copy link
Author

TalZiv commented Feb 7, 2023

The issue was that the owner in the template did not exist in Backstage prior to the lunching of the software template.

@TalZiv TalZiv closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants