I’ve split your post to a new thread since the one you resurrected was pretty old. It’s best practice to start a new thread, rather than resurrecting an old one.
The error message is pretty clear: you don’t have permissions to perform the analysis. I know you’re passing credentials in both the begin and end commands ( ). Note that you’re using login/password. FYI, using an analysis token instead is preferred as more secure. I see a few scenarios:
the credential values are mangled (E.G. the last couple of characters got dropped) and no longer valid
the variables are empty or populated with the wrong values
the account the credentials belong to doesn’t actually have rights on the project
Again, I’m not sure what to tell you. Is there any possibility that the token value has gotten mangled? Can you verify that your variables are populated the way you think they are? Can you temporarily allow Anyone analysis rights & try again?