Solved Issue - STEP-BY-STEP SOLUTION - Kodi 17.1 Krypton fails to launch in Mac OSX

  Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
b7000 Offline
Junior Member
Posts: 17
Joined: Apr 2017
Reputation: 2
Lightbulb  STEP-BY-STEP SOLUTION - Kodi 17.1 Krypton fails to launch in Mac OSX
Post: #1
Solution for Mac OS Sierra 10.12.3 upgrading installation from 17 to 'kodi-17.1-Krypton-x86_64.dmg'


IDENTIFY THE ERROR
1. Open the 'Console' app
2. In console, on the side bar 'Reports', select ~/Library/logs
3. Select the 'kodi.log' and locate the ERROR (the middle of the each log entry has a descriptor, look for ERROR. For me the error was logged as "[Addons27.db] SQL error or missing database")

ALLOW HIDDEN FILES TO BE SEEN
4. Open the 'Terminal' app
5. copy/paste this entry and hit enter: defaults write com.apple.finder AppleShowAllFiles YES
6. While holding down the option key, right click finder in the dock and select 'Relaunch'

LOCATE & COPY THE ENTIRE KODI FOLDER FOR DEVELOPERS... THEN DELETE THE CORRUPTED FILES
7. Open a new finder window and go to this location; <your home folder>/Library/Application Support/Kodi/userdata/Database You can also go to this location by typing into 'Go to Folder' ~/Library/Application Support/Kodi/userdata/Database Note: Some users have mentioned that the Kodi folder is actually XBMC in that file path. Check for both. Some users report not seeing either of these files. This is simply the solution I found worked for my circumstances.
8. You should be looking at a bunch of .db files.
***IMPORTANT COPY THE ENTIRE KODI FOLDER FOR DEVELOPERS BEFORE DELETING THE CORRUPTED FILES***
9. !!We need your bad files!! Copy the 'KODI' folder onto your desktop and send it to the developers on this forum. Here are instructions from @Memphiz - "Someone who has this issue would have to provide me the complete Kodi folder from Application Support before(!!!!!) applying the workaround". Providing the folder can be done by any public accessible file hosting service (dropbox, google drive etc.)"
**Once you have a sharable link to the folder containing the bad files, post that link on this thread for the developers to access**

***DO NOT PROCEED TO STEP 10 UNTIL YOU HAVE SHARED YOUR ENTIRE KODI FOLDER TO THIS THREAD***

10. Open the folder and Delete the file that matches with the ERROR log (for me it was Addons27)
11. Keep the finder window open.

REBUILD MISSING DB FILE
12. Open the 'Kodi' app
13. You should see the deleted file be rebuilt on launch in the finder window.

Kodi should launch successfully.

Please reply if this WORKED for you.

I hope this helps until the developers uncover the bug.

p.s if you want to return to having hidden folders and files open terminal again, copy/paste this into terminal and press enter; defaults write com.apple.finder AppleShowAllFiles NO


peace!
(This post was last modified: 2017-05-10 11:04 by b7000.)
find
Nosaby Offline
Junior Member
Posts: 5
Joined: Apr 2017
Reputation: 0
Post: #2
You are my hero!!!! Thank you SO much.
find
Reffo Offline
Junior Member
Posts: 2
Joined: Feb 2017
Reputation: 0
Post: #3
I followed the steps but it still shows :ERROR [Addons27.db] SQL error or missing database
I restarted Kodi but I guess he redownloads the corrupted file
find
Waltman Offline
Senior Member
Posts: 291
Joined: Dec 2012
Reputation: 6
Location: below sea level
Post: #4
(2017-04-02 19:13)Reffo Wrote:  I followed the steps but it still shows :ERROR [Addons27.db] SQL error or missing database
I restarted Kodi but I guess he redownloads the corrupted file

In that case see step 8. above.
Delete all files with addonsxx.db. So addons27.db, addons26.db, addons20.db.....
Restart Kodi to rebuild the databases

How to post a debug log ; MacOS acces the hidden userdata folder ; How to post a question ; How to fix gatekeeper issues
(This post was last modified: 2017-04-03 08:38 by Waltman.)
find
b7000 Offline
Junior Member
Posts: 17
Joined: Apr 2017
Reputation: 2
Post: #5
(2017-04-02 19:13)Reffo Wrote:  I followed the steps but it still shows :ERROR [Addons27.db] SQL error or missing database
I restarted Kodi but I guess he redownloads the corrupted file

@Raffo - You may have missed another error in the log file? I only gave my experience, there's so many variables. I'd redo the steps. Carefully skim through the kodi.log. If you suspect the install file, then delete it and re-download it again before you start.
find
cathaireverywhere Offline
Junior Member
Posts: 4
Joined: Jul 2016
Reputation: 0
Post: #6
I followed all the steps until I get to finding the userdata here: <your home folder>/Library/Application Support/Kodi/userdata/Database

when I go into Application Support, there is no Kodi file there to find... I'm not sure what to do next?
find
djdamiankane Offline
Junior Member
Posts: 3
Joined: Apr 2017
Reputation: 0
Post: #7
i am having the same problem there is no kodi file
find
cathaireverywhere Offline
Junior Member
Posts: 4
Joined: Jul 2016
Reputation: 0
Photo  RE: STEP-BY-STEP SOLUTION - Kodi 17.1 Krypton fails to launch in Mac OSX
Post: #8
Hi DJ - I actually figured it out, yay! I stead of the instructions of finding that folder on this thread, I followed these instructions and it worked!!

Click on finder icon.
Then when "finder" shows up on the top left menu of your computer, select Go>go to folder> and then enter this path:
~/Library/Application Support/XBMC

Then hopefully it will.tske you to the Kodi file where you can continue with the instructions on this post!!!

It worked for me, so happy! [/php]
find
djdamiankane Offline
Junior Member
Posts: 3
Joined: Apr 2017
Reputation: 0
Post: #9
if you put the finder in list mode you can find kodi i just did and its working now
find
djdamiankane Offline
Junior Member
Posts: 3
Joined: Apr 2017
Reputation: 0
Post: #10
now if i can figure out why i have no sound lol
find
Memphiz Offline
Kodi MVP
Posts: 16,007
Joined: Feb 2011
Reputation: 225
Location: germany
Post: #11
Last try - I have written this all over the place now - I need the addons*.db files that lead to that crash or there is no chance to fix the issue properly!

AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
find
cathaireverywhere Offline
Junior Member
Posts: 4
Joined: Jul 2016
Reputation: 0
Post: #12
Memphis the one causing my error was [Addons27.db] SQL error or missing database
find
Martijn Offline
Team Kodi
Posts: 16,923
Joined: Jul 2011
Reputation: 310
Location: Dawn of time
Post: #13
We need the files!

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
find
hackett896 Offline
Junior Member
Posts: 6
Joined: Dec 2010
Reputation: 0
Location: Minot, ND
Post: #14
WORKED LIKE A CHARM, BUT I HAD TO IMPROVISE USING cathaireverywhere's DIRECTION AS WELL.

"Hi DJ - I actually figured it out, yay! I stead of the instructions of finding that folder on this thread, I followed these instructions and it worked!!

Click on finder icon.
Then when "finder" shows up on the top left menu of your computer, select Go>go to folder> and then enter this path:
~/Library/Application Support/XBMC

Then hopefully it will.tske you to the Kodi file where you can continue with the instructions on this post!!!

It worked for me, so happy!"
find
Maddcow Offline
Junior Member
Posts: 28
Joined: Sep 2008
Reputation: 0
Post: #15
(2017-04-03 16:32)Memphiz Wrote:  Last try - I have written this all over the place now - I need the addons*.db files that lead to that crash or there is no chance to fix the issue properly!
Here's a link to my Addons27.db file. I followed the directions in the OPs first post (deleting the Addons27.db file) and it fixed my issue.

https://www.dropbox.com/s/i4v1znga300mvu...b.zip?dl=0
find
Thread Closed