- changed status to resolved
Pilerimport error
Hello, kudos for this great software. I have an issue importing messages from an imap server.
Any time a run:
pilerimport -i mail.hyos.com -u dev@hyos.com -p xxxxxx
I get:
error parsing the configfile: /usr/local/etc/piler/piler.conf ERR: reading cipher key
I already check the permissions, I am running the command from /var/piler/imap where piler has rwx , I get the same result from cd /tmp or cd /var/tmp.
I also recreate the cipher key via checking some other posts
dd if=/dev/urandom bs=56 count=1 of=/usr/local/etc/piler.key chmod 640 /usr/local/etc/piler.key
same result,
Is there a way to debug pilerimport in a verbose way to find more about the cause of the issue? I am using piler -v : 1.2.0 build 952
Any thoughts?
Comments (9)
-
repo owner -
reporter Thanks for you response, I place it there. Still the same.
-
reporter This is the current status:
root@mailpiler:/usr/local/etc/piler# ls -l total 32
-rwxr--r-- 1 piler piler 1067 Apr 11 19:23 piler.conf
-rw-r----- 1 root piler 1076 Mar 20 20:47 piler.conf.dist
-rwxr--r-- 1 piler piler 56 Apr 11 19:33 piler.key
-rw-r----- 1 piler piler 56 Mar 20 20:52 piler.key.backup
-rw------- 1 root staff 5256 Mar 20 20:52 piler.pem
lrwxrwxrwx 1 root staff 29 Mar 21 15:40 sphinx.conf -> /etc/sphinxsearch/sphinx.conf
-rw-r--r-- 1 root piler 6299 Mar 20 20:47 sphinx.conf.dist
root@mailpiler:/usr/local/etc/piler#
root@mailpiler:/usr/local/etc/piler# cd /var/tmp
root@mailpiler:/var/tmp# pilerimport -i mail.hyos.com -u dev@hyos.com -p xxxxx
error parsing the configfile: /usr/local/etc/piler/piler.conf
ERR: reading cipher key
root@mailpiler:/var/tmp#
Still getting the same error.....
-
repo owner Run pilerimport with strace to see what's going on:
strace pilerimport -i mail.hyos.com -u dev@hyos.com -p xxxxxx
(And thanks for formatting your message!)
-
reporter The least that I can do (about the formatting).
Got it, were the permissions of the /usr/local/etc/piler directory, not the files. However what exactly they should be?
Thanks again for your help
-
repo owner The directory permissions may be 755. All the files should be owned by root:piler, and the permissions should be appropriate:
piler.key: 640 piler.pem: 600 piler.conf: 640
-
reporter Why the status still shows pending....
-
repo owner If it's a new problem, then open a new issue for it.
-
reporter Not sure, I though they were related because both deal with the imap import functionality but this case using the GUI, however I will follow your suggestion.
Thanks again....
- Log in to comment
Put the key file to /usr/local/etc/piler, ie. /usr/local/etc/piler/piler.key. Recently I've moved all piler related config files to ${sysconfdir}/piler