SSL failure on Docker AIO installation

Nextcloud version (eg, 20.0.5): latest - whatever that was in early August 23
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41 (Ubuntu)
PHP version (eg, 7.4): Not sure - the version that shipped?

The issue you are facing:

I deeply regret installing the AIO docker NextCloud. I had never used Docker before and will confess to absolutely hating it. I stupidly used it for a production server before becoming familiar with Docker and it has bitten me. All was working for a couple of weeks, with some performance issues I was prepared to put up with and tweak along the way, so I allowed myself to take a 2 week vacation. I should have known better…

On my return I find that the SSL has failed and users could not access anything. I cannot access any resources because my browsers refuse to open anything due to the use of HSTS.

I cannot access any of these:
https://mydomain.tld:8443 sends me to the Github page. By stopping the container nextcloud-aio-apache I get a login prompt but of course I have misplaced that original AIO password.

I get that this is 100% self inflicted, I should never have deployed the Docker version without first learning about docker.

Now I seem to have 2 choices, either try and recover this installation or see if I can pull the user files and start again. My problem is that I cannot figure out where the actual config files are now. All my searches return multiple versions of any config file I search for from different containers. I can’t even run occ commands as I can’t figure out how to access the php instance. Usually when I have a challenge my web searches help, not with this because I am spectacularly failing to be able to actually DO any of the things suggested because I cannot “find” anything.

The output of your Nextcloud log in Admin > Logging:

I can't get this as I can't login.  

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

I wish I knew the right path!  I thought I used the default of  /var/www/html/data/ but there is nothing in there.

The output of your Apache/nginx/system log in /var/log/____:

Actually this is /var/log/letsencrypt

It seems to me that I may not have the domain name set up right but I cannot for the life of me figure out where to actually look.

Can anyone give me a heads up on where, with all these Docker containers, I should actually be looking to edit config files? I have a feeling this is not that hard to fix if I just knew where I was looking.

Sorry if this is documented elsewhere, I couldn’t find it. I suspect if I can wrap my head around Docker I can find the files I want to check, but I am failing.

Any suggestions?

See How to re-obtain/retreive the Nextcloud AIO password? · nextcloud/all-in-one · Discussion #1786 · GitHub


my credits for clear naming the issue and not blaming somebody/something without a reason.


I see it’s pointless to ask you for more details and logs.

In general like everywhere I would start with official documentation which is pretty comprehensive in case of AIO (all-in-one). I know it’s hard to troubleshoot a system you don’t understand. Maybe the guide for manual install AIO (without automation voodoo) is best way to start understanding how things are tied together.

Thanks guys for the replies.

@szaimen you are my new best friend. :wink: I have my AIO password and I am in. Thank you!!!

I haven’t resolved the SSL issue yet, but at least I have something to read. :slight_smile: What can I do when Nextcloud is not reachable via my domain or if I get `SSL_ERROR_INTERNAL_ERROR_ALERT` when opening my Nextcloud domain? · nextcloud/all-in-one · Discussion #2105 · GitHub