portainer: Can't delete / stop /update stack : Failure failed to deploy a stack: "XXX" is not a valid project name

"<!–

Thanks for reporting a bug for Portainer !

You can find more information about Portainer support framework policy here: https://www.portainer.io/2019/04/portainer-support-policy/

Do you need help or have a question? Come chat with us on Slack https://portainer.io/slack/

Before opening a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.

Also, be sure to check our FAQ and documentation first: https://documentation.portainer.io/ –>

Bug description I can’t manage Stack create in Portainer The stack are orphan, I can’t to nothing …

I think the issue is with upper case in title but no find any solutions to fix.

All stack have been created in Portainer

Expected behavior All action on these stack

Portainer Logs Provide the logs of your Portainer container or Service. You can see how here

Steps to reproduce the issue: image

For DNS, I have remove the container (“orphan” stack). now I can do nothing sur the portainer Stack. With all action ( delete / stop / update ) I got this message : image

Update the stack : image

For Unifi-Controller the same, I see that this issue is about stack name but I can do nothing ! image

Technical details:

  • Portainer version: Portainer Business Edition 2.16.2 ( issue appear before upgrade to Business and at a lower version )
  • Docker version (managed by Portainer): 20.10.21 (API: 1.41)
  • Kubernetes version (managed by Portainer): -
  • Platform (windows/linux): linux x86_64 Debian GNU/Linux 10 (buster)
  • Command used to start Portainer (docker run -p 9443:9443 portainer/portainer): copy from documentation
  • Browser: Chrome / Edge
  • Use Case (delete as appropriate): Using Portainer at Home
  • 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 2 years ago
  • Comments: 17

Most upvoted comments

Update on testing:

[1] CE 2.6 >> Wordpress-Testing >> created an additional wordpress-testing Control:Limited stack [2] CE 2.9 >> Wordpress-Testing >> start after stop and delete after upgrade, without error [3] CE 2.11 >> Wordpress-Testing >> start after stop and delete after upgrade, without error [4] CE 2.13 >> Wordpress-Testing >> start after stop and delete after upgrade, without error [5] CE 2.14, CE 2.15 >> Wordpress-Testing >> you can not start after stop but can delete after upgrade [6] CE 2.16 >> Wordpress-Testing >> you can not stop stack nor delete after upgrade

failed to remove a stack: "Wordpress-Testing" is not a valid project name 

[1] BE 2.4 >> Wordpress-Testing turned into wordpresstesting [2] BE 2.7 >> Wordpress-Testing created an additional wordpress-testing Control:Limited stack [3] BE 2.11 >> Wordpress-Testing >> start after stop and delete after upgrade, without error [4] BE 2.12 >> Wordpress-Testing >> start after stop and delete after upgrade, without error [5] BE 2.13 >> Wordpress-Testing >> start after stop and delete after upgrade, no error [6] BE 2.14, BE 2.15 >> Wordpress-Testing >> you can not start after stop, but can delete [7] BE 2.16 >> Wordpress-Testing >> you can not stop nor delete the stack

failed to remove a stack: "Wordpress-Testing" is not a valid project name 

Workaround: You can downgrade to 2.15 to delete Stack and re-create.
Workaround: You can downgrade to 2.13 to stop/start/delete and re-create.

Thanks!

@tamarahenson

btw the api call doesnt work.

HTTP/1.1 500 Internal Server Error Content-Length: 158 Content-Type: application/json Date: Wed, 21 Dec 2022 13:26:39 GMT X-Content-Type-Options: nosniff X-Xss-Protection: 1; mode=block

{ “details”: “failed to remove a stack: "Games" is not a valid project name\n”, “message”: “failed to remove a stack: "Games" is not a valid project name\n” }

I need something to rename stacks that have caps in them . else i have all these orphans hanging out that i cannot manage