Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Upgrading to OS X Server 2.2 Results in Errors

After upgrading to the new Server 2.2 app today, I received the following warning once the upgrade process had completed:

An error occurred while updating your service data.

Services may not function as expected

The, opening the Server app, I received the following warning:

An error occurred on the server while reading settings.

The error occurred while reading settings for the Profile Manager service.

And in Console I find the following error (not exactly sure which ones to look for) in the profilemangager.log:

Dec 7 10:12:40 rocking-mm.com ProfileManager[29376] <Info>: ServermgrDevicemgr starting...

Dec 7 10:12:40 rocking-mm.com ProfileManager[29376] <Info>: default_profile_created_at_least_once was already true

Dec 7 10:12:40 rocking-mm.com ProfileManager[29376] <Warning>: ** has_many_polymorphs: Warning; not all usage scenarios for polymorphic scopes are supported yet.

Dec 7 10:12:40 rocking-mm.com ProfileManager[29376] <Info>: ServermgrDevicemgr done!

I have also seen other errors aluding to postgres not being available.


Has anyone experienced similar problems when upgrading to 2.2? I'm getting sick of OS X Server ever since Lion. Snow Leopard Server wasn't perfect, but allowed for much more control to correct problems.


Thanks!

~Mike

OS X Server, 4GB RAM, Mountain Lion

Posted on Dec 7, 2012 10:28 AM

Reply
23 replies

Dec 7, 2012 7:50 PM in response to mscott_mdm

Hi mscott_mdm,


Thanks for providing some feedback and possible troubleshooting suggestions. Unfortunately that command did not result in any output. Here's the terminal:


myserver:~ myuser$ sudo grep "^.* PGError: ERROR: relation .* does not exist" /Library/Logs/ProfileManager/profilemanager.log

myserver:~ myuser$


Dec 8, 2012 4:34 PM in response to Miggl

OK, I think I found the error message that is pertinent to this problem:


12/8/12 5:32:19.467 PM Server[6366]: error reading data stores for servermgr_devicemgr = Error Domain=servermgr_devicemgr Code=1 "/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendo r/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb :941:in `initialize': could not connect to server: No such file or directory (PGError)

Is the server running locally and accepting

connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:621:in `each'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:176:in `process'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:113:in `send'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:113:in `run'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/commands/runner.rb:39

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /runner:3

" UserInfo=0x7faf7da6f4d0 {NSLocalizedDescription=/Applications/Server.app/Contents/ServerRoot/usr/share/ devicemgr/backend/vendor/rails/activerecord/lib/active_record/connection_adapter s/postgresql_adapter.rb:941:in `initialize': could not connect to server: No such file or directory (PGError)

Is the server running locally and accepting

connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:621:in `each'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:176:in `process'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:113:in `send'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /../config/../vendor/rails/railties/lib/initializer.rb:113:in `run'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/commands/runner.rb:39

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

from /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/script /runner:3

}


Dec 8, 2012 4:50 PM in response to Miggl

And here's another error message related to wiki server (which also can't read settings):


12/8/12 5:50:00.523 PM servermgrd[8608]: servermgr_wiki: wikiconfig failed on retry, giving up: /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/server/ruby/lib/ collaboration/service_client.rb:139:in `sendRequest': Connection to DB failed (Collaboration::CSDatabaseError)

from /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/server/ruby/lib/ collaboration/service_client.rb:126:in `map'

from /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/server/ruby/lib/ collaboration/service_client.rb:126:in `sendRequest'

from /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/server/ruby/lib/ collaboration/service_client.rb:164:in `execute'

from /Applications/Server.app/Contents/ServerRoot/usr/share/servermgrd/bundles/serve rmgr_wiki.bundle/Contents/Resources/wikiconfig.rb:31:in `initialize'

from /Applications/Server.app/Contents/ServerRoot/usr/share/servermgrd/bundles/serve rmgr_wiki.bundle/Contents/Resources/wikiconfig.rb:122:in `new'

from /Applications/Server.app/Contents/ServerRoot/usr/share/servermgrd/bundles/serve rmgr_wiki.bundle/Contents/Resources/wikiconfig.rb:122


Dec 9, 2012 6:35 AM in response to mscott_mdm

Thanks mscott_mdm,


I have similar symptoms. Ran your commands. Here's the output:


server:DiagnosticReports user$ sudo serveradmin status postgres_server

Password:

postgres_server:state = "STOPPED"

server:DiagnosticReports user$ sudo serveradmin start postgres_server

postgres_server:error = "CANNOT_START_SERVICE_TIMEOUT_ERR"

server:DiagnosticReports user$


Since running these, console includes many copies of the lines:


09/12/2012 08:52:55.294 com.apple.launchd[1]: (com.apple.postgres[26005]) Exited with code: 1

09/12/2012 08:52:55.294 com.apple.launchd[1]: (com.apple.postgres) Throttling respawn: Will start in 10 seconds


Message was edited by: Jon G. Hall

Dec 9, 2012 5:07 PM in response to Miggl

Hi guys,


I got fed up with this ... at some point it seems like you're chasing your own tail to fix these issues. I restored from Time Machine to the day prior to installing Server Admin 2.2 and it appears to work now. There are still errors in the logs, but at least all the services are working. My next step is to move file shares to another drive, backup, then reinstall clean and migrate from Time Machine, once all the services are up and running.

Dec 9, 2012 7:07 PM in response to mscott_mdm

If I remember correctly, I wanted to upgrade first, then move the service data location. I know I moved it, but I'm thinking after. Forgive my forgetfulness, I have been muddling about with this issue so much over the last few days that I don't remember exactly.


But, on that point:

After I restored from Time Machine, I did change the service data location, then performed the Server App update to 2.2, and it seems to have gone well this time -- at least all the services are running and I don't get Error Reading Settings anymore.

Dec 11, 2012 12:08 AM in response to Jon G. Hall

Hey Jon, there are a number of possibilities as to why postgres is not starting up successfully, and that's clearly the problem in your case (and potentially Miggl's). Could you check on the output of some commands for me?


sudo ls -la /Library/Server/PostgreSQL\ For\ Server\ Services/

sudo ls -la /Library/Server/PostgreSQL\ For\ Server\ Services/Data

sudo ls -la /Library/Server/PostgreSQL\ For\ Server\ Services/Socket

sudo ls -la /Library/Logs/PostgreSQL

sudo cat /Library/Server/PostgreSQL\ For\ Server\ Services/Config/com.apple.postgres.plist

sudo serveradmin settings postgres_server


The postgres log would indicate if there is any data corruption, which is highly unlikely. Its timestamps would also indicate if it has started up successfully since you updated to 2.2:

sudo tail -20 /Library/Logs/PostgreSQL/PostgreSQL_Server_Services.log


/Library/Logs/ServerSetup.log should reference 58_postgres_setup.rb, and no errors should be in the log regarding the execution of that tool. (You should have been notified during update if it failed).


Also, have you migrated from older OS releases where server was in use? Or is this a clean Mountain Lion + Server 2.1.1 (or 2.1?) updated to 2.2?


Finally, we can get more information from postgres if you take the following steps:

1. Open in an editor: /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.a pple.postgres.plist

2. Add the following four lines to the plist's dictionary:

<key>StandardErrorPath</key>

<string>/tmp/postgres_stderr</string>

<key>StandardOutPath</key>

<string>/tmp/postgres_stdout</string>

3. Save those changes, and run "sudo killall -HUP com.apple.serverd; sudo serverctl disable service=com.apple.postgres; sudo serverctl enable service=com.apple.postgres"


These steps should cause the file "/tmp/postgres_stderr" to be created and if postgres is failing due to a reason that does not show up in the logs, it may show up in this file.


All of this requested information applies to Miggl as well (if this the problem reoccurs), or anyone who is seeing those launchd failures to start postgres in Console (or /var/log/system.log).


If that doesn't reveal the cause then we may need to inspect the logs more carefully, and having you send the file created by "/Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/loggat her.sh" to Apple, perhaps along with a http://bugreport.apple.com report, would be useful.

Dec 11, 2012 4:20 AM in response to Miggl

As far as I have found out the culprit seems to be in this error message that I found in

/Library/Logs/PostgreSQL/PostgreSQL.log:



postgresql_adapter.rb:941:in `initialize': could not connect to server: No such file or directory (PGError)

Is the server running locally and accepting

connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?


What I have in my failed updated configuration are two PostgreSQL folders in /Library/Server:


One is /Library/Server/PostgreSQL, with all the data, including a folder called:

"Data.2012-12-07 14:46.before_upgrade_to_postgres_9.2"

The other one is as folder

"/Library/Server/PostgreSQL For Server Services" which does not contain anything.


It seems to me that something went wrong during the update, causing this mayhem. I already have a postgresql server running, over sockets and over tcp/ip. It seems that Apple in its infinite wisdom has decided to also enable tcp/ip, causing two postgresql server to fight over the socket on localhost (5432). That caused one of the databases server to dy from time to time (They both fire up automatically after they get killed), which causes a dorked upgrade.


Look for stuff like:

Dec 7 15:35:12 rolex com.apple.launchd[1] (org.postgresql.postgres[53501]): Exited with code: 1

Dec 7 15:35:12 rolex com.apple.launchd[1] (org.postgresql.postgres): Throttling respawn: Will start in 10 seconds

Dec 7 15:35:23 rolex com.apple.launchd[1] (com.apple.postgres[53508]): Exited with code: 2

Dec 7 15:35:23 rolex com.apple.launchd[1] (com.apple.postgres): Throttling respawn: Will start in 10 seconds


These are two postgresses fighting over a tcp port.


When I changed the tcp port of one of the two servers, (the one from macports to 5433), they did not interfere anymore. The unix socket of macports postgresql is /tmp/.s.PGSQL.[portnumber], the MountainLion Server is now /var/pgsql_socket/.s.PGSQL.5432.


I'd assume that the data in /Library/Server/PostgreSQL should somehow converge into data in

"/Library/Server/PostgreSQL For Server Services".




Perhaps some of the problems caused over here is caused by that. I know that a lot of people have some postgresql server running, even if they do not know it, like with Heroku, or some other program that is running postgresql internally.


Johan Henselmans

Dec 11, 2012 8:19 AM in response to joel2931

Hi All,


Thanks for your help so far. I've been poking around: the log (see end of this post for a transcript (server.log is a dummy name)) that gets written to whenever the "Error reading settings" comes up is devicemgrd.log (which is under ProfileManager in console; I also looked in profilemanager.log but that hasn't been written to since Dec 7 09:53:00, possibly the time when I updated the server(?)).


In the devicemgrd log, at 16:03:33, there's

Dec 11 16:03:33 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake db:create:

FATAL: role "_devicemgr" does not exist

I've looked in the Users pane and _devicemgr appears to be there.

User uploaded file

Does this help? I'll work on your other ideas later and post back.


Below is the devicemgrd log file:

Marker - 11 Dec 2012 16:03:30

Dec 11 16:03:33 server.local ProfileManager[30132] <Info>: Making sure Rails is configured properly

Dec 11 16:03:33 server.local ProfileManager[30132] <Info>: Running rake command: '/usr/bin/rake db:create'

Dec 11 16:03:33 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake db:create:

FATAL: role "_devicemgr" does not exist

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/databases.rake:70:in `create_database'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/databases.rake:31

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `call'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :597:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :583:in `invoke'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2051:in `invoke_task'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2023:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2001:in `run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :1998:in `run'

/usr/bin/rake:31

Couldn't create database for {"pool"=>5, "host"=>"/Library/Server/PostgreSQL For Server Services/Socket", "adapter"=>"postgresql", "database"=>"device_management", "encoding"=>"UTF8", "username"=>"_devicemgr"}

(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)

Dec 11 16:03:33 server.local ProfileManager[30132] <Info>: Running rake command: '/usr/bin/rake --trace db:migrate'

Dec 11 16:03:35 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake --trace db:migrate:

rake aborted!

FATAL: role "_devicemgr" does not exist

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `each'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:176:in `process'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `run'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/misc.rake:4

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `call'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :597:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :607:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :596:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :583:in `invoke'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2051:in `invoke_task'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2023:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2001:in `run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :1998:in `run'

/usr/bin/rake:31

(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)

** Invoke db:migrate (first_time)

** Invoke environment (first_time)

** Execute environment

Dec 11 16:03:35 server.local ProfileManager[30132] <Error>: Retry #1 of database migration...

Dec 11 16:03:35 server.local ProfileManager[30132] <Info>: Running rake command: '/usr/bin/rake --trace db:migrate'

Dec 11 16:03:37 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake --trace db:migrate:

rake aborted!

FATAL: role "_devicemgr" does not exist

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `each'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:176:in `process'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `run'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/misc.rake:4

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `call'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :597:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :607:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :596:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :583:in `invoke'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2051:in `invoke_task'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2023:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2001:in `run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :1998:in `run'

/usr/bin/rake:31

(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)

** Invoke db:migrate (first_time)

** Invoke environment (first_time)

** Execute environment

Dec 11 16:03:37 server.local ProfileManager[30132] <Error>: Retry #2 of database migration...

Dec 11 16:03:37 server.local ProfileManager[30132] <Info>: Running rake command: '/usr/bin/rake --trace db:migrate'

Dec 11 16:03:38 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake --trace db:migrate:

rake aborted!

FATAL: role "_devicemgr" does not exist

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `each'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:176:in `process'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `run'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/misc.rake:4

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `call'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :597:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :607:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :596:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :583:in `invoke'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2051:in `invoke_task'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2023:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2001:in `run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :1998:in `run'

/usr/bin/rake:31

(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)

** Invoke db:migrate (first_time)

** Invoke environment (first_time)

** Execute environment

Dec 11 16:03:38 server.local ProfileManager[30132] <Error>: Retry #3 of database migration...

Dec 11 16:03:38 server.local ProfileManager[30132] <Info>: Running rake command: '/usr/bin/rake --trace db:migrate'

Dec 11 16:03:40 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake --trace db:migrate:

rake aborted!

FATAL: role "_devicemgr" does not exist

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `each'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:176:in `process'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `run'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/misc.rake:4

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `call'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :597:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :607:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :596:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :583:in `invoke'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2051:in `invoke_task'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2023:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2001:in `run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :1998:in `run'

/usr/bin/rake:31

(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)

** Invoke db:migrate (first_time)

** Invoke environment (first_time)

** Execute environment

Dec 11 16:03:40 server.local ProfileManager[30132] <Error>: Retry #4 of database migration...

Dec 11 16:03:40 server.local ProfileManager[30132] <Info>: Running rake command: '/usr/bin/rake --trace db:migrate'

Dec 11 16:03:42 server.local ProfileManager[30132] <Info>: Output of rake command '/usr/bin/rake --trace db:migrate:

rake aborted!

FATAL: role "_devicemgr" does not exist

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 941:in `connect'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 217:in `initialize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `new'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb: 37:in `postgresql_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:223:in `new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:245:in `checkout_new_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:188:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `loop'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:184:in `checkout'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:183:in `checkout'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:98:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_po ol.rb:326:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:123:in `retrieve_connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/connection_adapters/abstract/connection_sp ecification.rb:115:in `connection'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activerecord/lib/active_record/base.rb:1299:in `table_exists?'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /initializers/settings.rb:10

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:173:in `load'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `each'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:176:in `process'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `send'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /../vendor/rails/railties/lib/initializer.rb:113:in `run'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/config /environment.rb:55

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `gem_original_require'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygem s/custom_require.rb:31:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/activesupport/lib/active_support/dependencies.rb:182:in `require'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/vendor /rails/railties/lib/tasks/misc.rake:4

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `call'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :636:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :631:in `execute'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :597:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :607:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :604:in `invoke_prerequisites'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :596:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor .rb:242:in `synchronize'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :590:in `invoke_with_call_chain'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :583:in `invoke'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2051:in `invoke_task'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2029:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2023:in `top_level'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2001:in `run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :2068:in `standard_exception_handling'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb :1998:in `run'

/usr/bin/rake:31

(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)

** Invoke db:migrate (first_time)

** Invoke environment (first_time)

** Execute environment

Dec 11 16:03:42 server.local ProfileManager[30132] <Error>: devicemgrd: Terminating on unhandled exception Rake command failed with 256 at /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/webserver/devi cemgrd:276:in `Rake'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/webserver/devi cemgrd:230:in `SetupRails'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/webserver/devi cemgrd:158:in `Run'

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/webserver/devi cemgrd:851

Upgrading to OS X Server 2.2 Results in Errors

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