Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10676

Apicast crashloop when setting a large number of service ids in APICAST_SERVICES_LIST

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 2.14.0 GA
    • Gateway
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      When specifying a large number of services in APICAST_SERVICES_LIST apicast fails to start sometimes with the following or similar error message:

       

      nginx: [emerg] Lua code block missing the closing long bracket "]]" in /tmp/lua_CspcvF:193 

      Inspecting the tmp file shows that there is no missing closing brackets so it's unclear why this error message is shown but it would appear to be a limitation of the code or with lua itself.

      In addition, restarting the gateway sometimes results in a successful start. The line referenced is pointing to a block of code that contains all the environment variables present. Each restart results in the order of these env vars to change so it would seem that the issue or limitation is with the total length of the env vars and not just the one variable.

      Attached is the following:
      `lua_CspcvF` - The temp file from the error message above
      `lua_IfXNqt` - A second temp file from the same deployment after it restarted successfully from the crash. (*NOTE: The same configuration is used but note that the env var order in the code has changed).

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-spoole Shannon Poole
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: