updating library doesn't work - tries to update from userdata?
#1
Hi!

Been using Kodi for some years and this problem started a few months ago.

When I try to update my library (movies/tv shows) it tries to scan the userdata folder, and nothing happens. Exact message is: "Scanning TV Shows using the TVDB: 0%" addons then userdata.

If I delete my sources and add them again I get the question to delete my stuff and re add it. If I do, it scans perfectly and everything works as it should. But, when I want to update (normal update for ex tv shows) same problem again. Tries to scan addons, then userdata and nothing happens.

If I go to a folder and update just that folder it works fine. The problem is "only" when I try to update the whole library. Then every time it somehow tries to scan from my profile folder and not my media sources I have added. For some reason it doesn't care about my media sources, or at least get stuck in my profile before..

What I have: One Xbox One with Kodi 18, One PC with Kodi 18 (beta 3), database source on mysql. Same problem on both devices. Problem started when I went from Kodi 17 to Kodi 18 beta 1,2 and now 3. Sources I have are located on my nas and I use smb://localip as sources. (sources works fine as I can browse them, update them manually and play things, it's just updating the library that doesn't work).

Anyone else having this problem and/or a solution to it?

Thanks
Reply
#2
To receive meaningful assistance you will need to provide a full debug log.

The instructions are here... debug log (wiki)

If you are using the Basic Method, then ensure the following is applied...
1.Enable debugging in Settings>System Settings>Logging,
2.Restart Kodi
3.Replicate the problem.

If you are using the Advanced Method ensure you have correctly created and applied the advancedsettings.xml file (wiki)

In both instances, you should see the word DEBUG throughout the log.

Note: Full logs only. No partial or redacted logs
Do NOT post your logs directly into the forum. Use the Kodi Paste Site. Post the link to your pasted log in the forum
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
sorry for not adding the log from start. Here it is: https://paste.kodi.tv/gatahiruje.kodi
Reply
#4
anyone got a clue?
Reply
#5
Yes, I can see that the scraper is trying to scraper your userdata folder.
xml:
No information found for item 'C:\Users\mikae\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\', it won't be added to the library.

The first cause that comes to mind is that you have your Sources incorrectly set. Hopefully your Sources.xml file mirrors what is in your database. Can you post the contents of your sources.xml located in...
xml:
C:\Users\mikae\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\Userdata

But if you have added and removed Sources incorrectly, sources.xml and the database may not match anymore. But lets see how we go with that first.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#6
Hi and thanks!

I have readded the sources without any luck. Here is the content for sources.xml

<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>tv</name>
            <path pathversion="1">smb://192.168.1.3/tv</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>movies</name>
            <path pathversion="1">smb://192.168.1.3/movies</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>movies 3d</name>
            <path pathversion="1">smb://192.168.1.3/movies 3d</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Music Videos</name>
            <path pathversion="1">smb://192.168.1.3/Music Videos</path>
            <allowsharing>true</allowsharing>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
    </files>
</sources>

/M
Reply
#7
Any idea? Smile
Reply
#8
I tried to look at your log again, but it has expired.

I note you are using MySQL, and I have no experience with it and always struggle to diagnose issues related to it.

The only suggestion I have is perform a fresh start on your Windows PC installation of Kodi. Use the local database and not MySQL.

Fresh Start...
1. Go to your roaming folder.
2. Rename the Kodi folder to KodiOld
3. Restart Kodi. This will re-create the roaming folder.
4. Add your sources and scrape. Don't add the advancedsettings.xml file with the MySQL redirects.

Let us know if the problem disappears. If it does, it is a MySQL issue (as usual)
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#9
Hi and thanks!

I don't want to use a local database as I'm mostly using my Xbox one to the TV when watching. 
I can reinstall Kodi and set it up again and see if that works.

If you want I can generate a new error log?

Thanks,
M
Reply
#10
(2018-11-01, 15:26)mikael24 Wrote: I don't want to use a local database
It is only temporary to confirm the problem is with your MySQL setup. Once the test is complete. Reinstate the KodiOld folder, and it will be back to your original setup.

Once that is confirmed, then someone with MySQL experience will need to offer advice.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#11
I will check on my laptop with Kodi installed and see how it works there before. On the Xbox One I get a message "preparing" and then nothing happens. I have to restart Kodi. But lets see what Kodi says on my Macbook before I start changing my PC Kodi installation. I also have a NUC with Kodi but since Kodi works smothly (apart from updating..) on Xbox 1 I haven't even turned on the NUC. To be continue..
Reply
#12
Works fine on the Macbook to update the mysql database.. no problem at all..
Reply
#13
i reinstalled Kodi (18.b5) to my Windows computer where I have the problem. No addons nothing. I copied my advancedsettings.xml file and added SMB support. Same error. It tries to scan the addon library. This is now a very clean installation. If I delete my advancedsetings.xml and rescans with a local database it scans correct. Everything works. When I copy my advancedsettings.xml file and start kodi it tries to scan the addon library again. To me this looks like a bug? (it's working fine on Mac with latest Kodi). My Xbox 1 with Kodi 18b5 says "preparing" and then nothing happens.
Reply
#14
post another debug log from your windows computer
Reply
#15
Even before you do that, this sounds like a borked database upgrade.  If you dont care, i would drop the version 18 databases.  Open your most powerful client and make sure you don't close it until the database has fully updated and you see the home screen.
Reply

Logout Mark Read Team Forum Stats Members Help
updating library doesn't work - tries to update from userdata?0