.env file is attached env.txtdocker-compose.override.yml is attached (if it exists)cfg/ dir are attached (if customized) cfg.zipdocker-compose logs and log/ output is added
I have been using devilbox (installed in my documents folder) for ages, with no problems. I've recently enabled WSL2 and installed Ubuntu 18.04 from the windows store. I've installed devilbox inside the ubuntu file system in the /home/josh/projects folder. When I docker-compose up -d httpd mysql everything comes up ok, but I can't reach localhost. It says localhost refused to connect, and the same with all my other hosts
\\wsl$/home/<you>/projects/devilboxwsldocker-compose up -d httpd mysql
The devilbox intranet page loads up
Google chrome ERR_CONNECTION_REFUSED error
I have another project in wsl that just uses a custom dockerfile, rather than devilbox and it works fine. I just can't get devilbox to work
docker-compose up -d httpd mysql
uid=1000(josh) gid=1000(josh) groups=1000(josh),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),117(netdev),1001(docker)
drwxr-xr-x 16 josh josh 4096 Aug 14 16:06 devilbox
drwxr-xr-x 4 josh josh
Hi @joshjacksoncastus , thanks for reporting the bug.
After digging into the attached log output, I found that the httpd container is unable to open the generated certificates:
httpd_1 | 2020/08/14 14:31:07 [emerg] 235#235: cannot load certificate "/etc/httpd/cert/mass/www.accoya.loc.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/httpd/cert/mass/www.accoya.loc.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
httpd_1 | nginx: [emerg] cannot load certificate "/etc/httpd/cert/mass/www.accoya.loc.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/httpd/cert/mass/www.accoya.loc.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
httpd_1 | 2020-08-14 14:31:07,101 INFO exited: httpd (exit status 1; not expected)
Can you try out the startup with all four provided httpd server (nginx-stable, nginx-mainline, apache-2.2 and apache-2.4) and see if that yields the same behaviour?
Hi @cytopia thanks for taking a look. So when I switch to nginx-stable, apache-2.2 and apache-2.4, localhost (the devilbox intranet page) loads fine. When I go to one of my project urls I get a permission defined 403 error.
@cytopia so when I copied my devilbox files across, I copied all of the custom nginx configs, but only one project inside data/www. I think this was causing the error. Now I've removed the extra nginx config files from cfg/nginx-stable and only kept the one which matches what I have in data/www, everything seems to work ok. Thanks for looking into it and thanks for keeping up the great work with devilbox
Most helpful comment
@cytopia so when I copied my devilbox files across, I copied all of the custom nginx configs, but only one project inside data/www. I think this was causing the error. Now I've removed the extra nginx config files from cfg/nginx-stable and only kept the one which matches what I have in data/www, everything seems to work ok. Thanks for looking into it and thanks for keeping up the great work with devilbox