Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-315

Agent fails to start with insufficient shared memory

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.0
    • 4.2.0.0
    • Web Agents
    • Using Docker version 1.12.3

      Description

      Following successful installation of agent 4.1.0 into apache httpd 2.2, the httpd process fails to start.
      In the error_log, the amagent reports

      Wed Dec 14 10:15:29 2016] [error] amagent_init() status: no space left on device
      Configuration Failed
      am_log_init() free disk space on the system is only 67108864 bytes, required 134900080 bytes
      

      This is confusing as the issue isn't related to available disk space, but rather to the available shared memory, as reported by statfs on the /dev/shm mount.

      The problem is exacerbated by the misleading "required" value, as 135mb is far short of the amount that is actually required. In order to start httpd,
      I had to use trial and error to increase the amount of shared memory in the container until I hit a value that worked, which is 1024mb. In docker, this is achieved by varying the value of the shm_size property.

      It would be better if there was a more informative error message.

        Attachments

          Issue Links

            Activity

              People

              mareks Mareks Malnacs
              richard.ward Richard Ward
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: