SOLVED: Issue after migration: Library share permission not found

FYI I had this problem as well, after migrating/restoring from a backup. It happened only on the first run when the data & DB tables were put back in place, and resolved itself after restarting the server & database server.

More info here: Library share permission not found after recovey on a second server - #2 by bhugh