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

FATAL: role "collab" does not exist

So, I am not able to read the Wiki settings in the Server application. I notice that in the system log, I'm getting the following error:


FATAL: role "collab" does not exist


How do I go about adding the collab role?

Posted on Jul 22, 2011 10:24 AM

Reply
41 replies

Jul 26, 2011 2:30 PM in response to IowaBoy

Ditto for me! Any ideas, where/how are the roles defined? Or even what is the role? This affects my new "test" server on my macbool pro as well as my upgraded main server on a mac mini server.


I think that when I've got this sorted I've got the upgrade sorted! Certainly not a simple upgrade!

1. server app access vanished (servermgrd listener disabled after upgrade)

2. invalid path in one of the configuration files

3. invalid permissions on one of the log directories

4. collab role does not exist

5. remote server admin does not work (but local does), not a "show stopper", but frustrating!

Jul 26, 2011 11:10 PM in response to chris.cam

It's a postgresl error.


The postgresql role 'collab' used byt the collaboration services is missing.


You might have a database corruption.


You can try to restore from a backup the database:


Either the /var/pgsql directory (Postgres being stopped when you do this)


or a postgresql dump made with pg_dump or pg_dumpall



do a ls /var to see if you have any backups


Most of the problems could be realted to the db being broken


As a last resort you can try reinitializing the deviceManager postgresql DB with this command


sudo /usr/share/devicemgr/backend/wipeDB.sh


I suspect though you would loose all you Profiles in profileManager


You'd go back to factory defaults but at least it could fix you missing role...


Just a guess...Hope this helps!

Aug 21, 2011 11:28 PM in response to Moises_Ruiz

First, assure the postgres database service is running:


$ sudo serveradmin start postgres


It should respond:


postgres:state = "RUNNING"


Now check that postgres is functioning trying to connect, e.g.:


$ sudo psql -U _postgres -d postgres


where _postgres is the superuser and postgres is a database to connect to.


Then, try again running the script, which I assume you run with:


sudo ./CoreCollaborationPostgreSQLExtras.sh

Sep 11, 2011 8:22 AM in response to Doug Whitmore

I'm sorry, I'm not really that familiar with server or the command line interface. I bought my new mac mini server in part to mess around with it and try to teach myself more about both topics. So could you explain how to run the scripts you are referencing in your post? I'm sure this is a stupid comment, but I tried to find the folder referenced above (/System/Library/ServerSetup/CommonExtras/PostgreSQLExtras/CoreCollaborationPos tg), and could not find it in the Library. Thanks in advance...

Sep 11, 2011 10:44 AM in response to Jager2247

This seems very strange. What is the first subdirectory you don't have? Surely you have /System/Library/ServerSetup, otherwise you haven't Lion Server! If, for some strange reason, you lost subdirectories CommonExtras or PostGreSQLExtras I think you should try to re-install the server part of Lion. Otherwise, if you miss the only script CoreCollaborationPostgreSQLExtras.sh, let me know and I'll send you it.

Sep 11, 2011 2:15 PM in response to perry9956

Ok sorry about that, I was being a total idiot. I couldn't figure out how to get to the System folder. Anyway, finally got there, and I too had to run every script in the folder, but it works now. I tried calling Apple last night and after a bunch of troubleshooting steps, they were going to have me wipe the HD and start from scratch reinstalling Lion Server. Really glad I didn't have to do that! Thanks!

FATAL: role "collab" does not exist

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