Opsi Client Installation Fehlermeldung

Antworten
niklioni
Beiträge: 1
Registriert: 17 Jul 2023, 16:22

Opsi Client Installation Fehlermeldung

Beitrag von niklioni »

Hallo,

mein opsi server funktioniert mi der Website und ich kann auch auf einem anderen Laptop im Netzwerk die Applikation opsi config editor starten und diese funktioniert, jedoch wenn ich den opsi installer starte bricht es immer ab mit dm exit code 1 aufgrund eines FQDN Fehlers.
Meine hosts datei ist in Debian Linux auf debian.edvg.dom geschrieben und bei windows habe ich diese dann auch nochmal in die hosts datei geschrieben, jedoch funktioniert es immer noch nicht.
Hier die LogDatei vom Fehler:

Code: Alles auswählen

[7] [2023-07-17 16:26:19.360] [opsi-client-agent]             [6] [2023-07-17 16:25:27.586] [                                        ] Using proxy settings: http_proxy=None, https_proxy=None, no_proxy='localhost,WIN11,127.0.0.1,ip6-localhost,::1'   (__init__.py:153)
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]             [4] [2023-07-17 16:25:27.610] [                                        ] Failed to fetch tls certificate from server: Opsi service connection error: HTTPSConnectionPool(host='gisch.dom.debian', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0B0798E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))   (setup.py:134)
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]             [5] [2023-07-17 16:25:27.610] [                                        ] Creating self-signed tls server certificate   (setup.py:139)
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]             [5] [2023-07-17 16:25:27.612] [                                        ] Creating CA keypair   (common.py:75)
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]             [3] [2023-07-17 16:26:18.657] [                                        ] Failed to setup ssl: Failed to get fqdn   (setup.py:492)
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]             Traceback (most recent call last):
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]               File "opsiclientd\setup.py", line 490, in setup
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]               File "opsiclientd\setup.py", line 145, in setup_ssl
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]               File "opsicommon\system\network.py", line 69, in get_hostnames
[7] [2023-07-17 16:26:19.360] [opsi-client-agent]               File "opsicommon\system\network.py", line 60, in get_fqdn
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             RuntimeError: Failed to get fqdn
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [5] [2023-07-17 16:26:18.659] [                                        ] Cleanup registry uninstall information   (setup.py:351)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [5] [2023-07-17 16:26:18.661] [                                        ] Configure Windows firewall   (setup.py:206)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [6] [2023-07-17 16:26:18.661] [                                        ] Running command: ['netsh', 'advfirewall', 'firewall', 'delete', 'rule', 'name="opsiclientd-control-port"']   (setup.py:225)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             1 Regel(n) wurde(n) gelöscht.
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             OK.
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [6] [2023-07-17 16:26:18.897] [                                        ] Running command: ['netsh', 'advfirewall', 'firewall', 'add', 'rule', 'name="opsiclientd-control-port"', 'dir=in', 'action=allow', 'protocol=TCP', 'localport=4441']   (setup.py:225)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             OK.
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [5] [2023-07-17 16:26:19.066] [                                        ] Creating opsi shutdown install policy   (setup.py:393)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [5] [2023-07-17 16:26:19.076] [                                        ] Setup completed with 1 errors   (setup.py:519)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             ERROR: Failed to get fqdn
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             [2] [2023-07-17 16:26:19.076] [                                        ] Failed to get fqdn   (__main__.py:65)
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             Traceback (most recent call last):
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]               File "opsiclientd\__main__.py", line 58, in opsiclientd
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]               File "opsiclientd\windows\main.py", line 160, in main
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]               File "opsiclientd\setup.py", line 521, in setup
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             RuntimeError: Failed to get fqdn
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             Installing service opsiclientd
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             Changing service configuration
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             Service updated
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             
[7] [2023-07-17 16:26:19.361] [opsi-client-agent]             C:\Windows\System32>set EXITCODE=1
[7] [2023-07-17 16:26:19.362] [opsi-client-agent]             
[7] [2023-07-17 16:26:19.362] [opsi-client-agent]             C:\Windows\System32>echo "opsiclientd setup had errorlevel 1"
[7] [2023-07-17 16:26:19.362] [opsi-client-agent]             "opsiclientd setup had errorlevel 1"
[7] [2023-07-17 16:26:19.362] [opsi-client-agent]             
[7] [2023-07-17 16:26:19.362] [opsi-client-agent]             C:\Windows\System32>exit 1
[7] [2023-07-17 16:26:19.362] [opsi-client-agent]     
[7] [2023-07-17 16:26:19.368] [opsi-client-agent]     The file: c:\opsi.org\tmp\_opsiscript_0x5S30gvQB.cmd has been deleted
[6] [2023-07-17 16:26:19.368] [opsi-client-agent]       Search "c:\opsi.org\tmp\_opsiscript_*"
[6] [2023-07-17 16:26:19.369] [opsi-client-agent]     If
[7] [2023-07-17 16:26:19.369] [opsi-client-agent]     GetLastExitcode = "0"   <<< result false
[6] [2023-07-17 16:26:19.369] [opsi-client-agent]     not(GetLastExitcode = "0")   <<< result true
[6] [2023-07-17 16:26:19.369] [opsi-client-agent]   Then
[3] [2023-07-17 16:26:19.369] [opsi-client-agent]     Error: opsiclientd setup failed
[2] [2023-07-17 16:26:19.370] [opsi-client-agent]     Error level set to fatal
[6] [2023-07-17 16:26:19.370] [opsi-client-agent]     Process aborted
[6] [2023-07-17 16:26:19.370] [opsi-client-agent] 
[6] [2023-07-17 16:26:19.370] [opsi-client-agent] ~~~~~~~ End Sub   ~~~~~~~  Sub_install_opsiclientd
[6] [2023-07-17 16:26:19.370] [opsi-client-agent] 
[6] [2023-07-17 16:26:19.370] [opsi-client-agent] Process aborted
[1] [2023-07-17 16:26:19.370] [opsi-client-agent] ___________________
[1] [2023-07-17 16:26:19.370] [opsi-client-agent] script finished: failed
[1] [2023-07-17 16:26:19.370] [opsi-client-agent] 1 error
[1] [2023-07-17 16:26:19.370] [opsi-client-agent] 0 warnings
[1] [2023-07-17 16:26:19.371] [opsi-client-agent] Exitcode will be: 1
[1] [2023-07-17 16:26:19.371] [opsi-client-agent] 
[1] [2023-07-17 16:26:19.371] [opsi-client-agent] handled product: opsi-client-agent Version: 4.2.0.61-1
[1] [2023-07-17 16:26:19.371] [opsi-client-agent] 
[6] [2023-07-17 16:26:19.449] [opsi-client-agent] HTTPSender Post succeeded
[6] [2023-07-17 16:26:19.450] [opsi-client-agent] Server-FQDN: 192.168.11.127 Server-IP: 192.168.11.127
[6] [2023-07-17 16:26:19.450] [opsi-client-agent] JSON Bench for backend_getSystemConfiguration "params":[],"id":1} Start: 16:26:19:378 Time: 00:00:00:072
[6] [2023-07-17 16:26:19.450] [opsi-client-agent] Checking if partlog: is bigger than 4 MB :.
[6] [2023-07-17 16:26:19.450] [opsi-client-agent] Checking if partlog: c:\opsi.org\log\opsi-script-part-7L5am5zL5B.log is bigger than 4 MB - found: 0 MB
[5] [2023-07-17 16:26:19.450] [opsi-client-agent] -------- submitted part of log file ends here, see the rest of log file on client ----------
[6] [2023-07-17 16:26:19.455] [opsi-client-agent] read file created
[6] [2023-07-17 16:26:19.455] [opsi-client-agent] read file opend
[6] [2023-07-17 16:26:19.455] [opsi-client-agent] start reading read file ...
[6] [2023-07-17 16:26:19.521] [opsi-client-agent] write line: >", "windows.edvg.dom", true], "id": 1}<  to service...
[6] [2023-07-17 16:26:19.521] [opsi-client-agent] start sending read file ...
[7] [2023-07-17 16:26:19.566] [opsi-client-agent] No Content-Encoding header. Guess identity
[6] [2023-07-17 16:26:19.594] [opsi-client-agent] HTTPSender Post succeeded
[6] [2023-07-17 16:26:19.594] [opsi-client-agent] Server-FQDN: 192.168.11.127 Server-IP: 192.168.11.127
[6] [2023-07-17 16:26:19.594] [opsi-client-agent] JSON Bench for backend_exit "params":[],"id":1} Start: 16:26:19:566 Time: 00:00:00:028
[7] [2023-07-17 16:26:19.594] [opsi-client-agent] serviceBatch: update switches .....
[6] [2023-07-17 16:26:19.631] [opsi-client-agent] HTTPSender Post succeeded
[6] [2023-07-17 16:26:19.632] [opsi-client-agent] Server-FQDN: 192.168.11.127 Server-IP: 192.168.11.127
[6] [2023-07-17 16:26:19.632] [opsi-client-agent] JSON Bench for productOnClient_updateObject "params":[{"clientId":"windows.edvg.dom","actionRe Start: 16:26:19:595 Time: 00:00:00:037
und hier ist meine opsiconfd config von der opsi website:

Code: Alles auswählen

{
  "config": {
    "acl-file": "/etc/opsi/backendManager/acl.conf",
    "addon-dirs": [
      "/usr/lib/opsiconfd/addons",
      "/var/lib/opsiconfd/addons"
    ],
    "admin-interface-disabled-features": [],
    "admin-interface-terminal-shell": "/bin/bash",
    "admin-networks": [
      "0.0.0.0/0",
      "::/0"
    ],
    "allow-host-key-only-auth": false,
    "auth-failures-interval": 120,
    "backend-config-dir": "/etc/opsi/backends",
    "client-block-time": 120,
    "config-file": "/etc/opsi/opsiconfd.conf",
    "debug-options": null,
    "dispatch-config-file": "/etc/opsi/backendManager/dispatch.conf",
    "extension-config-dir": "/etc/opsi/backendManager/extend.d",
    "external-url": "https://debian.edvg.dom:4447",
    "grafana-data-source-url": "https://debian.edvg.dom:4447",
    "grafana-external-url": "http://debian.edvg.dom:3000",
    "grafana-internal-url": "http://opsiconfd:htiPpwtp@localhost:3000",
    "grafana-verify-cert": true,
    "interface": "0.0.0.0",
    "internal-url": "https://debian.edvg.dom:4447",
    "jsonrpc-time-to-cache": 0.5,
    "keep-rotated-logs": 1,
    "log-file": "/var/log/opsi/opsiconfd/%m.log",
    "log-filter": null,
    "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": 5,
    "log-level-file": 4,
    "log-level-stderr": 0,
    "log-levels": "",
    "log-mode": "redis",
    "max-auth-failures": 10,
    "max-log-size": 5,
    "max-session-per-ip": 30,
    "max-sessions-excludes": [
      "127.0.0.1",
      "::1"
    ],
    "monitoring-user": "monitoring",
    "networks": [
      "0.0.0.0/0",
      "::/0"
    ],
    "port": 4447,
    "redis-internal-url": "redis://localhost",
    "restart-worker-mem": 0,
    "run-as-user": "opsiconfd",
    "session-lifetime": 60,
    "skip-setup": [],
    "ssl-ca-cert": "/etc/opsi/ssl/opsi-ca-cert.pem",
    "ssl-ca-cert-renew-days": 300,
    "ssl-ca-cert-valid-days": 360,
    "ssl-ca-key": "/etc/opsi/ssl/opsi-ca-key.pem",
    "ssl-ca-subject-cn": "opsi CA",
    "ssl-ciphers": "TLSv1.2",
    "ssl-client-cert-valid-days": 360,
    "ssl-server-cert": "/etc/opsi/ssl/opsi-server-cert.pem",
    "ssl-server-cert-check-interval": 86400,
    "ssl-server-cert-renew-days": 30,
    "ssl-server-cert-valid-days": 90,
    "ssl-server-key": "/etc/opsi/ssl/opsi-server-key.pem",
    "ssl-trusted-certs": "/usr/lib/opsiconfd/certifi/cacert.pem",
    "static-dir": "/usr/share/opsiconfd/static",
    "symlink-logs": true,
    "trusted-proxies": [
      "127.0.0.1",
      "::1"
    ],
    "update-ip": true,
    "welcome-page": false,
    "worker-stop-timeout": 120,
    "workers": 1,
    "zeroconf": true
  }
}
Vielen Dank im voraus!
Mir is auch aufgefallen, dass beim Installer bei der opsi service URL immer vordefiniert hat "gisch.edv.debian", welches ich bei er anfangsinstallation noch hatte aber in hosts datei und bei dns auflösung schon geändert habe zu "debian.edvg.dom"
Und hier kommt ja auch ein Fehler, allerdings gebe ich diese"gisch.edv.debian" nicht ein:

Code: Alles auswählen

Opsi service connection error: HTTPSConnectionPool(host='gisch.dom.debian', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0B0798E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))   (setup.py:134)
I figured out its because of the opsiclientd config file on my windows System
Everytime I start opsi client agent it changes it back to gisch.dom.debian, even if i delete it or change it beforehand.
Antworten