Reports not storing



  • Hi jsreport,

    We have noticed that our reports are not appearing in the 'reports' list after generation for the last few months. We are running 2.11.0. The same thing happens when we use .NET to send requests as well as using the jsreport Studio.

    Here is the listing (Reports up to May 2021):
    0_1628645440687_upload-83f81b21-ae6b-4327-80de-c4d327cf9f6f

    Here is what is stored in jsreport/data/storage (All reports right up to yesterday when I produced one - red shows the reports displayed in jsreport Studio):
    0_1628645468484_upload-0457640f-e1bd-476a-a3dc-2f8fa9a49eed

    It appears that the reports list is from jsreport/data/reports file which appears to only go up to May 2021. Is there something that could be stopping this list from updating correctly? It is happening on my local environment and our azure docker production servers.

    Thanks,

    Cameron



  • Hi,

    note the requests from the studio don't store the report output by default.
    Do your API requests instruct jsreport to persist the report output?

       {
          "template": { "name" : "My template" },
          "data" : { ... },
          "options": {
              "reports": { "save": true }
          }
       }
    

    don't you have a cleanup policy in your configuration?

    { 
      "extensions": { 
        "reports": {
          // how often the cleanup runs
          "cleanInterval": "5m",
          // how much old reports should be deleted
          "cleanTreshold": "1d"
        }
      }
    }
    

    The debug logs for the particular report should have a line about storing or not storing the report. Like
    2021-08-11T08:32:15.787Z - debug: Skipping storing report.

    https://jsreport.net/learn/reports


Log in to reply
 

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