-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error when installing using multipass. #21
Comments
Did you disable lighttpd? Pihole uses lighttpd by default and it must be disabled so it won't conflict with nginx. |
Yes, but I ended up activating Apach2, could this be the problem? |
The script is specifically for nginx server blocks not apache2 so it will never work on apache2 server, unless you know how to convert the server block manually. |
I started from the beginning, but it still gave me an error. I wanted to see the details of the error, and this is what happened. (I had already disabled Lighttpd and Apache2 was not there) root@AyKa-Teste:/home/ubuntu# systemctl status nginx.service
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-06-02 01:32:33 -03; 29s ago
Duration: 195ms
Docs: man:nginx(8)
Process: 15342 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited>
CPU: 12ms
Jun 02 01:32:33 AyKa-Teste systemd[1]: Starting nginx.service - A high performance web server and a>
Jun 02 01:32:33 AyKa-Teste nginx[15342]: 2024/06/02 01:32:33 [emerg] 15342#15342: unknown directive>
Jun 02 01:32:33 AyKa-Teste nginx[15342]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jun 02 01:32:33 AyKa-Teste systemd[1]: nginx.service: Control process exited, code=exited, status=1>
Jun 02 01:32:33 AyKa-Teste systemd[1]: nginx.service: Failed with result 'exit-code'.
Jun 02 01:32:33 AyKa-Teste systemd[1]: Failed to start nginx.service - A high performance web serve>
lines 1-14/14 (END)...skipping...
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-06-02 01:32:33 -03; 29s ago
Duration: 195ms
Docs: man:nginx(8)
Process: 15342 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
CPU: 12ms
Jun 02 01:32:33 AyKa-Teste systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Jun 02 01:32:33 AyKa-Teste nginx[15342]: 2024/06/02 01:32:33 [emerg] 15342#15342: unknown directive "stream" in /etc/nginx/nginx.conf:85
Jun 02 01:32:33 AyKa-Teste nginx[15342]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jun 02 01:32:33 AyKa-Teste systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jun 02 01:32:33 AyKa-Teste systemd[1]: nginx.service: Failed with result 'exit-code'.
Jun 02 01:32:33 AyKa-Teste systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.``` |
make sure that you have streams module installed - that's the error you're getting --> unknown directive "stream" in /etc/nginx/nginx.conf:85 |
Being able to install the stream module I didn't find this file, I don't know where to get it to put it more exactly. |
If you have a valid letsencrypt cert then it might be your permission
settings.
…On Wed, 27 Nov 2024, 3:32 pm Ayle Kalani, ***@***.***> wrote:
make sure that you have streams module installed - that's the error you're
getting --> unknown directive "stream" in /etc/nginx/nginx.conf:85
Now it shows this:
Nov 27 01:20:06 AyKa-PiHole nginx[1680]: 2024/11/27 01:20:06 [emerg]
1680#1680: cannot load certificate "/etc/letsencrypt/live/
aylekalani.ddns.net/fullchain.pem": BIO_new_file() failed (SSL:
error:80000002:system library::No such file or directory:calling
fopen(/etc/letsencrypt/live/aylekalani.ddns.net/fullchain.pem, r)
error:10000080:BIO routines::no such file)
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APRSDK5IUNTWWH5OI2KBM4T2CVDM5AVCNFSM6AAAAABIUKWGZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSG42DCNJXG4>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
I don't think so, because I don't even know how to get it. : ( My steps are, install pihole, stream module and then start the script. I thought the script already created a valid certificate... |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Install Multipass on Windows and then add Pi-Hole. (With the Static IP already configured.)
Run the script, and then the email plus the domain. (In this case I am using no-ip to configure Static IP.)
Error, but it says that everything was configured
Error details:
The text was updated successfully, but these errors were encountered: