Forums

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

Unable to start Confluence after Upgrade

Association Proxgroup January 30, 2019

Hello,

 

Since upgrading my confluence to last version ( 6.14.0 ) we're unable to start :

 

 

You can find error here : https://paste.proxgroup.fr/?418e964b0bd231f9#PxAg0agVDKSAiTo4uF/Ei62EtRn0u04NtdZQ0Dqwayw= 

I followed this guide : https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html

 

I can ping myself : root@intra-confluence:/opt/atlassian/confluence/logs# ping `cat /etc/hostname`
PING intra-confluence (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.020 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.024 ms
^C
--- intra-confluence ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.020/0.022/0.024/0.002 ms

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2019

Hi there,

The link to your logs requires a password to decrypt. What should I enter in order to be able to read the logs?

Also, which version of Confluence did you upgrade from, and can you let us know exactly which procedure you followed?

Regards,

Shannon

Association Proxgroup February 5, 2019

Hey,

 

Sorry, please find another upload here : https://paste.proxgroup.fr/?a4d0b73ae03783e8#ncb03YCpKVUC+b0P0QyS9g1eIUXRPAqBUOxwPtD9hXc=

 

I've upgrade from 6.11.2 to 6.14.0.

Just downloaded the latest .bin an executed it ( Enter, enter, enter... ) like all of my previous upgrades.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

Confluence might not be able to access your database.

Could you tell me what database version you're using?

You can go to the confluence.cfg.xml file in the home directory and check that the connection is okay. You'll want to make sure you can reach the database server via the Confluence server.

Shannon

Association Proxgroup February 5, 2019

Find config here : https://paste.proxgroup.fr/?61fe58b983cc0fc1#p/gn/AuB6jmt8ECyvGfl2s+W/FmNwjKU3mRTJtsi5us=

 

I'm able to login using mysql commandCapture.PNG

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 2019

Hello,

Thank you for checking that. I noticed that you're using MariaDB, which is not supported.

You need to make sure to use MySQL 5.6 or 5.7.

For MariaDB support, please vote on the following feature request:

Have a look at Database Setup for MySQL for tips on how to install MySQL and setup your database.

Regards,

Shannon

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 2019

One more thing - to migrate your data, you'll want to follow this article:

Let us know if you have any trouble.

Regards,

Shannon

Association Proxgroup February 6, 2019

Hello,

 

Something changed in last version ? Mariadb Always worked before with confluence. 

 

Any way to rollback ?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2019

Hello,

It might have worked before, but I can confirm that MariaDB has never been supported for Confluence. It is not included in our testing when releasing a new version.

Do you happen to still have your XML backup from before the upgrade? If so, I would recommend that you just install the previous version with a working MySQL database, and then import your XML backup from there.

Regards,

Shannon

Association Proxgroup February 9, 2019

Hello,

 

I moved my database from MariaDB to MySQL 5.7 ( Dump, database création following requirements, import database dump ).

I'm still not able to get Confluence working.

atlassian-confluence.log : https://paste.proxgroup.fr/?1f6cbf603c84984b#wpa+4LnM/Ck75bkLr00Z3U+4vA3qcbCrZFE4EjMqmjo=

catalina.out : https://paste.proxgroup.fr/?bf7c656e5283f0b5#tmo2orooF1bvfefOz3mQh6aAOh4VoQ0fczZ8nW7wn8E=

 

In the log, you can see errors about database encoding but i already followed this KB : https://confluence.atlassian.com/kb/how-to-fix-the-collation-and-character-set-of-a-mysql-database-744326173.html

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 11, 2019

Hello,

You want to migrate to MySQL from MariaDB using a supported migration method. See Migrating to Another Database for more details.

This is why I mentioned the XML backup, since we don't recommend that you migrate simply using a database dump.

Here's what I would do.

  1. Create a fresh install of Confluence 6.14 along with a brand-new MySQL database.
  2. Upon setup, you can then import the XML file.
  3. You can check the article I linked earlier for any additional steps (such as if your instance is a large instance).

This will ensure the database is correctly set up and you won't get any of the encoding errors.

It seems that the way you migrated retained some of the settings from before, which is causing the same error to appear again.

Can you try it using the XML backup instead of a database dump and let me know how that goes?

Regards,

Shannon

Association Proxgroup February 11, 2019

Hello,

 

I don't have the XML backup.

 

But the installer created a backup in /var/atlassian/application-data

Any way to use it ?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2019

Hello,

We might not know how old that backup is, so we can try to troubleshoot your database the way it is now if you hadn't created it yourself.

If you run these queries on the database, see what comes back. It should tell us what specifically is triggering the error:

use <your database name>;

show variables like "character_set_database";

show variables like "collation_database";

show variables like "storage_engine";

show PROCEDURE STATUS;

show FUNCTION STATUS;

show TRIGGERS from <db name>;

show FULL TABLES IN <db name> WHERE TABLE_TYPE LIKE 'VIEW';

SELECT TABLE_SCHEMA,

       TABLE_NAME,

       CCSA.CHARACTER_SET_NAME AS DEFAULT_CHAR_SET,

       CCSA.COLLATION_NAME,

       COLUMN_NAME,

       COLUMN_TYPE,

       C.CHARACTER_SET_NAME

  FROM information_schema.TABLES AS T

  JOIN information_schema.COLUMNS AS C USING (TABLE_SCHEMA, TABLE_NAME)

  JOIN information_schema.COLLATION_CHARACTER_SET_APPLICABILITY AS CCSA

       ON (T.TABLE_COLLATION = CCSA.COLLATION_NAME)

 WHERE TABLE_SCHEMA=SCHEMA() AND C.DATA_TYPE IN ('enum', 'varchar', 'char', 'text', 'mediumtext', 'longtext')

 ORDER BY TABLE_SCHEMA,TABLE_NAME,COLUMN_NAME;
Regards,
Shannon
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2019

Thank you! 

It does appear that your collation on your database is incorrect.

Screen Shot 2019-02-13 at 11.53.25 AM.png

You'll want to try to alter the collation and character set, making sure to make a backup before-hand.

You can try to use this article from Jira (should be a similar process), or check out the information we have on MySQL collation in Confluence, from the 2nd link:

Regards,

Shannon

Association Proxgroup February 13, 2019

Hello,

 

After running your commande, now i'm in utf8

 

 

http://paste.proxgroup.fr/?d41a95d0230105b5#6aZi13m1GvRiZaKOweAmO+pe+udQgxrsJjhOgW4q8yI=

But i'm still not able to start Confluence 

Capture.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events