Nextcloud can't run and stuck

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • latest
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04
  • Web server and version (e.g, Apache 2.4.25):
    • none
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • none
  • PHP version (e.g, 8.3):
    • none
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • when i run installation
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I install Nextcloud using AIO but it wont work. The log on docker:

Trying to fix docker.sock permissions internally…

Adding internal www-data to group ping

curl: (28) Connection timed out after 300339 milliseconds Could not reach https://ghcr.io. Most likely is something blocking access to it.

You should be able to fix this by following Configuring DNS | dockerlabs

Another solution is using all-in-one/manual-install at main · nextcloud/all-in-one · GitHub

See all-in-one/manual-install/latest.yml at main · nextcloud/all-in-one · GitHub

But when i try to ping ghcr.io from the container, it’s work.

Steps to replicate it (hint: details matter!):

  1. I follow this web. nextcloud/all-in-one: :package: The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

  2. Then after pull is done, the logs start with Trying to fix docker.sock permissions internally…

Adding internal www-data to group ping

  1. After waiting for a while, it say connection timed out. But i’m sure that when i ping ghcr.io from the same container, it working normally.

What happens if you try to do more than just ping from the mastercontainer - i.e.

curl --no-progress-meter https://ghcr.io/v2/