Libki / libki-server

Libki Server
Other
55 stars 28 forks source link

Error in script 'libki_nightly.pl' during user cleanup #332

Closed sirthom closed 10 months ago

sirthom commented 10 months ago

Describe the bug after setting a value in the "Inactive user retention", the user cleanup does not work. The script libki_nightly.pl reports this error "{UNKNOWN}: Undefined subroutine &main::to_json called at /home/libki/libki-server/script/cronjobs/libki_nightly.pl line 132. at /home/libki/libki-server/script/cronjobs/libki_nightly.pl line 148" The users are not cleaned.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://:3000/administration/settings'
  2. Click on 'Data retention'
  3. Scroll down to 'Inactive user retention' and put 1 or 365 days
  4. execute 'libki_nightly.pl' Script from crontab
  5. see error "{UNKNOWN}: Undefined subroutine &main::to_json called at /home/libki/libki-server/script/cronjobs/libki_nightly.pl line 132. at /home/libki/libki-server/script/cronjobs/libki_nightly.pl line 148"
  6. The expired users are not cleaned. (checked the database)

Deployment architecture:

kylemhall commented 10 months ago

This should now be fixed in master and will be in r23.10!