Error when scaling docker containers
When running more than instance of jsreport by scaling up the containers, I get the following error.
2018-09-18T03:21:53.063Z - error: Error when performing remote sync Error: EEXIST: file already exists, open '/app/data/fs.lock'
What am I missing?
You use multiple containers mapped to the same volume where you store jsreport data (templates...) right?
That's exactly correct. Whats a proper pattern to deploy when I need to scale?
This should work and it looks like our bug at the first glance.
We take a look and come back to you.
What jsreport version you have?
Do run docker host on windows or linux?
pulled the latest from docker hub yesterday.
Running on centos 7
I fixed the issue in email@example.com by increasing timeouts for lock files used to avoid concurrent writes to the file system.
You need to create your docker images which has
npm i firstname.lastname@example.org wait until we release the next jsreport hotfix.
Not sure when we release it.
Thanks for the quick response. I will try building my own image with this change.