selfhosted_templates icon indicating copy to clipboard operation
selfhosted_templates copied to clipboard

[BUG] Unable to stop or remove nextcloud stack

Open ChaosBlades opened this issue 3 years ago • 2 comments

Describe the bug I receive and error message if I try to stop or delete the nextcloud stack. My nextcloud instance is up and working correctly. It does not matter if I leave the containers running, stop them, or delete them. I get the same message.

To Reproduce Steps to reproduce the behavior:

  1. Go to Stacks
  2. Click on nextcloud
  3. Click on 'Stop this stack' or 'Delete this stack'
  4. See error

Expected behavior The stack to be stopped / deleted

Error Message

Failure
failed to remove a stack: 
The PUID variable is not set. Defaulting to a blank string. 
The PGID variable is not set. Defaulting to a blank string. 
The TZ variable is not set. Defaulting to a blank string. 
The PORT variable is not set. Defaulting to a blank string. 
The MYSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string. 
The Timezone variable is not set. Defaulting to a blank string. 
The DATABASE_PASSWORD variable is not set. Defaulting to a blank string. 
The Compose file './Template/Stack/nextcloud.yml' is invalid because: services.nextcloud.ports contains an invalid type, it should be a number, or an object 
: exit status 1

All of these env variables are in fact not blank. I also tried to remove the env variables from the stack, save, then delete and still same error message.

ChaosBlades avatar Nov 21 '21 10:11 ChaosBlades

I have the exact same problem, did you find a way to delete the stack please ?

failed to remove a stack: The PUID variable is not set. Defaulting to a blank string. The PGID variable is not set. Defaulting to a blank string. The TZ variable is not set. Defaulting to a blank string. The PORT variable is not set. Defaulting to a blank string. The MYSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string. The DATABASE_PASSWORD variable is not set. Defaulting to a blank string. The Compose file '/data/compose/16/Template/Stack/nextcloud.yml' is invalid because: services.nextcloud.ports contains an invalid type, it should be a number, or an object : exit status 1

barthmania avatar Jan 30 '22 16:01 barthmania

Nope. I just discovered this trying to get something else to work so luckily I still need it so it is not too much of a headache. In the future I'll probably just manually add things instead of relying on templates. Does not seem like they are generally maintained very well.

ChaosBlades avatar Jan 31 '22 03:01 ChaosBlades