SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server Jobs Error: The job failed. Unable to determine if the owner of job has access


SQL Server Jobs Error: The job failed. Unable to determine if the owner of job has access

Author
Message
mandavli
mandavli
SSC-Enthusiastic
SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)

Group: General Forum Members
Points: 134 Visits: 171
I get this error when executing a job on server.

The job failed. Unable to determine if the owner (domain\username) of job jobname has server access (reason: Could not obtain information about Windows NT group/user 'domain\username', error code 0x6e. [SQLSTATE 42000] (Error 15404)).

I typed command
EXECUTE AS LOGIN='domain\username'
user name is a valid user name. sql server agent account not able to impersonate domain loginname to execute job

I also tried
EXECUTE AS LOGIN=SQLagentserviceaccount
This command does not fail.

It was working before till today and one fine day it broke.
Can anybosy shed light on what could have happened?
stevenb 14609
stevenb 14609
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 498
I haven't looked up the error code, but at a guess, I'd say the server was unable to get information from your domain controller.

The best thing to do is to change the job owner to SA. That way, the job will never fail due to permissions like this.
mandavli
mandavli
SSC-Enthusiastic
SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)SSC-Enthusiastic (134 reputation)

Group: General Forum Members
Points: 134 Visits: 171
We have jobs that run get text files or drop text files over the server and those fail. even if I have sa.
stevenb 14609
stevenb 14609
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 498
That sounds like a permissions issue with the folder where you're trying to put the text files. We're doing something similar and we have a shared folder set up with permissions for the SQL Server agent account to be able to write to that directory. Actually, the network admin has the permissions set to allow everyone to write to the folder, which it probably shouldn't be set to...
Anyway, take a look at the permissions on that folder. Try changing the permissions to give everyone full control to see if that fixes the problem. If it does, you can dial the permissions back to just the SQL Server account. If it doesn't, then it's not a permissions issue on that folder.
SillyDragon
SillyDragon
SSC-Enthusiastic
SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)SSC-Enthusiastic (100 reputation)

Group: General Forum Members
Points: 100 Visits: 188
It's post two years ago, not sure anyone else has this issue recently? I experienced this error couple of days ago but I can't find any proper answer.

I have two jobs have been running couple of months, but the same error happened last week, I have to change the job owner to 'sa', job can run successfully, but it's not what we want.

After some test and research, I am pretty sure it's not problem of network or security setting. I found system error on server, see below for details, it's from source NETLOGON. I believe it's the reason. the service RPC cannot restart manually, that why we have to restart the box to resolve the problem.

(Sorry don't know how to change the color for more clear reading)
[color=#FF0000]This computer was not able to set up a secure session with a domain controller in domain XXXXXX due to the following:
The RPC server is unavailable.
This may lead to authentication problems. Make sure that this computer is connected to the network. If the problem persists, please contact your domain administrator.

ADDITIONAL INFO
If this computer is a domain controller for the specified domain, it sets up the secure session to the primary domain controller emulator in the specified domain. Otherwise, this computer sets up the secure session to any domain controller in the specified domain.[/color]


And the system error below can be found:

[color=#FF0000]The processing of Group Policy failed. Windows could not obtain the name of a domain controller. This could be caused by a name resolution failure. Verify your Domain Name System (DNS) is configured and working correctly.[/color]
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search