Project

General

Profile

Actions

Bug #14771

closed

Lightsquid creating multiple SSL certificates, not starting

Added by Peter Moreno about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Lightsquid
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
Affected Architecture:
amd64

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

Actions #1

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.

Actions #2

Updated by Jim Pingle about 1 year ago

  • Is duplicate of Regression #14739: PHP error with lightsquid when generating an SSL certificate added
Actions #3

Updated by Jim Pingle about 1 year ago

  • Is duplicate of deleted (Regression #14739: PHP error with lightsquid when generating an SSL certificate)
Actions #4

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.

Actions #5

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']);
Actions #6

Updated by Jim Pingle about 1 year ago

  • Status changed from In Progress to Feedback
Actions #7

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.

Actions

Also available in: Atom PDF