Pilerpurge not working
Hi team, I tried various methods to configure my purge and I tried add on crontab too but not work for me . In /usr/local/etc/piler/piler.conf I configured to retention for 60 days only . Now I need configure one more directory or other configs? I am sorry about that but I try but I am fail to this. Someone can help ? When I try put pilerpurge with piler user have a error ' command not found ' I put some configs in my crontab too the attach has contain the information . Thanks
Comments (20)
-
repo owner -
reporter Hello Janos thank you , yesterday I tried this but I have the attached error . My OS is Centos 7
sh-4.2$ /usr/local/libexec/piler/pilerpurge.py -d Traceback (most recent call last): File "/usr/local/libexec/piler/pilerpurge.py", line 254, in <module> main() File "/usr/local/libexec/piler/pilerpurge.py", line 197, in main read_options(args.config, opts) File "/usr/local/libexec/piler/pilerpurge.py", line 25, in read_options s = "[piler]\n" + open(filename, 'r').read() IOError: [Errno 2] No such file or directory: '/etc/piler/piler.conf'
-
repo owner Well, it tries to figure out where piler.conf is. if it's not /etc/piler/piler.conf, then use --config /usr/local/etc/piler/piler.conf command line option.
-
reporter Perfect and now the error is another , I look the output folder " queuedir " and is correct or maybe I need put some config in my piler.conf? Tks
File "/usr/local/libexec/piler/pilerpurge.py", line 254, in <module> main() File "/usr/local/libexec/piler/pilerpurge.py", line 197, in main read_options(args.config, opts) File "/usr/local/libexec/piler/pilerpurge.py", line 33, in read_options opts['storedir'] = config.get('piler', 'queuedir') File "/usr/lib64/python2.7/ConfigParser.py", line 340, in get raise NoOptionError(option, section) ConfigParser.NoOptionError: No option 'queuedir' in section: 'piler'
-
reporter Janos , I put the line queuedir=/var/piler/store now still running and when finish I will see that. Thanks a lot.
-
repo owner - changed status to resolved
You are welcome ;-)
-
reporter Janos, now was finished but not show any information /usr/local/libexec/piler/pilerpurge.py --config /usr/local/etc/piler/piler.conf So weird ... Hava another config for me to test ? I put 60 days but piler not delete emails
-
reporter Sorry Janos, now I have this message
[root@mailpilder piler]# vim /usr/local/libexec/piler/pilerpurge.py [root@mailpilder piler]# su piler sh-4.2$ /usr/local/libexec/piler/pilerpurge.py -d /var/piler/store/00/5a8/22/cb/400000005a8dcae127bcbcb400313bd322cb.m /var/piler/store/00/5a8/fb/6c/400000005a8dcae12e5f0e3c00cb7c49fb6c.m /var/piler/store/00/5a8/ed/9b/400000005a8dcb05173882ec0006899aed9b.m /var/piler/store/00/5a8/5a/00/400000005a8dcb5a23be044c00ff795e5a00.m /var/piler/store/00/5a8/cc/da/400000005a8dcb5b1673892400359ea4ccda.m /var/piler/store/00/5a8/0b/51/400000005a8dcb5c165ceffc00eb931e0b51.m /var/piler/store/00/5a8/9a/e7/400000005a8dcb7b042b4c8400e3dd249ae7.m /var/piler/store/00/5a8/7f/3a/400000005a8dcb940c425804002f6adc7f3a.m /var/piler/store/00/5a8/e5/88/400000005a8dcb9515897f14002f2349e588.m /var/piler/store/00/5a8/e6/06/400000005a8dcbce2317d93c004a8d4ae606.m /var/piler/store/00/5a8/08/d7/400000005a8dcbd403e47f840088fdac08d7.m /var/piler/store/00/5a8/12/1b/400000005a8dcbd9154b31dc0058e85a121b.m /var/piler/store/00/5a8/80/24/400000005a8dcbfc178d3a6c00a953338024.m /var/piler/store/00/5a8/42/85/400000005a8dcc0d0c005d6400847dd74285.m /var/piler/store/00/5a8/57/4c/400000005a8dcc38090044940042ba7c574c.m /var/piler/store/00/5a8/83/d8/400000005a8dcc4e2d7508140032e4fd83d8.m /var/piler/store/00/5a8/52/3a/400000005a8dcc7815bba30400b5fd0b523a.m /var/piler/store/00/5a8/74/69/400000005a8dcc7c1465bf94008b52597469.m /var/piler/store/00/5a8/07/c1/400000005a8dcc7e281479a400ccddcd07c1.m /var/piler/store/00/5a8/ba/de/400000005a8dcc7f3346de84009bf4a9bade.m /var/piler/store/00/5a8/d2/eb/400000005a8dcc800b86ff1400fee0add2eb.m /var/piler/store/00/5a8/e8/f4/400000005a8dcc8a31e00f0c00fada12e8f4.m /var/piler/store/00/5a8/52/d6/400000005a8dccb0268ca8f40055025452d6.m /var/piler/store/00/5a8/26/4b/400000005a8dccb925f2225c00dae89e264b.m /var/piler/store/00/5a8/27/02/400000005a8dccdc14e4e65c000391b52702.m /var/piler/store/00/5a8/ae/60/400000005a8dcd0b20915d3c0072ff99ae60.m /var/piler/store/00/5a8/c2/9d/400000005a8dcd170db7352400edd1fdc29d.m /var/piler/store/00/5a8/e2/64/400000005a8dcd190c89f40c0045d918e264.m /var/piler/store/00/5a8/87/08/400000005a8dcd4b2027839400c46ff18708.m /var/piler/store/00/5a8/ae/71/400000005a8dcd680526cb5400568de0ae71.m /var/piler/store/00/5a8/57/83/400000005a8dcd70117477bc00fc40c75783.m /var/piler/store/00/5a8/da/66/400000005a8dcd9c1ad4d7d4001d85deda66.m And yes the metadate is the same
[7932761L, 7937982L, 7938627L]
-
repo owner OK, then omit the -d option to delete these emails.
-
reporter Janos I omit the -d but not work . The emails not was deleted . Where I went wrong ? In my health still showing the full disk
-
repo owner Please show me ls -la /var/piler/store/00/5a8/da/66/400000005a8dcd9c1ad4d7d4001d85deda66.m output
-
reporter Hello Janos, this folder don'
t show anything files but have another .
-
repo owner I don't understand, please rephrase it. Also I asked for a simple command output, and you didn't show its result to me.
-
reporter I don't know but this folder /var/piler/store/00/5a8/da/66/400000005a8dcd9c1ad4d7d4001d85deda66.m doesnt exist anymore and I send to you the command for another folder that's it.
[root@mailpilder ~]# ls -la /var/piler/store/00/5a8/da/66/400000005a8dcd9c1ad4d7d4001d85deda66.m output ls: cannot access /var/piler/store/00/5a8/da/66/400000005a8dcd9c1ad4d7d4001d85deda66.m: No such file or directory ls: cannot access output: No such file or directory
** I found other folder and run ls -la
[root@mailpilder 66]# ls -la 400000005a83555826902b6400529753da66.m -rw-r-----. 1 piler piler 5208 Feb 13 19:14 400000005a83555826902b6400529753da66.m
-
repo owner You just don't get it, do you? I saw 400000005a8dcd9c1ad4d7d4001d85deda66.m in the list of emails to be purged. Now that you have run pilerpurge it doesn't exist anymore. Why? Because the purging utility has removed it!
So the bottomline is that the purging feature works properly, and now you understand why I'm not interested in seeing just some not purged email. So case is closed.
-
reporter I am sorry Janos , I ran the /usr/local/libexec/piler/pilerpurge.py -d and some folder show up to me but now the same folder in the past do not show anymore . I understand that but if the purge is working why not aged emails not disappear for me on dashboard? In conf file I put 60 days and not work , the emails still growing . Thank you for your attention
-
repo owner Sigh... Trust me on this: just run pilerpurge utility daily (as it should be in piler's crontab), and you'll be fine.
-
reporter Hi Janos, thank you for your great help and patient . I need add with piler user this lines in my cron? /usr/local/libexec/piler/pilerpurge.py -d
My cron have some lines, if you don't mind please see the image , thank you
-
repo owner Your current cronjobs look fine, no need for anything to add. You are just fine.
-
reporter Perfect . Thank you again .
- Log in to comment
Try running the pilerpurge.py script as user piler in dry run mode. Eg. /usr/local/libexec/piler/pilerpurge.py -d then it would print only what it wanted to remove. Also check the metadata table, and make sure that there are some emails where the 'retained' column value is less than the current timestamp.