[GH-ISSUE #133] Archived accounts are stuck on "ARCHIVING" #101

Closed
opened 2026-02-26 09:35:54 +03:00 by kerem · 5 comments
Owner

Originally created by @florianbeer on GitHub (Mar 22, 2015).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/133

I have marked several mailboxes for archiving and the cronjob is set up to run.
Now the accounts are marked in the frontend as "ARCHIVING" and there are tar.bz2 files in the defined archive path, but they have only 46 bytes and the original maildirs are still in place.

The database shows the accounts in the "archive" table and not in the "mailbox" table anymore, but the status is "ARCHIVING" and all the homedir_* and maildir_* fields have "NULL" values. I also didn't ever get a mail for completed archives. Running the archive task on the CLI with "-v" doesn't show any errors.

Any help with figuring out what might have gone wrong or any more info I can provide to track down the error?

Originally created by @florianbeer on GitHub (Mar 22, 2015). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/133 I have marked several mailboxes for archiving and the cronjob is set up to run. Now the accounts are marked in the frontend as "ARCHIVING" and there are tar.bz2 files in the defined archive path, but they have only 46 bytes and the original maildirs are still in place. The database shows the accounts in the "archive" table and not in the "mailbox" table anymore, but the status is "ARCHIVING" and all the homedir_\* and maildir_\* fields have "NULL" values. I also didn't ever get a mail for completed archives. Running the archive task on the CLI with "-v" doesn't show any errors. Any help with figuring out what might have gone wrong or any more info I can provide to track down the error?
kerem closed this issue 2026-02-26 09:35:54 +03:00
Author
Owner
<!-- gh-comment-id:204700269 --> @barryo commented on GitHub (Apr 2, 2016): See: https://github.com/opensolutions/ViMbAdmin/wiki/Archiving-Mailboxes#cron-jobs
Author
Owner

@florianbeer commented on GitHub (Apr 2, 2016):

Of course I have the following lines in /etc/cron.d/vimbadmin

10 3 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a mailbox.cli-get-sizes > /dev/null                                                                      
10 */2 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a archive.cli-archive-pendings                                                                         
30 */2 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a archive.cli-restore-pendings                                                                         
50 */2 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a archive.cli-delete-pendings 

The issue must be somewhere in the archive task.

<!-- gh-comment-id:204828134 --> @florianbeer commented on GitHub (Apr 2, 2016): Of course I have the following lines in `/etc/cron.d/vimbadmin` ``` 10 3 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a mailbox.cli-get-sizes > /dev/null 10 */2 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a archive.cli-archive-pendings 30 */2 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a archive.cli-restore-pendings 50 */2 * * * someuser /var/www/vimbadmin/bin/vimbtool.php -a archive.cli-delete-pendings ``` The issue must be somewhere in the archive task.
Author
Owner

@barryo commented on GitHub (Apr 3, 2016):

What happens when you run these manually on the command line with debug enabled?

/var/www/vimbadmin/bin/vimbtool.php -d -a archive.cli-archive-pendings 
<!-- gh-comment-id:204922695 --> @barryo commented on GitHub (Apr 3, 2016): What happens when you run these manually on the command line with debug enabled? ``` /var/www/vimbadmin/bin/vimbtool.php -d -a archive.cli-archive-pendings ```
Author
Owner

@florianbeer commented on GitHub (Apr 3, 2016):

Module:     
Controller: archive
Action:     cli-archive-pendings

No pending archives found.
<!-- gh-comment-id:204923248 --> @florianbeer commented on GitHub (Apr 3, 2016): ``` Module: Controller: archive Action: cli-archive-pendings No pending archives found. ```
Author
Owner

@barryo commented on GitHub (Apr 3, 2016):

So set a mail to be archived for testing and rerun please?

<!-- gh-comment-id:204923277 --> @barryo commented on GitHub (Apr 3, 2016): So set a mail to be archived for testing and rerun please?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#101
No description provided.