#8248 httpd ccaches created during server upgrade aren't cleaned up on uninstall/install
Closed: fixed 3 years ago by cheimes. Opened 4 years ago by tjaalton.

I had a server install which was upgraded to 4.8.5, then I uninstalled it and ran ipa-server-install again and it failed:

[15/21]: clean up any existing httpd ccaches
[error] IsADirectoryError: [Errno 21] Is a directory: '/run/ipa/ccaches/upgrade_ccachessj4ov8i6'
[Errno 21] Is a directory: '/run/ipa/ccaches/upgrade_ccachessj4ov8i6'

remove_httpd_ccaches() doesn't seem to clean directories, only files.


I wonder why shutil.rmtree(paths.IPA_CCACHES) wasn't used.

Metadata Update from @rcritten:
- Issue assigned to rcritten

3 years ago

shutil also removes the directory so I call systemd-tmpfiles --create afterward to re-create it.

https://github.com/freeipa/freeipa/pull/5124

Metadata Update from @rcritten:
- Issue priority set to: normal
- Issue set to the milestone: FreeIPA 4.8.9

3 years ago

master:

  • cc5d9a8 Clean up entire /run/ipa/ccaches directory not just files
  • 9f9dcfe Test that ccaches are cleaned up during installation

ipa-4-8:

  • ade428f Clean up entire /run/ipa/ccaches directory not just files
  • 7cfd03d Test that ccaches are cleaned up during installation

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

3 years ago

Login to comment on this ticket.

Metadata