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

am_log_init() error when log folders are not present in parent directory

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.0-34
    • 4.2.0.0
    • Nginx Agents
    • None
    • NGINX agents CentOS7 64 bit - 4.1.0-34
      NGINX/1.11.10 (nginx-plus-r12-p3);
      Varnish4 agent (Linux)

      Description

      When the NGINX is started it i produces the error :  am_log_init() error: no space left on device (-31). 

      This caused by a missing logs folder in its parent. A reference to "../log" directory which creates am_cache_shm_1 and am_log_shm_1 files in this directory. 

      Steps to replcate:

      1. create a test folder in /test/

      2. install agentadmin using --i

      3. copy the "openam_ngx_auth_module.so" found in /path/to/nginxagent/lib to the /test/ directory

      4. copy the "agent.conf" found in /path/to/nginxagent/insances/agent_1/config to the /test/ directory

      5. Add the references to openam_ngx_auth_module.so to   nginx conf e.g. "load_module /test/openam_ngx_auth_module.so;"

      6. Add the references to agent.conf to   default conf e.g. "openam_agent_configuration /test/conf/agent.conf;"

      7. start nginx 

      Some versions of the agents allow for an environment variable to be set so the logs folder can referenced in a different location.

        Attachments

          Activity

            People

            mareks Mareks Malnacs
            eliot.kerslake Eliot Kerslake [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: