Commands not working when attempting to disable Nextcloud encryption

I just recently started using Nextcloud which is to say that I know very little about how to navigate through some of the important things. I literally don’t have any personal files in my files yet. and I won’t until I learn how to use the Container Console in Portainer. I’ve been exhausted trying to search the internet for a step by step guide on how to use the Command Line in the Container Console to decrypt, encrypt, performing backups, trying to locate the encryption recovery keys via the Container Console. I have attached a screenshot of the complaint I constantly receive no matter what command I attempt to execute. I have tried to follow so many different threads on how to access my Nextcloud via the Console with no joy. I have tried all these commands and all I receive is the complaint in the screenshot attached. I’m using Portainer.io Community Edition. That’s all the info that I have or know how to obtain. I know I’m doing something wrong but no idea what. Any help would be appreciated.

sudo -u www-data php occ encryption:disable
sudo -u www-data php occ encryption:decrypt-all
sudo -u www-data php occ app:disable encryption

All of the info I know is listed below.

PHP

Version: 8.3.21

Type: sqlite3

Version: 3.40.1

  • Nextcloud version 10
  • Operating system and version Linux 6.1.27 x86_64
  • Web server apache2

You need to be in the right folder to run that command. usually /var/www/html/nextcloud or /var/www/nextcloud

If you’re using the official Nextcloud Docker images, you can also run the occ commands directly from the command line of your Docker host:

https://github.com/docker-library/docs/blob/master/nextcloud/README.md#using-the-nextcloud-command-line-interface

Thanks for the reply. So, how exactly do I get to that folder? I tried both of the the syntax you wrote and this was the result root@4386b6619ca9:/var/www/html# /var/www/html/nextcloud
bash: /var/www/html/nextcloud: No such file or directory.
I’m not much of a scriptor either so I would require step by step syntax instructions on how to write the syntax to get to that folder.

Thank you

I don’t understand what you mean if I’m using the official Nextcloud Docker images? The Nextcloud Docker Images were downloaded from inside the Docker App in my UGREEN NAS. How would I know or tell if it’s an official Nextcloud Docker Image or not?

Thank you

The command in the link i posted is supposed to be run on the host, not from inside the container.

Sorry, I don’t know Ugreen. Did you follow any specific instructions or is there an AppStore on the Ugreen NAS from which you have installed Nextcloud?

So, I would assume my NAS is the host? I don’t have a Terminal App on the my NAS, how would I go about getting one on my NAS?

Yes, my UGREEN NAS has an App Store. That’s how I downloaded Docker using the UGREEN NAS.


I tried searching for a Terminal App using my NAS with no results.

According to these instructions I should be able to use the Console in the Nextcloud container. Install Portainer and follow online guides on how to access it using localhost because it will give you consoles for all docker containers

Navigate to the “nextcloud-aio-nextcloud” container in the containers menu in Portainer and click the console button it should put you to the /var/www/html# path (IT HAS TO BE THIS ONE!! Because it has access to html)

Then type in all the following commands one by one that @michaelof typed above:

sudo -u www-data php occ encryption:disable
sudo -u www-data php occ encryption:decrypt-all
sudo -u www-data php occ app:disable encryption

I figured out how to open a Terminal from the Nextcloud Container in my Host UGREEN NAS within the Docker App. However, I still receive the same complaints with the commands.

What am I doing wrong?

I


figured out how to open a Terminal from the Nextcloud Container in my Host UGREEN NAS within the Docker App. However, I still receive the same complaints with the commands. What am I doing wrong?

I have tired all of this and nothing is working! Except I was finally able to login into Nextcloud using the Nextcloud Console. But the syntax from GitHub doesn’t work.



In some of your screenshots you appear to be using the micro-services Docker image and then in your most recent one you’re running the AIO Docker image.

Besides each install method being different, you also have the added weirdness of whatever Ugreen does + Portainer, which are abstracting you from all the usual commands.

Most of the documented commands are from the context of the command-line, at either the host level or container level.

I just recently started using Nextcloud which is to say that I know very little about how to navigate through some of the important things. I literally don’t have any personal files in my files yet. and I won’t until I learn how to use the Container Console in Portainer.

Let’s forget about occ for a moment.

How far along in the Nextcloud installation/setup have you gotten?
Is your Nextcloud web UI accessible/functioning?

Keep in mind UGreen maintains their own appstore. We have no idea what they put in it. So it would also be hopeful if you provided as much context as possible about what you installed. Even just within Docker itself there are multiple (including various third-party) images for Nextcloud.

Oh, yes, the Nextcloud web UI is definitely functioning, I have logged into it many times that’s how I was able to Enable server-side encryption which I’m wanting to disable and locate the encryption key to back it up and to backup the database. Until I learn how to perform those tasks and others using the command line, I won’t be adding any personal files or syncing Nextcloud with any device until that’s accomplished. The only relevant App I installed in my NAS is Docker, attchached is a screenshot of my Nextcloud web UI and what’s in Docker. And yes I have two Images of Nextcloud, which I probably don’t need. I would think removing the first Nextcloud listed in the Docker Container would be best.


would be best.

And here’s a screenshot of my Local Images in Docker.

Or perhaps maybe I should delete my Nextcloud account and start over again? Which I’ll have to do if there’s no resolution to the issue I’m having.

I found out where in my User Settings to delete my account and even that doesn’t work. How do I completely delete my account so I can create a new account from scratch?

you can change your nickname, email and all other settings - what is the point of new account?
but we can anonymize your account so no personal data remain stored and posts are not identifyable