ucphhpc / migrid-sync

MiGrid workspace where master branch is kept strictly in sync with SF upstream svn repo. Any development or experiments should use a branch. You probably want to fork your own clone or work e.g. on the edge branch if you wish to contribute.
GNU General Public License v2.0
4 stars 4 forks source link

Stray user ID dirs in user_pending state dir causing log warnings #141

Closed jonasbardino closed 1 month ago

jonasbardino commented 1 month ago

As reported by our partners at AU user specific directories started getting created in user_pending, where they then trigger log warnings like

2024-10-23 09:20:18,044 WARNING +C=DK+ST=NA+L=NA+O=HepHepHep+OU=NA+CN=Test_Testsen+emailAddress=test@hephephep.dk in /home/mig/state/user_pending/ is not a file, move it?

upon Server Admin account request listings.

It looks like a regression related to the work on https://github.com/ucphhpc/migrid-sync/milestone/3 and the creation of those directories should be disabled in the user creation code. As a workaround until fixed one can manually remove all those empty *emailAddress=* directories in user_pending.

jonasbardino commented 1 month ago

Fixed in PR142.

Clean up of already created empty client_ID dirs in user_pending can be done with something like

rmdir /path/to/state/user_pending/*emailAddress=*