Forum

Full Version: xbian-config addon has stopped working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Software
XBian version: 20190215-0 (from /etc/motd)
XBMC/Kodi version: 17.6
Overclock settings: default

Auto-update is enabled. Up to date with patching.

Hardware
Device type and model: Raspberry Pi 3 Model B
Power supply rating: 2A
SD card size and make/type: SanDisk EVO+ microSD 32GB
Network (Ethernet or wireless): Ethernet
Connected devices: TV

Problem description:
The xbian-config Kodi addon has stopped working. I haven't used it for about 6 months so I can't be sure when it stopped.
Running the addon gives the message: "xbian-config error: Check the log file"

The relevant lines in kodi.log are:
20:14:32.660 170.239182 T:1710941104 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'bsddb.db.DBFileExistsError'>
Error Contents: (17, 'File exists -- BDB0002 __fop_file_setup: Retry limit (100) exceeded')
Traceback (most recent call last):
File "/usr/local/share/kodi/addons/plugin.xbianconfig/services.py", line 8, in <module>
from services.firstrun import firstrun
File "/usr/local/share/kodi/addons/plugin.xbianconfig/services/firstrun.py", line 4, in <module>
from resources.lib.utils import *
File "/usr/local/share/kodi/addons/plugin.xbianconfig/resources/lib/utils.py", line 13, in <module>
import resources.lib.translation
File "/usr/local/share/kodi/addons/plugin.xbianconfig/resources/lib/translation.py", line 23, in <module>
xbian_lang = xbianConfig('locales', 'select')[0].split('.')[0]
File "/usr/local/share/kodi/addons/plugin.xbianconfig/resources/lib/xbianconfig.py", line 109, in xbianConfig
cacheDB = shelve.open(os.path.join(CACHEDIR, CACHEFILE), 'c', writeback=True)
File "/usr/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File "/usr/lib/python2.7/shelve.py", line 223, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
File "/usr/lib/python2.7/anydbm.py", line 85, in open
return mod.open(file, flag, mode)
File "/usr/lib/python2.7/dbhash.py", line 18, in open
return bsddb.hashopen(file, flag, mode)
File "/usr/lib/python2.7/bsddb/__init__.py", line 364, in hashopen
d.open(file, db.DB_HASH, flags, mode)
DBFileExistsError: (17, 'File exists -- BDB0002 __fop_file_setup: Retry limit (100) exceeded')
-->End of Python script error report<--

How to reproduce:
Run the xbian-config addon.
Note: the xbian-config CLI command runs without error.
Can you please check your filesystem first

Code:
sudo btrfs scrub start /
sudo watch btrfs scrub status /

Your system can't be up2date. Kodi 17.6 is obsolete, we are now at 18.2. Could it be that you're still running Debian Jessie?
Yes I'm running jessie:
Code:
# lsb_release -a
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 8.11 (jessie)
Release:    8.11
Codename:    jessie

The file system check completes without errors.
I note that the XBian-Config addon version is 18.0.1 - is this compatible with Kodi 17.6?
(21st May, 2019 02:22 PM)dreamweaver Wrote: [ -> ]Yes I'm running jessie:
Code:
# lsb_release -a
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 8.11 (jessie)
Release:    8.11
Codename:    jessie

The file system check completes without errors.
I note that the XBian-Config addon version is 18.0.1 - is this compatible with Kodi 17.6?

Yes, it should be. I'm running Kodi 17.6 on a Hummingboard (i.MX6 SOC) device, and XBian-config is working very well. Using Debian Stretch though.

I'm wondering where

Quote:Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.11 (jessie)

Raspbian in ID and Description came from. You're using Pi3, but Pi's below Pi2 using Raspbian, all others are using Debian Distribution. That's confusing me a bit

Anyway, I don't believe that this is the combination of Jessie, 17.6 and latest XBian-config, maybe some other files are broken.

XBian-config crashes on accessing file /home/xbian/.kodi/userdata/addon_data/plugin.xbianconfig/cache.db. You could try to remove this file and try again.
There was no cache.db but there was __db.cache.db, removing this fixed the problem.
Thanks for your help, please mark as solved.
(22nd May, 2019 11:28 AM)dreamweaver Wrote: [ -> ]There was no cache.db but there was __db.cache.db, removing this fixed the problem.
Thanks for your help, please mark as solved.

Ahhh, probably temp cache.db file Dodgy. Great, that your issue has been solved Smile
I have trouble with xbian-config in kodi gui.
I can't create new topic because newbie on this forum.

My hardware:
Raspberry pi4
SD card size and make/type: SanDisk EVO+ microSD 32GB
Network (Ethernet or wireless): Ethernet
Connected devices: TV


The xbian-config Kodi addon has stopped working. It happens after kodi update from 18.3 to
19 in kodi gui from xbian-config module.

Part of kodi.log

2019-12-04 20:43:42.254 T:3196 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'dbm.error'>
Error Contents: db type could not be determined
Traceback (most recent call last):
File "/usr/local/share/kodi/addons/plugin.xbianconfig/services.py", line 10, in <module>
from services.firstrun import firstrun
File "/usr/local/share/kodi/addons/plugin.xbianconfig/services/firstrun.py", line 4, in <module>
from resources.lib.utils import *
File "/usr/local/share/kodi/addons/plugin.xbianconfig/resources/lib/utils.py", line 16, in <module>
import resources.lib.translation
File "/usr/local/share/kodi/addons/plugin.xbianconfig/resources/lib/translation.py", line 23, in <module>
xbian_lang = xbianConfig('locales', 'select')[0].split('.')[0]
File "/usr/local/share/kodi/addons/plugin.xbianconfig/resources/lib/xbianconfig.py", line 117, in xbianConfig
cacheDB = shelve.open(os.path.join(CACHEDIR, CACHEFILE), 'c', writeback=True)
File "/usr/lib/python3.7/shelve.py", line 243, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File "/usr/lib/python3.7/shelve.py", line 227, in __init__
Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
File "/usr/lib/python3.7/dbm/__init__.py", line 88, in open
raise error[0]("db type could not be determined")
dbm.error: db type could not be determined
-->End of Python script error report<--

Thx advance for any help...
Sorry for possible mistakes in trouble describe.
English isn't native language.
Please remove /home/xbian/.kodi/userdata/addon_data/plugin.xbianconfig/cache.db* and try again

Terminal

rm -f /home/xbian/.kodi/userdata/addon_data/plugin.xbianconfig/cache.db*

Btw, using Kodi 19 is very dangerous because it is in very early alpha state
(5th Dec, 2019 05:14 AM)Nachteule Wrote: [ -> ]Please remove /home/xbian/.kodi/userdata/addon_data/plugin.xbianconfig/cache.db* and try again

Terminal

rm -f /home/xbian/.kodi/userdata/addon_data/plugin.xbianconfig/cache.db*

Btw, using Kodi 19 is very dangerous because it is in very early alpha state

I'm was trying to remove cache.db how it describe in this topic,it's doesn't help.
Upgrade to 19 version of kodi is need to have iptv simple addon.
As i understand in 18.* version iptv simple banned.
I'm install them(iptv simple) separatly on x86 system-download rpm package
from fedora repo and install in opensuse(suse is my main system),
but how it made on arm system i don't know.
Btw, you need xbian-package-config-xbmc from staging repo!

And, all binary addons are included in xbian-package-xbmc

Quote:I'm install them(iptv simple) separatly on x86 system-download rpm package
from fedora repo and install in opensuse(suse is my main system),
but how it made on arm system i don't know.

See above, just needs to be enabled
(5th Dec, 2019 06:09 AM)Nachteule Wrote: [ -> ]Btw, you need xbian-package-config-xbmc from staging repo!

And, all binary addons are included in xbian-package-xbmc

Quote:I'm install them(iptv simple) separatly on x86 system-download rpm package
from fedora repo and install in opensuse(suse is my main system),
but how it made on arm system i don't know.

See above, just needs to be enabled

Now too late to make photo. But i'm use kodi long time.
In all version's of them before 18 iptv simple was in pvr client,
in 18 versions in other distro and in xbian i'm can't find them in pvr client.
Before i update kodi in xbian i was see onlely install from zip in pvr section.
Were i mast enabled them in this case?
Search in kodi gui in addons section on pvr simple keyword didn't find anything.
And it doesn't matter now. For now i want to understand how to repair xbian-config.
Or simple way will just reinstall xbian at new?
Please open your eyes:

My sdard installation running 18.5, and PVR IPTV Simple Client can be enabled in Addons->User Addons->PVR Clients
My iSCSI devel installation running 19.0a1, and PVR IPTV Simple Client can be enabled in Addons->User Addons->PVR Clients as well

And already told, remove cache.db* files and make sure that you have xbian-package-config-xbmc version 20191020-0 or higher (from staging repository)


Terminal

root@kmxbilr2 ~ # apt-cache policy xbian-package-config-xbmc
xbian-package-config-xbmc:
Installiert: 20191020-0
Installationskandidat: 20191020-0
Versionstabelle:
*** 20191020-0 500
500 http://kmcubie staging/main armhf Packages
100 /var/lib/dpkg/status
20190622-0 500
500 http://kmcubie stable/main armhf Packages
20190208-0 500
500 http://kmcubie stable/main armhf Packages
20190101-0 500
500 http://kmcubie stable/main armhf Packages
root@kmxbilr2 ~ #
Just wanted to express my gratitude for this forum post and the solution offered: it made the Xbian-config addon start on my fresh RPi 4B (4 GB) install!
I also had the same problem as you. Really helpful help. Helped with my RPi 4B (4 GB) installation!
foodle
Reference URL's