Skip navigation

can't enrol new iPhone using profile manager

4997 Views 24 Replies Latest reply: Aug 10, 2013 1:39 PM by MBrown70 RSS
  • cragiboy Level 1 Level 1 (5 points)
    Currently Being Moderated
    Jan 9, 2013 5:39 AM (in response to plg)

    since updating to OS X Server 2.2 i can not connect to database.

     

    the command "sudo -u _devicemgr psql device_management" is not working.

     

    error: psql: FATAL:  role "_devicemgr" does not exist

     

    how can i connect to database to delete an ICCID?

  • Gnitset Calculating status...
    Currently Being Moderated
    Jan 9, 2013 5:07 PM (in response to cragiboy)

    They changed how to connect to postgres.

     

    Try this instead:

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

     

    Hope it works.

  • cragiboy Level 1 Level 1 (5 points)
    Currently Being Moderated
    Jan 9, 2013 11:02 PM (in response to plg)

    this works fine!

     

    thank you Gnitset.

  • Sensemann Calculating status...
    Currently Being Moderated
    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/message/17318643#17318643

     

    Thanks

    Jens

  • sid1992 Calculating status...
    Currently Being Moderated
    Jan 23, 2013 6:37 AM (in response to Sensemann)

    Hello

     

    I have download the pgAdmi but i can't find the profile manager database, can you tell me how can connect the the profile manager database in pgAdmin?

     

    Thank you very very much

     

    Greeting

  • CMIT Calculating status...
    Currently Being Moderated
    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,

  • Gnitset Level 1 Level 1 (0 points)
    Currently Being Moderated
    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

  • Brinken Calculating status...
    Currently Being Moderated
    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

  • Gnitset Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 5, 2013 5:36 AM (in response to Brinken)

    Hi

     

    You can list you devices by running this command in psql:

    SELECT id,"DeviceName" FROM devices;

     

    And the delete by id:

    DELETE FROM devices WHERE id=X; -- Replace X with the id.

  • MBrown70 Calculating status...
    Currently Being Moderated
    Aug 10, 2013 1:39 PM (in response to plg)

    I found the easiest solution was to go to my mobile provider and get a new sim card.  Problem solved without risky sql statements. Going foward if I get a new device I will just get a new sim card, this took hours to figure out so the $10 spent on the new card was well worth it.

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (4)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.