simplerisk / docker

SimpleRisk Docker Repository
https://www.simplerisk.com
Mozilla Public License 2.0
27 stars 21 forks source link

Error activating ComplianceForge SCF Extra #104

Open brunonaibert opened 3 hours ago

brunonaibert commented 3 hours ago

When activating "ComplianceForge SCF Extra", the message "Installing the Secure Controls..." is displayed and the message remains without completing the installation. In the Apache log I notice that an error was generated:

# cat /var/log/apache2/error.log 
[Wed Oct 09 13:22:50.671104 2024] [ssl:warn] [pid 341] AH01909: 172.17.0.2:443:0 server certificate does NOT include an ID which matches the server name
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 09 13:22:50.690379 2024] [ssl:warn] [pid 341] AH01909: 172.17.0.2:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 09 13:22:50.692884 2024] [mpm_prefork:notice] [pid 341] AH00163: Apache/2.4.58 (Ubuntu) OpenSSL/3.0.13 configured -- resuming normal operations
[Wed Oct 09 13:22:50.692895 2024] [core:notice] [pid 341] AH00094: Command line: 'apache2 -D FOREGROUND'
[Wed Oct 09 13:25:35.049260 2024] [php:notice] [pid 562] [client 192.168.122.1:60756] Leaf\\Exceptions\\ErrorException thrown with message "Undefined variable $methods_to_comply"\n\nStacktrace:\n#9 Leaf\\Exceptions\\ErrorException in /var/www/simplerisk/extras/complianceforgescf/index.php:2976\n#8 Leaf\\Exception\\Run:handleError in /var/www/simplerisk/extras/complianceforgescf/index.php:2976\n#7 populate_scf_tables in /var/www/simplerisk/extras/complianceforgescf/index.php:83\n#6 enable_complianceforge_scf_extra in /var/www/simplerisk/includes/api.php:11561\n#5 api_complianceforgescf_enable in /var/www/simplerisk/vendor/leafs/router/src/Router/Core.php:531\n#4 call_user_func_array in /var/www/simplerisk/vendor/leafs/router/src/Router/Core.php:531\n#3 Leaf\\Router\\Core:invoke in /var/www/simplerisk/vendor/leafs/router/src/Router/Core.php:521\n#2 Leaf\\Router\\Core:handle in /var/www/simplerisk/vendor/leafs/router/src/Router/Core.php:466\n#1 Leaf\\Router\\Core:run in /var/www/simplerisk/vendor/leafs/leaf/src/App.php:354\n#0 Leaf\\App:run in /var/www/simplerisk/api/index.php:586\n, referer: https://192.168.122.241/admin/complianceforge_scf.php

I build the environment with the DockerHub image

docker pull simplerisk/simplerisk
docker run --name simplerisk -d -p 80:80 -p 443:443 simplerisk/simplerisk
jsokol commented 3 hours ago

Thank you for reporting @brunonaibert. We are aware of this issue with the current release code and already have a fix for it in development. I believe we intend to roll it live on Monday.