Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2472

API is enabled but cannot be reached because it says it is disabled

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • None
    • Professional Edition
    • API
    • VM running on ESX 5.5
      32 GB of RAM
      8 CPU
      Description: Ubuntu 14.04.1 LTS
      Release: 14.04
      Codename: trusty

    Description

      I have updated to version17.10.8918 and the API is set to true in config.php. When I try to access the API via either web browser or using curl

      curl -k -u user:pass https://observium.iops.pivotal.io/api/v0/devices/

      The API is disabled

      We noticed this with the previous version that we were running so I upgraded to see if it was something that was fixed but we still receive the disabled notification.

      Settings from config.PHP

       

      // Enable the API

      $config['api']['enabled'] = 1;

      $config['api']['module']['inventory']   = 1;    // enable or disable the inventory module

      $config['api']['module']['billing'] = 0;    // enable or disable the billing module

      $config['api']['module']['packages']    = 1;    // enable or disable the packages module

       

       

       

      Attachments

        Activity

          [OBS-2472] API is enabled but cannot be reached because it says it is disabled

          hint :

           

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

          d

           

          adama Adam Armstrong added a comment - hint :   d d d d d d d d d d d d d d d d d d d d d d d d d d d d d  

          Please read the documentation carefully : 

          http://docs.observium.org/api/

          adama Adam Armstrong added a comment - Please read the documentation carefully :  http://docs.observium.org/api/
          awesomazing Kyle Kot added a comment -

          Even with it set to = TRUE 

           

          // Enable the API
          $config['api']['enabled'] = TRUE;
          $config['api']['module']['inventory'] = TRUE; // enable or disable the inventory module
          $config['api']['module']['billing'] = TRUE; // enable or disable the billing module
          $config['api']['module']['packages'] = TRUE; // enable or disable the packages module

          Still receive the same error The API is disabled

          awesomazing Kyle Kot added a comment - Even with it set to = TRUE    // Enable the API $config ['api'] ['enabled'] = TRUE; $config ['api'] ['module'] ['inventory'] = TRUE; // enable or disable the inventory module $config ['api'] ['module'] ['billing'] = TRUE; // enable or disable the billing module $config ['api'] ['module'] ['packages'] = TRUE; // enable or disable the packages module Still receive the same error The API is disabled
          adama Adam Armstrong added a comment - - edited

          As per docs, http://docs.observium.org/api/#enabling

          $config['api']['enable'] = TRUE;

          adama Adam Armstrong added a comment - - edited As per docs, http://docs.observium.org/api/#enabling $config ['api'] ['enable'] = TRUE;
          awesomazing Kyle Kot added a comment -

          Also I tried to set  = TRUE instead of 1 and it also fails.

          awesomazing Kyle Kot added a comment - Also I tried to set  = TRUE instead of 1 and it also fails.

          People

            adama Adam Armstrong
            awesomazing Kyle Kot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: