VultureProject / vulture-base

Vulture 4 base system and bootstrap scripts
GNU Lesser General Public License v3.0
39 stars 13 forks source link

cant bootstrap vulture4-HBSD12 #77

Open ccmsi opened 2 years ago

ccmsi commented 2 years ago

Greetings. Im using vulture4-HBSD12-amd64-disk001.vmdk of 2022-02-09 12:45. After booting i configured IP Address, time and hostname in admin.

Executing cluster_create.sh specifying new username/pwd i get the error message:

Username: admin Password: Confirm Password: [+] Try to contact GUI ... Status code : 500 Stopping redis. Waiting for PIDS: 88464. Starting redis. Traceback (most recent call last): File "/home/vlt-os/bootstrap/cluster_create", line 44, in django.setup() File "/home/vlt-os/env/lib/python3.8/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/vlt-os/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate app_config.import_models() File "/home/vlt-os/env/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models self.models_module = import_module(models_module_name) File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 843, in exec_module File "", line 219, in _call_with_frames_removed File "/home/vlt-os/vulture_os/workflow/models.py", line 34, in from applications.backend.models import Backend File "/home/vlt-os/vulture_os/applications/backend/models.py", line 33, in from services.haproxy.haproxy import hot_action_frontend, hot_action_backend, test_haproxy_conf, HAPROXY_OWNER, HAPROXY_PATH, HAPROXY_PERMS, TEST_CONF_PATH File "/home/vlt-os/vulture_os/services/haproxy/haproxy.py", line 31, in from services.haproxy.models import HAProxySettings File "/home/vlt-os/vulture_os/services/haproxy/models.py", line 30, in from system.cluster.models import Cluster File "/home/vlt-os/vulture_os/system/cluster/models.py", line 26, in from system.config.models import Config File "/home/vlt-os/vulture_os/system/config/models.py", line 29, in from authentication.ldap.models import LDAPRepository File "/home/vlt-os/vulture_os/authentication/ldap/models.py", line 36, in from toolkit.auth.ldap_client import LDAPClient File "/home/vlt-os/vulture_os/toolkit/auth/ldap_client.py", line 32, in import ldap File "/home/vlt-os/env/lib/python3.8/site-packages/ldap/init.py", line 34, in import _ldap ImportError: Shared object "libldap_r-2.4.so.2" not found, required by "_ldap.cpython-38.so" vultured already running? (pid=20473).

ccmsi commented 2 years ago

while running update lite:

root@vulture:/home/vlt-adm/system # /home/vlt-adm/system/update_system_lite.sh .... [4/5] Upgrading vulture-gui from 1.3.8 to 1.12.1... ===> Removing django crontabs ldap_int_sasl_init: SASL library version mismatch: expected 2.1.28, got 2.1.27 Traceback (most recent call last): File "/home/vlt-os/vulture_os/manage.py", line 15, in execute_from_command_line(sys.argv) File "/home/vlt-os/env/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/home/vlt-os/env/lib/python3.8/site-packages/django/core/management/init.py", line 377, in execute django.setup() File "/home/vlt-os/env/lib/python3.8/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/vlt-os/env/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate app_config.import_models() File "/home/vlt-os/env/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models self.models_module = import_module(models_module_name) File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 843, in exec_module File "", line 219, in _call_with_frames_removed File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/workflow/models.py", line 34, in from applications.backend.models import Backend File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/applications/backend/models.py", line 33, in from services.haproxy.haproxy import hot_action_frontend, hot_action_backend, test_haproxy_conf, HAPROXY_OWNER, HAPROXY_PATH, HAPROXY_PERMS, TEST_CONF_PATH File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/services/haproxy/haproxy.py", line 31, in from services.haproxy.models import HAProxySettings File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/services/haproxy/models.py", line 30, in from system.cluster.models import Cluster File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/system/cluster/models.py", line 26, in from system.config.models import Config File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/system/config/models.py", line 29, in from authentication.ldap.models import LDAPRepository File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/authentication/ldap/models.py", line 36, in from toolkit.auth.ldap_client import LDAPClient File "/usr/home/jails.apache/.zfs-source/home/vlt-os/vulture_os/toolkit/auth/ldap_client.py", line 32, in import ldap File "/home/vlt-os/env/lib/python3.8/site-packages/ldap/init.py", line 39, in LIBLDAP_API_INFO = _ldap.get_option(_ldap.OPT_API_INFO) SystemError: error -2 from ldap_get_option

then

===> Cleaning python environment [4/5] Extracting vulture-gui-1.12.1: 100% vulture-gui-1.3.8: missing file /home/jails.apache/.zfs-source/home/vlt-os/env/lib/python3.8/site-packages/Jinja2-3.0.2.dist-info/INSTALLER vulture-gui-1.3.8: missing file /home/jails.apache/.zfs-source/home/vlt-os/env/lib/python3.8/site-packages/Jinja2-3.0.2.dist-info/LICENSE.rst .... lots more .... vulture-gui-1.3.8: missing file /home/jails.apache/.zfs-source/home/vlt-os/env/lib/python3.8/site-packages/yarl-1.6.3.dist-info/WHEEL vulture-gui-1.3.8: missing file /home/jails.apache/.zfs-source/home/vlt-os/env/lib/python3.8/site-packages/yarl-1.6.3.dist-info/top_level.txt ===> Check directories and permissions

ccmsi commented 2 years ago

retrying for completeness after reboot:

root@vulture:/usr/home/vlt-adm # /home/vlt-adm/system/update_system_lite.sh [] disabling root secadm rules sysctlbyname: No such file or directory could not flush rules. error code: -1 Could not disable secadm rules [] [mongodb] disabling secadm rules sysctlbyname: No such file or directory could not flush rules. error code: -1 Could not disable secadm rules [] [apache] disabling secadm rules sysctlbyname: No such file or directory could not flush rules. error code: -1 Could not disable secadm rules [] [portal] disabling secadm rules sysctlbyname: No such file or directory could not flush rules. error code: -1 Could not disable secadm rules Updating HardenedBSD repository catalogue... ...

ccmsi commented 2 years ago

All in all if i didnt do things completely wrong, then vulture4-HBSD12-amd64-disk001.vmdk seems disfunctional. In that case i would rather have project management pull that version off the public face, as at least the experience i had is damaging to project reputation. If i did sth wrong, i would ask for update / improvement of documentation, at least for installation it hsould not be too extensive a task. Also a dedicated reference thereto from main project page would be nice. As the software versions in that release also seem rather outdated, i consider / expect this specific one as a closed case.