Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stable30 does not work: Could not find a valid Nextcloud source in /var/www/html #371

Open
MarcelRobitaille opened this issue Jan 17, 2025 · 5 comments

Comments

@MarcelRobitaille
Copy link

MarcelRobitaille commented Jan 17, 2025

Steps to reproduce:

rm -rf nextcloud-docker-dev # It's a clean installation
git clone https://github.com/juliusknorr/nextcloud-docker-dev
cd nextcloud-docker-dev
./bootstrap.sh
docker compose up stable30

Logs:

Attaching to stable30-1
stable30-1  | <Directory "/var/www/html">
stable30-1  | AllowOverride None
stable30-1  | RewriteEngine On
stable30-1  | RewriteBase /
stable30-1  | RewriteCond %{REQUEST_URI} !/installing.html$
stable30-1  | RewriteRule .* /installing.html [L]
stable30-1  | </Directory>
stable30-1  | =======================================================================================
stable30-1  |  🚨 Could not find a valid Nextcloud source in /var/www/html
stable30-1  |  Double check your REPO_PATH_SERVER and STABLE_ROOT_PATH environment variables in .env
stable30-1  | =======================================================================================
stable30-1  | 📰 Watching log file
stable30-1  | ⌚ Starting cron
stable30-1  | 🚀 Starting apache
stable30-1  | ==> /var/www/html/data/nextcloud.log <==
stable30-1  |
stable30-1  | ==> /var/log/cron/nextcloud.log <==
stable30-1  |
stable30-1  | ==> /var/log/xdebug.log <==
stable30-1  | [Fri Jan 17 21:46:56.787264 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.1.31 configured -- resuming normal operations
stable30-1  | [Fri Jan 17 21:46:56.787288 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

The normal nextcloud stack (docker compose up nextcloud) does not print this, but it gives me 503 service unavailable

Version: efff3c4

@juliusknorr
Copy link
Owner

You will need have the source of the stable30 branch checked out locally first.

Details can be found in the docs at https://juliusknorr.github.io/nextcloud-docker-dev/basics/stable-versions/

The master container (nextcloud) should come up smoothly though with the bootstrap script.

@MarcelRobitaille
Copy link
Author

I had workspace/stable30 so I thought I was good. I will try following those steps. Thank you.

@MarcelRobitaille
Copy link
Author

One step that was missing for me from those docs was git fetch origin stable30:stable30

Otherwise, I get:

$ git worktree add ../stable30 stable30
fatal: invalid reference: stable30

@MarcelRobitaille
Copy link
Author

Now I don't get the same error, but I get 503 Service Temporarily Unavailable same as nextcloud.

Looking at docker compose ps, I should have to go to localhost:80, right?

NAME                      IMAGE                                              COMMAND                  SERVICE          CREATED        STATUS         PORTS
master-database-mysql-1   mariadb:10.6                                       "docker-entrypoint.s…"   database-mysql   15 hours ago   Up 15 hours    127.0.0.1:8212->3306/tcp
master-mail-1             ghcr.io/juliusknorr/nextcloud-dev-mailhog:latest   "MailHog"                mail             15 hours ago   Up 15 hours    1025/tcp, 8025/tcp
master-nextcloud-1        ghcr.io/juliusknorr/nextcloud-dev-php81:latest     "/usr/local/bin/boot…"   nextcloud        15 hours ago   Up 15 hours    80/tcp
master-proxy-1            ghcr.io/juliusknorr/nextcloud-dev-nginx:latest     "/app/docker-entrypo…"   proxy            15 hours ago   Up 15 hours    127.0.0.1:80->80/tcp, 127.0.0.1:443->443/tcp
master-redis-1            redis:7                                            "docker-entrypoint.s…"   redis            6 months ago   Up 15 hours    6379/tcp
master-stable30-1         ghcr.io/juliusknorr/nextcloud-dev-php81:latest     "/usr/local/bin/boot…"   stable30         15 hours ago   Up 9 minutes   80/tcp

nextcloud.local gives me Forbidden

logs:

Attaching to stable30-1
stable30-1  | <Directory "/var/www/html">
stable30-1  | AllowOverride None
stable30-1  | RewriteEngine On
stable30-1  | RewriteBase /
stable30-1  | RewriteCond %{REQUEST_URI} !/installing.html$
stable30-1  | RewriteRule .* /installing.html [L]
stable30-1  | </Directory>
stable30-1  | Server source is mounted, continuing
stable30-1  | Nextcloud server source is ready
stable30-1  | ⌛ Waiting for other containers
stable30-1  |  - MySQL
stable30-1  | 📰 Watching log file
stable30-1  | ⌚ Starting cron
stable30-1  | 🚀 Starting apache
stable30-1  | ==> /var/www/html/data/nextcloud.log <==
stable30-1  |
stable30-1  | ==> /var/log/cron/nextcloud.log <==
stable30-1  |
stable30-1  | ==> /var/log/xdebug.log <==
stable30-1  | [Sat Jan 18 12:09:05.752098 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.1.31 configured -- resuming normal operations
stable30-1  | [Sat Jan 18 12:09:05.752130 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
stable30-1  | ✅ Database server ready
stable30-1  | 🚀 Nextcloud already installed ... skipping setup
stable30-1  | 🗝 No SSL proxy, configuring overwrite.cli.url accordingly
stable30-1  | occ config:system:set overwrite.cli.url --value http://stable30.local
stable30-1  | Updating certificates in /etc/ssl/certs...
stable30-1  |    Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".0 added, 0 removed; done.
stable30-1  | Running hooks in /etc/ca-certificates/update.d...
stable30-1  | done.
stable30-1  | [Sat Jan 18 12:09:08.149291 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00171: Graceful restart requested, doing restart
stable30-1  | [Sat Jan 18 12:09:08.196243 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.1.31 configured -- resuming normal operations
stable30-1  | [Sat Jan 18 12:09:08.196250 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
stable30-1  | [Sat Jan 18 12:09:08.196267 2025] [mpm_prefork:warn] [pid 1:tid 1] AH00167: long lost child came home! (pid 14)
stable30-1  |
stable30-1  | ==> /var/log/cron/nextcloud.log <==

@juliusknorr
Copy link
Owner

That could be a missing piece:

stable30-1 | Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".0 added, 0 removed; done.

You may want to run this in both server and stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants