jsreport / jsreport-fs-store-aws-s3-persistence

Make jsreport fs store persisting entities to aws s3
5 stars 4 forks source link

after reporter initialized, infinite loop of s3 lock cycle #7

Closed adamclark64 closed 3 years ago

adamclark64 commented 3 years ago

when starting server after following https://jsreport.net/learn/fs-store#aws-s3

server logs reporter initialized but is followed by a never ending loop of the s3 lock cycle that prevent the studio from being accessible.

2021-02-11T19:21:00.258Z - info: Verifying license key free
2021-02-11T19:21:00.258Z - info: Using free license
2021-02-11T19:21:00.261Z - info: reporter initialized
2021-02-11T19:21:05.267Z - debug: Locking s3 store
2021-02-11T19:21:05.857Z - debug: Waiting for s3 lock
2021-02-11T19:21:06.377Z - debug: s3 lock acquired
2021-02-11T19:21:06.377Z - debug: releasing s3 lock
2021-02-11T19:21:06.894Z - debug: s3 lock released
2021-02-11T19:21:10.266Z - debug: Locking s3 store
2021-02-11T19:21:10.786Z - debug: Waiting for s3 lock
2021-02-11T19:21:11.304Z - debug: s3 lock acquired
2021-02-11T19:21:11.304Z - debug: releasing s3 lock
2021-02-11T19:21:11.812Z - debug: s3 lock released
2021-02-11T19:21:11.812Z - debug: Locking s3 store
2021-02-11T19:21:12.317Z - debug: Waiting for s3 lock
...

extensions setup as folows:

"fs-store": {
            "persistence": {
                "provider": "aws-s3"
            },
            "sync": {
                "provider": "aws-sns"
            }
        },
        "fs-store-aws-sns-sync": {
            "accessKeyId": "MY_KEY",
            "secretAccessKey": "MY_SECRET"
        },
        "fs-store-aws-s3-persistence": {
            "accessKeyId": "MY_KEY",
            "secretAccessKey": "MY_SECRET",
            "bucket": "js-report-template-store",
            "lock": {
                "queueName": "jsreport-lock.fifo",
                "region": "us-east-2"
            }
        },

if i set "enabled": false in the lock config it stops that but the studio is still not coming up on port 5488

adamclark64 commented 3 years ago

Not sure what the cause was but my problem is gone. studio comes up and is saving to my s3 bucket.