v4.2 vpbx_clean_old_log code 123

Hi,

in Vitalpbx v4.2 i get this error via email:

 
Cron <root@XXpbx> test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }

run-parts: /etc/cron.daily/vpbx_clean_old_logs exited with return code 123

Diagnostic-Code: smtp; 550 5.1.1 <[email protected]>: Recipient address rejected:
    User unknown in virtual alias table

How can this be fixed?

Thanks a lot

That was handled in the latest update (v4.2.0 R6)

1 Like

To fix it, you can edit the file /etc/cron.daily/vpbx_clean_old_logs and replace the last line with the one below.

find $path -name "log_*.log" -type f -mtime +7 | xargs -r rm >/dev/null 2>&1

Thanks, did the latest update not fix the issue for you?

@miguel
@ari is right: R6 does not fix it.
Same error email came again today.

Did you verify the vpbx_clean_old_logs file content?

Version is 4.2.0-6, so your fix should be included.

content of vpbx_clean_old_logs is:


#!/bin/bash

path="/var/log/vitalpbx/"
find $path -name "log_*.log" -type f -mtime +7 | xargs -r rm >/dev/null 2>&1
/usr/share/vitalpbx/scripts/clean_logs >/dev/null 2>&1

Today i used apt update and apt upgrade. Could that have fixed it?
Last time i used the WebGui for update.

Same email this morning again.