OCC web TTY error

Hey guys!

I installed occ web app and tried to run encryption:encrypt-all. but then i get the following error:

Default module: OC_DEFAULT_MODULE

occ $ encryption:encrypt-all

Invalid TTY.

If you are trying to execute the command in a Docker

container, do not forget to execute ‘docker exec’ with

the ‘-i’ and ‘-t’ options.

What did I do wrong??

It appears that this command needs to be run on an interactive terminal - one where it can ask for additional input, which occ-web apparently doesn’t support. It looks like you’ll need to find another way to get a terminal on your server - typically SSH.

Just in case you hadn’t seen it, it looks like Nextcloud also needs to be in maintenance mode to run this command. Per occ encryption command docs: