Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Solved [SOLVED] Kuena 2.0.2 trashes mysql database with slow queries.

More
14 years 1 month ago - 14 years 3 weeks ago #134208 by blackmoonz
Hi all,

I run a little site, www.blackmoonz.tk and have recently upgraded to Joomla 2.5.7 and Kuena Forum 2.0.2. Before this upgrade, the site ran fine for years. It is a relative low traffic site.

I have ran some debugging on mysql using 'SHOW PROCESSLIST' and found the following query to be run often and taking its time.

SELECT b.rules
FROM aOdad_assets AS a
LEFT JOIN a0dad_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE (a.name = 'com_kunena' OR a.parent_id=0)
GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft

Some statistics of this query.
Showing rows 0 - 29 ( 957 total, Query took 1.7081 sec)
Profiling
Status Time
starting 0.000065
Opening tables 0.000010
System lock 0.000004
Table lock 0.000005
init 0.000024
optimizing 0.000012
statistics 0.000040
preparing 0.000028
Creating tmp table 0.000141
executing 0.000003
Copying to tmp table 1.706180
Sorting result 0.008613
Sending data 0.000202
end 0.000005
removing tmp table 0.001833
end 0.000007
query end 0.000002
freeing items 0.000219
logging slow query 0.000003
cleaning up 0.000004


This even when only selecting 'Report Configuration Settings' in the back-end. The rest of the joomla site functions normally, the rest of the admin back-end works normally. The frontpage works normally until 'kuena latest' is used, which makes sense as it then uses the forum so is quite unrelated, especially when it's disabled in it's current form.

Kuena settings:
This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Disabled | Joomla! SEF: Disabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Missing | PHP environment: Max execution time: 320 seconds | Max execution memory: 128M | Max file upload: 16M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : mistsofpandaria | author: Andy Taylor | version: 1.0 | creationdate: 2012-07-30

Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 2.0.1 | creationdate: 2012-07-07

Kunena version detailed: Kunena 2.0.1 | 2012-07-07 [ Balozi ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: UddeIM 2.6

Third-party SEF components: None

Plugins: None

Modules: Kunena Latest 2.0.1

Last edit: 14 years 3 weeks ago by blackmoonz.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #134218 by kiwi3685

blackmoonz wrote: I run a little site, www.blackmoonz.tk and have recently upgraded to Joomla 2.5.7 and Kuena Forum 2.0.2. Before this upgrade, the site ran fine for years. It is a relative low traffic site.


I don't know if its relevant or just your mistake but according to your configuration report you are not on Kunena 2.0.2. Both it and KLatest still indicate as 2.0.1.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago - 14 years 1 month ago #134230 by blackmoonz
You are absolutly right and I appologize. Updated kunena, same issue.

This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Disabled | Joomla! SEF: Disabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Missing | PHP environment: Max execution time: 320 seconds | Max execution memory: 128M | Max file upload: 16M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : mistsofpandaria | author: Andy Taylor | version: 1.0 | creationdate: 2012-07-30

Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 2.0.2 | creationdate: 2012-09-02

Kunena version detailed: Kunena 2.0.2 | 2012-09-02 [ Botschafter ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: UddeIM 2.6

Third-party SEF components: None

Plugins: None

Modules: Kunena Latest 2.0.2

Last edit: 14 years 1 month ago by blackmoonz.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #134271 by kiwi3685
Now there doesn't appear to be anything on your configuration that would be different to any of hundreds of Kunena sites. EXCEPT your Jooma template.

I've no reason to suspect it would be the cause, but I would at least try with a standard Jooma template, such as Beez5, just in case. Maybe there's a conflict somewhere.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #134272 by sozzled

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago - 14 years 1 month ago #134284 by blackmoonz
The template could indeed cause some issues, would it not be for the fact, that the backend causes the same kind of delays, which uses the Bluestork theme. I belive that is a default theme for the backend? So we theoretically don't even have to look at the front end for addons/templates since it's kunena in its entirety that's doing it. Kunena latest btw is disabled for the time being.

The 'generate report' menu item for example, takes aprox 3-5 seconds to pop up. Much like the front end. This is with zero users on the front end.

I have 'found' the main issue, as reported at the start:

SELECT b.rules
FROM aOdad_assets AS a
LEFT JOIN a0dad_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE (a.name = 'com_kunena' OR a.parent_id=0)
GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft

this single query runs for about 1.5seconds and gets called once or twice causing the huge delay. The question is, why? The 1.* kunena tree didn't cause this.

Except for the random part (a0dad_ in my case) how fast does that query run for you? How many records (900ish i have)?


As for the standard 'how to make kunena perform faster' (when there is only 1 user not even actively using the site, and the server has practically no load):

You have a lot of Joomla plugins installed on your system
Also affects the backend with zero? plugins.
You have a lot of modules on your Kunena pages
Also affects the backend with zero? modules.
You are integrating Kunena with other components
Also affects the backend with zero? components.
Your template is very complicated and has many cool features
Also affects the backend with zero? cool features.
You're not using Joomla caching
While I have quite some 'performance' features disabled, this is to ensure caching et al isnt' causing more then it solves. This is a very very low traffic site, think 10 users simultaniously maximally. I have of course tested this and saw zero difference, kindof what I expected.
Your Apache settings are unoptimised
What specific settings does kunena require of apache? Everything else works smoothly.
Your MySQL settings are unoptimised
Now here I could see there would be something happening, but know to little of mysql to say what. I have 'optimized' several tables and the database without effect.
Images, CSS and JavaScript files aren't cached in browsers
Should be unrelated as the request runs mostly on the backend that causes the delay.
Sometimes JavaScript issues may cause major slowdown in the browser
browser isn't slow though, the site is.

If my 'assets' table is somehow to big or corrupt, then that could be the culprit? but why and what are sane defaults?

Edit:
Some other probably meaningless performance statistics:

Showing rows 0 - 49 ( 1,000 total, Query took 0.0003 sec)
SELECT rules
FROM aOdad_assets
LIMIT 0 , 50

Showing rows 0 - 29 ( 957 total, Query took 0.0489 sec)
Original statement, without the 'GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft' bit.

Showing rows 0 - 29 ( 957 total, Query took 1.6853 sec)
After using the 'ORDER BY b.lft' OR/AND 'GROUP BY b.id, b.rules, b.lft' bits.

Showing rows 0 - 29 ( 957 total, Query took 0.0005 sec)
SELECT * FROM `aOdad_assets` WHERE (name = 'com_kunena' OR parent_id =0)

How that however influences the results found, I don't know. Also, I sincerely doubt that it's a I/O issue, as the database or its query should mostly be cached in RAM.

Checking the results from those queries, most results come from 'parent_id' being 0 (I sorted up/down on the parent_id column and it started/ended with 0 in all cases).

MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0002 sec )
SELECT * FROM `deMtO_assets` WHERE (name = 'com_kunena')
Actually returns zero rows!
Last edit: 14 years 1 month ago by blackmoonz.

Please Log in or Create an account to join the conversation.

Time to create page: 0.184 seconds