Forcing Shotgun Browser right click menu to update

Hi everyone!

In the past I had a few instances where the Shotgun Browser right click menu was kinda slow in picking up changes of Software entities. Usually hitting F5 in the browser a few times helped, but this time nothing seems to help.
I created a new Software entity and on one artist machine I cannot bring it to show up (for everyone else it is showing). I tried hitting F5 in the browser, restarting Shotgun Desktop, login in and out of Shotgun and Shotgun Desktop and rebooting the machine. All no dice. So my question is: Is there a definit way of forcing the Shotgun Menu to refresh?

Any hint or help is much appreciated!

Fabian

3 Likes

Hi Fabian,

you can try to delete the Shotgun local cache on that machine and restart SG Desktop.

That should force the actions menu to refresh.

Cheers,
Francis

6 Likes

Hi @mathurf!

EDIT: Do NOT do what I described here. We ran into issues with it! Leaving the message in here for the record.

Thanks for your reply! Your solution definitely works, but we generally see deleting the shotgun cache as a last resort in our studio, since re-caching takes 15-20 min.
Luckily I found another solution which allows us to keep the cache:

  1. Find all files that match this pattern (3 files in my case):
    /home/<USER-NAME>/.shotgun/<SITE-NAME>/sitec<PIPELINE-CONFIG-ID>.basic.desktop/tk-desktop/shotgun_engine_commands_v1.sqlite
  2. Rename them to something like shotgun_engine_commands_v1_BACKUP.sqlite.
  3. Refresh the browser.
  4. Right click menu is correct now.

Thanks again for your help!

Cheers,
Fabian

1 Like

Scratch that. I am running into issues on other projects now. We probably have to go for the cache wipe out.

1 Like

Hey @Fabian,

Yes the “scorched earth” approach has it’s drawbacks (time) but it should do the trick for you as @mathurf mentioned. Let us know how you get on.

-David

1 Like

I sometimes have the same issue for one of our users.
I do exactly like you’ve suggested but it’s quite a heavy procedure.

What could be the origin of this issue?

1 Like

Ok so this is becoming kinda magical. I deleted the shotgun cache for some artist and the issue was briefly fixed but came back. In one case it came back immediately: Like cache deleted, Shotgun Desktop checked out everything from scratch, refresh the browser and the Software entity is still missing. Feels like I’ve hit some kind of edge case scenario. Will hopefully find the time to post some details about this soon.

Cheers,
Fabian

2 Likes