Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

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

can't enrol new iPhone using profile manager

I had an iPhone 4 enrolled using profile manager on Lion Server, no problem. Push notifications were working, all was good.


Then I bought an iPhone 4S, and took the micro-SIM card out of the iPhone 4, and stuck it into the iPhone 4S, and tried to enroll the iPhone 4S. I'm getting errors on the console:


ProfileManager[462]: ActiveRecord::StatementInvalid (PGError: ERROR: duplicate key value violates unique constraint "devices_ICCID_key"

DETAIL: Key ("ICCID")=(8930 2720 4010 2940 1034) already exists.


and the device shows up as "new device" and the push notifications just hang, it won't get enrolled.


I did de-enroll the old one first before trying to enroll the new one...


any ideas? this kind of *****

Posted on Nov 2, 2011 6:29 AM

Reply
24 replies

Jan 15, 2013 4:55 AM in response to plg

Hi all reader of this thread,

please commit a feedback about this profile manager issue at http://www.apple.com/feedback

I've gone through different Apple support departments, and at least the German Apple Care Mac OS X Server devision had told me, that the advisor personal knows about this ICCID problem. He often had cased with this issue and he suggested the same solution to alter the devicemanager database with SQL commands.

BUT THIS CAN'T BE THE SOLUTION Apple will give fore their customers!

We have to inform Apple that the current implementation of profile manager is unsuitable.


Here is a thread how to update the old effect iOS device so it's still present in the database:

https://discussions.apple.com/thread/3387663?answerId=17318643022#17318643022


Thanks

Jens

Jun 23, 2013 7:33 PM in response to Gnitset

The Socket directory doesn't exist on my server.... Have I done something wrong? I can enroll, manage, and remove devices, however the whole experience is slow, a lot of the pushes fail instantly... very confusing and annoying.. I was hoping to reindex all the tables following a tutorial from krypted.com but I keep getting the FATAL: device_management does not exist error...


I have setup pgAdmin3 and connected to the postgres database but I can't see a table called device_management... has something changed in OS X Server 2.2.1?


Thanks,

Jun 24, 2013 2:28 AM in response to CMIT

I just checked, I'm running Server 2.2.1 and this command still works for me:

sudo -u _postgres psql -h '/Library/Server/PostgreSQL For Server Services/Socket/' device_management


if you run this command it should look something like this:

$ sudo ls -la '/Library/Server/PostgreSQL For Server Services/Socket/'

total 8

drwxr-xr-x 4 _postgres _postgres 136 14 Mar 10:09 .

drwxr-xr-x 6 _postgres _postgres 204 9 Jan 22:44 ..

srwxrwx--- 1 _postgres _postgres 0 24 Jun 11:02 .s.PGSQL.5432

-rw------- 1 _postgres _postgres 126 24 Jun 11:02 .s.PGSQL.5432.lock

Aug 5, 2013 5:22 AM in response to plg

Hey


How to delete a iPad when it dos'et have a ICCID (no simcard) and you only know the Serial no.


I usually use this command when I delete a device.


sudo -u _postgres psql -h '/Library/Server/PostgreSQL For Server Services/Socket/' device_management


DELETE FROM devices WHERE "ICCID" LIKE '8945 0133 1109 0152 5806';



Thanks

can't enrol new iPhone using profile manager

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