#8597 Traceback while doing ipa-backup
Closed: fixed 4 months ago by frenaud. Opened 5 months ago by frenaud.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 8): Bug 1901068

Description of problem:
Traceback is seen while doing ipa-backup.

Version-Release number of selected component (if applicable):
ipa-server-4.9.0-0.1.rc1.module+el8.4.0+8830+62cd648b.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install ipa master
2. run $ ipa-backup -v

Actual results:
[..]
ipaserver.install.ipa_backup: INFO: Backing up IPA-TEST
ipapython.ipautil: DEBUG: Starting external process
ipapython.ipautil: DEBUG: args=['/usr/sbin/dsctl', 'IPA-TEST', 'db2bak',
'/var/lib/dirsrv/slapd-IPA-TEST/bak/IPA-TEST']
ipapython.ipautil: DEBUG: Process finished, return code=0
ipapython.ipautil: DEBUG: stdout=db2bak successful

ipapython.ipautil: DEBUG: stderr=
ipapython.ipautil: DEBUG: Starting external process
ipapython.ipautil: DEBUG: args=['/usr/bin/authselect', 'current', '--raw']
ipapython.ipautil: DEBUG: Process finished, return code=0
ipapython.ipautil: DEBUG: stdout=sssd with-sudo

ipapython.ipautil: DEBUG: stderr=
ipaserver.install.ipa_backup: INFO: Backing up files
ipapython.admintool: DEBUG:   File
"/usr/lib/python3.6/site-packages/ipapython/admintool.py", line 180, in execute
    return_value = self.run()
  File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_backup.py", line
348, in run
    self.file_backup(options)
  File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_backup.py", line
643, in file_backup
    args.extend(verify_directories(self.files))
  File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_backup.py", line
629, in verify_directories
    return [s for s in dirs if os.path.exists(s)]
  File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_backup.py", line
629, in <listcomp>
    return [s for s in dirs if os.path.exists(s)]
  File "/usr/lib64/python3.6/genericpath.py", line 19, in exists
    os.stat(path)

ipapython.admintool: DEBUG: The ipa-backup command failed, exception:
TypeError: stat: path should be string, bytes, os.PathLike or integer, not
NoneType
ipapython.admintool: ERROR: stat: path should be string, bytes, os.PathLike or
integer, not NoneType
ipapython.admintool: ERROR: The ipa-backup command failed. See
/var/log/ipabackup.log for more information


Expected results:
ipa-backup success

Additional info:

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1901068

5 months ago

Metadata Update from @frenaud:
- Issue assigned to frenaud

5 months ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5292

5 months ago

master:

  • 3b007b7 Always define the path DNSSEC_OPENSSL_CONF

ipa-4-9:

  • 06a7db1 Always define the path DNSSEC_OPENSSL_CONF

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 months ago

Login to comment on this ticket.

Metadata