1 2 Previous Next 15 Replies Latest reply: Feb 2, 2014 2:55 PM by redshift82r
kunikatsu Level 1 Level 1 (0 points)

Hi, everyone hope I could find some help. I am having problem with enrollment of my clients to my server.

 

Below are some of my Server Log error:-

Unable to create ProfileManager log file at '/var/log/devicemgr/profilemanager.log' (No such file or directory)

www com.apple.launchd[1] (com.apple.DeviceManagement.php-fpm[65995]): Exited with code: 78

ruby[65926]: Unable to create ProfileManager log file at '/var/log/devicemgr/

(com.apple.DeviceManagement.php-fpm): Throttling respawn: Will start in 10 seconds

 

an I have an airport ext problem due to the latest update to server app.

 

I did try this:-

http://support.apple.com/kb/HT5349

 

but it didnt work..

 

Many Thanks.


Mac mini Server (Mid 2011), OS X Mountain Lion (10.8.2), Sever app 2.1.1
  • 1. Re: Profile Manager cannot enrol any device...
    redshift82r Level 2 Level 2 (325 points)

    Justin

    Try

     

    1. $ sudo touch /var/log/devicemgr/profilemanager.log

    2. $ sudo chmod 0640 /var/log/devicemgr/profilemanager.log

    3. $ sudo chown _devicemgr:admin /var/log/devicemgr/profilemanager.log

     

    Cheers

    Gerry

  • 2. Re: Profile Manager cannot enrol any device...
    kunikatsu Level 1 Level 1 (0 points)

    Hi Gerry,

     

    Thanks for your reply.

     

    I got the following return after sudo:-

    sudo touch /var/log/devicemgr/profilemanager.log

    touch: /var/log/devicemgr/profilemanager.log: No such file or directory

     

    sudo chmod 0640 /var/log/devicemgr/profilemanager.log

    chmod: /var/log/devicemgr/profilemanager.log: No such file or directory

     

    sudo chown _devicemgr:admin /var/log/devicemgr/profilemanager.log

    chown: /var/log/devicemgr/profilemanager.log: No such file or directory

     

    I tried to create the directory and profilemanager.log with finder under server app and tried again but got the same result.

  • 3. Re: Profile Manager cannot enrol any device...
    redshift82r Level 2 Level 2 (325 points)

    Hi Justin,

     

    It's really quite challenging helping you in this way!  You should have a look at what those commands I gave you actually do via

     

    $ man "command"

    $ man touch

    $ man chown

    $ man chmod

     

    Creating a directory via Finder is going to set it up with the wrong permissions so , was the devicemgr directory not present at all?

     

    If not, then by nuking your devicemgr setup, you might well have deleted important directories.

     

    So first up try

    $ ls -aFl /var/log

    $ ls -aFl /var/log/devicemgr

     

    And then Post the results

     

    Also

    $ man ls

     

    Cheers

    Gerry

  • 4. Re: Profile Manager cannot enrol any device...
    redshift82r Level 2 Level 2 (325 points)

    (Obviously don't post results of "man ls")!

     

    What version of OS X server are you running ? ML or Lion?

  • 5. Re: Profile Manager cannot enrol any device...
    kunikatsu Level 1 Level 1 (0 points)

    Hi Gerry,

     

    Yup, there is no folder name devicemgr undervar\log

     

    www:~ admin$ /var/log

    -bash: /var/log: is a directory

    www:~ admin$ /var/log/devicemgr

    -bash: /var/log/devicemgr: No such file or directory

     

    ok I learn a new command today. man "command"

     

    I am running ML with server app 2.1.1

     

    Justin

  • 6. Re: Profile Manager cannot enrol any device...
    redshift82r Level 2 Level 2 (325 points)

    Justin - don't type the file or directory name by itself from the command line unless you know what it does- that's dangerous......

     

    Again - please post the output of

     

    $ ls -aFl /var/log

     

    Then well go to the next step!

  • 7. Re: Profile Manager cannot enrol any device...
    kunikatsu Level 1 Level 1 (0 points)

    Hi Gerry,

     

    Thanks. I will take note of it.

     

    www:~ admin$ ls -aFl /var/log

    total 7472

    drwxr-xr-x  69 root             wheel            2346 Nov 12 00:30 ./

    drwxr-xr-x  29 root             wheel             986 Oct 17 18:01 ../

    drwxrwx---   8 root             admin             272 Nov 12 00:00 DiagnosticMessages/

    drwxr-xr-x   6 root             wheel             204 Nov 12 12:54 apache2/

    -rw-r--r--   1 root             wheel             195 Nov  8 05:32 appfirewall.log

    drwxr-xr-x  40 root             wheel            1360 Nov 12 12:32 asl/

    drwxr-xr-x   5 _calendar        _calendar         170 Nov  8 05:31 caldavd/

    lrwxr-xr-x   1 root             wheel              25 Nov  8 05:33 collabd@ -> /Library/Server/Wiki/Logs

    drwxr-xr-x   2 root             wheel              68 Nov  4 22:54 com.apple.launchd/

    drwx------   2 justin           wheel              68 Oct 18 17:15 com.apple.launchd.peruser.1025/

    drwx------   2 ghchan           wheel              68 Oct 23 12:37 com.apple.launchd.peruser.1026/

    drwx------   2 hocklye          wheel              68 Oct 23 12:38 com.apple.launchd.peruser.1027/

    drwx------   2 jowell           wheel              68 Oct 23 12:40 com.apple.launchd.peruser.1028/

    drwx------   2 jasmine          wheel              68 Oct 23 12:42 com.apple.launchd.peruser.1029/

    drwx------   2 hilda            wheel              68 Oct 23 12:43 com.apple.launchd.peruser.1030/

    drwx------   2 alice            wheel              68 Oct 23 12:44 com.apple.launchd.peruser.1031/

    drwx------   2 yee              wheel              68 Oct 23 12:47 com.apple.launchd.peruser.1032/

    drwx------   2 zyann            wheel              68 Oct 23 12:48 com.apple.launchd.peruser.1033/

    drwx------   2 grace            wheel              68 Oct 23 12:50 com.apple.launchd.peruser.1034/

    drwx------   2 irene            wheel              68 Oct 23 12:54 com.apple.launchd.peruser.1036/

    drwx------   3 _softwareupdate  wheel             102 Nov 10 05:32 com.apple.launchd.peruser.200/

    drwx------   3 _coreaudiod      wheel             102 Nov  8 05:48 com.apple.launchd.peruser.202/

    drwx------   4 _cvmsroot        wheel             136 Nov 12 13:04 com.apple.launchd.peruser.212/

    drwx------   3 _dovecot         wheel             102 Nov  8 05:33 com.apple.launchd.peruser.214/

    drwx------   4 _postgres        wheel             136 Nov 12 12:43 com.apple.launchd.peruser.216/

    drwx------   4 _devicemgr       wheel             136 Nov  8 06:18 com.apple.launchd.peruser.220/

    drwx------   4 _webauthserver   wheel             136 Nov 12 13:17 com.apple.launchd.peruser.221/

    drwx------   2 _lp              wheel              68 Nov  5 08:08 com.apple.launchd.peruser.26/

    drwx------   4 _postfix         wheel             136 Nov  8 06:50 com.apple.launchd.peruser.27/

    drwx------   4 nobody           wheel             136 Nov 12 13:53 com.apple.launchd.peruser.4294967294/

    drwx------   2 admin            wheel              68 Nov  4 22:54 com.apple.launchd.peruser.501/

    drwx------   4 _www             wheel             136 Nov 12 13:20 com.apple.launchd.peruser.70/

    drwx------   4 _clamav          wheel             136 Nov 12 05:52 com.apple.launchd.peruser.82/

    drwx------   4 _amavisd         wheel             136 Nov 12 13:14 com.apple.launchd.peruser.83/

    drwx------   2 _jabber          wheel              68 Nov  4 22:54 com.apple.launchd.peruser.84/

    drwx------   2 _windowserver    wheel              68 Nov  4 22:54 com.apple.launchd.peruser.88/

    drwx------   2 _spotlight       wheel              68 Nov  4 22:54 com.apple.launchd.peruser.89/

    drwx------   3 _securityagent   wheel             102 Nov  8 05:37 com.apple.launchd.peruser.92/

    drwx------   4 _calendar        wheel             136 Nov  8 05:57 com.apple.launchd.peruser.93/

    drwx------   4 _teamsserver     wheel             136 Nov  8 16:11 com.apple.launchd.peruser.94/

    drwx------   2 _atsserver       wheel              68 Nov  4 22:54 com.apple.launchd.peruser.97/

    drwxr-xr-x   5 root             wheel             170 Nov  8 05:32 cups/

    -rw-r--r--   1 root             wheel            7067 Nov 12 03:15 daily.out

    drwxr-xr-x   2 root             wheel              68 Oct 17 16:10 emond/

    drwxr-xr-x   8 root             wheel             272 Nov 12 00:00 eventmonitor/

    drwxr-xr-x   2 root             wheel              68 Jun 21 04:26 fax/

    -rw-r--r--   1 root             wheel            1770 Nov  8 05:43 fsck_hfs.log

    -rw-r--r--   1 root             wheel           35598 Nov 12 12:54 getsslpassphrase.log

    -rw-r--r--   1 root             wheel           91448 Nov 12 13:52 install.log

    drwx------   2 root             wheel              68 Oct 17 16:24 krb5kdc/

    -rw-r-----+  1 root             admin          930307 Nov 12 13:56 mail.log

    -rw-r--r--   1 root             wheel               0 Nov  8 05:31 notifyd.log

    -rw-r-----   1 root             admin            4763 Nov  8 10:53 opendirectoryd.log

    drwxr-xr-x   2 _teamsserver     _teamsserver       68 Oct 17 17:53 passwordreset/

    drwxr-xr-x   8 root             wheel             272 Nov 12 00:00 performance/

    drwxr-xr-x   2 root             wheel              68 Aug 25 16:01 ppp/

    drwx------   3 root             wheel             102 Jun 21 07:50 radius/

    drwxr-xr-x   2 root             wheel              68 Aug  8 09:40 sa/

    drwxrw----   8 root             wheel             272 Nov  8 05:36 server_backup/

    -rw-r--r--   1 root             wheel             205 Nov  8 05:32 servermgrd.log

    -rw-r--r--   1 root             wheel            7565 Nov 12 12:41 slapd.log

    -rw-r-----   1 root             admin         2268575 Nov 12 13:57 system.log

    -rw-r-----   1 root             admin           78463 Nov 12 00:30 system.log.0.bz2

    -rw-r-----   1 root             admin           77896 Nov 11 00:30 system.log.1.bz2

    -rw-r-----   1 root             admin           79303 Nov 10 00:30 system.log.2.bz2

    -rw-r-----+  1 root             admin          200494 Nov  9 00:30 system.log.3.bz2

    drwxr-xr-x   2 _uucp            wheel              68 Jun 21 04:07 uucp/

    -rw-r--r--   1 root             wheel              87 Nov 10 03:15 weekly.out

    drwxr-xr-x   4 root             wheel             136 Nov 11 22:53 xscertd-crls/

     

    Thanks

     

    Justin

  • 8. Re: Profile Manager cannot enrol any device...
    redshift82r Level 2 Level 2 (325 points)

    Hi Justin, I went to reply yesterday and the communities have been down for maintenance.

     

    So here's the thing.

     

    As part of Server setup, it runs a bunch of scripts to set up various things like log files, directories, user names etc.

     

    It looks like your Server setup did not complete properly as the symbolic link from /var/log/devicemgr directory to /Library/Log/ProfileManager did not complete.

     

    You have two choices.

     

    1. Run the devicemgr setup script again or

    2. Move OS X Server.app to the trash and re-install.

     

    1. Running the setup script will work if the only thing that failed was setting up Profile Manager, but if you are getting funny issues with your server, it might be best to go down the route of reinstalling Server.app

     

    You can find the ProfileManager setup script at :

    /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonEx tras/80-devicemgrcommon.sh

     

    I think I would really recommend reinstalling Server.app from scratch though given your level of knowledge.

     

    You can check the install.log in console.app to see whether it reinstalls without errors.

     

    Cheers

    Gerry

  • 9. Re: Profile Manager cannot enrol any device...
    kunikatsu Level 1 Level 1 (0 points)

    Just sharing what I did to solve the problem with Gerry help.

     

    1. stop all service in sever app and close it.

    2.trash server app via finder under application

    3.go to app store install server app.

    4.Run server app

    5.start service one by one keep open directory, mail and profile manager to the last.

    6.check all your service. (some might need some mod to get it working again.)

    7.follow this http://support.apple.com/kb/HT5349

     

  • 10. Re: Profile Manager cannot enrol any device...
    euclidea Level 1 Level 1 (0 points)

    Bonjour

     

    Next week I will deploye 650 iPhone with OSX 10.8 server for MdM.

    I have the exactly same pb. My server is connected to an AD, SSL signed by HQ in US. So I am looking for solution to fixe issue with out lost all my OSX sever config.

     

    I get this sceen when I click on enrollement on an iOS devices.

    Capture d’écran 2012-11-20 à 22.31.17.png

  • 11. Re: Profile Manager cannot enrol any device...
    mmurray47 Level 1 Level 1 (0 points)

    Same problem.  "com.apple.launchd[1]: (com.apple.DeviceManagement.php-fpm) Throttling respawn: Will start in 10 seconds"

     

    Problem presented after an IP address and host name change.  In my case, the devicemgr pointer (or alias) in /var/log to /Library/Server/ProfileManager/Logs is missing altogether and "/logs" is missing altogether.

     

    Which option solved the issue if I may?  Thanks.

     

    1. Run the devicemgr setup script again or

    2. Move OS X Server.app to the trash and re-install.

  • 12. Re: Profile Manager cannot enrol any device...
    kunikatsu Level 1 Level 1 (0 points)

    I did reinstalling refer to my post on 14-Nov-2012 05:43.

     

    Thanks =)

  • 13. Re: Profile Manager cannot enrol any device...
    calewis Level 1 Level 1 (0 points)

    Excellent answer and really well explained! Thank-you!

  • 14. Re: Profile Manager cannot enrol any device...
    alexri Level 1 Level 1 (10 points)

    I tried everything in this thread (beside a system reinstall, I won't do that because of profile manager). But I still get the "permission denied" error.

     

    02.02.14 16:48:36,869 ProfileManager[1669]: Unable to create ProfileManager log file at '/var/log/devicemgr/profilemanager.log' (Permission denied)

     

    I wiped the database.

    I ran the script.

    I changed the privileges with chmod and chown

     

    Still: permission denied!

     

    Please help!

1 2 Previous Next