Confluence captcha problem

When installing Confluence under windows, the verification code cannot be displayed. You will find that the picture is invisible. If you directly request the link of the verification code, the following error will appear.

 

 

 

com.octo.captcha.CaptchaException: word is too tall: try to use less letters, smaller font or bigger background: text bounds = {text=tasble

java.awt.geom.Rectangle2D$Float[x=0.0,y=-33.177246,w=10.989258,h=45.32666] ascent=33.177246 descent=7.2509766 leading=4.8984375

java.awt.geom.Rectangle2D$Float[x=30.989258,y=-30.161133,w=18.00293,h=43.623047] ascent=30.161133 descent=9.008789 leading=4.453125

java.awt.geom.Rectangle2D$Float[x=68.99219,y=-30.161133,w=15.0,h=41.206055] ascent=30.161133 descent=6.591797 leading=4.453125

java.awt.geom.Rectangle2D$Float[x=103.99219,y=-33.177246,w=19.803223,h=47.98535] ascent=33.177246 descent=9.909668 leading=4.8984375

java.awt.geom.Rectangle2D$Float[x=143.79541,y=-30.161133,w=18.00293,h=43.623047] ascent=30.161133 descent=9.008789 leading=4.453125

.....

 

 

 

Confluence will display the verification code after 3 failed login attempts. If the verification code cannot be displayed at this time, then you will never log in for the rest of your life.

 

When installing Confluence under windows, the default system file encoding format is set to GBK, which is also the reason for the error.

solution

From the command line, cd to the Apache directory.....\Atlassian\Confluence\bin

Enter the command tomcat8w //ES//Confluence220416163109 

The last Confluence220416163109 is the name of the Confluence service, different names are displayed on different computers

You can see it in services in task manager

,Add -Dfile.encoding=UTF-8 parameter

Restart Confluence, you can restart it in the task manager

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326282902&siteId=291194637