Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Profile Manager cannot push profile

Recently I found that my Lion Server cannot push profiles to my devices and checked in console log about ProfileManager that has error as follow:


2/3/12 10:58:05.463 AM ProfileManager: NoMethodError (undefined method `[]' for nil:NilClass):

app/models/vpn_knob_set.rb:88:in `generate_payload_hash'

lib/profile_manager.rb:506:in `generate_profile_section_hash'

lib/profile_manager.rb:448:in `generate_profile'

lib/profile_manager.rb:446:in `generate_profile'

lib/profile_manager.rb:485:in `generate_raw_profile'

lib/profile_manager.rb:496:in `generate_signed_profile'

app/helpers/task_helper.rb:302:in `generate_next_request'

app/helpers/task_helper.rb:377:in `handle_connect'

app/controllers/device_controller.rb:95:in `connect'

app/controllers/application_controller.rb:71:in `give_session_to_models'

thin (1.2.7) lib/thin/connection.rb:76:in `pre_process'

thin (1.2.7) lib/thin/connection.rb:74:in `catch'

thin (1.2.7) lib/thin/connection.rb:74:in `pre_process'

thin (1.2.7) lib/thin/connection.rb:57:in `process'

thin (1.2.7) lib/thin/connection.rb:42:in `receive_data'

eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'

eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'

thin (1.2.7) lib/thin/backends/base.rb:57:in `start'

thin (1.2.7) lib/thin/server.rb:156:in `start'

thin (1.2.7) lib/thin/controllers/controller.rb:80:in `start'

thin (1.2.7) lib/thin/runner.rb:177:in `send'

thin (1.2.7) lib/thin/runner.rb:177:in `run_command'

thin (1.2.7) lib/thin/runner.rb:143:in `run!'

/usr/share/devicemgr/webserver/thin:8


How to solve this problem? Thank you in advance.

Mac mini, Mac OS X (10.7.3)

Posted on Mar 1, 2012 7:41 PM

Reply
7 replies

Mar 19, 2012 12:23 PM in response to hin wing

Hi


I had the same problem and managed to overcome it by editing the ruby code supplied by Apple.


It seems that if you define a VPN payload, it is expecting you to define some IPSEC settings. We only use L2TP and PPTP and the Ruby code is checking the IPSEC data and throwing a NilClass exception.


To get around this, you can simply do the following:


$ cd /usr/share/devicemgr/backend/app/models

$ sudo cp vpn_knob_set.rb vpn_knob_set.rb.orig


Then edit the file 'vpn_knob_set.rb' and comment out lines 88, 89 and 90 by inserting a '#' at the beginning of each of the 3 lines.


Hope this helps.


Simon

Profile Manager cannot push profile

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.