Engine tk-nuke cannot initialize

In nuke, after opening scene from shotgrid file open , getting this error almost always

Message: Shotgun encountered a problem starting the Engine.
Please contact support@shotgunsoftware.com
Exception: - Engine tk-nuke cannot initialize - the pick environment hook was not able to return an environment to use, given the context rocketscience.shotgunstudio.com. Usually this is because the context contains insufficient information for an environment to be determined.

How to solve this ?

There is a more detailed error somewhere in the logs.
It might be related to your path templates, or folder schema.

Thank you @mmoshev . It seems it was because there were more than one instance of shotgrid desktop open that caused this error. Solved.