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
Hey there! I'm facing these error when trying to update stack via webhook. But when I'm manually redeploying it stack will deploy without error.
{"level":"info","repository":"https://github.com/qrvers/burn_tobacco/","composePath":["docker-compose.yml"],"destination":"/mnt/portainer-compose-unpacker","env":[],"skipTLSVerify":true,"time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:31","message":"Deploying Compose stack from Git repository"}
{"level":"info","directory":"/mnt/portainer-compose-unpacker","time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:57","message":"Checking the file system..."}
{"level":"info","directory":"/mnt/portainer-compose-unpacker/stacks/burntobacco-dev","time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:83","message":"Creating target destination directory on disk"}
{"level":"info","repository":"https://github.com/qrvers/burn_tobacco/","path":"/mnt/portainer-compose-unpacker/stacks/burntobacco-dev","url":"https://github.com/qrvers/burn_tobacco/","depth":1,"time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:98","message":"Cloning git repository"}
stack deployment failure
{"level":"error","error":"authentication required","time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:104","message":"Failed to clone Git repository"}
What may gone wrong? My fine grained personal access token is valid for authentication yet still facing this error
This started happening when I created a stack that uses relative path at /mnt
When redeploying by hand it works like a clock but once I make POST request to webhook url https://portainer.XXXX/api/stacks/webhooks/XXXX it gives me this error
{
"message": "Failed to update the stack",
"details": "failed to deploy a docker compose stack 31: an error occurred while running unpacker container with exit code 255: authentication required"
}
I am also using an additional (self-hosted) registry but it doesn't require authentication
Expected Behavior
For the stack to deploy
Actual Behavior
compose-unpackerer throws error stack deployment failure with following logs
{"level":"info","directory":"/mnt/portainer-compose-unpacker","time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:57","message":"Checking the file system..."}
{"level":"info","directory":"/mnt/portainer-compose-unpacker/stacks/burntobacco-dev","time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:83","message":"Creating target destination directory on disk"}
{"level":"info","repository":"https://github.com/qrvers/burn_tobacco/","path":"/mnt/portainer-compose-unpacker/stacks/burntobacco-dev","url":"https://github.com/qrvers/burn_tobacco/","depth":1,"time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:98","message":"Cloning git repository"}
stack deployment failure
{"level":"error","error":"authentication required","time":1718806524,"caller":"/home/runner/work/compose-unpacker/compose-unpacker/deploy.go:104","message":"Failed to clone Git repository"}
Steps to Reproduce
1 Create custom registry and push at least one image
2 make a docker-compose use that image
3 create stack that has relative path at /mnt so it looks like /mnt/portainer-compose-unpacker/stacks//
4. send POST to https://portainer./api/stacks/webhooks/XXXX
Before you start please confirm the following.
Problem Description
Hey there! I'm facing these error when trying to update stack via webhook. But when I'm manually redeploying it stack will deploy without error.
What may gone wrong? My fine grained personal access token is valid for authentication yet still facing this error
This started happening when I created a stack that uses relative path at /mnt
When redeploying by hand it works like a clock but once I make POST request to webhook url https://portainer.XXXX/api/stacks/webhooks/XXXX it gives me this error
I am also using an additional (self-hosted) registry but it doesn't require authentication
Expected Behavior
For the stack to deploy
Actual Behavior
compose-unpackerer throws error stack deployment failure with following logs
Steps to Reproduce
1 Create custom registry and push at least one image
2 make a docker-compose use that image
3 create stack that has relative path at /mnt so it looks like /mnt/portainer-compose-unpacker/stacks//
4. send POST to https://portainer./api/stacks/webhooks/XXXX
Portainer logs or screenshots
Portainer version
2.19.5
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker version 26.1.3, build b72abbb
OS and Architecture
Ubuntu 22.04, AMD64
Browser
Opera GX LVL 5 (core: 109.0.5097.142)
What command did you use to deploy Portainer?
Additional Information
No response
The text was updated successfully, but these errors were encountered: