DaiJohn

Q: CommonExtras folder missing from Server.app

I have been trying to fix several issues with my server.  Many solution refer to using files in the CommonExtras folder.  However I do not have one.  How do /i make sure it is installed properly.

 

Dave

Mac mini (Late 2014), OS X El Capitan (10.11.3)

Posted on May 12, 2016 2:15 AM

Close

Q: CommonExtras folder missing from Server.app

  • All replies
  • Helpful answers

Page 1 Next
  • by Leopardus,

    Leopardus Leopardus May 12, 2016 3:02 AM in response to DaiJohn
    Level 4 (1,087 points)
    Desktops
    May 12, 2016 3:02 AM in response to DaiJohn

    Are you looking for:

    /System/Library/CoreServices/Applications maybe?

     

    Leo

  • by Leopardus,

    Leopardus Leopardus May 12, 2016 3:21 AM in response to DaiJohn
    Level 4 (1,087 points)
    Desktops
    May 12, 2016 3:21 AM in response to DaiJohn

    There is also:

     

    /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/Uninstal lExtras ?

     

    Still not sure which Extras you are looking for? Which version of Server are you referring to?

     

    Leo

  • by DaiJohn,

    DaiJohn DaiJohn May 12, 2016 6:53 AM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 12, 2016 6:53 AM in response to Leopardus

    Thanks for responding. I am running server 5.1.  I am having trouble with device manager giving errors every 4 secs or so.  There is an apple article that suggests running:

     

    sudo /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonE xtras/80-devicemgrcommon.sh

     

    but I do not have the CommonExtras folder or ther 80-devicemgrcommon.sh.

     

    Dave

  • by DaiJohn,

    DaiJohn DaiJohn May 12, 2016 7:00 AM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 12, 2016 7:00 AM in response to Leopardus

    Ahhh. I have now found the same article for Yosemite and in there it suggests running...

     

    sudo /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB .sh

     

    which I do have.

     

    Dave

  • by DaiJohn,

    DaiJohn DaiJohn May 12, 2016 8:01 AM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 12, 2016 8:01 AM in response to Leopardus

    Well, I ran...

     

    sudo /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB .sh


    then enrolled all my devices again.  Still getting the error messages every 4 seconds plus a few more.


    Dave

  • by Leopardus,

    Leopardus Leopardus May 12, 2016 9:19 AM in response to DaiJohn
    Level 4 (1,087 points)
    Desktops
    May 12, 2016 9:19 AM in response to DaiJohn

    Could you possibly post some excerpt from your log files? It would really help us to better understand your problem.

     

    Leo

  • by DaiJohn,

    DaiJohn DaiJohn May 12, 2016 12:22 PM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 12, 2016 12:22 PM in response to Leopardus

    Using the server.app logs I get...

     

    In Access Log (Server Proxy) I get this every 4 seconds

     

    server.bowring.onl "127.0.0.1" 127.0.0.1 - - [12/May/2016:20:06:01 +0100] "GET /devicemanagement/status?auto HTTP/1.1" 200 1324 "-" "devicemgrd (unknown version) CFNetwork/760.4.2 Darwin/15.4.0 (x86_64)"

     

    And in the Error Log (Server Proxy) I get these every 4 seconds.

     

    [Thu May 12 20:11:09.200053 2016] [authz_core:debug] [pid 81434] mod_authz_core.c(806): [client 127.0.0.1:63828] AH01626: authorization result of Require all denied: denied

    [Thu May 12 20:11:09.200132 2016] [authz_core:debug] [pid 81434] mod_authz_core.c(806): [client 127.0.0.1:63828] AH01626: authorization result of Require ip 127.0.0.1: granted

    [Thu May 12 20:11:09.200135 2016] [authz_core:debug] [pid 81434] mod_authz_core.c(806): [client 127.0.0.1:63828] AH01626: authorization result of <RequireAny>: granted

    [Thu May 12 20:11:09.200146 2016] [:debug] [pid 81434] mod_hfs_apple2.c(363): [client 127.0.0.1:63828] mod_hfs_apple: compare_paths /Library/Server/Web/Data/Sites/Default/ vs /var/empty/devicemanagement/, related=0

    [Thu May 12 20:11:09.200149 2016] [:debug] [pid 81434] mod_hfs_apple2.c(363): [client 127.0.0.1:63828] mod_hfs_apple: compare_paths /Applications/Server.app/Contents/ServerRoot/usr/share/web/customerror/ vs /var/empty/devicemanagement/, related=0

    [Thu May 12 20:11:09.200152 2016] [:debug] [pid 81434] mod_hfs_apple2.c(363): [client 127.0.0.1:63828] mod_hfs_apple: compare_paths .*\\\\.\\\\.namedfork/ vs /var/empty/devicemanagement/, related=0

    [Thu May 12 20:11:09.200154 2016] [:debug] [pid 81434] mod_hfs_apple2.c(372): [client 127.0.0.1:63828] mod_hfs_apple: Allowing access with no matching directory. filename = /var/empty/devicemanagement

    [Thu May 12 20:11:09.200294 2016] [socache_shmcb:debug] [pid 81434] mod_socache_shmcb.c(584): [client 127.0.0.1:63828] AH00840: inside shmcb_status

    [Thu May 12 20:11:09.200303 2016] [socache_shmcb:debug] [pid 81434] mod_socache_shmcb.c(673): [client 127.0.0.1:63828] AH00841: leaving shmcb_status

     

    This happens every 4 seconds all day long every day.  I turned profile manager off and they still keep coming.  At the moment I have the mac mini running as server an iMac 27 turned on and my iPhone on, both of which are registered devices.  I have tried turning off my iMac and iPhone and turning on just my macBook with the same result.

     

    Dave

  • by DaiJohn,

    DaiJohn DaiJohn May 12, 2016 12:37 PM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 12, 2016 12:37 PM in response to Leopardus

    I am sorry.  Where I have written "Server Proxy" I should have written "Service Proxy"

     

    Dave

  • by DaiJohn,

    DaiJohn DaiJohn May 14, 2016 2:47 AM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 14, 2016 2:47 AM in response to Leopardus

    Doing a bit more research I notice that I do not have PostgreSQL anywhere on my machine. Could this be related?

     

    Dave

  • by Leopardus,

    Leopardus Leopardus May 17, 2016 12:42 AM in response to DaiJohn
    Level 4 (1,087 points)
    Desktops
    May 17, 2016 12:42 AM in response to DaiJohn

    Rest assured that your server has got PostgreSQL integrated in the OS. You will see that it is used at many places in Server.

    You can do a

     

    sudo serveradmin fullstatus postgres

    and you will see that it is there. It might tell you more, maybe give us some errors to indicate a corrupt database.

     

    Leo

  • by DaiJohn,

    DaiJohn DaiJohn May 17, 2016 1:29 AM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 17, 2016 1:29 AM in response to Leopardus

    Leo,

     

    Thanks for you reply.  Here is the output of your suggested command.  Makes no sense to me.

     

    postgres:error = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e53436f 64655a4e 53557365 72496e66 6f584e53 446f6d61 696e5624 636c6173 73100180 00800280 035f1014 636f6d2e 6170706c 652e7365 72766572 6d677264 d2131415 165a2463 6c617373 6e616d65 5824636c 61737365 73574e53 4572726f 72a21517 584e534f 626a6563 745f100f 4e534b65 79656441 72636869 766572d1 1a1b5472 6f6f7480 0108111a 232d3237 3c424b52 5d666d6f 7173758c 919ca5ad b0b9cbce d3000000 00000001 01000000 00000000 1c000000 00000000 00000000 00000000 d5>

    postgres:errorDescription = "The operation couldn’t be completed. (com.apple.servermgrd error 1.)"

    postgres:errorCode = 1

     

    and this is the message I get in the access log every 4 seconds....

     

    GET /devicemanagement/status?auto HTTP/1.1" 200 1322 "-" "devicemgrd (unknown version) CFNetwork/760.4.2 Darwin/15.4.0 (x86_64)

     

    In the file sharing iOS log I also get this....

     

    #@com.apple.root.default-qos: Could not connect to Postgres. Please make sure it is running and has the correct access.

     

    If I switch file sharing off then on again after some complaining posgress starts but soon fails again.

     

    Dave

  • by DaiJohn,

    DaiJohn DaiJohn May 17, 2016 1:05 PM in response to Leopardus
    Level 1 (32 points)
    Desktops
    May 17, 2016 1:05 PM in response to Leopardus

    In desperation I tried turning my server off then on again.  After about 10,000 error messages everything settled down. Still got the same problem but now wiki and profile manager do not work.  Green light but they do not load into a browser of any flavour on any machine.

     

    I ran sudo serveradmin status profile manger and got exactly the same response when used to get the status go posters.

     

    I found this..

     

    wiki server failing - postgres error

     

    which has exactly the same digits as my error. Nothing there helped me though.

     

    Another interesting thing is when I turn on VPN all the other services change to reachable localy.  Turn VPN off and they change to reachable over the internet.

     

    Dave

  • by Leopardus,

    Leopardus Leopardus May 17, 2016 8:31 PM in response to DaiJohn
    Level 4 (1,087 points)
    Desktops
    May 17, 2016 8:31 PM in response to DaiJohn

    As usual, before you do anything - make a backup! More than one.

     

    You will need to restore your database as it seems to have problem. Your server seems to have several problems getting the data from the database. The update to 10.11.4 and Server 5.1 should have automatically upgraded your PostgreSQL database, but apparently your had a problem.

     

    You can download and use PGAdmin at http://www.pgadmin.org/download/macosx.php for an excellent Graphical Interface to manage it, or you can use the command line and try to follow the steps by Linc Davis in Re: permissions PostgreSQL/data and Help, how to restore an accidentally deleted Wiki to attempt a fix. Just take extra care to use a backup that predates any problems that you might have had.

     

    What I hope will happen is that the new 'restore' will provide the opportunity again for the database upgrade to the more recent version.

     

    HTH

     

    Leo

  • by Leopardus,

    Leopardus Leopardus May 17, 2016 11:02 PM in response to DaiJohn
    Level 4 (1,087 points)
    Desktops
    May 17, 2016 11:02 PM in response to DaiJohn

    It was not without reason that I asked you to make a backup. Look at Recovering custom Postgres data after upgrading to OS X Server v3.2.1 or later - Apple Support and what others has experienced since Mavericks in the answers (3) at http://apple.stackexchange.com/questions/155225/system-library-launchdaemons-com -apple-servermgrd-plist-is-missing-causi…

     

    I will try and simulate your problem on my test setup and see what I do to solve it.

     

    Leo

Page 1 Next