Closed ricardorrs closed 1 year ago
A instalação está falhando:
No valid Negotiate header in server response
The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information
Configuration of client side components failed!
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Você pode mostrar que erros estão sendo exibidos nos logs?
@rjeffman , antes de mais nada, obrigado pela força.
Abaixo está o log do /var/log/ipaclient-install.log e em seguida o /var/log/ipaserver-install.log
2023-05-12T16:08:33Z DEBUG Logging to /var/log/ipaclient-install.log 2023-05-12T16:08:33Z DEBUG ipa-client-install was invoked with arguments [] and options: {'unattended': True, 'principal': None, 'prompt_password': False, 'on_master': True, 'ca_cert_files': None, 'force': False, 'configure_firefox': False, 'firefox_dir': None, 'keytab': None, 'mkhomedir': False, 'force_join': False, 'ntp_servers': None, 'ntp_pool': None, 'no_ntp': True, 'force_ntpd': False, 'nisdomain': None, 'no_nisdomain': False, 'ssh_trust_dns': False, 'no_ssh': False, 'no_sshd': False, 'no_sudo': False, 'subid': False, 'no_dns_sshfp': False, 'kinit_attempts': None, 'request_cert': False, 'ip_addresses': None, 'all_ip_addresses': False, 'fixed_primary': False, 'permit': False, 'enable_dns_updates': False, 'no_krb5_offline_passwords': False, 'preserve_sssd': False, 'automount_location': None, 'domain_name': 'example.test', 'servers': ['ipa.example.test'], 'realm_name': 'EXAMPLE.TEST', 'host_name': 'ipa.example.test', 'verbose': False, 'quiet': False, 'log_file': None, 'uninstall': False} 2023-05-12T16:08:33Z DEBUG IPA version 4.10.0-8.el9_1 2023-05-12T16:08:33Z DEBUG IPA platform rhel_container 2023-05-12T16:08:33Z DEBUG IPA os-release Rocky Linux 9.1 (Blue Onyx) 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/sbin/selinuxenabled'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=1 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Loading Index file from '/var/lib/ipa-client/sysrestore/sysrestore.index' 2023-05-12T16:08:33Z DEBUG Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' 2023-05-12T16:08:33Z DEBUG Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['sudo', '-V'] 2023-05-12T16:08:33Z DEBUG Process execution failed 2023-05-12T16:08:33Z INFO The sudo binary does not seem to be present on this system. Please consider installing sudo if required. 2023-05-12T16:08:33Z WARNING Using existing certificate '/etc/ipa/ca.crt'. 2023-05-12T16:08:33Z DEBUG [IPA Discovery] 2023-05-12T16:08:33Z DEBUG Starting IPA discovery with domain=example.test, servers=['ipa.example.test'], hostname=ipa.example.test 2023-05-12T16:08:33Z DEBUG Server and domain forced 2023-05-12T16:08:33Z DEBUG [Kerberos realm search] 2023-05-12T16:08:33Z DEBUG Kerberos realm forced 2023-05-12T16:08:33Z DEBUG [LDAP server check] 2023-05-12T16:08:33Z DEBUG Verifying that ipa.example.test (realm EXAMPLE.TEST) is an IPA server 2023-05-12T16:08:33Z DEBUG Init LDAP connection to: ldap://ipa.example.test:389 2023-05-12T16:08:33Z DEBUG Search LDAP server for IPA base DN 2023-05-12T16:08:33Z DEBUG Check if naming context 'dc=example,dc=test' is for IPA 2023-05-12T16:08:33Z DEBUG Naming context 'dc=example,dc=test' is a valid IPA context 2023-05-12T16:08:33Z DEBUG Search for (objectClass=krbRealmContainer) in dc=example,dc=test (sub) 2023-05-12T16:08:33Z DEBUG Found: cn=EXAMPLE.TEST,cn=kerberos,dc=example,dc=test 2023-05-12T16:08:33Z DEBUG Discovery result: Success; server=ipa.example.test, domain=example.test, kdc=ipa.example.test, basedn=dc=example,dc=test 2023-05-12T16:08:33Z DEBUG Validated servers: ipa.example.test 2023-05-12T16:08:33Z DEBUG will use discovered domain: example.test 2023-05-12T16:08:33Z DEBUG Using servers from command line, disabling DNS discovery 2023-05-12T16:08:33Z DEBUG will use provided server: ipa.example.test 2023-05-12T16:08:33Z DEBUG will use discovered realm: EXAMPLE.TEST 2023-05-12T16:08:33Z DEBUG will use discovered basedn: dc=example,dc=test 2023-05-12T16:08:33Z INFO Client hostname: ipa.example.test 2023-05-12T16:08:33Z DEBUG Hostname source: Provided as option 2023-05-12T16:08:33Z INFO Realm: EXAMPLE.TEST 2023-05-12T16:08:33Z DEBUG Realm source: Discovered from LDAP DNS records in ipa.example.test 2023-05-12T16:08:33Z INFO DNS Domain: example.test 2023-05-12T16:08:33Z DEBUG DNS Domain source: Forced 2023-05-12T16:08:33Z INFO IPA Server: ipa.example.test 2023-05-12T16:08:33Z DEBUG IPA Server source: Provided as option 2023-05-12T16:08:33Z INFO BaseDN: dc=example,dc=test 2023-05-12T16:08:33Z DEBUG BaseDN source: From IPA server ldap://ipa.example.test:389 2023-05-12T16:08:33Z DEBUG Loading Index file from '/var/lib/ipa-client/sysrestore/sysrestore.index' 2023-05-12T16:08:33Z DEBUG Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' 2023-05-12T16:08:33Z DEBUG Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' 2023-05-12T16:08:33Z DEBUG Saving StateFile to '/var/lib/ipa-client/sysrestore/sysrestore.state' 2023-05-12T16:08:33Z DEBUG Skipping attempt to configure and synchronize time with chrony server as it has been already done on master. 2023-05-12T16:08:33Z DEBUG Backing up system configuration file '/etc/sssd/sssd.conf' 2023-05-12T16:08:33Z DEBUG -> Not backing up - '/etc/sssd/sssd.conf' doesn't exist 2023-05-12T16:08:33Z DEBUG New SSSD config will be created 2023-05-12T16:08:33Z INFO Configured /etc/sssd/sssd.conf 2023-05-12T16:08:33Z DEBUG Initializing principal host/ipa.example.test@EXAMPLE.TEST using keytab /data/etc/krb5.keytab 2023-05-12T16:08:33Z DEBUG using ccache /etc/ipa/.dns_ccache 2023-05-12T16:08:33Z DEBUG Attempt 1/5: success 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/bin/certutil', '-d', '/tmp/tmpgp5ptvrg', '-N', '-f', '/tmp/tmpgp5ptvrg/pwdfile.txt', '-@', '/tmp/tmpgp5ptvrg/pwdfile.txt'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=0 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/sbin/selinuxenabled'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=1 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/sbin/selinuxenabled'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=1 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/sbin/selinuxenabled'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=1 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/sbin/selinuxenabled'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=1 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/sbin/selinuxenabled'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=1 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG Starting external process 2023-05-12T16:08:33Z DEBUG args=['/usr/bin/certutil', '-d', 'sql:/tmp/tmpgp5ptvrg', '-A', '-n', 'CA certificate 1', '-t', 'C,,', '-a', '-f', '/tmp/tmpgp5ptvrg/pwdfile.txt'] 2023-05-12T16:08:33Z DEBUG Process finished, return code=0 2023-05-12T16:08:33Z DEBUG stdout= 2023-05-12T16:08:33Z DEBUG stderr= 2023-05-12T16:08:33Z DEBUG failed to find session_cookie in persistent storage for principal 'host/ipa.example.test@EXAMPLE.TEST' 2023-05-12T16:08:33Z DEBUG trying https://ipa.example.test/ipa/json 2023-05-12T16:08:33Z DEBUG Created connection context.rpcclient_140107774866624 2023-05-12T16:08:33Z DEBUG [try 1]: Forwarding 'schema' to json server 'https://ipa.example.test/ipa/json' 2023-05-12T16:08:33Z DEBUG New HTTP connection (ipa.example.test) 2023-05-12T16:08:33Z DEBUG HTTP connection destroyed (ipa.example.test) Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/ipaclient/remote_plugins/init.py", line 120, in get_package plugins = api._remote_plugins AttributeError: 'API' object has no attribute '_remote_plugins'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/ipalib/rpc.py", line 724, in single_request
if not self._auth_complete(response):
File "/usr/lib/python3.9/site-packages/ipalib/rpc.py", line 673, in _auth_complete
raise errors.KerberosError(
ipalib.errors.KerberosError: No valid Negotiate header in server response
2023-05-12T16:08:33Z DEBUG Destroyed connection context.rpcclient_140107774866624
2023-05-12T16:08:33Z DEBUG File "/usr/lib/python3.9/site-packages/ipapython/admintool.py", line 180, in execute
return_value = self.run()
File "/usr/lib/python3.9/site-packages/ipapython/install/cli.py", line 344, in run
return cfgr.run()
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 360, in run
return self.execute()
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 386, in execute
for rval in self._executor():
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 431, in runner
exc_handler(exc_info)
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 460, in _handle_execute_exception
self._handle_exception(exc_info)
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 450, in _handle_exception
six.reraise(exc_info)
File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise
raise value
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 421, in runner
step()
File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 418, in
2023-05-12T16:08:33Z DEBUG The ipa-client-install command failed, exception: KerberosError: No valid Negotiate header in server response 2023-05-12T16:08:33Z ERROR No valid Negotiate header in server response 2023-05-12T16:08:33Z ERROR The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information
I'd prefer if we could keep conversations in English.
I can see --privileged --security-opt seccomp:unconfined
among the docker run
arguments. What documentation shows these to be needed on a Rocky Linux 9 machine?
@adelton
Sorry for the Portuguese conversation, I'm not fluent in English but I can use google translate.
The commands mentioned are from docker, researching more about I found here in the community in the problems already solved using such commands.
When I don't use the commands it just doesn't start.
docker run --name freeipa-server-container -ti \
> -h ipa.example.test -p 53:53/udp -p 53:53 -p 80:80 -p 443:443 -p 389:389 -p 636:636 -p 88:88 -p 464:464 -p 88:88/udp -p 464:464/udp -p 123:123/udp \
> --read-only --sysctl net.ipv6.conf.all.disable_ipv6=0 \
> -v /var/lib/freeipa-data:/data:Z freeipa-container
systemd 250-12.el9_1.3 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN -IPTC + KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
Virtualization Docker detected.
Architecture detected x86-64.
Failed to create control group /init.scope: read-only file system
Failed to allocate manager object: read-only file system
[!!!!!!] Failed to allocate the manager object.
Leaving PID 1..
Those parameters actually cause exactly the "No valid Negotiate header in server response" failure; they are never the solution (in the recent years).
Assuming your host is Rocky Linux 9, it is safe to assume you use cgroups v2. If that is the case, do you have user namespace remapping enabled in docker configuration, per https://github.com/freeipa/freeipa-container#running-freeipa-server-container?
We seem to have lost the traction here.
Olá boa tarde.
Gostaria da ajuda de vocês.
Estou tentando subir um container para fazer alguns testes porém não tenho sucesso.
Uso o vagrant+virtualbox, subir uma imagem com rockylinux 9 atualizado + docker e docker-compose.
estou utilizando o seguinte comando.
Ao iniciar o container sigo as configuração do bind, domínio, password e ntp, vejo algums start e stop de serviços.
Initializing machine ID from random generator. Queued start job for default target Minimal target for containerized FreeIPA server. Fri May 12 16:02:23 UTC 2023 /usr/sbin/ipa-server-configure-first
The log file for this installation can be found in /var/log/ipaserver-install.log This program will set up the IPA Server. Version 4.10.0
This includes:
To accept the default shown in brackets, press the Enter key.
Do you want to configure integrated DNS (BIND)? [no]:
Enter the fully qualified domain name of the computer on which you're setting up server software. Using the form