I was trying to follow the openfire documentation but this part doesn't seem to be working for me.
I'm using openfire with an AD connection and a postgresql database. I was able to get everything setup WITHOUT importing the database schema, but after changing some (openfire) system settings and rebooting my server, I was getting some database access errors in the openfire log, so I decided to start over and try importing the schema.
First of all, I tried importing the schema into the already existing database, but I just got a whole string of errors that seemed to indicate all the entries already existed. This was my first clue that perhaps the import step is not necessary.
Then I decided to drop the database completely and recreate it. Then I was able to import the openfire schema successfully. (see here for more details: I'm dying trying to import the postgresql schema )
Then I restarted the initial openfire config, and after inputting all my database authentication data, I'm getting this error from the web config:
"The Openfire database schema does not appear to be installed. Follow the installation guide to fix this error."
But that is exactly what I did!
In contrast, when I used the webconfig WITHOUT importing the schema, I got no errors at that part of the setup. It seems to me that perhaps the webconfig is doing the schema import automatically but the instructions are still out of date. In fact, that page of the webconfig specifically states:
Note: Database scripts for most popular databases are included in the server distribution at [Openfire_HOME]/resources/database.
Is the
psql -d mydatabase -f /usr/share/openfire/resources/database/openfire_postgressql.sql
step still necessary?