Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

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

Profile Manager and Wiki Problems

Hi Guys,


I have tried a clean install twice and have had multiple issues with missing files that the system can't create, permissions out and all sorts of bugs. I successfully have the server up and running, but have continued issues with the Profile manager and potentially linked, the Wiki server.


I get the standard 'Error reading configuration' when I select both the Wiki and Profile Manager.


Here is the log from when I click on Profile Manager:


Jul 25 18:35:05 My-Server servermgrd[1934]: servermgr_devicemgr: prepareForOffline: error db:migrate: 1

Jul 25 18:35:07 My-Server CoreCollaborationServer[2009]: [CSServiceDispatchHTTPConnection:197 40f360 +0ms] Caught exception "FATAL: role "collab" does not exist

" [PGCConnectionError] executing Request{SessionService.currentOrNewSession()}:

(

0 CoreFoundation 0x00007fff8d492986 __exceptionPreprocess + 198

1 libobjc.A.dylib 0x00007fff887a1d5e objc_exception_throw + 43

2 PostgreSQLClient 0x000000010f625459 -[PGCConnection init] + 0

3 PostgreSQLClient 0x000000010f625535 -[PGCConnection initWithInfo:] + 157

4 PostgreSQLClient 0x000000010f62509a +[PGCConnection connectWithInfo:] + 47

5 CSService 0x000000010f58aba7 -[CSConnectionPool openConnection] + 852

6 CSService 0x000000010f58b5fa -[CSConnectionPool openOrReuseConnection] + 249

7 CSService 0x000000010f58b678 -[CSConnectionPool currentConnection] + 87

8 CSService 0x000000010f5b535d -[CSEntitySchema calculateSchemaChecksum] + 42

9 CSService 0x000000010f5b53e5 -[CSEntitySchema initializeCaches] + 42

10 CSService 0x000000010f5b5f86 -[CSEntitySchema init] + 167

11 CSService 0x000000010f5b5252 +[CSEntitySchema sharedInstance] + 66

12 CSService 0x000000010f58d0ba -[CSServiceBase willExecuteRequest:] + 537

13 CSService 0x000000010f588b4c -[CSServiceDispatcher executeRequest:asPartOfBatch:] + 1355

14 CSService 0x000000010f588ff6 -[CSServiceDispatcher executeRequest:] + 74

15 collabd 0x000000010f53914d -[CSServiceDispatchHTTPConnection httpResponseForMethod:URI:] + 1081

16 collabd 0x000000010f51df35 -[HTTPConnection replyToHTTPRequest] + 614

17 collabd 0x000000010f52fa7b __37-[GCDAsyncSocket completeCurrentRead]_block_invoke_0 + 91

18 libdispatch.dylib 0x00007fff8829e90a _dispatch_call_block_and_release + 18

19 libdispatch.dylib 0x00007fff882a015a _dispatch_queue_drain + 264

20 libdispatch.dylib 0x00007fff8829ffb6 _dispatch_queue_invoke + 54

21 libdispatch.dylib 0x00007fff8829f7b0 _dispatch_worker_thread2 + 198

22 libsystem_c.dylib 0x00007fff866f23da _pthread_wqthread + 316

23 libsystem_c.dylib 0x00007fff866f3b85 start_wqthread + 13

)

Jul 25 18:35:07 My-Server servermgrd[1934]: servermgr_wiki: wikiconfig failed: /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:128:in `sendRequest': FATAL: role "collab" does not exist (Collaboration::PGCConnectionError)

from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:116:in `map'

from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:116:in `sendRequest'

from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:153:in `execute'

from /usr/share/servermgrd/bundles/servermgr_wiki.bundle/Contents/Resources/wikiconf ig.rb:21:in `initialize'

from /usr/share/servermgrd/bundles/servermgr_wiki.bundle/Contents/Resources/wikiconf ig.rb:104:in `new'

from /usr/share/servermgrd/bundles/servermgr_wiki.bundle/Contents/Resources/wikiconf ig.rb:104

Jul 25 18:35:13 My-Server servermgrd[1934]: servermgr_devicemgr: prepareForOffline: error db:migrate: 1


And here is the log from when I click on Wiki:


Jul 25 18:40:08 My-Server CoreCollaborationServer[2062]: [CSServiceDispatchHTTPConnection:197 40f360 +0ms] Caught exception "FATAL: role "collab" does not exist

" [PGCConnectionError] executing Request{SessionService.currentOrNewSession()}:

(

0 CoreFoundation 0x00007fff8d492986 __exceptionPreprocess + 198

1 libobjc.A.dylib 0x00007fff887a1d5e objc_exception_throw + 43

2 PostgreSQLClient 0x0000000109601459 -[PGCConnection init] + 0

3 PostgreSQLClient 0x0000000109601535 -[PGCConnection initWithInfo:] + 157

4 PostgreSQLClient 0x000000010960109a +[PGCConnection connectWithInfo:] + 47

5 CSService 0x0000000109569ba7 -[CSConnectionPool openConnection] + 852

6 CSService 0x000000010956a5fa -[CSConnectionPool openOrReuseConnection] + 249

7 CSService 0x000000010956a678 -[CSConnectionPool currentConnection] + 87

8 CSService 0x000000010959435d -[CSEntitySchema calculateSchemaChecksum] + 42

9 CSService 0x00000001095943e5 -[CSEntitySchema initializeCaches] + 42

10 CSService 0x0000000109594f86 -[CSEntitySchema init] + 167

11 CSService 0x0000000109594252 +[CSEntitySchema sharedInstance] + 66

12 CSService 0x000000010956c0ba -[CSServiceBase willExecuteRequest:] + 537

13 CSService 0x0000000109567b4c -[CSServiceDispatcher executeRequest:asPartOfBatch:] + 1355

14 CSService 0x0000000109567ff6 -[CSServiceDispatcher executeRequest:] + 74

15 collabd 0x000000010951814d -[CSServiceDispatchHTTPConnection httpResponseForMethod:URI:] + 1081

16 collabd 0x00000001094fcf35 -[HTTPConnection replyToHTTPRequest] + 614

17 collabd 0x000000010950ea7b __37-[GCDAsyncSocket completeCurrentRead]_block_invoke_0 + 91

18 libdispatch.dylib 0x00007fff8829e90a _dispatch_call_block_and_release + 18

19 libdispatch.dylib 0x00007fff882a015a _dispatch_queue_drain + 264

20 libdispatch.dylib 0x00007fff8829ffb6 _dispatch_queue_invoke + 54

21 libdispatch.dylib 0x00007fff8829f7b0 _dispatch_worker_thread2 + 198

22 libsystem_c.dylib 0x00007fff866f23da _pthread_wqthread + 316

23 libsystem_c.dylib 0x00007fff866f3b85 start_wqthread + 13

)

Jul 25 18:40:08 My-Server servermgrd[1934]: servermgr_wiki: wikiconfig failed: /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:128:in `sendRequest': FATAL: role "collab" does not exist (Collaboration::PGCConnectionError)

from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:116:in `map'

from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:116:in `sendRequest'

from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:153:in `execute'

from /usr/share/servermgrd/bundles/servermgr_wiki.bundle/Contents/Resources/wikiconf ig.rb:21:in `initialize'

from /usr/share/servermgrd/bundles/servermgr_wiki.bundle/Contents/Resources/wikiconf ig.rb:104:in `new'

from /usr/share/servermgrd/bundles/servermgr_wiki.bundle/Contents/Resources/wikiconf ig.rb:104



Does anyone have any ideas on where to start trouble shooting this?


I have seen some of the other posts about this and have configured my settings accordingly:


User uploaded file


Thanks in advance.


matt_hornet

Mac mini, Mac OS X (10.6.7)

Posted on Jul 25, 2011 7:43 PM

Reply
22 replies

Aug 5, 2011 3:14 PM in response to matt_hornet

Same here... 😟


After way too much time reinstalling and trying to work through log error message, I currently suspect that "repair permissions" screws things up, which would would explain why my system seems to work fine after a reinstall until the daily maintenance task runs... A recovery from time machine to a working state, followed by a "repair permissions" and a reboot (expecting the system to be fine) results in a screwed up system for me...


Hope someone finds a workaround or Apple provide a fix very soon...

Aug 6, 2011 3:49 AM in response to Jsh1971

Thank for the suggestion. Yes, I am aware of that as I found it while searching for a solution and have had to use it to get around the " role "collab" does not exist" while setting things up, but once everything is running smoothly and then screws up over night then I can't contact the database any more:


PostgreSQLExtras> CoreCollaborationPostgreSQLExtras.sh createuser: could not connect to database postgres: could not connect to server: Permission denied

Is the server running locally and accepting

connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

createdb: could not connect to database postgres: could not connect to server: Permission denied


Log file says:


06/08/2011 12:05:50.951 sudo: user : TTY=ttys000 ; PWD=/System/Library/ServerSetup/CommonExtras/PostgreSQLExtras ; USER=root ; COMMAND=./CoreCollaborationPostgreSQLExtras.sh

06/08/2011 12:06:24.467 servermgrd: servermgr_postgres: waiting for postgres to respond

06/08/2011 12:06:24.968 servermgrd: servermgr_postgres: waiting for postgres to respond

06/08/2011 12:06:25.469 servermgrd: servermgr_postgres: waiting for postgres to respond

06/08/2011 12:06:25.970 servermgrd: servermgr_postgres: waiting for postgres to respond

06/08/2011 12:06:26.471 servermgrd: servermgr_postgres: Timed out trying to start postgres.



My log spews out the following every ten seconds or so (strangely, the Podcast services are not turned on as I do not need/want them):


06/08/2011 12:34:17.645 com.apple.pcastlibraryredirectord: Podcast Producer is configured, not launching the URL redirector.

06/08/2011 12:34:17.646 com.apple.launchd: (com.apple.pcastlibraryredirectord) Throttling respawn: Will start in 5 seconds

06/08/2011 12:34:23.089 com.apple.collabd.notifications: /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:42:in `http_put': Couldn't connect to server (Curl::Err::ConnectionFailedError)

06/08/2011 12:34:23.089 com.apple.collabd.notifications: from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:42:in `http_put'

06/08/2011 12:34:23.089 com.apple.collabd.notifications: from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:102:in `sendRequest'

06/08/2011 12:34:23.089 com.apple.collabd.notifications: from /usr/share/collabd/server/ruby/lib/collaboration/service_client.rb:153:in `execute'

06/08/2011 12:34:23.089 com.apple.collabd.notifications: from notifications.rb:145:in `initialize'

06/08/2011 12:34:23.089 com.apple.collabd.notifications: from notifications.rb:439:in `new'

06/08/2011 12:34:23.089 com.apple.collabd.notifications: from notifications.rb:439

06/08/2011 12:34:23.101 com.apple.launchd: (com.apple.collabd.notifications[15648]) Exited with code: 1

06/08/2011 12:34:23.101 com.apple.launchd: (com.apple.collabd.notifications) Throttling respawn: Will start in 9 seconds

06/08/2011 12:34:23.000 kernel: nstat_lookup_entry failed: 2


After rebooting there are no new messages in the PostgreSQL.log file, but prior to that, after services were misbehaving, I can still find the following in that log file:


2011-08-05 22:33:21 CEST LOG: connection authorized: user=collab database=collab

2011-08-05 22:38:52 CEST LOG: connection received: host=[local]

Profile Manager and Wiki Problems

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