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



  • Thank you.
    I fixed the issue in jsreport-fs-store@2.2.0 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 jsreport-fs-store@2.2.0 or 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.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.