Bug #14771
closedLightsquid creating multiple SSL certificates, not starting
0%
Description
Hello we update lightsquid the latest version and we found that stop working.
Every time we try to access the reports won't came up and we found a lot of certs created by lightsquid.
We have other system 2.7 running the version before and is working without any issue.
Regards!!!
Updated by Jim Pingle about 1 year ago
- Status changed from New to Duplicate
This is from the change in #14739 -- that one is still open (in feedback state) so I'm closing this and noting the fix over there where it's relevant.
Updated by Jim Pingle about 1 year ago
- Is duplicate of Regression #14739: PHP error with lightsquid when generating an SSL certificate added
Updated by Jim Pingle about 1 year ago
- Is duplicate of deleted (Regression #14739: PHP error with lightsquid when generating an SSL certificate)
Updated by Jim Pingle about 1 year ago
- Status changed from Duplicate to In Progress
- Assignee set to Jim Pingle
I take that back, it's not related, but I fixed it when I fixed the other issue. Though when I fixed that, I used functions that don't exist on Plus 23.05.1 / CE 2.7.0, so I'll need to use a different fix there.
Updated by Jim Pingle about 1 year ago
- Subject changed from Lightsquid new version issue to Lightsquid creating multiple SSL certificates, not starting
I pushed a fix for this ( 52f6d98647b961eefa693ca3ab793785befd3a5d
), it should be available soon.
The fix could be applied using the system patches package or by hand as well:
--- a/a/usr/local/pkg/lightsquid.inc
+++ b/b/usr/local/pkg/lightsquid.inc
@@ -258,7 +258,7 @@ EOF;
// SSL is enabled
if (!isset($lightsquid_config['lighttpd_ls_ssl']) || ($lightsquid_config['lighttpd_ls_ssl'] == "on")) {
// Write out cert
- $lscert = lookup_cert(config_get_path('system/webgui/certref', ''));
+ $lscert = lookup_cert(config_get_path('system/webgui/ssl-certref', ''));
if (!is_array($lscert) || !$lscert['crt'] || !$lscert['prv']) {
$lscert = system_webgui_create_certificate();
}
@@ -527,8 +527,8 @@ function lightsquid_create_reportdir() {
*/
function lightsquid_validate_input($post, &$input_errors) {
if ($post['navto_lightsquid'] == 'Open Lightsquid') {
- $lightsquid_config = config_get_path('installedpackages/lightsquid/config/0');
- if (is_array($lightsquid_config)) {
+ $lightsquid_config = config_get_path('installedpackages/lightsquid/config/0', []);
+ if (empty($lightsquid_config)) {
return;
}
list($server_host, $server_port) = explode(':', $_SERVER['HTTP_HOST']);
Updated by Jim Pingle about 1 year ago
- Status changed from In Progress to Feedback
Updated by Danilo Zrenjanin about 1 year ago
- Status changed from Feedback to Resolved
Tested against:
Lightsquid 3.0.7_3
The issue has been resolved successfully, and everything is working as expected. Therefore, I am closing this ticket and marking it as resolved.