-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
v1.53.1 breaks NextcloudPi panel on custom domain (4443) #1868
Comments
|
yes, but only for debugging. I understand that it should only be available on local network, but it doesn't work anymore! |
Hi |
I have renewed the Let's encrypt certificat. It was valid, and it is also after the renewal. When I go to https://local-ip:4443 I get this feedback: |
Okay, sorry, maybe this was just a use case I wasn't aware of - it's indeed possible to access the admin panel via the domain if you're in the same local network and are using the dnsmasq service of ncp or some custom rerouting in your router. I'll work on a fix. @Haraade Are you sure that you aren't missing the |
Yes, it is HTTPS. I do not use the dnsmasq service that is included. I have three separate dns servers in the same network that all refers the ip>domain. |
Do you have any custom proxies in front of NCP? If possible, include the output of |
No proxies. curl -kv https://192.168.0.20:4443/
UnauthorizedThis server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. * Connection #0 to host 192.168.0.20 left intact |
Hm, that output looks perfectly fine, actually... PLEASE MAKE SURE TO REMOVE THE PASSWORD FROM THE OUTPUT BEFORE POSTING! |
The rest of what came out is too much to post here! This is the feedback in the firefox browser. https://domain.com:4443 has a security policy called HTTP Strict Transport Security (HSTS), which means Firefox can only connect to it securely. You cannot add an exception to visit this site. |
I see... I think I understand the issue. The web interface is actually working, but the certificate has changed. Since your browser already knew the old certificate and HSTS is enabled, it will refuse to connect to it with a new certificate. Can you try a different browser and, if that works, delete the information about that page from your browser ("forget about this page" in firefox)? |
I can access the panel, but browser complains about unsafe website. What makes it a problem to use SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem and With the latest changes, ncp-panel complains about: That's not true. |
I updated nc-apps, nextcloud, and nc-update; all from the ncp web panel yesterday. Everything went fine, no issues. Today I decided to update my debian 11 system packages. I have been holding off updating them, for over a year due to issues I had with php8.1. I saw that php8.1 is supported in NCP now, so I updated. It caused my HPB service to be down and I was unable to access the nextcloud web panel (i could access ncp panel fine). So I reverted to a backup of my / (minus /home) partition I made yesterday. IDK what is causing this. I also am not sure what php version I'm running. If someone can provide a command for me to check, I'll check and let you know, if that's of any help. |
Nothing, I was just not aware that the admin panel was configured in this way. This will be readded soon. |
That sounds like an entirely different issue. @Ronkn please create a new issue for this and include information about what you did exactly. |
I believe I added one a while ago about this. I'll look back to see what I can find. Or maybe that was in the nextcloud forum. I'll open an issue if I don't have one already opened. |
@theCalcaholic |
After upgrade from NextcloudPi version v1.53.0 to v1.53.1, the NextcloudPi panel (4443) Is not available.
HTTPd log:
[ssl:warn]
localhost:4443:0 server certificate does NOT include an ID which matches the server name.
ssl_stapling_init_cert: can't retrieve issuer certificate!.
I can see that in /etc/apache2/sites-available/ncp.conf, it is used
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert snakeoil.key instead of
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
After modifying SSLCertificateFile in /etc/apache2/sites-available/ncp.conf Nextcloudpi panel is available again, but gets messages like "You should run Lets Encrypt for trusted encrypted acces" and "Certificates none" This is not the case!
So v1.53.1 breaks this.
The text was updated successfully, but these errors were encountered: