Hi Janos,
You were correct. All directories were fine except the parent
/var/piler/store, which was owned by root:root.
Changing it to piler:piler fixed the issue.
Many thanks.
Michael.
On 4/10/2018 10:17 PM, Janos SUTO wrote:
Hello Michael,
check the ownership on all the directories down to the .m file.
Janos
------------------------------------------------------------------------
*From:* Michael Mansour
*Sent:* Thu Oct 04 14:13:49 GMT+02:00 2018
*To:* piler-user@list.acts.hu
*Subject:* Moved piler VM and then rsync'ed piler store
Hi Piler users,
I had to shutdown a data centre and move to another data centre.
The original piler VM was an easy copy from one to the other, all worked.
The store here:
/var/piler/store
was on an NFS share in the old data centre. I create the same NFS in the
new data centre, then rsync'ed using:
rsync -avz etc etc
from one to the other, for everything in /var/piler/store.
Everything moved across, then I change permissions on the new
/var/piler/store using:
cd /var/piler/store/
chown -R piler:piler 00
find . -type d -exec chmod 750 {} \;
find . -type f -exec chmod 640 {} \;
This ran for a while but eventually completed.
When I got to the Piler interface with Auditor account, I can see the
messages there but when clicking on any of the messages I can't view
them and instead, get this in the logs:
Oct 4 21:52:40 server pilerget[19390]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:40 server pilerget[19393]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:49 server pilerget[19400]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:49 server pilerget[19403]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:51 server pilerget[19408]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:51 server pilerget[19411]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:51 server pilerget[19416]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
Oct 4 21:52:51 server pilerget[19419]:
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m:
cannot open()
and we do see:
# ll /var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m
-rw-r----- 1 piler piler 1072 Sep 28 23:01
/var/piler/store/00/5ba/b3/f0/400000005bae25ba19a0303400b43bd1b3f0.m
so permissions are correct.
Any ideas what I did wrong ?
Thanks.
Michael.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus