The user that is running postgresql and libresource should have both the right to read and write in the work/files directory…
You need to add them in a same group and grant this group to be read/write in "work/files" directory...
In such crash at bootstrap, you will need to clear your database before a new try...
It's a well know problem, and we usually simplify the problem by running JOnAS and Postgres with the same user...
Regards