Slow Kodi (Win10 & Raspberry Pi) with MySQL on external NAS (WD)
#1
Hello everybody,

I am experiencing some major issues with my Kode (OSMC) installations.
I have a WD MyBook, where I installed a MySQL-Server which I want to access from 2 Raspberry Pi as well as 1 Win 10 Computer.
This installation worked perfectly until some time ago.

Now I am experiencing an extreme lag, and I don't know what to do next.
Having the Debugging activated I started my Kodi-Installation on my Win10 PC. Here ist the log: Log

The issues started (in my opinion) around line 493, as I started my Kodi Installation around 14:23:20 and everything was within a few milliseconds until this line.
Unfortunately I have no clue at all how to interpret my log / resolve my issue.

I hope you can help me in this matter.

Thank you very much in advance!

Scybalon
Reply
#2
(2018-11-17, 15:38)Scybalon Wrote: This installation worked perfectly until some time ago.
Something must have changed... Do you have a slow Kodi also on the 2 RPi boxes, or just on the Win10 pc?

It's a bit odd... Using Kodi 17 with MyVideos107, and getting a "14:23:20.327 T:11368 DEBUG: CDatabaseManager::Initialize, updating databases..." entry in the log.
Reply
#3
First of all: Thank you for your answer.

You are right, something has changed: I moved apartment.
I used Powerline (Devolo) in my old apartment to connect to the internet and am still using the same hardware in my new apartment.
But I have no clue, how this could cause the problem.

I am also experiencing the lag with my 2 RPi-boxes.
I did a clean / fresh installation on all three devices (2 Rasperry Pi, 1 Win 10), dropped the old databases on my MySQL-Database (on my NAS) and rebuilt the database from scratch.

I still hope you guys can help me.
Reply
#4
Powerline adapter connections can be as volatile as wifi connections from what I know. Wifi connections also vary per location. Thicker walls = lousier wifi connections.

If you want to test network speed, try a ethernet cable and see if there is a (noticeable) difference. If there is, you have a crap powerline connection...
How are the RPi's connected, via wifi?

If you have the choice, ethernet is 100% the way to go.
Reply
#5
I do not use Wifi for my Rasperry Devices (as well as my Win 10 PC).
I also had this thought and tried to connect my Win 10 to the same Router as my NAS. Of course the speed (Ping, MB/s) was better but the performance of my Kodi installation was still miserable.

So you see: I am out of ideas Sad

Do you guys have any other suggestions (based on the log-file?)?

Thank you very much in advance!
Reply
#6
I used to host my MySQL on my WD NAS (a MyCloud Mirror) and have to say that it wasn't nice.

The problem I think is that the drive that contains the database tends to spin down and sleep (even when that feature is apparently switched off on the NAS), and so before it can be accessed it needs to spin up and become active again. I was seeing this when navigating through the menus in Kodi and before/after playing things (when the database is accessed and updated).

Simplest way is to host the database elsewhere, perhaps even on one of the Pi's itself if OSMC allows that? I know on LibreElec it can be done via the docker add-on and the MariaDB container. If not then perhaps invest in another Pi and use that as the host, or just do it on another PC on your network if you have a suitable one which is always awake.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#7
I once ran Raspbian on an RPi3B+ that booted from an external (bootable) SSD via USB, and running MariaDB server on it.
It ran okay, given the RPi's moderate CPU performance.
Reply
#8
Unfortunately the problem still exists - Does anybody have a clue whats causing the problem?
Reply
#9
Based on the above comments and suggestions, what have you actually done to try and rectify it?
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#10
(2018-11-18, 13:35)Klojum Wrote: If you want to test network speed, try a ethernet cable and see if there is a (noticeable) difference. If there is, you have a crap powerline connection...How are the RPi's connected, via wifi?.
The Pi's as well as the PC have a wired connection.
(2018-11-18, 18:29)DarrenHill Wrote: I used to host my MySQL on my WD NAS (a MyCloud Mirror) and have to say that it wasn't nice.
The problem I think is that the drive that contains the database tends to spin down and sleep (even when that feature is apparently switched off on the NAS), and so before it can be accessed it needs to spin up and become active again. I was seeing this when navigating through the menus in Kodi and before/after playing things (when the database is accessed and updated).
I have experienced this as well - however, this does not bug me at all, as it only takes a few seconds to start up the drive and everything worked smoothly (as long as I kept accessing the database (till the next spin down)
(2018-11-18, 18:29)DarrenHill Wrote: Simplest way is to host the database elsewhere, perhaps even on one of the Pi's itself if OSMC allows that? I know on LibreElec it can be done via the docker add-on and the MariaDB container. If not then perhaps invest in another Pi and use that as the host, or just do it on another PC on your network if you have a suitable one which is always awake.
First of all: I had exactly this setup in the past - so it is possible to host the database on the Pi itself
Unfortunately, this is not what I want Sad
I wanted to keep the database separated on my NAS so that it is possible for me to exchange any Pi's as a please. Smile
(2018-11-23, 11:33)DarrenHill Wrote: Based on the above comments and suggestions, what have you actually done to try and rectify it?
So you see, there are not many options for me to try. If I have misinterpreted any solution, please feel free to point it out.

The LOG-File provided in my original post does not help?
Reply

Logout Mark Read Team Forum Stats Members Help
Slow Kodi (Win10 & Raspberry Pi) with MySQL on external NAS (WD)0