Problem Upgrading darktable

Yesterday, I upgraded to the latest version of darktable. When I attempted to open it I got two dialogue boxes, one about and updated performance configuration (which I declined) the other telling me the database schema has to be updated. I clicked OK and nothing happened. I checked back last night in case it was taking the long time the dialogue box hinted at (even though I don’t expect I have a large database). When I tried to open darktable, I simply got the two dialogue boxes as though nothing had happened. I declined the first, accepted the second and went to bed. Today, I have attempted to open darktable and get the same two dialogue boxes. I cannot proceed beyond them. I’m on Apple Macbook Pro. Can anyone help me?

As a post script to the above: I have, subsequently, clicked the ‘Yes’ button, but all that happens is the second dialogue box opens giving me the option to upgrade the schema database or to close darktable. If I choose ‘Close darktable’ nothing happens because darktable wasn’t open in the first place and, if I click ‘Upgrade Database’ nothing happens again except, of course, in both cases the dialogue box disappears!

So I’m stuck in the loop: launch darktable - get dialogue box - pick either option - dialogue box replaced with second gialogue box - pick either option dialogue box disappears and nothing else happens.

I wonder if it has anything to do with my having selected the option to remove the older version of darktable when the new one installed?

Does darktable have disk access in the Gatekeeper preference?

I have checked Gatekeeper settings and the “App store and identified developers” option is active. I don’t how to identify darktable.

Following your suggestion, I right clicked darktable in the apps folder and selected ‘Open’ Again I got the two dialogue boxes. Whichever options I choose, nothing happens.

goto system preferences → Security & Privacy click Privacy tab click Full Disk Access.

Now unlock the lock at bottom by clicking on it and provide your login password now on the right side pan click + and add darktable from applications folder.

hope it will solve your problem

Thanks very much Raj. I followed your instructions and darktable wasn’t in the white list so I did as you suggested and added it. Unfortunately I am still getting:

(It is an active dialogue box it is just greyed out because ScreenFloat was the active window)

As soon as I click on ‘Yes’, I get the following:

(again an active box)

When I click on ‘upgrade database’ the dialogue box vanishes and nothing happens.

This looks like your database could be damaged. Did you try with a fresh install (without your database files data.db and library.db or with a completely empty config folder) ? Did you try to start darktable from the commandline with option -d all to get debug information ?

I’m afraid I am not very knowledgeable with computers. I had darktable on my Mac but it was an old version (2. something) so I went to the darktable site and downloaded 3.8. Everything went as you’d expect and it asked me if I wanted to uninstall the old version. I said yes. I thought it was all ready to go so I attempted to launch darktable first from the launchpad and then from the application folder. Each time (and eachtime thereafter), no matter what I do, I get the same result!

You need to run it from commandline with option -d all to get info what’s failing. Without such information itsjust fishing in troubled water

Open a terminal application. An explanation can be found for example at How to Open and Use Terminal on a Mac, With a Few Basic Commands. To run darktable type

darktable -d all

Then press ENTER or RETURN. You should get a long list of messages in your terminal. These messages are necessary to start debugging your issue.

Thank you all for sticking with me on this. I had to leave the computer for a few hours.

I ran the darktable -d all line and this is the result:

The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit Use zsh as the default shell on your Mac - Apple Support.
MacBook-Pro:~ Patrick$ darktabe -d all
-bash: darktabe: command not found
MacBook-Pro:~ Patrick$

Incidentally, although I haven’t the faintest idea what the interactive shell means, I used the link provided but it is no longer an active link.

Well, you forgot an ‘l’ in there, the command should be
“darktable -d all”

Good pick up rvietor, unfortunately that hasn’t fixed the problem

MacBook-Pro:~ Patrick$ darktabe -d all
-bash: darktabe: command not found
MacBook-Pro:~ Patrick$ darktable -d all
-bash: darktable: command not found
MacBook-Pro:~ Patrick$

It’s probable that such a jump of database versions (2.x to 3.8) will not work automatically, there have been many changes in-between. If you don’t have many images in the database and have the edits saved in xmp sidecar files, I would just start from a clean installation and re-import the images (backup first!).

use this command in terminal and tell us what errors you get

/Applications/darktable.app/Contents/MacOS/darktable -d all

3 Likes

Thanks Raj,

MacBook-Pro:~ Patrick$ /Applications/darktable.app/Contents/MacOS/darktable -d all
0.004386 application_directory: /Applications/darktable.app/Contents/MacOS
0.004651 darktable.datadir: /Applications/darktable.app/Contents/Resources/share/darktable
0.004774 darktable.plugindir: /Applications/darktable.app/Contents/Resources/lib/darktable
0.004904 darktable.localedir: /Applications/darktable.app/Contents/Resources/share/locale
0.005116 darktable.configdir: /Users/Patrick/.config/darktable
0.005183 darktable.cachedir: /Users/Patrick/.cache/darktable
0.005288 darktable.sharedir: /Applications/darktable.app/Contents/Resources/share
0.005390 darktable.tmpdir: /private/var/folders/w2/dbx1d9b55y37y62dmc9cclrw0000gn/T
[memory] at startup
[memory] max address space (vmpeak): unknown
[memory] cur address space (vmsize): 4464536 kB
[memory] max used memory (vmhwm ): unknown
[memory] cur used memory (vmrss ): 12636 kB
0.005468 new_xdg_data_dirs: (null)

(process:27816): GLib-GObject-CRITICAL **: 10:47:34.997: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed

Thanks for your advice Guillermo, as I went to bed last night (Australia time) I had pretty much concluded I should clean everything darktable I can find off my hard drive and start again.

Raj very kindly offered to interpret my Terminal data, so I might wait and see what he tells me.

Thanks again.

Is this really the complete output you get starting darktable ? I don’t think so. If there is more output, please post it here.
Regardless of this question : following Guillermo’s advice you can try to start darktable without your old configuration and databases. To do so

  • backup the directory /Users/Patrick/.config/darktable (rename is for example to /Users/Patrick/.config/darktable.bak). Note that .config is a hidden directory. To see it, you have to enable your file browser to show hidden files.
  • launch darktable. Now darktable should start with it’s default settings and with an empty database.

If this is successful the next step will be reimporting your old edits.

Thank you Pehar. That will be a challenge for me for tomorrow.

If things don’t work out it’s not the end of the world. I’m pretty sure I’ve stored most, if not all of my edited photos on an external hard drive and, in any case, there are not that many of them.

Thank you again for your help.