So i have a website for a bar, hosted using a VPS, with a MYSQL database. I'm also using DIRECTUS as a CMS. As you can see on the wesite, it works, for the most part. On one page, all the images show with no problems. But on another page, with the same layout, only some of the images will show, the others not. They all have 500 errors in the dev tools (there is also a code error in the console, but has nothing to do with the problem as far as I can tell):
All the images have the exact same permissions on the server, which are the following :
I see no reason for some images to be visible, others not, seeing as though they were uploaded through Directus, are hosted on the same server, in the same folder, with the same permissions. If anyone has any ideas on what to do, or where the problem is coming from, i'd be very grateful, I'm lost right now.
EDIT : So after searching for a little while in every error log i could find, the only ones i can fin are these (from the nginx logs) :
From the error log : 2024/04/08 12:16:32 [crit] 175647#175647: *18226 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: redacted, server: 0.0.0.0:443
Not sure if any of this will help.
Answers
The error you're encountering, SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking
, suggests there might be an issue with the SSL/TLS configuration on your server. This error typically occurs when there's a mismatch or compatibility issue between the SSL/TLS configurations of the server and the client.
Here are a few steps you can take to troubleshoot and potentially resolve the issue:
-
Check SSL/TLS Configuration: Review the SSL/TLS configuration on your server to ensure it's correctly set up. Pay attention to the supported protocols, ciphers, and SSL certificate configuration.
-
SSL Certificate: Ensure that the SSL certificate installed on your server is valid and properly configured. You can use online SSL checker tools to verify the certificate and check for any issues.
-
Protocol and Cipher Compatibility: Make sure that the SSL/TLS protocols and ciphers supported by your server are compatible with the clients accessing your website. Consider enabling support for newer protocols like TLS 1.2 and TLS 1.3, and using secure cipher suites.
-
Update Nginx: Ensure that your Nginx server is up to date with the latest patches and updates. Sometimes, updating Nginx to the latest version can resolve compatibility issues.
-
Check Client Compatibility: Verify that the clients accessing your website have compatible SSL/TLS configurations. Older browsers or clients with outdated SSL/TLS support may encounter handshake failures.
-
Review Error Logs: Continuously monitor your server's error logs, including both Nginx and system logs, for any additional error messages or warnings that might provide further insights into the issue.
-
Consult Documentation: Refer to the documentation of your web server, SSL certificate provider, and any relevant frameworks or libraries for troubleshooting tips specific to your setup.
If you're unsure about how to proceed or need assistance with specific configurations, consider consulting with a web server administrator or a professional with expertise in SSL/TLS configuration and troubleshooting.