portainer: Can't edit or remove a stack created by portainer previously

Bug description Can’t edit a stack created by portainer previously with the tip: This stack was created outside of Portainer. Control over this stack is limited.

But this error: A stack with this name exists inside the database. Cannot use external delete method occurred when I try to delete the stack.

Expected behavior We create lots of stacks by portainer with different stack names in different stack names in the different endpoints. When we upgrade to v2.1.1 we found that all stacks created before having this problem.

Delete the stack in portainer database and then allow the stack to be recreate in the portainer

Portainer Logs Provide the logs of your Portainer container or Service.

2021/03/22 07:15:15 http error: A stack with this name exists inside the database. Cannot use external delete method (err=A tag already exists with this name) (code=400)

Steps to reproduce the issue:

We tried the process of upgrading from the old version to the new version, but it did not reproduce. 😒😒😒

Technical details:

  • Portainer version: 2.1.1
  • Docker version (managed by Portainer): 20.10.5
  • Kubernetes version (managed by Portainer):
  • Platform (windows/linux): linux
  • Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
  • Browser: Chrome
  • Have you reviewed our technical documentation and knowledge base? Yes

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 19 (13 by maintainers)

Most upvoted comments

@samdulam

We have deleted the stack id 73, 74 from portainer.db with bolt cli tool πŸ˜‚πŸ˜‚πŸ˜‚