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

Error when installing using multipass. #21

Open
AyleKalani opened this issue Jun 1, 2024 · 8 comments
Open

Error when installing using multipass. #21

AyleKalani opened this issue Jun 1, 2024 · 8 comments

Comments

@AyleKalani
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
    Install Multipass on Windows and then add Pi-Hole. (With the Static IP already configured.)
  2. Click on '....'
    Run the script, and then the email plus the domain. (In this case I am using no-ip to configure Static IP.)
  3. Scroll down to '....'
    Error, but it says that everything was configured
  4. See error
    Error details:
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Certificate not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate not yet due for renewal; no action taken.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

==============================
Stopping Nginx's HTTP Server.
==============================

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

==============================
Setting Up Nginx To Run A DNS Stream For Android Private DNS Feature
==============================

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.




=======================================================================================
Congrats Pi-Hole With Android Private DNS is configured.
@heybrodes
Copy link

heybrodes commented Jun 2, 2024

Did you disable lighttpd? Pihole uses lighttpd by default and it must be disabled so it won't conflict with nginx.

@AyleKalani
Copy link
Author

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?

@heybrodes
Copy link

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.

@AyleKalani
Copy link
Author

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.``` 

@heybrodes
Copy link

heybrodes commented Jun 2, 2024

make sure that you have streams module installed - that's the error you're getting --> unknown directive "stream" in /etc/nginx/nginx.conf:85

@AyleKalani
Copy link
Author

AyleKalani commented Nov 27, 2024

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
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)

I didn't find this file, I don't know where to get it to put it more exactly.

@heybrodes
Copy link

heybrodes commented Nov 27, 2024 via email

@AyleKalani
Copy link
Author

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.
What has changed so far is the message, I believe it was an advance.
But now it says missing or not reading the certificate.

I thought the script already created a valid certificate...

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