Kodi Community Forum
updating library doesn't work - tries to update from userdata? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: updating library doesn't work - tries to update from userdata? (/showthread.php?tid=336408)

Pages: 1 2


updating library doesn't work - tries to update from userdata? - mikael24 - 2018-10-12

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


updating library doesn't work - tries to update from userdata? - Karellen - 2018-10-12

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



RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-10-12

sorry for not adding the log from start. Here it is: https://paste.kodi.tv/gatahiruje.kodi


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-10-16

anyone got a clue?


RE: updating library doesn't work - tries to update from userdata? - Karellen - 2018-10-17

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.


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-10-19

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


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-10-29

Any idea? Smile


RE: updating library doesn't work - tries to update from userdata? - Karellen - 2018-11-01

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)


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-11-01

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


RE: updating library doesn't work - tries to update from userdata? - Karellen - 2018-11-01

(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.


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-11-02

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..


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-11-04

Works fine on the Macbook to update the mysql database.. no problem at all..


RE: updating library doesn't work - tries to update from userdata? - mikael24 - 2018-11-06

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.


RE: updating library doesn't work - tries to update from userdata? - helta - 2018-11-06

post another debug log from your windows computer


RE: updating library doesn't work - tries to update from userdata? - helta - 2018-11-06

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.