nextcloud-docker-dev icon indicating copy to clipboard operation
nextcloud-docker-dev copied to clipboard

fix(docker): stable24 works with sqlite only

Open zak39 opened this issue 3 years ago • 1 comments

I had problems to work stable24 with mysql. So, I think it's very nice to start stable24 with sqlite which works very well.

I ran docker compose up stable24 proxy command but I am stuck on running the mysql container.

$ docker compose up stable24 proxy
[+] Running 12/5
 ⠿ Network nextcloud_default               Created                                                   0.1s
 ⠿ Volume "nextcloud_data"                 Created                                                   0.0s
 ⠿ Volume "nextcloud_postgres"             Created                                                   0.0s
 ⠿ Volume "nextcloud_clam"                 Created                                                   0.0s
 ⠿ Volume "nextcloud_elasticsearch_data"   Created                                                   0.0s
[+] Running 16/15oud_mysql"                Created                                                   0.0s
 ⠿ Network nextcloud_default               Created                                                   0.1s
 ⠿ Volume "nextcloud_data"                 Created                                                   0.0s
 ⠿ Volume "nextcloud_postgres"             Created                                                   0.0s
 ⠿ Volume "nextcloud_clam"                 Created                                                   0.0s
 ⠿ Volume "nextcloud_elasticsearch_data"   Created                                                   0.0s
 ⠿ Volume "nextcloud_mysql"                Created                                                   0.0s
 ⠿ Volume "nextcloud_smbhomes"             Created                                                   0.0s
 ⠿ Volume "nextcloud_config"               Created                                                   0.0s
 ⠿ Volume "nextcloud_smb"                  Created                                                   0.0s
 ⠿ Volume "nextcloud_objectstorage_minio"  Created                                                   0.0s
 ⠿ Volume "nextcloud_document_log"         Created                                                   0.0s
 ⠿ Volume "nextcloud_document_data"        Created                                                   0.0s
 ⠿ Container nextcloud-proxy-1             Created                                                   0.1s
 ⠿ Container nextcloud-redis-1             Created                                                   0.1s
 ⠿ Container nextcloud-mail-1              Created                                                   0.1s
 ⠿ Container nextcloud-stable24-1          Created                                                   0.1s
Attaching to nextcloud-proxy-1, nextcloud-stable24-1
nextcloud-proxy-1     | Info: running nginx-proxy version 1.0.1-6-gc4ad18f
nextcloud-proxy-1     | Warning: The DHPARAM_GENERATION environment variable is deprecated, please consider using DHPARAM_SKIP set to true instead.
nextcloud-proxy-1     | Skipping Diffie-Hellman parameters setup.
nextcloud-proxy-1     | forego      | starting dockergen.1 on port 5000
nextcloud-proxy-1     | forego      | starting nginx.1 on port 5100
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: using the "epoll" event method
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: nginx/1.21.6
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) 
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: OS: Linux 5.4.0-131-generic
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker processes
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 24
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 25
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 26
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 27
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 28
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 29
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 30
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 31
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:40 Generated '/etc/nginx/conf.d/default.conf' from 3 containers
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:40 Running 'nginx -s reload'
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:40 Watching docker events
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 1 (SIGHUP) received from 37, reconfiguring
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: reconfiguring
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: using the "epoll" event method
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker processes
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 39
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 40
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 41
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 42
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 43
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 44
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 45
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 46
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 24#24: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 25#25: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 26#26: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 27#27: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 28#28: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 29#29: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 31#31: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 24#24: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 28#28: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 26#26: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 25#25: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 31#31: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 29#29: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 24#24: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 27#27: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 31#31: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 26#26: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 25#25: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 28#28: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 29#29: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 27#27: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 30#30: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 30#30: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 30#30: exit
nextcloud-stable24-1  | ⌛ Waiting for other containers
nextcloud-stable24-1  |  - MySQL
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 17 (SIGCHLD) received from 27
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 24 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 27 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 29 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 17 (SIGCHLD) received from 31
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 31 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 17 (SIGCHLD) received from 30
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 30 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 17 (SIGCHLD) received from 28
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 28 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 17 (SIGCHLD) received from 26
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 26 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 17 (SIGCHLD) received from 25
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: worker process 25 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:40 Generated '/etc/nginx/conf.d/default.conf' from 4 containers
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:40 Running 'nginx -s reload'
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: signal 1 (SIGHUP) received from 49, reconfiguring
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: reconfiguring
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:40 Received event start for container 0a0127537fea
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: using the "epoll" event method
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker processes
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 50
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 51
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 52
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 53
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 54
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 55
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 56
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 19#19: start worker process 57
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 40#40: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 39#39: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 42#42: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 43#43: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 45#45: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 46#46: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 41#41: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 45#45: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 46#46: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 40#40: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 39#39: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 42#42: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 41#41: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 45#45: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 46#46: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 43#43: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 40#40: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 39#39: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 42#42: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 41#41: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 43#43: exit
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 44#44: gracefully shutting down
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 44#44: exiting
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:40 [notice] 44#44: exit
nextcloud-proxy-1     | dockergen.1 | 2022/10/21 15:44:41 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 17 (SIGCHLD) received from 45
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 45 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 40 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 43 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 17 (SIGCHLD) received from 40
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 17 (SIGCHLD) received from 41
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 41 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 17 (SIGCHLD) received from 39
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 39 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 17 (SIGCHLD) received from 44
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 42 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 44 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 29 (SIGIO) received
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 17 (SIGCHLD) received from 46
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: worker process 46 exited with code 0
nextcloud-proxy-1     | nginx.1     | 2022/10/21 15:44:41 [notice] 19#19: signal 29 (SIGIO) received
^CGracefully stopping... (press Ctrl+C again to force)

So, what do you think Julius ?

zak39 avatar Oct 21 '22 16:10 zak39

Arf... We have another problem... The apps-extra folder is the owner of the root user...

ls -ld server/apps-extra/ stable24/apps-extra/
drwxrwxr-x 6 zak  zak  4096 oct.  21 17:38 server/apps-extra/
drwxr-xr-x 2 root root 4096 oct.  21 18:19 stable24/apps-extra/

I have to change the owner to clone my projects

zak39 avatar Oct 21 '22 16:10 zak39

Starting stable24 with mysql works just fine here. Could you maybe post the raw output after running

docker-compose down -v
docker-compose up proxy stable24 database-mysql

juliusknorr avatar Oct 24 '22 19:10 juliusknorr

In general I'd like to still stick with a proper database by default.

juliusknorr avatar Oct 24 '22 19:10 juliusknorr

Starting stable24 with mysql works just fine here. Could you maybe post the raw output after running

docker-compose down -v
docker-compose up proxy stable24 database-mysql

In general I'd like to still stick with a proper database by default.

Okay, I will try this command to test.

But, in this case we have to change the documentation to normalise the commands.

For example, if we execute the basic command, it will be :

docker compose up nextcloud proxy database-mysql

If we would run the stable24 release :

docker compose up stable24 proxy database-mysql

For the stable23 release :

docker compose up stable23 proxy database-mysql

And so on.

Why ?

To keep the same pattern and not to distrub the user.

What do you think ?

zak39 avatar Oct 25 '22 08:10 zak39

It "should" also work without as the database container is specified as a dependency of the stable24 one, so it was just to get the explicit log output

juliusknorr avatar Oct 25 '22 09:10 juliusknorr

It "should" also work without as the database container is specified as a dependency of the stable24 one, so it was just to get the explicit log output

Yes, I know it should work without it. But the problem should be a recurring problem.

I tried your command proposal and it works. But, I have to try twice :/

zak39 avatar Oct 25 '22 09:10 zak39

I retry with this command :

docker compose up proxy stable24

But, we still have the same problem... We have to add the database-mysql container to fix the problem...

zak39 avatar Oct 25 '22 13:10 zak39

Can you please paste the output you get when running that command? Make sure to give it a couple of minutes to see if maybe it is just a longer running process.

juliusknorr avatar Oct 28 '22 10:10 juliusknorr

Can you please paste the output you get when running that command? Make sure to give it a couple of minutes to see if maybe it is just a longer running process.

Yes, no problem :)

Here is the first result of the docker compose up proxy stable24 command :

$ docker compose up proxy stable24 
[+] Running 17/17
 ⠿ Network master_default               Created                                                                                                                                     0.1s
 ⠿ Volume "master_smb"                  Created                                                                                                                                     0.0s
 ⠿ Volume "master_clam"                 Created                                                                                                                                     0.0s
 ⠿ Volume "master_elasticsearch_data"   Created                                                                                                                                     0.0s
 ⠿ Volume "master_objectstorage_minio"  Created                                                                                                                                     0.0s
 ⠿ Volume "master_mysql"                Created                                                                                                                                     0.0s
 ⠿ Volume "master_smbhomes"             Created                                                                                                                                     0.0s
 ⠿ Volume "master_document_log"         Created                                                                                                                                     0.0s
 ⠿ Volume "master_postgres"             Created                                                                                                                                     0.0s
 ⠿ Volume "master_data"                 Created                                                                                                                                     0.0s
 ⠿ Volume "master_document_data"        Created                                                                                                                                     0.0s
 ⠿ Volume "master_config"               Created                                                                                                                                     0.0s
 ⠿ Container master-mail-1              Created                                                                                                                                     0.1s
 ⠿ Container master-proxy-1             Created                                                                                                                                     0.1s
 ⠿ Container master-redis-1             Created                                                                                                                                     0.1s
 ⠿ Container master-database-mysql-1    Created                                                                                                                                     0.2s
 ⠿ Container master-stable24-1          Created                                                                                                                                     0.1s
Attaching to master-proxy-1, master-stable24-1
master-proxy-1     | Info: running nginx-proxy version 1.0.1-6-gc4ad18f
master-proxy-1     | Warning: The DHPARAM_GENERATION environment variable is deprecated, please consider using DHPARAM_SKIP set to true instead.
master-proxy-1     | Skipping Diffie-Hellman parameters setup.
master-proxy-1     | forego      | starting dockergen.1 on port 5000
master-proxy-1     | forego      | starting nginx.1 on port 5100
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: using the "epoll" event method
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: nginx/1.21.6
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) 
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: OS: Linux 5.4.0-131-generic
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: getrlimit(RLIMIT_NOFILE): 1048576:1048576
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker processes
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 23
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 24
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 25
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 26
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 27
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 28
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 29
master-proxy-1     | nginx.1     | 2022/10/28 15:46:24 [notice] 18#18: start worker process 30
master-stable24-1  | ⌛ Waiting for other containers
master-stable24-1  |  - MySQL
master-proxy-1     | dockergen.1 | 2022/10/28 15:46:25 Generated '/etc/nginx/conf.d/default.conf' from 5 containers
master-proxy-1     | dockergen.1 | 2022/10/28 15:46:25 Running 'nginx -s reload'
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 1 (SIGHUP) received from 37, reconfiguring
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: reconfiguring
master-proxy-1     | dockergen.1 | 2022/10/28 15:46:25 Watching docker events
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: using the "epoll" event method
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker processes
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 39
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 40
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 41
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 42
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 43
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 44
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 45
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: start worker process 46
master-proxy-1     | dockergen.1 | 2022/10/28 15:46:25 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 24#24: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 23#23: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 25#25: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 27#27: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 26#26: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 28#28: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 29#29: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 25#25: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 27#27: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 29#29: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 26#26: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 28#28: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 24#24: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 25#25: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 27#27: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 29#29: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 23#23: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 28#28: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 24#24: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 26#26: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 23#23: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 30#30: gracefully shutting down
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 30#30: exiting
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 30#30: exit
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 26
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 26 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 25
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 25 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 29 (SIGIO) received
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 29 (SIGIO) received
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 28
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 24 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 28 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 29 (SIGIO) received
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 24
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 23
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 23 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 29 (SIGIO) received
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 29
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 29 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 29 (SIGIO) received
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 17 (SIGCHLD) received from 30
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 27 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: worker process 30 exited with code 0
master-proxy-1     | nginx.1     | 2022/10/28 15:46:25 [notice] 18#18: signal 29 (SIGIO) received
master-stable24-1  | ✅ Database server ready
master-stable24-1  | Nextcloud is not installed - only a limited number of commands are available
master-stable24-1  | Add the host IP as host.docker.internal to /etc/hosts ...
master-stable24-1  | database name will be stable24
master-stable24-1  | 🔧 Starting auto installation
master-stable24-1  |    Nextcloud was successfully installed
master-stable24-1  |    No such app enabled: password_policy
master-stable24-1  |    viewer already enabled
master-stable24-1  |    Could not download app profiler
master-stable24-1  | 
master-stable24-1  |                                           
master-stable24-1  |   The "--value" option requires a value.  
master-stable24-1  |                                           
master-stable24-1  | 
master-stable24-1  | config:system:set [--output [OUTPUT]] [--type TYPE] [--value VALUE] [--update-only] [--] <name>...
master-stable24-1  | 
master-stable24-1  |  Detecting SSL...
master-stable24-1  | 🗝 No SSL proxy, removing overwriteprotocol
master-stable24-1  |    user_oidc 1.2.1 enabled
master-stable24-1  | 🔧 setting trusted domains…
master-stable24-1  |    System config value trusted_domains => 1 set to string nextcloud
master-stable24-1  |    System config value trusted_domains => 2 set to string stable24.local
master-stable24-1  |    System config value trusted_domains => 3 set to string 192.168.21.6
master-stable24-1  |    System config value trusted_domains => 4 set to string localhost
master-stable24-1  | 🗝 No SSL proxy, removing overwriteprotocol
master-stable24-1  |    System config value overwriteprotocol deleted
master-stable24-1  |    System config value overwrite.cli.url set to string http://stable24.local
master-stable24-1  |    Set mode for background jobs to 'cron'
master-stable24-1  | 🔧 Setting up users and LDAP in the background
master-stable24-1  | 🚀 Finished setup using mysql database…
master-stable24-1  | 📰 Watching log file
master-stable24-1  | ⌚ Starting cron
master-stable24-1  | 🚀 Starting apache
master-stable24-1  | ==> /var/www/html/data/nextcloud.log <==
master-stable24-1  | {"reqId":"ndw1BRroNjyPy0GaeEIg","level":3,"time":"2022-10-28T15:46:40+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_put_contents(/var/www/html/.htaccess): Failed to open stream: Permission denied at /var/www/html/lib/private/Setup.php#555","userAgent":"--","version":"24.0.7.0","exception":{"Exception":"Error","Message":"file_put_contents(/var/www/html/.htaccess): Failed to open stream: Permission denied at /var/www/html/lib/private/Setup.php#555","Code":0,"Trace":[{"function":"onAll","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"file_put_contents(/var/www/html/.htaccess): Failed to open stream: Permission denied","/var/www/html/lib/private/Setup.php",555]},{"file":"/var/www/html/lib/private/Setup.php","line":555,"function":"file_put_contents","args":["/var/www/html/.htaccess","<IfModule mod_headers.c>\n  <IfModule mod_setenvif.c>\n    <IfModule mod_fcgid.c>\n       SetEnvIfNoCase ^Authorization$ \"(.+)\" XAUTHORIZATION=$1\n       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION\n    </IfModule>\n    <IfModule mod_proxy_fcgi.c>\n       SetEnvIfNoCase Authorization \"(.+)\" HTTP_AUTHORIZATION=$1\n    </IfModule>\n    <IfModule mod_lsapi.c>\n      SetEnvIfNoCase ^Authorization$ \"(.+)\" XAUTHORIZATION=$1\n      RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION\n    </IfModule>\n  </IfModule>\n\n  <IfModule mod_env.c>\n    # Add security and privacy related headers\n\n    # Avoid doubled headers by unsetting headers in \"onsuccess\" table,\n    # then add headers to \"always\" table: https://github.com/nextcloud/server/pull/19002\n    Header onsuccess unset Referrer-Policy\n    Header always set Referrer-Policy \"no-referrer\"\n\n    Header onsuccess unset X-Content-Type-Options\n    Header always set X-Content-Type-Options \"nosniff\"\n\n    Header onsuccess unset X-Frame-Options\n    Header always set X-Frame-Options \"SAMEORIGIN\"\n\n    Header onsuccess unset X-Permitted-Cross-Domain-Policies\n    Header always set X-Permitted-Cross-Domain-Policies \"none\"\n\n    Header onsuccess unset X-Robots-Tag\n    Header always set X-Robots-Tag \"none\"\n\n    Header onsuccess unset X-XSS-Protection\n    Header always set X-XSS-Protection \"1; mode=block\"\n\n    SetEnv modHeadersAvailable true\n  </IfModule>\n\n  # Add cache control for static resources\n  <FilesMatch \"\\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)$\">\n    Header set Cache-Control \"max-age=15778463\"\n  </FilesMatch>\n\n  <FilesMatch \"\\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)(\\?v=.*)?$\">\n    Header set Cache-Control \"max-age=15778463, immutable\"\n  </FilesMatch>\n\n  # Let browsers cache WOFF files for a week\n  <FilesMatch \"\\.woff2?$\">\n    Header set Cache-Control \"max-age=604800\"\n  </FilesMatch>\n</IfModule>\n\n# PHP 7.x\n<IfModule mod_php7.c>\n  php_value mbstring.func_overload 0\n  php_value default_charset 'UTF-8'\n  php_value output_buffering 0\n  <IfModule mod_env.c>\n    SetEnv htaccessWorking true\n  </IfModule>\n</IfModule>\n\n# PHP 8+\n<IfModule mod_php.c>\n  php_value mbstring.func_overload 0\n  php_value default_charset 'UTF-8'\n  php_value output_buffering 0\n  <IfModule mod_env.c>\n    SetEnv htaccessWorking true\n  </IfModule>\n</IfModule>\n\n<IfModule mod_mime.c>\n  AddType image/svg+xml svg svgz\n  AddType application/wasm wasm\n  AddEncoding gzip svgz\n</IfModule>\n\n<IfModule mod_dir.c>\n  DirectoryIndex index.php index.html\n</IfModule>\n\n<IfModule pagespeed_module>\n  ModPagespeed Off\n</IfModule>\n\n<IfModule mod_rewrite.c>\n  RewriteEngine on\n  RewriteCond %{HTTP_USER_AGENT} DavClnt\n  RewriteRule ^$ /remote.php/webdav/ [L,R=302]\n  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n  RewriteRule ^\\.well-known/carddav /remote.php/dav/ [R=301,L]\n  RewriteRule ^\\.well-known/caldav /remote.php/dav/ [R=301,L]\n  RewriteRule ^remote/(.*) remote.php [QSA,L]\n  RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]\n  RewriteRule ^\\.well-known/(?!acme-challenge|pki-validation) /index.php [QSA,L]\n  RewriteRule ^(?:\\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L]\n</IfModule>\n\nAddDefaultCharset utf-8\nOptions -Indexes\n#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####\n\nErrorDocument 403 /\nErrorDocument 404 /\n"]},{"file":"/var/www/html/lib/private/Setup.php","line":420,"function":"updateHtaccess","class":"OC\\Setup","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/core/Command/Maintenance/Install.php","line":108,"function":"install","class":"OC\\Setup","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Maintenance\\Install","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OC\\Core\\Command\\Maintenance\\Install"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/html/occ","line":11,"args":["/var/www/html/console.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":99,"CustomMessage":"--"}}
master-stable24-1  | 
master-stable24-1  | ==> /var/log/cron/nextcloud.log <==
master-stable24-1  | [Fri Oct 28 15:47:03.043628 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.24 configured -- resuming normal operations
master-stable24-1  | [Fri Oct 28 15:47:03.043761 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
master-stable24-1  |    The user "user2" was created successfully
master-stable24-1  |    The user "user3" was created successfully
master-stable24-1  |    The user "john" was created successfully
master-stable24-1  |    The user "user5" was created successfully
master-stable24-1  |    The user "alice" was created successfully
master-stable24-1  |    The user "jane" was created successfully
master-stable24-1  |    The user "bob" was created successfully
master-stable24-1  |    The user "user6" was created successfully
master-stable24-1  |    The user "user4" was created successfully
master-stable24-1  |    The user "stable24" was created successfully
master-stable24-1  |    The user "user1" was created successfully

I was lucky, it worked for the first time. I have the impression that the result is due to change...

But, please, look at this result and the first result :point_right: https://github.com/juliushaertl/nextcloud-docker-dev/pull/90#issue-1418556450

In the first result I don't have those lines that create users :

master-stable24-1  |    The user "user2" was created successfully
master-stable24-1  |    The user "user3" was created successfully
master-stable24-1  |    The user "john" was created successfully
master-stable24-1  |    The user "user5" was created successfully
master-stable24-1  |    The user "alice" was created successfully
master-stable24-1  |    The user "jane" was created successfully
master-stable24-1  |    The user "bob" was created successfully
master-stable24-1  |    The user "user6" was created successfully
master-stable24-1  |    The user "user4" was created successfully
master-stable24-1  |    The user "stable24" was created successfully
master-stable24-1  |    The user "user1" was created successfully

zak39 avatar Oct 28 '22 15:10 zak39

The first output looks a bit like you stopped the process too early, even before the Nextcloud installation started. Maybe you could try to run this some more times, just to see if that was either a that or maybe a one time issue as it seems to be working fine for Carl and me.

juliusknorr avatar Oct 31 '22 20:10 juliusknorr

Let me close this since stable branches should continue to use the common database backend and it works fine here. If it is still not working, please open an issue to discuss how to further debug this.

juliusknorr avatar Nov 27 '22 11:11 juliusknorr

Let me close this since stable branches should continue to use the common database backend and it works fine here. If it is still not working, please open an issue to discuss how to further debug this.

Hi @juliushaertl :slightly_smiling_face:

I'm so sorry for the reply late :pray: Yes, we can close this PR because it works for me (for the moment ^^' )

zak39 avatar Nov 28 '22 08:11 zak39