ms sql acces rights problem

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 vote
Ann Worley Atlassian Team Jul 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.

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?

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;

 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

407 views 17 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you