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.

Profile Manager cannot enrol any device...

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

Posted on Nov 8, 2012 12:38 AM

Reply
15 replies

Nov 11, 2012 8:23 PM in response to redshift82r

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.

Nov 11, 2012 9:03 PM in response to kunikatsu

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

Nov 11, 2012 9:58 PM in response to redshift82r

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

Nov 12, 2012 3:04 PM in response to kunikatsu

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

Nov 14, 2012 5:43 AM in response to kunikatsu

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

😉

Nov 28, 2012 7:01 AM in response to kunikatsu

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.

Feb 2, 2014 7:52 AM in response to kunikatsu

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!

Profile Manager cannot enrol any device...

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