App Center: iOS Device Enrollment MDM Not Enabled

book

Article ID: 159080

calendar_today

Updated On:

Products

Mobility Device Management

Issue/Introduction

After downloading the enrollment profiles and upon being redirected to the ACA (App Center Agent/App) the user is notified with "MDM Not Enabled".  The user is then prompted to go through the enrollment process again.

Device Error Message:  "MDM Not Enabled"

When running the "/etc/init.d/nukona-services restart " command through the terminal on the affected App Center server, the following error is produced when the rabbitmq-server attempt to start/restart:
"Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log rabbit-server"

The "/var/log/rabbitmq/startup_log" file contains the following error:
"Server Errors: {error_logger,{{2014,3,20},{2,44,37}},"Too short cookie string"

 

Cause

The rabbitmq service is not running on the App Center Front End (FE) server. There are multiple reasons this daemon does not start/restart. The following solution explains how to resolve this error by checking one of App Center's cookie files to ensure it is properly formatted after initial installation.

Resolution

1. Verify that the cookie file is not empty by running the following command:

# ls -alh /var/lib/rabbitmq

    Example output:

total 272 
drwxr-xr-x 3 rabbitmq rabbitmq 4096 Mon Da TI:ME .
drwxr-xr-x 28 root root 4096 Mon Da TI:ME ..
-r-------- 1 rabbitmq rabbitmq 0 Mon Da TI:ME .erlang.cookie
-rw-r----- 1 rabbitmq rabbitmq 213540 Mon Da TI:ME erl_crash.dump
drwxr-xr-x 4 rabbitmq rabbitmq 4096 Mon Da TI:ME mnesia

2. The ".erlang.cookie" file's size should be ~20 bytes. If it is "0" bytes, then it is empty and the following command will need to be executed:

# rm /var/lib/rabbitmq/.erlang.cookie

3. Once this completes, restart the nukona-services by running the following command:

# /etc/init.d/appcenter-services restart

4. The nukona-services should be able to start up without error and the "# ls -alh /var/lib/rabbitmq" command should show that the ".erlang.cookie" file now has a size greater than "0" bytes.

5. If the rabbitmq service still do not start verify that the proper permissions are set for the erlang.cookie by running the following command, as root:

#chmod 600 /var/lib/rabbitmq/.erlang.cookie
6. Repeat step 3 prefixing the command with "sudo".

Applies To

App Center 4.2.x to 4.4.x

RHEL/CentOS 6.4

Attachments