es kommt bei einer Neuinstallation mit Debian 12 nach Anleitung:
https://docs.opsi.org/opsi-docs-de/4.3/ ... n/deb.html
zu folgendem Fehler nach Eingabe: sudo apt --yes install opsi-server-full
Code: Alles auswählen
sudo opsiconfd setup -l6
[6] [2024-10-11 07:49:18.340] [ ] Config: {
'acl_file': '/etc/opsi/backendManager/acl.conf',
'action': 'setup',
'addon_dirs': ['/usr/lib/opsiconfd/addons', '/var/lib/opsiconfd/addons'],
'admin_interface_terminal_shell': '/bin/bash',
'admin_networks': [],
'admin_password': None,
'admin_user': None,
'allow_host_key_only_auth': False,
'auth_failures_interval': 120,
'backend_config_dir': '/etc/opsi/backends',
'check_running': True,
'checks': None,
'client_block_time': 120,
'client_cert_auth': [],
'collect_metrics': True,
'config_file': '/etc/opsi/opsiconfd.conf',
'configure_mysql': False,
'debug_options': [],
'delete_locks': False,
'development_options': [],
'disabled_features': [],
'dispatch_config_file': '/etc/opsi/backendManager/dispatch.conf',
'ex_help': False,
'executor_workers': 16,
'extension_config_dir': '/etc/opsi/backendManager/extend.d',
'external_url': 'https://opsi-test.schrader.lab:4447',
'format': 'cli',
'grafana_data_source_url': 'https://opsi-test.schrader.lab:4447',
'grafana_external_url': '/grafana',
'grafana_internal_url': 'http://localhost:3000',
'grafana_verify_cert': True,
'http_security_headers': True,
'interface': '0.0.0.0',
'internal_url': 'https://opsi-test.schrader.lab:4447',
'jsonrpc_time_to_cache': 0.5,
'keep_rotated_logs': 1,
'letsencrypt_contact_email': '',
'letsencrypt_directory_url': 'https://acme-v02.api.letsencrypt.org/directory',
'log_file': '/var/log/opsi/opsiconfd/%m.log',
'log_filter': None,
'log_format_file': '[%(opsilevel)d] [%(asctime)s.%(msecs)03d] [%(contextstring)-15s] %(message)s (%(filename)s:%(lineno)d)',
'log_format_stderr': '%(log_color)s[%(opsilevel)d] [%(asctime)s.%(msecs)03d]%(reset)s [%(contextstring)-15s] %(message)s (%(filename)s:%(lineno)d)',
'log_level': 4,
'log_level_file': 0,
'log_level_stderr': 6,
'log_levels': '',
'log_max_msg_len': 5000,
'log_mode': 'redis',
'log_slow_async_callbacks': 0.0,
'maintenance': False,
'max_auth_failures': 10,
'max_backup_age': 24,
'max_log_size': 5.0,
'max_session_per_ip': 30,
'max_sessions_excludes': ['127.0.0.1', '::1'],
'min_configed_version': '4.3.2.18',
'monitoring_user': 'monitoring',
'multi_factor_auth': 'inactive',
'mysql_internal_url': None,
'networks': [],
'node_name': 'opsi-test',
'non_interactive': False,
'opsi_config': '/etc/opsi/opsi.conf',
'port': 4447,
'profiler': [],
'provide_deprecated_methods': True,
'recover_clients': False,
'redis_internal_url': 'redis://localhost',
'redis_prefix': 'opsiconfd',
'register_depot': False,
'rename_server': False,
'restart_worker_mem': 0,
'run_as_user': 'opsiconfd',
'saml_idp_entity_id': None,
'saml_idp_slo_url': None,
'saml_idp_sso_url': None,
'saml_idp_x509_cert': None,
'session_lifetime': 120,
'set_depot_user_password': None,
'setup': False,
'shared_service_connection': True,
'skip_checks': None,
'skip_setup': [],
'socket_backlog': 4096,
'ssl_ca_cert': '/etc/opsi/ssl/opsi-ca-cert.pem',
'ssl_ca_cert_renew_days': 700,
'ssl_ca_cert_valid_days': 730,
'ssl_ca_key': '/etc/opsi/ssl/opsi-ca-key.pem',
'ssl_ca_key_passphrase': '***secret***',
'ssl_ca_permitted_domains': [],
'ssl_ca_subject_cn': 'opsi CA',
'ssl_ciphers': 'TLSv1.2',
'ssl_client_cert_valid_days': 360,
'ssl_server_cert': '/etc/opsi/ssl/opsiconfd-cert.pem',
'ssl_server_cert_check_interval': 86400,
'ssl_server_cert_renew_days': 30,
'ssl_server_cert_sans': [],
'ssl_server_cert_type': 'opsi-ca',
'ssl_server_cert_valid_days': 90,
'ssl_server_key': '/etc/opsi/ssl/opsiconfd-key.pem',
'ssl_server_key_passphrase': '***secret***',
'ssl_trusted_certs': '/usr/lib/opsiconfd/certifi/cacert.pem',
'static_dir': '/usr/share/opsiconfd/static',
'symlink_logs': True,
'trusted_proxies': ['127.0.0.1/32', '::1/128'],
'unattended': False,
'update_ip': True,
'version': False,
'websocket_open_timeout': 30,
'websocket_ping_interval': 15,
'websocket_ping_timeout': 10,
'websocket_protocol': 'wsproto_opsiconfd',
'websocket_queue_size': 32,
'welcome_page': True,
'worker_stop_timeout': 15,
'workers': 1,
'zeroconf': True
}
(__init__.py:89)
[5] [2024-10-11 07:49:18.341] [ ] Running opsiconfd setup (__init__.py:196)
[6] [2024-10-11 07:49:18.351] [ ] Connecting to mysql+mysqldb://opsi:***secret***@localhost/opsi?charset=utf8mb4&unix_socket=%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock&ssl=false (__init__.py:340)
[6] [2024-10-11 07:49:18.357] [ ] Connected to server version: 10.11.6-MariaDB-0+deb12u1 (__init__.py:354)
[6] [2024-10-11 07:49:18.412] [ ] Connecting to mysql+mysqldb://opsi:***secret***@localhost/opsi?charset=utf8mb4&unix_socket=%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock&ssl=false (__init__.py:340)
[6] [2024-10-11 07:49:18.414] [ ] Connected to server version: 10.11.6-MariaDB-0+deb12u1 (__init__.py:354)
[6] [2024-10-11 07:49:19.562] [ ] Current database schema version is 13 (schema.py:693)
[6] [2024-10-11 07:49:19.563] [ ] Database schema is up-to-date but update is forced (schema.py:701)
[6] [2024-10-11 07:49:19.563] [ ] Running opsi 4.1 updates (schema.py:706)
[6] [2024-10-11 07:49:19.564] [ ] Running opsi 4.2 updates (schema.py:744)
[6] [2024-10-11 07:49:19.564] [ ] Running opsi 4.3 updates (schema.py:750)
[6] [2024-10-11 07:49:20.400] [ ] All updates completed (schema.py:1275)
[6] [2024-10-11 07:49:20.601] [ ] Connecting to mysql+mysqldb://opsi:***secret***@localhost/opsi?charset=utf8mb4&unix_socket=%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock&ssl=false (__init__.py:340)
[6] [2024-10-11 07:49:20.605] [ ] Connected to server version: 10.11.6-MariaDB-0+deb12u1 (__init__.py:354)
[6] [2024-10-11 07:49:20.661] [ ] UnprotectedBackend(140058218053904) fetching client info (general.py:318)
[6] [2024-10-11 07:49:20.663] [ ] UnprotectedBackend(140058218053904) fetching client info (general.py:318)
[6] [2024-10-11 07:49:20.905] [ ] DHCPD control config: DHCPDControlConfig(enabled=False, dhcpd_on_depot=False, dhcpd_config_file=<opsiconfd.dhcpd.DHCPDConfFile object at 0x7f61d85181d0>, reload_config_command=['sudo', 'systemctl', 'restart', 'dhcpd'], fixed_address_format='IP', default_client_parameters={'next-server': '192.168.5.126'}, boot_filename_uefi='opsi/opsi-linux-bootimage/loader/shimx64.efi.signed', boot_filename_bios='opsi/opsi-linux-bootimage/loader/opsi-netboot.bios') (dhcpd.py:866)
[6] [2024-10-11 07:49:20.917] [ ] Setup system limits (system.py:39)
[6] [2024-10-11 07:49:20.918] [ ] Maximum number of open file descriptors: 10000 (system.py:52)
[6] [2024-10-11 07:49:20.918] [ ] Setup users and groups (system.py:200)
[6] [2024-10-11 07:49:20.918] [ ] Setup users and groups (setup.py:81)
[6] [2024-10-11 07:49:20.922] [ ] Setup systemd (system.py:297)
[6] [2024-10-11 07:49:21.217] [ ] Setup file permissions (files.py:136)
[6] [2024-10-11 07:49:21.217] [ ] Setting rights on '/etc/shadow' (rights.py:238)
[6] [2024-10-11 07:49:21.218] [ ] Setting rights on '/var/log/opsi/opsiconfd/opsiconfd.log' (rights.py:238)
[6] [2024-10-11 07:49:21.218] [ ] Setting rights on '/var/lib/opsiconfd' (rights.py:238)
[6] [2024-10-11 07:49:21.218] [ ] Setting rights recursively on '/var/lib/opsiconfd/addons' (rights.py:238)
[6] [2024-10-11 07:49:21.220] [ ] Setting rights on '/var/lib/opsiconfd/home' (rights.py:238)
[6] [2024-10-11 07:49:21.220] [ ] Setting rights on '/var/lib/opsiconfd/home' (rights.py:238)
[6] [2024-10-11 07:49:21.220] [ ] Setting rights recursively on '/var/lib/opsiconfd/addons' (rights.py:238)
[6] [2024-10-11 07:49:21.221] [ ] Setting rights on '/var/lib/opsi/backup' (rights.py:238)
[6] [2024-10-11 07:49:21.222] [ ] Setting rights on '/etc/dhcp' (rights.py:238)
[6] [2024-10-11 07:49:21.222] [ ] Setting rights recursively on '/etc/opsi' (rights.py:238)
[6] [2024-10-11 07:49:21.222] [ ] Setting rights on '/etc/opsi/ssl' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl/opsi-ca-cert.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl/opsi-ca-key.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl/opsiconfd-cert.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl/opsiconfd-key.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl/opsi-ca-cert.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.223] [ ] Setting rights on '/etc/opsi/ssl/opsi-ca-key.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.224] [ ] Setting rights on '/etc/opsi/ssl/opsiconfd-cert.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.224] [ ] Setting rights on '/etc/opsi/ssl/opsiconfd-key.pem' (rights.py:238)
[6] [2024-10-11 07:49:21.224] [ ] Cleanup log files (files.py:182)
[6] [2024-10-11 07:49:21.230] [ ] Creating config 'clientconfig.depot.id' (configs.py:152)
[6] [2024-10-11 07:49:21.235] [ ] Setup grafana (grafana.py:307)
[4] [2024-10-11 07:49:21.237] [ ] Failed to setup grafana: While reading from '<string>' [line 1351]: section 'unified_alerting.reserved_labels' already exists (__init__.py:312)
Traceback (most recent call last):
File "opsiconfd/setup/__init__.py", line 310, in setup
File "opsiconfd/grafana.py", line 313, in setup_grafana
File "opsiconfd/grafana.py", line 441, in set_grafana_root_url
File "configupdater/configupdater.py", line 164, in read_string
File "configupdater/parser.py", line 312, in read_string
File "configupdater/parser.py", line 288, in read_file
File "configupdater/parser.py", line 482, in _read
configparser.DuplicateSectionError: While reading from '<string>' [line 1351]: section 'unified_alerting.reserved_labels' already exists
[6] [2024-10-11 07:49:21.247] [ ] Setup SSL (ssl.py:994)
[6] [2024-10-11 07:49:21.247] [ ] Checking opsi CA (ssl.py:560)
[6] [2024-10-11 07:49:21.470] [ ] opsi CA 'opsi CA' will expire in 729 days (ssl.py:596)
[6] [2024-10-11 07:49:21.470] [ ] opsi CA is up to date (ssl.py:667)
[6] [2024-10-11 07:49:21.471] [ ] Checking server cert (ssl.py:819)
[6] [2024-10-11 07:49:21.691] [ ] Server cert 'opsi-test.schrader.lab' will expire in 89 days (ssl.py:903)
[6] [2024-10-11 07:49:21.696] [ ] Server cert is up to date (ssl.py:983)
[6] [2024-10-11 07:49:21.696] [ ] Setup samba (samba.py:129)
[6] [2024-10-11 07:49:21.721] [ ] Setup DHCPD (dhcpd.py:688)
[6] [2024-10-11 07:49:21.721] [ ] Setup sudoers (sudo.py:34)
Viele Grüße