Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ms sql acces rights problem

gravballe July 23, 2017

I keep getting this error:

ERROR [main] [sf.hibernate.util.JDBCExceptionReporter] logExceptions SELECT permission denied on object 'BANDANA', database 'Confluence', schema 'dbo'.

even though my db user seem to have the correct permissions to acces the and select in the db. I am trying to get confluence working on a ms sql.

4OVXoddAFoSzZ9

If i log into the database with the user i have created for it (wiki) i can select just fine on the database, so what am i missing?

1 answer

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2017

In the setup wizard, in the database connection URL, please make sure the database name is confluence_wiki, Confluence defaults to the database name "confluence" and it looks like that's the database referred to in the error message you posted:

SELECT permission denied on object 'BANDANA', database 'Confluence', schema 'dbo'.

It sounds like you already saw: Database Setup for SQL Server but please double check the steps if the issue doesn't turn out to be the database name.

gravballe July 28, 2017

I have the connection string as:

 

jdbc:jtds:sqlserver://admsql:1433/confluence_wiki

 

so that part should be correct, also it has created the database content just fine, its just after it creates everything it then fails?

AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 28, 2017

Please review: Confluence Unable to Start Due to Insufficient Access Privileges to Database and let me know if you are seeing that error in the browser on startup.

Are you reading that connection URL from the confluence.cfg.xml in the root of the home directory?

I am not sure why your error message refers to a different database name. However, you report that the setup wizard is creating tables in the confluence_wiki database.

You mentioned you can run a select when you log into the database using the wiki user. What if you run this query that we know is for a Confluence table:

select * from CLUSTERSAFETY;

 

gravballe August 21, 2017

Sorry for the wait. (vacation)

 

it seems rename the database from confluence_wiki to just confluence made it work. Why is your code hardcoded to a db name, when the setup lets you pick a db name? and your install doc dosent say anything about the db has to be called confluence.

 

now the trial license has expired, are there any way to get a new trial license, so we can try it now we got it working?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events