Encode Session Initialize failed


I’m working with nvidia’s sample applications from SDK. I’m using NvEncoder frontend from SDK. On my local machine (with GeForce 1050) everything works fine and video is encoded properly, but when I deploy whole environment on cloud machine I get following error:
“encode session initialize failed” and return status is NV_ENC_ERR_INVALID_PARAM. Of course nvidia’s library doesnt even say a word which one is invalid.
Is it even possible that parameter is invalid if it works on my local machine? Driver version is the same. How can I get some support from nvidia? I pay for their products and there is any possibility to reach them.