Application error when applying application settings in Azure



  • Hi,

    We have a custom version of jsreport 2.6.0-full with the latest pdf-utils running in a docker container but are getting an applicaiton error (web page just says applicaiton error) when applying extension settings in Azure which is our preference e.g. extensions_authentication_admin_password or extensions_fsStoreAzureSbSync_connectionString . We have tried placing the settings in a config file and the username and password are working but not the Azure storage. See config file below:

    {
    "allowLocalFilesAccess": true,
    "licenseKey":"keyhere",
    "extensions":
    {
    "authentication" : {
    "cookieSession": {
    "secret": "secret_here"
    },
    "admin": {
    "username": "usernamehere",
    "password": "passwordhere"
    }
    },
    "fsStoreAzureStoragePersistence":{
    "accountName":"accountNamehere",
    "accountKey":"keyhere"
    },
    "fsStore":{
    "persistance":{"provider":"azure-storage"}
    },
    "fsStoreAzureSbSync":{
    "connectionString":"connectionstringhere"
    }
    }
    }



  • This post is deleted!


  • Update: No errors now but on every restart the persistance is not working and sample file creation is being requested.

    [
    {
    "name": "DOCKER_REGISTRY_SERVER_PASSWORD",
    "value": "",
    "slotSetting": false
    },
    {
    "name": "DOCKER_REGISTRY_SERVER_URL",
    "value": "https://index.docker.io",
    "slotSetting": false
    },
    {
    "name": "DOCKER_REGISTRY_SERVER_USERNAME",
    "value": "",
    "slotSetting": false
    },
    {
    "name": "extensions_authentication_admin_password",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "extensions_authentication_admin_username",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "extensions_authentication_cookieSession_secret",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "extensions_chromePdf_timeout",
    "value": "1000000",
    "slotSetting": true
    },
    {
    "name": "extensions_fsStoreAzureSbSync_connectionString",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "extensions_fsStoreAzureStoragePersistence_accountKey",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "extensions_fsStoreAzureStoragePersistence_accountName",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "extensions_fsStoreAzureStoragePersistence_provider",
    "value": "azure-storage",
    "slotSetting": true
    },
    {
    "name": "licenseKey",
    "value": "",
    "slotSetting": true
    },
    {
    "name": "phantom_numberOfWorkers",
    "value": "8",
    "slotSetting": true
    },
    {
    "name": "templatingEngines_numberOfWorkers",
    "value": "8",
    "slotSetting": true
    },
    {
    "name": "templatingEngines_strategy",
    "value": "http-server",
    "slotSetting": true
    }
    ]



  • You seem to be missing the

    "store": {
      "provider": "fs"
    }
    

    Note it is a good idea to check the jsreport output logs.
    You would likely see there that the memory store is used.



  • @jan_blaha thanks for that I added the setting and restarted the app but it doesn't to be working. How do I access the output logs and does the following setting need to be changed:

    {
    "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
    "value": "false",
    "slotSetting": false
    }



  • How do I access the output logs

    This is specific to azure web apps. Not the jsreport. I don't know from the top of my head.
    Try to search the azure web app docs to find out where it provides messages printed to the std out.
    You can also connect to the azure web app and then to the running docker container. There is reporter.log which has the output stored as well.


Log in to reply
 

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