Profile manager backup

Dear all,
Can profile manager backup by time machine?
if it can't then how to backup and restore profile manager correctly
i tried to use time machine to restore the profile manager but i try to use profile manger to reset ipad password ,update ipad profile doesn't.
any methods fix it ?
Thanks

The files are created by PostGreSQL and contain WAL (write-ahead-logging) data. It's still not clear why these files should be growing at more than 33 MB a day.
Why is there no snapshot of the database taken, past WAL files deleted and new ones started every day/week/month? Can I do this myself? I'm now wasting 16GB of storage as an inefficient backup for PostgreSQL.

Similar Messages

  • Profile Manager backup size growing quickly

    Over the past 2 weeks Profile Manager (or PostgreSQL) has been creating backup files at a very high rate (in total more than 800 backups since March 30th). Each of these backup files are 16.7 MB in size  (by now more than 14GB in total) and have this format '000000010000000x000000nn' (with x a capital character and nn a hexdecimal sequential number). The location of the backups is: /Library/Server/ProfileManager/Data/backup.
    Questions:
    What purpose do these backups serve?
    Is something wrong (since it only started 2 weeks ago)?
    Can I stop it?
    Can I delete older ones safely?
    What changed recently on my server:
    Installed Server 3.1 (March 22nd) and Server 3.1.1 (April 4th)
    Renewed my server certificate (was about to expire April 25yj so warnings since March 26th or 27th)
    I did make some changes to profiles March 22nd. Also enrolled a new device
    Thanks for the help

    The files are created by PostGreSQL and contain WAL (write-ahead-logging) data. It's still not clear why these files should be growing at more than 33 MB a day.
    Why is there no snapshot of the database taken, past WAL files deleted and new ones started every day/week/month? Can I do this myself? I'm now wasting 16GB of storage as an inefficient backup for PostgreSQL.

  • How do I backup profile manager database on OS X Yosemite?

    Hello guys,
    I'm struggling to find an answer on how to backup profile manager database(devices, groups etc.) on Yosemite(server 4), so far I only found a few threads for Mavericks (10.9) & Server 3 saying to type the following command via terminal: "sudo pg_dump -U _postgres -c device_management > $HOME/device_management.sql"
    Although this command applies to Mavericks(server 3) I decided to give it a shot but as expected I got this error message:
    "pg_dump: [archiver (db)] connection to database "device_management" failed: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?"
    I also tried to backup & restore profile manager's database with TimeMachine but unfortunately it didn't worked..
    It seems that TimeMachine misses the profile manager's data folders(see thread: Profile Manager not being backed up in Time Machine?)
    and I saw that other people also complained about this problem.
    As we're a company who holds thousands of devices & integrates them on daily basis to profile manager, I would be very pleased to know how to backup our Profile manager's database.
    Please see this question as HIGH importance, I really hope to get an answer ASAP..
    Thanks in advance for all the repliers!
    Yours sincerely,
    Daniel Adler.

    Hi Strontium90,
    Thanks for your reply!!
    I tried your command, but unfortunately i got the following error msg:
    "too many command-line arguments (first is "devicemgr_v2m0")
    Try "pg_dump --help" for more information."
    Please correct me if I'm wrong: assuming command was successful, I should've seen 'profileManager.sql' file at my desktop(output path = ~/Desktop/) which is the Profile Manager's database file I guess, right? and where is the restoration path located? in case I want to restore Profile Manager's database with the created backup file('profileManager.sql').
    Also you mentioned: "Automate to perform daily", how can I automate this command?
    Thanks a lot for your support!
    Have a nice day.
    Yours sincerely,
    Daniel Adler.

  • Backup Server Settingd - Including Profile Manager

    We want to ensure that we have a backup of our server settings and also the network settings of the machine. We have experienced issues with TimeMachine in the past and want to ensure we are backing our server up including the Profile Manager database and active directory database.
    Thanks,
    James.

    The files are created by PostGreSQL and contain WAL (write-ahead-logging) data. It's still not clear why these files should be growing at more than 33 MB a day.
    Why is there no snapshot of the database taken, past WAL files deleted and new ones started every day/week/month? Can I do this myself? I'm now wasting 16GB of storage as an inefficient backup for PostgreSQL.

  • How can I disable backup for managed app with profile manager?

    I use Server App 3.1.2 to manage iOS devices with profile manager.
    Is it possible to exclude managed app's backup from users iCloud or iTunes backup?
    thanks
    Paolo

    Hi,
    Please use the following link (under "Manage Print Apps" to cancel/remove it:
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02940901&cc=us&dlc=en&lc=en&product=5058336&tmp...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Profile Manager replication / failover / backup

    I'm in the process of getting to grips with using profiles as a replacement for things I've always done with Workgroup Manager / MCX.
    I'm running Server 10.10.3 with a replica Open Directory on a second server, which works fine but it seems to me that the profile management system does not provide a straightforward replica / failover facility. Is this correct, or have I missed something?
    What are people doing to ensure that when their primary server fails the secondary one can takeover as cleanly as possible? E.g. do you have a list of directories / files that can be rsynced to keep Server 2 ready to take over, perhaps with some manual intervention?
    TIA
    C.

    Chris,
    Profile Manager does not currently support replication or distribution in any meaningful sense. There are solutions from other MDM vendors that do have these features, but they'll cost you about $20 per device instead of per server.

  • How To Install A (Almost) Working Lion Server With Profile Management/SSL/OD/Mail/iCal/Address Book/VNC/Web/etc.

    I recently installed a fresh version of Lion Server after attempting to fix a broken upgrade. With some help from others, I've managed to get all the new features working and have kept notes, having found that many or most of the necessary installation steps for both the OS and its services are almost entirely undocumented. When you get them working, they work great, but the entire process is very fragile, with simple setup steps causing breaks or even malicious behaviors. In case this is useful to others, here are my notes.
    Start with an erased, virgin, single guid partitioned drive. Not an upgrade. Not simply a repartitioned drive. Erased. Clean. Anything else can and probably will break the Lion Server install, as I discovered myself more than once. Before erasing my drive, I already had Lion and made a Lion install DVD from instructions widely available on the web. I suppose you could also boot into the Lion recovery partition and use disk utility to erase the OS X partition then install a new partition, but I cut a DVD. The bottom line is to erase any old OS partitions. And of course to have multiple, independent backups: I use both Time Machine with a modified StdExclusions.plist and Carbon Copy Cloner.
    Also, if you will be running your own personal cloud, you will want to know your domain name ahead of time, as this will be propagated everywhere throughout server, and changing anything related to SSL on Lion Server is a nightmare that I haven't figured out. If you don't yet have a domain name, go drop ten dollars at namecheap.com or wherever and reserve one before you start. Soemday someone will document how to change this stuff without breaking Lion Server, but we're not there yet. I'll assume the top-level domain name "domain.com" here.
    Given good backups, a Lion Install DVD (or Recovery Partition), and a domain name, here are the steps, apparently all of which must be more-or-less strictly followed in this order.
    DVD>Disk Utility>Erase Disk  [or Recovery Partition>Disk Utility>Erase Partition]
    DVD>Install Lion
    Reboot, hopefully Lion install kicks in
    Update, update, update Lion (NOT Lion Server yet) until no more updates
    System Preferences>Network>Static IP on the LAN (say 10.0.1.2) and Computer name ("server" is a good standbye)
    Terminal>$ sudo scutil --set HostName server.domain.com
    App Store>Install Lion Server and run through the Setup
    Download install Server Admin Tools, then update, update, update until no more updates
    Server Admin>DNS>Zones [IF THIS WASN'T AUTOMAGICALLY CREATED (mine wasn't): Add zone domain.com with Nameserver "server.domain.com." (that's a FQDN terminated with a period) and a Mail Exchanger (MX record) "server.domain.com." with priority 10. Add Record>Add Machine (A record) server.domain.com pointing to the server's static IP. You can add fancier DNS aliases and a simpler MX record below after you get through the crucial steps.]
    System Prefs>Network>Advanced>Set your DNS server to 127.0.0.1
    A few DNS set-up steps and these most important steps:
    A. Check that the Unix command "hostname" returns the correct hostname and you can see this hostname in Server.app>Hardware>Network
    B. Check that DNS works: the unix commands "host server.domain.com" and "host 10.0.1.2" (assuming that that's your static IP) should point to each other. Do not proceed until DNS works.
    C. Get Apple Push Notification Services CA via Server.app>Hardware>Settings><Click toggle, Edit... get a new cert ...>
    D. Server.app>Profile Manager>Configure... [Magic script should create OD Master, signed SSL cert]
    E. Server.app>Hardware>Settings>SSL Certificate> [Check to make sure it's set to the one just created]
    F. Using Server.app, turn on the web, then Server.app>Profile Manager> [Click on hyperlink to get to web page, e.g. server.domain.com/profilemanager] Upper RHS pull-down, install Trust Profile
    G. Keychain Access>System>Certificates [Find the automatically generated cert "Domain", the one that is a "Root certificate authority", Highlight and Export as .cer, email to all iOS devices, and click on the authority on the device. It should be entered as a trusted CA on all iOS devices. While you're at it, highlight and Export... as a .cer the certificate "IntermediateCA_SERVER.DOMAIN.COM_1", which is listed an an "Intermediate CA" -- you will use this to establish secure SSL connections with remote browsers hitting your server.]
    H. iOS on LAN: browse to server.domain.com/mydevices> [click on LHS Install trust cert, then RHS Enroll device.
    I. Test from web browser server.domain.com/mydevices: Lock Device to test
    J. ??? Profit
    12. Server Admin>DNS>Zones> Add convenient DNS alias records if necessary, e.g., mail.domain.com, smtp.domain.com, www.domain.com. If you want to refer to your box using the convenient shorthand "domain.com", you must enter the A record (NOT alias) "domain.com." FQDN pointing to the server's fixed IP. You can also enter the convenient short MX record "domain.com." with priority 11. This will all work on the LAN -- all these settings must be mirrored on the outside internet using the service from which you registered domain.com.
    You are now ready to begin turning on your services. Here are a few important details and gotchas setting up cloud services.
    Firewall
    Server Admin>Firewall>Services> Open up all ports needed by whichever services you want to run and set up your router (assuming that your server sits behind a router) to port forward these ports to your router's LAN IP. This is most a straightforward exercise in grepping for the correct ports on this page, but there are several jaw-droppingly undocumented omissions of crucial ports for Push Services and Device Enrollment. If you want to enroll your iOS devices, make sure port 1640 is open. If you want Push Notifications to work (you do), then ports 2195, 2196, 5218, and 5223 must be open. The Unix commands "lsof -i :5218" and "nmap -p 5218 server.domain.com" (nmap available from Macports after installing Xcode from the App Store) help show which ports are open.
    SSH
    Do this with strong security. Server.app to turn on remote logins (open port 22), but edit /etc/sshd_config to turn off root and password logins.
    PermitRootLogin no
    PasswordAuthentication no
    ChallengeResponseAuthentication no
    I'm note sure if toggling the Allow remote logins will load this config file or, run "sudo launchctl unload -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist ; sudo launchctl load -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist" to restart the server's ssh daemon.
    Then use ssh-keygen on remote client to generate public/private keys that can be used to remotely login to the server.
    client$ ssh-keygen -t rsa -b 2048 -C client_name
    [Securely copy ~/.ssh/id_rsa.pub from client to server.]
    server$ cat id_rsa.pub > ~/.ssh/known_hosts
    I also like DenyHosts, which emails detected ssh attacks to [email protected]. It's amazing how many ssh attacks there are on any open port 22. Not really an added security feature if you've turned off password logins, but good to monitor. Here's a Lion Server diff for the config file /usr/share/denyhosts:
    $ diff denyhosts.cfg-dist denyhosts.cfg
    12c12
    < SECURE_LOG = /var/log/secure
    > #SECURE_LOG = /var/log/secure
    22a23
    > SECURE_LOG = /var/log/secure.log
    34c35
    < HOSTS_DENY = /etc/hosts.deny
    > #HOSTS_DENY = /etc/hosts.deny
    40a42,44
    > #
    > # Mac OS X Lion Server
    > HOSTS_DENY = /private/etc/hosts.deny
    195c199
    < LOCK_FILE = /var/lock/subsys/denyhosts
    > #LOCK_FILE = /var/lock/subsys/denyhosts
    202a207,208
    > LOCK_FILE = /var/denyhosts/denyhosts.pid
    > #
    219c225
    < ADMIN_EMAIL =
    > ADMIN_EMAIL = [email protected]
    286c292
    < #SYSLOG_REPORT=YES
    > SYSLOG_REPORT=YES
    Network Accounts
    User Server.app to create your network accounts; do not use Workgroup Manager. If you use Workgroup Manager, as I did, then your accounts will not have email addresses specified and iCal Server WILL NOT COMPLETELY WORK. Well, at least collaboration through network accounts will be handled clunkily through email, not automatically as they should. If you create a network account using Workgroup Manager, then edit that account using Server.app to specify the email to which iCal invitations may be sent. Server.app doesn't say anything about this, but that's one thing that email address entry is used for. This still isn't quite solid on Lion Server, as my Open Directory logs on a freshly installed Lion Server are filled with errors that read:
    2011-12-12 15:05:52.425 EST - Module: SystemCache - Misconfiguration detected in hash 'Kerberos':
         User 'uname' (/LDAPv3/127.0.0.1) - ID 1031 - UUID 98B4DF30-09CF-42F1-6C31-9D55FE4A0812 - SID S-0-8-83-8930552043-0845248631-7065481045-9092
    Oh well.
    Email
    Email aliases are handled with the file /private/etc/postfix/aliases. Do something like this
    root:           myname
    admin:          myname
    sysadmin:       myname
    certadmin:      myname
    webmaster:      myname
    my_alternate:   myname
    Then run "sudo newaliases". If your ISP is Comcast or some other large provider, you probably must proxy your outgoing mail through their SMTP servers to avoid being blocked as a spammer (a lot of SMTP servers will block email from Comcast/whatever IP addresses that isn't sent by Comcast). Use Server.app>Mail to enter your account information. Even then, the Lion Server default setup may fail using this proxy. I had to do this with the file /private/etc/postfix/main.cf:
    cd /etc/postfix
    sudo cp ./main.cf ./main.cf.no_smtp_sasl_security_options
    sudo echo 'smtp_sasl_security_options = noanonymous' >> ./main.cf
    sudo serveradmin stop mail
    sudo serveradmin start mail
    Finally, make sure that you're running a blacklisting srevice yourself! Server Admin>Mail>Filter> Use spamhaus.org as a blacklister. Finally, set up mail to use strong Kerberos/MD5 settings under on Server Admin>Mail>Advanced. Turn off password and clear logins. The settings should be set to "Use" your SSL cert, NOT "Require". "Require" consistently breaks things for me.
    If you already installed the server's Trust Certificate as described above (and opened up the correct ports), email to your account should be pushed out to all clients.
    iCal Server
    Server.app>Calendar>Turn ON and Allow Email Invitations, Edit... . Whatever you do, do NOT enter your own email account information in this GUI. You must enter the account information for local user com.apple.calendarserver, and the password for this account, which is stored in the System keychain: Keychain Access>System> Item com.apple.servermgr_calendar. Double-click and Show Password, copy and paste into Server.app dialog. This is all described in depth here. If you enter your own account information here (DO NOT!), the iCal Server will delete all Emails in your Inbox just as soon as it reads them, exactly like it works for user com.apple.calendarserver. Believe me, you don't want to discover this "feature", which I expect will be more tightly controlled in some future update.
    Web
    The functionality of Server.app's Web management is pretty limited and awful, but a few changes to the file /etc/apache2/httpd.conf will give you a pretty capable and flexible web server, just one that you must manage by hand. Here's a diff for httpd.conf:
    $ diff httpd.conf.default httpd.conf
    95c95
    < #LoadModule ssl_module libexec/apache2/mod_ssl.so
    > LoadModule ssl_module libexec/apache2/mod_ssl.so
    111c111
    < #LoadModule php5_module libexec/apache2/libphp5.so
    > LoadModule php5_module libexec/apache2/libphp5.so
    139,140c139,140
    < #LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    < #LoadModule encoding_module libexec/apache2/mod_encoding.so
    > LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    > LoadModule encoding_module libexec/apache2/mod_encoding.so
    146c146
    < #LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    > LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    177c177
    < ServerAdmin [email protected]
    > ServerAdmin [email protected]
    186c186
    < #ServerName www.example.com:80
    > ServerName domain.com:443
    677a678,680
    > # Server-specific configuration
    > # sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart
    > Include /etc/apache2/mydomain/*.conf
    I did "sudo mkdir /etc/apache2/mydomain" and add specific config files for various web pages to host. For example, here's a config file that will host the entire contents of an EyeTV DVR, all password controlled with htdigest ("htdigest ~uname/.htdigest EyeTV uname"). Browsing to https://server.domain.com/eyetv points to /Users/uname/Sites/EyeTV, in which there's an index.php script that can read and display the EyeTV archive at https://server.domain.com/eyetv_archive. If you want Apache username accounts with twiddles as in https://server.domain.com/~uname, specify "UserDir Sites" in the configuration file.
    Alias /eyetv /Users/uname/Sites/EyeTV
    <Directory "/Users/uname/Sites/EyeTV">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    Alias /eyetv_archive "/Volumes/Macintosh HD2/Documents/EyeTV Archive"
    <Directory "/Volumes/Macintosh HD2/Documents/EyeTV Archive">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    I think you can turn Web off/on in Server.app to relaunch apached, or simply "sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart".
    Securely copy to all desired remote clients the file IntermediateCA_SERVER.DOMAIN.COM_1.cer, which you exported from System Keychain above. Add this certificate to your remote keychain and trust it, allowing secure connections between remote clients and your server. Also on remote clients: Firefox>Advanced>Encryption>View Certificates>Authorities>Import...> Import this certificate into your browser. Now there should be a secure connection to https://server.domain.com without any SSL warnings.
    One caveat is that there should be a nice way to establish secure SSL to https://domain.com and https://www.domain.com, but the automagically created SSL certificate only knows about server.domain.com. I attempted to follow this advice when I originally created the cert and add these additional domains (under "Subject Alternate Name Extension"), but the cert creation UI failed when I did this, so I just gave up. I hope that by the time these certs expire, someone posts some documentation on how to manage and change Lion Server SSL scripts AFTER the server has been promoted to an Open Directory Master. In the meantime, it would be much appreciated if anyone can post either how to add these additional domain names to the existing cert, or generate and/or sign a cert with a self-created Keychain Access root certificate authority. In my experience, any attempt to mess with the SSL certs automatically generated just breaks Lion Server.
    Finally, if you don't want a little Apple logo as your web page icon, create your own 16×16 PNG and copy it to the file /Library/Server/Web/Data/Sites/Default/favicon.ico. And request that all web-crawling robots go away with the file /Library/Server/Web/Data/Sites/Default/robots.txt:
    User-agent: *
    Disallow: /
    Misc
    VNC easily works with iOS devices -- use a good passphrase. Edit /System/Library/LaunchDaemons/org.postgresql.postgres.plist and set "listen_addresses=127.0.0.1" to allow PostgreSQL connections over localhost. I've also downloaded snort/base/swatch to build an intrusion detection system, and used Macports's squid+privoxy to build a privacy-enhanced ad-blocking proxy server.

    Privacy Enhancing Filtering Proxy and SSH Tunnel
    Lion Server comes with its own web proxy, but chaining Squid and Privoxy together provides a capable and effective web proxy that can block ads and malicious scripts, and conceal information used to track you around the web. I've posted a simple way to build and use a privacy enhancing web proxy here. While you're at it, configure your OS and browsers to block Adobe Flash cookies and block Flash access to your camera, microphone, and peer networks. Read this WSJ article series to understand how this impacts your privacy. If you configure it to allow use for anyone on your LAN, be sure to open up ports 3128, 8118, and 8123 on your firewall.
    If you've set up ssh and/or VPN as above, you can securely tunnel in to your proxy from anywhere. The syntax for ssh tunnels is a little obscure, so I wrote a little ssh tunnel script with a simpler flexible syntax. This script also allows secure tunnels to other services like VNC (port 5900). If you save this to a file ./ssht (and chmod a+x ./ssht), example syntax to establish an ssh tunnel through localhost:8080 (or, e.g., localhost:5901 for secure VNC Screen Sharing connects) looks like:
    $ ./ssht 8080:[email protected]:3128
    $ ./ssht 8080:alice@:
    $ ./ssht 8080:
    $ ./ssht 8018::8123
    $ ./ssht 5901::5900  [Use the address localhost:5901 for secure VNC connects using OS X's Screen Sharing or Chicken of the VNC (sudo port install cotvnc)]
    $ vi ./ssht
    #!/bin/sh
    # SSH tunnel to squid/whatever proxy: ssht [-p ssh_port] [localhost_port:][user_name@][ip_address][:remotehost][:remote_port]
    USERNAME_DEFAULT=username
    HOSTNAME_DEFAULT=domain.com
    SSHPORT_DEFAULT=22
    # SSH port forwarding specs, e.g. 8080:localhost:3128
    LOCALHOSTPORT_DEFAULT=8080      # Default is http proxy 8080
    REMOTEHOST_DEFAULT=localhost    # Default is localhost
    REMOTEPORT_DEFAULT=3128         # Default is Squid port
    # Parse ssh port and tunnel details if specified
    SSHPORT=$SSHPORT_DEFAULT
    TUNNEL_DETAILS=$LOCALHOSTPORT_DEFAULT:$USERNAME_DEFAULT@$HOSTNAME_DEFAULT:$REMOT EHOST_DEFAULT:$REMOTEPORT_DEFAULT
    while [ "$1" != "" ]
    do
      case $1
      in
        -p) shift;                  # -p option
            SSHPORT=$1;
            shift;;
         *) TUNNEL_DETAILS=$1;      # 1st argument option
            shift;;
      esac
    done
    # Get local and remote ports, username, and hostname from the command line argument: localhost_port:user_name@ip_address:remote_host:remote_port
    shopt -s extglob                        # needed for +(pattern) syntax; man sh
    LOCALHOSTPORT=$LOCALHOSTPORT_DEFAULT
    USERNAME=$USERNAME_DEFAULT
    HOSTNAME=$HOSTNAME_DEFAULT
    REMOTEHOST=$REMOTEHOST_DEFAULT
    REMOTEPORT=$REMOTEPORT_DEFAULT
    # LOCALHOSTPORT
    CDR=${TUNNEL_DETAILS#+([0-9]):}         # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        LOCALHOSTPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEPORT
    CDR=${TUNNEL_DETAILS%:+([0-9])}         # delete shortest trailing :+([0-9])
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEHOST
    CDR=${TUNNEL_DETAILS%:*}                # delete shortest trailing :*
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEHOST=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # USERNAME
    CDR=${TUNNEL_DETAILS#*@}                # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%@}                            # delete @
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        USERNAME=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # HOSTNAME
    HOSTNAME=$TUNNEL_DETAILS
    if [ "$HOSTNAME" == "" ]                # no hostname given
    then
        HOSTNAME=$HOSTNAME_DEFAULT
    fi
    ssh -p $SSHPORT -L $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT -l $USERNAME $HOSTNAME -f -C -q -N \
        && echo "SSH tunnel established via $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT\n\tto $USERNAME@$HOSTNAME:$SSHPORT." \
        || echo "SSH tunnel FAIL."

  • Server Error has occurred when loading profile manager page

    I am getting message saying Server Error has occurred when I login into profile manager web page. How can i solve this issue. I am using Mavericks Server.

    PM Logs
    2014-03-07 00:15:27 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322439-2" ("value" varchar UNIQUE)
    2014-03-07 00:15:27 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 00:15:27 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322439-2" ("value" varchar UNIQUE)
    2014-03-07 01:15:27 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322441-2" ("value" varchar UNIQUE)
    2014-03-07 01:15:27 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 01:15:27 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322441-2" ("value" varchar UNIQUE)
    2014-03-07 02:15:27 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322443-2" ("value" varchar UNIQUE)
    2014-03-07 02:15:27 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 02:15:27 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322443-2" ("value" varchar UNIQUE)
    2014-03-07 03:15:27 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322445-2" ("value" varchar UNIQUE)
    2014-03-07 03:15:27 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 03:15:27 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322445-2" ("value" varchar UNIQUE)
    2014-03-07 04:15:27 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322447-2" ("value" varchar UNIQUE)
    2014-03-07 04:15:27 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 04:15:27 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322447-2" ("value" varchar UNIQUE)
    2014-03-07 05:15:27 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322449-2" ("value" varchar UNIQUE)
    2014-03-07 05:15:27 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 05:15:27 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322449-2" ("value" varchar UNIQUE)
    2014-03-07 06:15:28 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322451-2" ("value" varchar UNIQUE)
    2014-03-07 06:15:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 06:15:28 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322451-2" ("value" varchar UNIQUE)
    2014-03-07 07:15:28 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322453-2" ("value" varchar UNIQUE)
    2014-03-07 07:15:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 07:15:28 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322453-2" ("value" varchar UNIQUE)
    2014-03-07 08:15:28 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322455-2" ("value" varchar UNIQUE)
    2014-03-07 08:15:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 08:15:28 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322455-2" ("value" varchar UNIQUE)
    2014-03-07 09:15:28 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322457-2" ("value" varchar UNIQUE)
    2014-03-07 09:15:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 09:15:28 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322457-2" ("value" varchar UNIQUE)
    2014-03-07 10:15:28 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322459-2" ("value" varchar UNIQUE)
    2014-03-07 10:15:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 10:15:28 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322459-2" ("value" varchar UNIQUE)
    2014-03-07 10:18:03 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322461-2" ("value" varchar UNIQUE)
    2014-03-07 10:18:03 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 10:18:03 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322461-2" ("value" varchar UNIQUE)
    2014-03-07 11:15:29 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322463-2" ("value" varchar UNIQUE)
    2014-03-07 11:15:29 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 11:15:29 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322463-2" ("value" varchar UNIQUE)
    2014-03-07 12:15:29 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322465-2" ("value" varchar UNIQUE)
    2014-03-07 12:15:29 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 12:15:29 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322465-2" ("value" varchar UNIQUE)
    2014-03-07 13:15:29 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322467-2" ("value" varchar UNIQUE)
    2014-03-07 13:15:29 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 13:15:29 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322467-2" ("value" varchar UNIQUE)
    2014-03-07 14:15:29 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322469-2" ("value" varchar UNIQUE)
    2014-03-07 14:15:29 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 14:15:29 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322469-2" ("value" varchar UNIQUE)
    2014-03-07 15:05:34 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322472-2" ("value" varchar UNIQUE)
    2014-03-07 15:05:34 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:05:34 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322472-2" ("value" varchar UNIQUE)
    2014-03-07 15:06:11 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322474-2" ("value" varchar UNIQUE)
    2014-03-07 15:06:11 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:06:11 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322474-2" ("value" varchar UNIQUE)
    2014-03-07 15:06:45 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:06:45 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:06:45 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322480)
    2014-03-07 15:06:53 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:06:53 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:06:53 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322482)
    2014-03-07 15:07:56 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:07:56 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:07:56 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322485)
    2014-03-07 15:08:04 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:08:04 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:08:04 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322489)
    2014-03-07 15:09:06 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:06 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:06 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322495)
    2014-03-07 15:09:15 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:15 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:15 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322497)
    2014-03-07 15:09:19 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:19 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:19 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322500)
    2014-03-07 15:09:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:28 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:28 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322502)
    2014-03-07 15:09:43 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:43 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:43 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322504)
    2014-03-07 15:09:48 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:48 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:48 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322506)
    2014-03-07 15:09:52 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:09:52 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:09:52 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322508)
    2014-03-07 15:13:59 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322519-2" ("value" varchar UNIQUE)
    2014-03-07 15:13:59 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:13:59 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322519-2" ("value" varchar UNIQUE)
    2014-03-07 15:14:11 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:14:11 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:14:11 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322522)
    2014-03-07 15:15:40 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:40 NZDTLOG:  connection authorized: user=_devicemgr database=template1
    2014-03-07 15:15:41 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322586-2" ("value" varchar UNIQUE)
    2014-03-07 15:15:41 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:15:41 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322586-2" ("value" varchar UNIQUE)
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:15:44 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:15:44 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:16:10 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:16:10 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:16:10 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322599)
    2014-03-07 15:16:20 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:16:47 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:16:47 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:16:52 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:16:52 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:16:53 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:16:53 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE _affected_profiles ON COMMIT DROP AS
              SELECT DISTINCT tp.profile_id
              FROM view_truth_profiles AS tp
              WHERE tp.mdm_target_id = after.id
              AND (tp.device_substitution_keys & fn.mask) <> 0"
              PL/pgSQL function dm_deferred_update_profiles_by_device_substitutions(devices,devices) line 40 at SQL statement
              SQL statement "SELECT dm_deferred_update_profiles_by_device_substitutions(OLD, NEW)"
              PL/pgSQL function _dm_after_device_modify() line 37 at PERFORM
    2014-03-07 15:16:53 NZDTSTATEMENT:  UPDATE "devices" SET ("updated_at","active_checkin_token","udid") = (dm_current_timestamp(),$1,$2) WHERE id = $3
    2014-03-07 15:17:01 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:17:01 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:17:01 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:17:01 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE _affected_profiles ON COMMIT DROP AS
              SELECT DISTINCT tp.profile_id
              FROM view_truth_profiles AS tp
              WHERE tp.mdm_target_id = after.id
              AND (tp.device_substitution_keys & fn.mask) <> 0"
              PL/pgSQL function dm_deferred_update_profiles_by_device_substitutions(devices,devices) line 40 at SQL statement
              SQL statement "SELECT dm_deferred_update_profiles_by_device_substitutions(OLD, NEW)"
              PL/pgSQL function _dm_after_device_modify() line 37 at PERFORM
    2014-03-07 15:17:01 NZDTSTATEMENT:  UPDATE "devices" SET ("updated_at","active_checkin_token","udid") = (dm_current_timestamp(),$1,$2) WHERE id = $3
    2014-03-07 15:17:14 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:17:14 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:17:14 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:17:14 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE _affected_profiles ON COMMIT DROP AS
              SELECT DISTINCT tp.profile_id
              FROM view_truth_profiles AS tp
              WHERE tp.mdm_target_id = after.id
              AND (tp.device_substitution_keys & fn.mask) <> 0"
              PL/pgSQL function dm_deferred_update_profiles_by_device_substitutions(devices,devices) line 40 at SQL statement
              SQL statement "SELECT dm_deferred_update_profiles_by_device_substitutions(OLD, NEW)"
              PL/pgSQL function _dm_after_device_modify() line 37 at PERFORM
    2014-03-07 15:17:14 NZDTSTATEMENT:  UPDATE "devices" SET ("updated_at","active_checkin_token","udid") = (dm_current_timestamp(),$1,$2) WHERE id = $3
    2014-03-07 15:17:20 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:17:26 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:17:26 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:17:26 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:17:26 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE _affected_profiles ON COMMIT DROP AS
              SELECT DISTINCT tp.profile_id
              FROM view_truth_profiles AS tp
              WHERE tp.mdm_target_id = after.id
              AND (tp.device_substitution_keys & fn.mask) <> 0"
              PL/pgSQL function dm_deferred_update_profiles_by_device_substitutions(devices,devices) line 40 at SQL statement
              SQL statement "SELECT dm_deferred_update_profiles_by_device_substitutions(OLD, NEW)"
              PL/pgSQL function _dm_after_device_modify() line 37 at PERFORM
    2014-03-07 15:17:26 NZDTSTATEMENT:  UPDATE "devices" SET ("updated_at","active_checkin_token","udid") = (dm_current_timestamp(),$1,$2) WHERE id = $3
    2014-03-07 15:17:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:17:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:17:31 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:17:31 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE _affected_profiles ON COMMIT DROP AS
              SELECT DISTINCT tp.profile_id
              FROM view_truth_profiles AS tp
              WHERE tp.mdm_target_id = after.id
              AND (tp.device_substitution_keys & fn.mask) <> 0"
              PL/pgSQL function dm_deferred_update_profiles_by_device_substitutions(devices,devices) line 40 at SQL statement
              SQL statement "SELECT dm_deferred_update_profiles_by_device_substitutions(OLD, NEW)"
              PL/pgSQL function _dm_after_device_modify() line 37 at PERFORM
    2014-03-07 15:17:31 NZDTSTATEMENT:  UPDATE "devices" SET ("updated_at","active_checkin_token","udid") = (dm_current_timestamp(),$1,$2) WHERE id = $3
    2014-03-07 15:18:00 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:18:00 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:18:01 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:18:01 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE _affected_profiles ON COMMIT DROP AS
              SELECT DISTINCT tp.profile_id
              FROM view_truth_profiles AS tp
              WHERE tp.mdm_target_id = after.id
              AND (tp.device_substitution_keys & fn.mask) <> 0"
              PL/pgSQL function dm_deferred_update_profiles_by_device_substitutions(devices,devices) line 40 at SQL statement
              SQL statement "SELECT dm_deferred_update_profiles_by_device_substitutions(OLD, NEW)"
              PL/pgSQL function _dm_after_device_modify() line 37 at PERFORM
    2014-03-07 15:18:01 NZDTSTATEMENT:  UPDATE "devices" SET ("updated_at","active_checkin_token","udid") = (dm_current_timestamp(),$1,$2) WHERE id = $3
    2014-03-07 15:18:20 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:19:20 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:20:16 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:20:16 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:20:16 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322639)
    2014-03-07 15:20:20 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:20:26 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:20:26 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:20:26 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322641)
    2014-03-07 15:21:11 NZDTLOG:  statement: ALTER TABLE "widgets" ENABLE TRIGGER USER
    2014-03-07 15:21:11 NZDTLOG:  statement: ALTER TABLE "preference_panes" ENABLE TRIGGER USER
    2014-03-07 15:21:11 NZDTLOG:  statement: ALTER TABLE "printers" ENABLE TRIGGER USER
    2014-03-07 15:21:11 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:21:11 NZDTLOG:  connection authorized: user=_devicemgr database=postgres
    2014-03-07 15:21:11 NZDTLOG:  statement: ALTER TABLE "installed_applications" ENABLE TRIGGER USER
    2014-03-07 15:21:11 NZDTLOG:  statement: ALTER TABLE "users" ENABLE TRIGGER USER
    2014-03-07 15:21:11 NZDTLOG:  statement: ALTER TABLE "profiles" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "dm_schema_information" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "provisioning_profiles" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "od_nodes" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "user_groups" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "network_lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "enterprise_apps" ENABLE TRIGGER USER
    2014-03-07 15:21:12 NZDTLOG:  statement: ALTER TABLE "library_items" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "data_files" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "knob_sets" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "od_library_items" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "work_tasks" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "user_tasks" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "mdm_targets" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "auto_join_profiles" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "asset_metadata" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "db_notifications" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "internal_tasks" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "library_item_tasks" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "vpp_licenses" ENABLE TRIGGER USER
    2014-03-07 15:21:13 NZDTLOG:  statement: ALTER TABLE "settings" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:21:14 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:21:14 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:21:14 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:21:14 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "media" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  received smart shutdown request
    2014-03-07 15:21:14 NZDTLOG:  autovacuum launcher shutting down
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "device_groups" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "owner_lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "library_item_metadata" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "system_applications" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "completed_tasks" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "dynamic_attributes_defaults" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "mdm_tasks" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "assets" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "devices" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "vpp_products" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "library_items_assets" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "its_accounts" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  statement: ALTER TABLE "profile_substitution_caches" ENABLE TRIGGER USER
    2014-03-07 15:21:14 NZDTLOG:  shutting down
    '/Library/Server/ProfileManager/Data/PostgreSQL/pg_xlog/0000000100000001000000D0 ' ... '/Library/Server/ProfileManager/Data/backup/0000000100000001000000D0'
    2014-03-07 15:21:14 NZDTLOG:  database system is shut down
    '/Library/Server/ProfileManager/Data/PostgreSQL/pg_xlog/0000000100000001000000D0 ' --> '/Library/Server/ProfileManager/Data/backup/0000000100000001000000D0'
    2014-03-07 15:22:15 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:15 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:15 NZDTLOG:  database system was shut down at 2014-03-07 15:21:14 NZDT
    2014-03-07 15:22:15 NZDTFATAL:  the database system is starting up
    2014-03-07 15:22:15 NZDTFATAL:  the database system is starting up
    2014-03-07 15:22:15 NZDTLOG:  autovacuum launcher started
    2014-03-07 15:22:15 NZDTLOG:  database system is ready to accept connections
    2014-03-07 15:22:15 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:15 NZDTLOG:  connection authorized: user=_devicemgr database=template1
    2014-03-07 15:22:15 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:15 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:16 NZDTLOG:  statement: ALTER TABLE "widgets" ENABLE TRIGGER USER
    2014-03-07 15:22:16 NZDTLOG:  statement: ALTER TABLE "preference_panes" ENABLE TRIGGER USER
    2014-03-07 15:22:17 NZDTLOG:  statement: ALTER TABLE "printers" ENABLE TRIGGER USER
    2014-03-07 15:22:17 NZDTLOG:  statement: ALTER TABLE "installed_applications" ENABLE TRIGGER USER
    2014-03-07 15:22:17 NZDTLOG:  statement: ALTER TABLE "users" ENABLE TRIGGER USER
    2014-03-07 15:22:17 NZDTLOG:  statement: ALTER TABLE "profiles" ENABLE TRIGGER USER
    2014-03-07 15:22:18 NZDTLOG:  statement: ALTER TABLE "dm_schema_information" ENABLE TRIGGER USER
    2014-03-07 15:22:18 NZDTLOG:  statement: ALTER TABLE "provisioning_profiles" ENABLE TRIGGER USER
    2014-03-07 15:22:18 NZDTLOG:  statement: ALTER TABLE "od_nodes" ENABLE TRIGGER USER
    2014-03-07 15:22:18 NZDTLOG:  statement: ALTER TABLE "user_groups" ENABLE TRIGGER USER
    2014-03-07 15:22:19 NZDTLOG:  statement: ALTER TABLE "network_lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:22:19 NZDTLOG:  statement: ALTER TABLE "enterprise_apps" ENABLE TRIGGER USER
    2014-03-07 15:22:19 NZDTLOG:  statement: ALTER TABLE "library_items" ENABLE TRIGGER USER
    2014-03-07 15:22:19 NZDTLOG:  statement: ALTER TABLE "data_files" ENABLE TRIGGER USER
    2014-03-07 15:22:20 NZDTLOG:  statement: ALTER TABLE "knob_sets" ENABLE TRIGGER USER
    2014-03-07 15:22:20 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:20 NZDTLOG:  replication connection authorized: user=_devicemgr
    2014-03-07 15:22:20 NZDTLOG:  statement: ALTER TABLE "od_library_items" ENABLE TRIGGER USER
    2014-03-07 15:22:20 NZDTLOG:  statement: ALTER TABLE "work_tasks" ENABLE TRIGGER USER
    2014-03-07 15:22:20 NZDTLOG:  statement: ALTER TABLE "user_tasks" ENABLE TRIGGER USER
    2014-03-07 15:22:20 NZDTLOG:  statement: ALTER TABLE "mdm_targets" ENABLE TRIGGER USER
    2014-03-07 15:22:21 NZDTLOG:  statement: ALTER TABLE "asset_metadata" ENABLE TRIGGER USER
    2014-03-07 15:22:21 NZDTLOG:  statement: ALTER TABLE "auto_join_profiles" ENABLE TRIGGER USER
    2014-03-07 15:22:21 NZDTLOG:  statement: ALTER TABLE "db_notifications" ENABLE TRIGGER USER
    2014-03-07 15:22:21 NZDTLOG:  statement: ALTER TABLE "internal_tasks" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "library_item_tasks" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "vpp_licenses" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "settings" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "device_groups" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "media" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:22:22 NZDTLOG:  statement: ALTER TABLE "owner_lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "library_item_metadata" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "dynamic_attributes_defaults" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "mdm_tasks" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "completed_tasks" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "system_applications" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "assets" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "devices" ENABLE TRIGGER USER
    2014-03-07 15:22:23 NZDTLOG:  statement: ALTER TABLE "vpp_products" ENABLE TRIGGER USER
    2014-03-07 15:22:24 NZDTLOG:  statement: ALTER TABLE "library_items_assets" ENABLE TRIGGER USER
    2014-03-07 15:22:24 NZDTLOG:  statement: ALTER TABLE "its_accounts" ENABLE TRIGGER USER
    2014-03-07 15:22:24 NZDTLOG:  statement: ALTER TABLE "profile_substitution_caches" ENABLE TRIGGER USER
    2014-03-07 15:22:24 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:24 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:24 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:24 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:24 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:24 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:24 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:24 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:24 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322725-2" ("value" varchar UNIQUE)
    2014-03-07 15:22:25 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:22:25 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322725-2" ("value" varchar UNIQUE)
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:31 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:22:31 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:22:35 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322728-2" ("value" varchar UNIQUE)
    2014-03-07 15:22:35 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:22:35 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322728-2" ("value" varchar UNIQUE)
    2014-03-07 15:22:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_18"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:23:11 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:23:11 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:23:11 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:23:11 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:23:11 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322766-2" ("value" varchar UNIQUE)
    2014-03-07 15:23:12 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:23:12 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322766-2" ("value" varchar UNIQUE)
    2014-03-07 15:24:14 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:24:14 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:24:14 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322870)
    2014-03-07 15:27:19 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322874-2" ("value" varchar UNIQUE)
    2014-03-07 15:27:19 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:27:19 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322874-2" ("value" varchar UNIQUE)
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_17"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_11"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_12"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_15"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_14"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_16"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_10"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_13"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:27:52 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322875-2" ("value" varchar UNIQUE)
    2014-03-07 15:27:52 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:27:52 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322875-2" ("value" varchar UNIQUE)
    2014-03-07 15:28:15 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:15 NZDTLOG:  connection authorized: user=_devicemgr database=template1
    2014-03-07 15:28:16 NZDTLOG:  statement: CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322881-2" ("value" varchar UNIQUE)
    2014-03-07 15:28:16 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:28:16 NZDTSTATEMENT:  CREATE TEMPORARY TABLE "__runtime_temp_devicemgrd-4322881-2" ("value" varchar UNIQUE)
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:19 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:28:19 NZDTLOG:  connection authorized: user=_devicemgr database=devicemgr_v2m0
    2014-03-07 15:28:53 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:28:53 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:28:53 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322886)
    2014-03-07 15:29:16 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:29:16 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:29:16 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322888)
    2014-03-07 15:29:23 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:29:23 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:29:23 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322890)
    2014-03-07 15:29:28 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:29:28 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:29:28 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322892)
    2014-03-07 15:29:38 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:29:38 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:29:38 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322894)
    2014-03-07 15:34:34 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:34:34 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:34:34 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322921)
    2014-03-07 15:34:45 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:34:45 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:34:45 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322923)
    2014-03-07 15:34:49 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:34:49 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:34:49 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322927)
    2014-03-07 15:34:52 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:34:52 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:34:52 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322929)
    2014-03-07 15:35:11 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:35:11 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:35:11 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322931)
    2014-03-07 15:35:14 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:35:14 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:35:14 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322933)
    2014-03-07 15:35:53 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:35:53 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:35:53 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322936)
    2014-03-07 15:35:58 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:35:58 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:35:58 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322939)
    2014-03-07 15:36:01 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:01 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:01 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322941)
    2014-03-07 15:36:06 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:06 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:06 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322944)
    2014-03-07 15:36:06 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:06 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:06 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322945)
    2014-03-07 15:36:12 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:12 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:12 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322948)
    2014-03-07 15:36:23 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:23 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:23 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322950)
    2014-03-07 15:36:26 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:26 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:26 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322952)
    2014-03-07 15:36:42 NZDTERROR:  could not read block 46 in file "base/17197/12027": read only 0 of 8192 bytes
    2014-03-07 15:36:42 NZDTCONTEXT:  SQL statement "CREATE TEMPORARY TABLE IF NOT EXISTS temp_updated_target_tasks (
              LIKE view_target_tasks
              ) ON COMMIT DELETE ROWS"
              PL/pgSQL function dm_prepare_updated_target_tasks(bigint,bigint[]) line 6 at SQL statement
    2014-03-07 15:36:42 NZDTSTATEMENT:  SELECT dm_prepare_updated_target_tasks(4322954)
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_17"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_11"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_12"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_15"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_14"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_16"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_10"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:37:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_13"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_17"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_11"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_12"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_15"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_14"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_16"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_10"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:38:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_13"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_17"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_11"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_12"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_15"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_14"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_16"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_10"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:39:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_13"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_17"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_11"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_12"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_15"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_14"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_16"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_9"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_10"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:35 NZDTLOG:  autovacuum: found orphan temp table "pg_temp_13"."temp_updated_target_tasks" in database "devicemgr_v2m0"
    2014-03-07 15:40:56 NZDTLOG:  statement: ALTER TABLE "widgets" ENABLE TRIGGER USER
    2014-03-07 15:40:56 NZDTLOG:  statement: ALTER TABLE "preference_panes" ENABLE TRIGGER USER
    2014-03-07 15:40:56 NZDTLOG:  statement: ALTER TABLE "printers" ENABLE TRIGGER USER
    2014-03-07 15:40:56 NZDTLOG:  statement: ALTER TABLE "installed_applications" ENABLE TRIGGER USER
    2014-03-07 15:40:56 NZDTLOG:  statement: ALTER TABLE "users" ENABLE TRIGGER USER
    2014-03-07 15:40:56 NZDTLOG:  statement: ALTER TABLE "profiles" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "dm_schema_information" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  connection received: host=[local]
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "provisioning_profiles" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  connection authorized: user=_devicemgr database=postgres
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "od_nodes" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "user_groups" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "network_lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "enterprise_apps" ENABLE TRIGGER USER
    2014-03-07 15:40:57 NZDTLOG:  statement: ALTER TABLE "library_items" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "data_files" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:40:58 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:40:58 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:40:58 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:40:58 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:40:58 NZDTFATAL:  terminating connection due to administrator command
    2014-03-07 15:40:58 NZDTLOG:  received smart shutdown request
    2014-03-07 15:40:58 NZDTLOG:  autovacuum launcher shutting down
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "knob_sets" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "od_library_items" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "work_tasks" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "user_tasks" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "mdm_targets" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "asset_metadata" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "auto_join_profiles" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "db_notifications" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "internal_tasks" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "library_item_tasks" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "vpp_licenses" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "settings" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "device_groups" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "media" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "owner_lab_sessions" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "library_item_metadata" ENABLE TRIGGER USER
    2014-03-07 15:40:58 NZDTLOG:  statement: ALTER TABLE "dynamic_attributes_defaults" ENABLE TRIGGER USER
    2014-03-07 15:40:59 NZDTLOG:  statement: ALTER TABLE "mdm_tasks" ENABLE TRIGGER USER
    2014-03-07 15:40:59 NZDTLOG:  statement: ALTER TABLE "completed_tasks" ENABLE TRIGGER USER
    2014-03-07 15:40:59 NZDTL

  • Profile Manager & Time Machine Restore

    Has anyone had luck with restoring the Profile Manager database from a Time Machine backup?
    We left for the holidays and everything was just spiffy with it.  When we returned the server was locked hard.  Upon reboot, when you try to go into the Profile Manager admin web page, right after login, you immediately get "A Server Error has Occured [reload]". Start/stop of Profile Manger has no effect, but in Server.app it is running.
    We think maybe the SQL database was corrupted sometime over break and want to restore it.  It's in /Library/Server/Profile Manger/
    Curious,
    -Steve

    I also have the same issue.
    I have a server which manages ipads using profile manager.
    I have restored a Mac Mini with the Server App and Profile Manager from a Time Machine backup. All my settings, devices and device groups are there but when i try and push anything out to an ipad the task just sits there pending and nothing happens. The ipad is is connected to the same network and i can ping the IP of the ipad from network utility on the server.
    Any ideas?
    Thanks

  • OS X Server 4.0.3 Profile Manager Settings for Mobile Users problems

    OS X Yosemite 10.10.2 with Server 4.0.3
    We are using Profile Manager to control Settings for Mobile Users, and give homeSync to the users. Our problem is that the exclude / Skip items (Items matching any of the following will not sync" This setting is not working an example. I have put this folder to Skip Items ~/Downloads but the home Sync still Syncing items in the Downloads folder.
    I have this problem on all the 3 users/machines on that server. Every client is using os x 10.10.1 og 10.10.2 I have check that the profile from the server is on the client.
    Has any a solution to that?
    Regards
    Brian

    I have no solution but have experienced failing sync settings (quite often) in both 10.6 Server and 10.9 + Server 3 (upgraded from 10.6 Server) in the same way as you described, it syncs too much. We have given up on synched home folders and will cut them and use other backup methods since we’re not so dependant on switching between different devices. Our users usually have one computer, one iPhone, one iPad and stay with those until it’s time to exchange them.

  • Active Directory Permissions to Profile Manager

    Hopefully this will help anyone else who runs into this trouble.
    OSX 10.9
    Server App 3.0.1
    We have a profile manager server setup using our Active Directory. After initial setup the system was working fine and all users could access the services.
    In attempting to adjust the web service the permissions for service was turned on and domain users could no longer log in to enroll devices.
    To resolve this issue I worked through the following steps.
    In Server App > Groups found Domain Users (The group containing all users in the domain)
    Clicked the Gear and choose Edit Access to Service
    Checked off Profile Manager.
    I then added Domain Users to the Local Workgroup and allowed the same access to services. This could be done with a different group if needed.
    It may work at this point but as an additional step you can install the Workgroup manager tool from Apples Download site. http://support.apple.com/kb/DL1698
    Log int to your Local Directory, I used /LDAPv3/127.0.0.1
    Find the group you added the permissions to in the local domain and add your Active  Directory Domain Users to that group.
    Hope this saves someone else the annoyances I went through.

    So after a little more trouble shooting as well I ended up using ths post after a backup of the database.
    To backup the database I use this Post - https://discussions.apple.com/thread/3791994
    pg_dump -U _devicemgr -h /Library/Server/ProfileManager/Config/var/PostgreSQL/ -c device_management > $HOME/device_management.sql
    And resetting the server app and database.
    https://discussions.apple.com/message/23925691?tstart=15#23925691?tstart=15
    Interstingly this pulled my old database info back in and restored some settings that had been lost. I'm not really sure why and wouldn't trust it to happen again.
    My issue is now that AD users have to log in twice. The first time they get a denyed error. Then they log out and login on the same browser or a differnt computer al together and they can get in.

  • How to configure profile manager in Maverics when DNS is externally managed?

    Are there any guides to configuring Profile Manager as a MDM?
    Here is my story.
    Recently installed  Mac mini at a school where the DNS is externally managed by the Education departments IT group.  Upgraded to Maverics and installed Server app.  Configured profile manager to the point where we could generate a trust profile and enrolment profile.  Doesn't work because there is no DNS entry for Mac mini server.   Create entry but need to change host name and computer name and local machine name to match entry.  Suddenly profile manager not working at all.  Delete server app and it's configuration file in ~/Library/.  Reinstall.  Now Profile manager won't even activate.  Speak to Apple on phone, run various commands to reinitialise Open Directory and reset profile manager.  To no avail.  Apple say to reinstall Mavericks, Server and try again.
    Funny thing is I got profile manager to work as an MDM in a test environment, but changing DNS after doing so much configuration seems to have made a real mess of things.  Vowing to make a time machine backup as soon as Mavericks re-installs.
    Anyone know of any guides other than the one on krypted.com, which appears to be for the previous version of Profile Manager.
    Stom

    In general, either your OS X Server box has a DNS translation for its address, or it doesn't. 
    If you don't have valid DNS, you will have problems with various services, as DNS is fundamental to distributed authentication and encryption, among other uses. 
    OS X Server doesn't recover well from installations that start off with DNS errors, and the wipe and reinstallation suggested by Apple is usually easier than resolving the various issues that tend to arise within the configurations of the various services.
    If your server doesn't have a valid DNS translation, then either add the DNS translation into your organization's local DNS environment, or work to retrain or replace the folks that are unwilling or unable to administer and to properly maintain local DNS services, or (far less desirably) configure and start your own parallel DNS services.  There are other options, of course. 
    I'd escalate this discussion to management, and let them sort this out — at its core, this very likely isn't a technical issue.

  • OS X Mountain Profile Manager 10.8.5 documentation

    OK, I've read the online documentation for the Profile Manager and I've had it working for some time now. What I haven't found is any detailed information regarding some of the settings (i.e., Login Window or Mobility).  Without that documentation I have to apply settings, push the profile and see what happens.  If it does what I think it's supposed to do great!  Otherwise back to hunt and peck.  I expect to have to test, but more detailed descriptions would be very helpful.  I've Googled and haven't found more detailed information.
    For example, if I check “Show network users” it will take a couple of minutes for the login screen to populate and you can literally scroll through the 5000+ AD accounts on our network.  Obviously not very helpful for a good sized network.
    Profile Manager OS X 10.8.5
    Mac mini servers with Open Directory/Active Directory “golden triangle.”
    http://www.apple.com/support/osxserver/profilemanager/
    http://www.youtube.com/channel/UCD1-hwFmYAz5PcpgxHV7dDA (great resource)
    Any help would be greatly appreciated.

    Welcome to the Apple Support Communities
    You are running OS X Lion (OS X 10.7.5), so if you want to upgrade to OS X Mountain Lion (OS X 10.8.2), you have to pay.
    First, see if your computer is compatible > http://www.apple.com/osx/specs If it's compatible, just open App Store and purchase OS X Mountain Lion. While it's being downloaded, you should make a backup of your data with Time Machine and/or Carbon Copy Cloner into an external disk, so if the upgrade doesn't go well, you will recover your data.
    Also, check that your applications are compatible > http://www.roaringapps.com When the download finishes, the Mountain Lion installer will show up, so follow its steps to upgrade to OS X Mountain Lion

  • HT201334 Apple configurator vs Profile Manager

    I downloaded apple configurator and have it working. Then I realized profile manager in OSX Server does the same thing. What is the difference, can I leave it as is? Any benefit of just using profile manager?

    Apple configurator has its uses.
    Apple configurator can be used as a "manual" standalone solution to manage you iDevices and AppleTVs.
    Apple configurator can be used in blended approach with Profile Manager.
    With Profile Manager you can manage iDevices , Macs , and I believe AppleTv over the AIR.
    - Apple Configure Stand Alone.
    When using Apple Configurator by itself you can , lock down an iPad in a way you see fit.
    1. You can make an iDevice in "Supervise Mode" increasing restricting of your iDevice , Profile Manager cannot do this at the moment , this feature will be available in Mavericks.
    2. Any future configuration changes to your iDevices , must be physically plugged in everytime for those changes.
    3. You can distribute free and paid apps.
    4. You can update your IOS updates all at once. When IOS 7 comes out this fall you probably dont want to touch every iDevice and update 1 at a time. You can use Apple Configurator to download the latest IOS , and any IDevice that you plugin will receive the update, this means downloading th IOS update one time on the mac, and pushing it out to whoever needs it. Profile Manager can't do this.
    5. You can name several iDevices sequently. If you have a cart of 30 it will be easy to rename your iDevices. Profile Manager can't do this.
    6. Apple configurator allows you to "backup and restore" its not a true complete image but its close. Profile Manager does not do backups or restores.
    7. Apple Configurator can be used to erase an iDevice.
    8. I'm probably missing some more features.
    - Profile Manager Stand Alone
    1. You can manage Macs not just iDevices.
    2. You must enroll the device before you can manage it, this can be done by pushing out an email , via a website etc.
    3. Everything happens over the Air.
    4. When enrolling , users can use their Open Directory or Active Directory ( if your Apple server is bound to AD server ). You can also create a generic account for enrolling purposes.
    5. You can wipe devices over the air.
    6. You can make pass code resets for iDevices.
    7. You can manage users in groups , even nested groups. I manage staff and student iDevices. Our wireless system is seperated for staff and students each wireless has its own SSID. I created 2 upper level Profile Manager Groups , one called WiFi Student and one called WiFi Staff, all my student iDevice groups are nested under WiFi Student group and all my staff idevice groups are nested. This makes managing my wifi a breeze. I also include my mifi wireless info , in case i need a backup emergency wireless.
    8. Im sure theres other features.
    - Apple Configurator And Profile Manager Blended
    1. Push out initial wifi settings. I setup a simple wireless router to connect my devices ( there are types when I setup over 50 ipads , and our network runs out of IPs)
    2. You can use Apple Configurator to push out Profile Managers "enrollment profile" to many iDevices. You dont want to enroll a full iDevice cart one at a time via a web browser.
    Maverick and IOS 7
    In the fall everything will change , it is amazing what we will be able to do. Over the Air Supervise Mode , Install Apps over the air with no user interaction, App codes become licenses , which are revokeable and reusable. Out of the box enrollment ... There may be no need for Apple Configurator come this fall. So many things are changing I recommend watching the new WWDC2013 Videos, specially the one on device management.
    Back to original topic. 
    I value both products , they have their specilties and when you blended , you can get things done efficiently.

  • Where are the profiles stored for Profile Manager.

    Where are the profiles stored for Profile Manager?
    I created a profile attached to a user group and then made the mistake of removing the group without first deleting the profile.
    Now the orphan profile can't be managed (it's no longer visible) and is still being pushed out to users.
    The group I deleted had another group as it's members.
    Example:
    Active Sync User Group was a member of VPN Group.
    VPN Group was deleted (it had the VPN settings payload)
    Profile with VPN settings are still pushed out to Active Sync User Group even though VPN Group no longer exists.
    I'm hoping I can manually remove this profile but I'm thinking it may be contained in Postgres. If that's the case I would appreciate any suggestions/methods to access the database to make modifications.
    Thanks

    The information/data for apps is stored together with the app in both the iPad and in the backup on your computer. When you drop a file in the file sharing section of apps it gets added to the backup and to the iPad. When you delete it it get deleted from the backup and from the iPad.

Maybe you are looking for