Cannot move past database install step with MySQL

I am working on migrating my database from Postgres to MySQL.  I am at the point where I am re-installing Confluence and I get to the step where I choose the database type (MySQL).  It warns me that I need the ODBC driver.  The instructions indicate that this will happen and that I can ignore the error.  The problem is that I cannot bypass or skip the error. Clicking next goes nowhere.  I have confirmed I have the file in the proper directory (/opt/atlassian/confluence-mysql/confluence/WEB-INF/lib/mysql-connector-java-5.1.44-bin.jar).

 

I was following the directions here, Step 8.3 is where I am having the issue. here: https://confluence.atlassian.com/conf64/database-setup-for-mysql-936511512.html

 

Any ideas?

2 answers

1 vote
Ann Worley Atlassian Team Oct 31, 2017

I understand you have the mysql JDBC driver file in the <Confluence installation> /confluence/WEB-INF/lib folder but the setup wizard appears to hang when you click next to set up the database.

Is it possible that the database tables are being set up when the installation appears to be going nowhere? That step can take a few minutes to complete. Does the browser say "waiting for server" after you click Next?

Thanks for the response. There is no indication that the server is waiting for something.  I let it sit for a few hours and it still won't go past the warning.

The database I set up is still empty so it does not appear that there is anything going on in the background.

Ann Worley Atlassian Team Oct 31, 2017

That's good to know, thank you.

Is there any way the permissions are restricted on that one driver file since you had to copy it over? Maybe its there but the user running Confluence doesn't have permission to see it?

Checked, it has the same permissions as all the other driver files in  that directory.  

 

-rw-r--r-- 1 root root   999635 Oct 31 09:21 mysql-connector-java-5.1.44-bin.jar

Ann Worley Atlassian Team Oct 31, 2017

Please see Confluence does not start due to Spring Application context has not been set. It's a different error but it has some good guidelines for installing Confluence:

Do not run Confluence as root, and ensure that the user running Confluence has full read and write access to the home folder. This can be set by running chmod -R with the appropriate permissions, to apply them recursively to each sub folder. An example of the right permissions would be:
chown -R confluence.confluence <confluence-install-folder>
chown -R confluence.confluence <confluence-home-folder>
chmod -R u=rwx,go-rwx <confluence-install-folder>
chmod -R u=rwx,go-rwx <confluence-home-folder>

(info) The user confluence is only a suggestion. You can change it for another username.

  • Please tail the log at <confluence_home>/logs/atlassian-confluence.log during the setup wizard and see if there are any helpful errors.

Annnnnddd I'm dumb. Firewall issues. 

Ann Worley Atlassian Team Nov 01, 2017

Thanks for the follow up. Firewall issues can be tricky!

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 ...

485 views 19 10
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