Kodi Community Forum

Full Version: all settings on samba share NOT WORKING
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I try to move all kodi setting to samba share:

I make a script to mout /root/.kodi settings folder to smb folder.

run.sh

Code:
mkdir /mnt/kodi
mount -t cifs -o username=user,pass=1234,dir_mode=0777,file_mode=0777,vers=1.0 //192.168.0.198/kodi-data$/kodi /mnt/kodi
sudo ln -s /mnt/kodi  /root/.kodi

kodi


I see files in my share created by kodi, but kodi won't start? Why?
Did you check the KODI LOG?
(2019-06-29, 11:13)lpt2007 Wrote: [ -> ]vers=1.0
Try version 2, smb1 has been deprecated because of too many network security weaknesses.
LibreELEC defaults to SMBv2, and so does Kodi.
(2019-06-29, 13:03)Klojum Wrote: [ -> ]
(2019-06-29, 11:13)lpt2007 Wrote: [ -> ]vers=1.0
Try version 2, smb1 has been deprecated because of too many network security weaknesses.
LibreELEC defaults to SMBv2, and so does Kodi. 
I try with vesr=2.0, but not working.
(2019-06-29, 11:33)ActionA Wrote: [ -> ]Did you check the KODI LOG?
Kodi log on first start when /root/.kodi is empty:
Code:
KODI starts but nothing on screen


Code:
2019-06-29 16:30:02.104 T:1902195296  NOTICE: -----------------------------------------------------------------------
2019-06-29 16:30:02.104 T:1902195296  NOTICE: Starting Kodi (18.2 Git:20190428-a94ccc8ba5). Platform: Linux ARM 32-bit
2019-06-29 16:30:02.104 T:1902195296  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
2019-06-29 16:30:02.104 T:1902195296  NOTICE: Kodi compiled 2019-04-30 by GCC 6.3.0 for Linux ARM 32-bit version 4.9.82 (264530)
2019-06-29 16:30:02.105 T:1902195296  NOTICE: Running on Raspbian GNU/Linux 9 (stretch), kernel: Linux ARM 32-bit version 4.14.98-v7
2019-06-29 16:30:02.105 T:1902195296  NOTICE: FFmpeg version/source: 4.0.3-Kodi
2019-06-29 16:30:02.105 T:1902195296  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
2019-06-29 16:30:02.105 T:1902195296  NOTICE: ARM Features: Neon enabled
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://envhome/ is mapped to: /root
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://home/ is mapped to: /root/.kodi
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://temp/ is mapped to: /root/.kodi/temp
2019-06-29 16:30:02.105 T:1902195296  NOTICE: special://logpath/ is mapped to: /root/.kodi/temp
2019-06-29 16:30:02.106 T:1902195296  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi-rbpi_v7
2019-06-29 16:30:02.106 T:1902195296  NOTICE: Local hostname: local-kodi
2019-06-29 16:30:02.106 T:1902195296  NOTICE: Log File is located: /root/.kodi/temp/kodi.log
2019-06-29 16:30:02.106 T:1902195296  NOTICE: -----------------------------------------------------------------------
2019-06-29 16:30:02.106 T:1902195296    INFO: loading settings
2019-06-29 16:30:02.112 T:1902195296  NOTICE: special://profile/ is mapped to: special://masterprofile/
2019-06-29 16:30:02.117 T:1902195296   ERROR: CSettings: unable to load settings from special://masterprofile/guisettings.xml, creating new default settings
2019-06-29 16:30:02.294 T:1902195296   DEBUG: CSkinSettings: no <skinsettings> tag found
2019-06-29 14:30:02.318 T:1902195296  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
2019-06-29 14:30:02.318 T:1902195296  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <advancedsettings>
                                              <fanartres>720</fanartres>
                                              <imageres>540</imageres>
                                              <video>
                                                <busydialogdelayms>750</busydialogdelayms>
                                              </video>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                              <cache>
                                                <memorysize>31457280</memorysize>
                                              </cache>
                                            </advancedsettings>
2019-06-29 14:30:02.318 T:1902195296 WARNING: CSettingsManager: missing version attribute
2019-06-29 14:30:02.328 T:1902195296  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
2019-06-29 14:30:02.328 T:1902195296  NOTICE: Default Video Player: VideoPlayer
2019-06-29 14:30:02.328 T:1902195296  NOTICE: Default Audio Player: paplayer
2019-06-29 14:30:02.328 T:1902195296  NOTICE: Disabled debug logging due to GUI setting. Level 0.
2019-06-29 14:30:02.328 T:1902195296  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"

Here a kodi.log whe I try to start kodi second time:
Code:
KODI stops with error: terminate called after throwing an instance of 'dbiplus:Big GrinbErrors'

Code:
2019-06-29 16:39:41.713 T:1901789792  NOTICE: -----------------------------------------------------------------------
2019-06-29 16:39:41.713 T:1901789792  NOTICE: Starting Kodi (18.2 Git:20190428-a94ccc8ba5). Platform: Linux ARM 32-bit
2019-06-29 16:39:41.713 T:1901789792  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
2019-06-29 16:39:41.713 T:1901789792  NOTICE: Kodi compiled 2019-04-30 by GCC 6.3.0 for Linux ARM 32-bit version 4.9.82 (264530)
2019-06-29 16:39:41.713 T:1901789792  NOTICE: Running on Raspbian GNU/Linux 9 (stretch), kernel: Linux ARM 32-bit version 4.14.98-v7
2019-06-29 16:39:41.714 T:1901789792  NOTICE: FFmpeg version/source: 4.0.3-Kodi
2019-06-29 16:39:41.714 T:1901789792  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
2019-06-29 16:39:41.714 T:1901789792  NOTICE: ARM Features: Neon enabled
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://envhome/ is mapped to: /root
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://home/ is mapped to: /root/.kodi
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://temp/ is mapped to: /root/.kodi/temp
2019-06-29 16:39:41.714 T:1901789792  NOTICE: special://logpath/ is mapped to: /root/.kodi/temp
2019-06-29 16:39:41.714 T:1901789792  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi-rbpi_v7
2019-06-29 16:39:41.714 T:1901789792  NOTICE: Local hostname: local-kodi
2019-06-29 16:39:41.715 T:1901789792  NOTICE: Log File is located: /root/.kodi/temp/kodi.log
2019-06-29 16:39:41.715 T:1901789792  NOTICE: -----------------------------------------------------------------------
2019-06-29 16:39:41.715 T:1901789792    INFO: loading settings
2019-06-29 16:39:41.736 T:1901789792  NOTICE: special://profile/ is mapped to: special://masterprofile/
2019-06-29 16:39:41.800 T:1901789792   DEBUG: CSkinSettings: no <skinsettings> tag found
2019-06-29 14:39:41.823 T:1901789792  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
2019-06-29 14:39:41.823 T:1901789792  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <advancedsettings>
                                              <fanartres>720</fanartres>
                                              <imageres>540</imageres>
                                              <video>
                                                <busydialogdelayms>750</busydialogdelayms>
                                              </video>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                              <cache>
                                                <memorysize>31457280</memorysize>
                                              </cache>
                                            </advancedsettings>
2019-06-29 14:39:41.823 T:1901789792 WARNING: CSettingsManager: missing version attribute
2019-06-29 14:39:41.832 T:1901789792  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
2019-06-29 14:39:41.832 T:1901789792  NOTICE: Default Video Player: VideoPlayer
2019-06-29 14:39:41.832 T:1901789792  NOTICE: Default Audio Player: paplayer
2019-06-29 14:39:41.833 T:1901789792  NOTICE: Disabled debug logging due to GUI setting. Level 0.
2019-06-29 14:39:41.833 T:1901789792  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
2019-06-29 14:39:42.735 T:1901789792   ERROR: SQL: [Addons27.db] SQLite error SQLITE_ERROR (no such table: version)
                                            Query: SELECT idVersion FROM version
ERROR: SQL: [Addons27.db] SQLite error SQLITE_ERROR (no such table: version)

Delete your userdata/Database/Addon27.db file, apparently it is malformed/corrupted.
Also, next time use a pastebin website for providing log files and snippets.
I also find this error:

Code:
CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-2
(2019-06-29, 16:46)Klojum Wrote: [ -> ]ERROR: SQL: [Addons27.db] SQLite error SQLITE_ERROR (no such table: version)

Delete your userdata/Database/Addon27.db file, apparently it is malformed/corrupted.
Also, next time use a pastebin website for providing log files and snippets.
If I delete this file I am back on start. Sad Kodi starts but there is nothing on screen.