Well, I don't think I have a backup that old and anyway it's kind of late to revert to a working state, too many changes were done since this problem appeared and it would be sad to lost them.
As I said nothing changed in the system that could cause this error, no customizations, no addons, nothing changed in config files. So it seems it came out of nowhere.
I upgraded to see if the problem would migrate to a new installation. Since I believe the problem is not in configuration, because it used to work for about a year without this error, could anything be wrong with the postgres database or a file system (alf_data)? If one of them is damaged could it cause such a malfunction? Why 99% of affected users are from one site?
I know there are lots of errors in logs, I just don't get which of them are relevant to this misbehaviour.
For example what an error Could not resolve view with name 'site/ditanalyst/' is about? I've seen errors about dashboard "Could not resolve view with name 'site/ditanalyst/dashboard' or 'user/guest/dashboard' ", but what this one is supposed to mean? It appeares for different sites, one of them is the affected one, but others work fine so it's not the issue? What does Probably a stale user Session mean? Didn't find anything about this one.