New Anki Update not working

Hello! I just downloaded the newest Anki update and I replaced the new version of Anki with the older version that was on my computer. However, when I want to open it I get this pop-up:

It’s really weird. I have tried installing and uninstalling. I have also tried to restart my computer and I have tried to restart the app. My internet connection is super good so I don’t know where the issue is? Does anyone know how to fix this? Thank you!

Are you using a VPN?

See the suggestions in this thread –

1 Like

I don’t think it’s due to a VPN. OPs error says “Failed to create directory, permission denied”. That means OP has no rights to create that folder, e.g. due to missing admin rights or because the folder belongs to another user.

It sounds more like a file permission issue and the Anki error is being misleading. N.B:

error: failed to create directory `/Users/whereisanne/.cache/uv`: Permission denied (os error 13)

I’m not sure why this would happen. Maybe you ran something as root/with sudo in the past that has messed up permissions in the .cache directory?

Fixing it might be as simple as running:

sudo chown whereisanne:whereisanne /Users/whereisanne/.cache

but I’m not sure what the correct ownership and permissions are on macOS. I would be wary of messing up other things by doing that.

Maybe another mac user could compare and help you fix it?

1 Like

So does anyone know how I can delete the cache or something? Thank you!

In the Terminal program, running

% ls -ld /Users /Users/whereisanne /Users/whereisanne/.cache

might tell us what the ownerships and permissions look like for those directories and suggest what might need to be fixed.

When I run the command on my Mac, where Anki is working correctly, the ownerships and permissions that I see are:

% ls -ld /Users /Users/ben /Users/ben/.cache
drwxr-xr-x   5 root         admin   160 Sep 15 11:46 /Users
drwxr-xr-x+ 43 ben          staff  1376 Sep 26 07:39 /Users/ben
drwxr-xr-x   6 ben          staff   192 Jul 23 07:12 /Users/ben/.cache
% 
2 Likes

Hello, I just did it. And it says this:

So update: i think it’s because my mac is a Intel3 but this newer version of anki only runs on M. I downloaded an older version of Anki and it worked!

It sounds as if you are fine with running the older version of Anki, so the issue is resolved.

(If in the future you ever want to continue troubleshooting the issue with the current version of Anki, you might want to run that ls -ld /Users /Users/whereisanne /Users/whereisanne/.cache command again. When you did it the first time, you had an extra "% " at the beginning of the command, so the command didn’t work as expected.)

I’ve logged this issue on launcher reading from system-wide cache? · Issue #4402 · ankitects/anki · GitHub

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.