General issue (lots of questions on this already):
I have an SSIS package that works from Visual Studio, but it fails from SQL Agent.
Specific Failure Point
Task: Execute Process
Executable invoked: aws cli
Error message: The process exit code was "253" while the expected was "0".
Things I've tried
Checked permissions on the executable and destination folder. They have execute and read/write permissions (respectively) for the SQL Agent user.
Looked up exit code 253; I haven't found any documentation on it.
Stripped away everything but the "Execute Process" task invoking AWS CLI. Still get error 253.
Multiple AWS CLI Commands (s3api get-object, s3 ls). Still get error 253.
Conclusion
My main question is: what is exit code 253?
Thanks to #Dan Guzman for pointing me to the documentation on exit code 253.
Exit code 253
Essentially, AWS CLI configuration isn't right.
The system environment or configuration was invalid. While the command provided may be syntactically valid, missing configuration or credentials prevented the command from running.
Why this code was returned
Visual Studio executes as User A (my account), while SQL Agent executes as User B (whatever user it's configured with).
I set up the AWS CLI on my account, but that wasn't enough. I need to configure it for Account B as well.
CLI config details are stored in each user's home directory (~/.aws/config, ~/.aws/credentials). I can navigate to User B's home directory and set up config details there.
Related
I have installed Sqitch on a Windows 10 PC using Strawberry Perl. My Snowflake environment has key-pair authentication set up.
My sqitch.conf file has a target set up with the uri.
I am following the Sqitch tutorial and am just trying to create a schema in a DB
When I run this command: c:\Projects\Sqitch\flipr>sqitch deploy
It shows this output:
Adding registry tables to db:snowflake://xxx#xxx.eu-west-1.snowflakecomputing.com/flipr?Driver=SnowflakeDSIIDriver;authenticator=SNOWFLAKE_JWT;priv_key_file=/xxx/rsa_key.p8;priv_key_file_pwd=xxx;warehouse=xxx;uid=xxx
(xxx obviously masks any sensitive values)
It then just sits there doing nothing. I've left it for at least 30 mins so it's definitely not going to complete. If I kill it (ctrl+C) then it shows this - which implies that snowsql is running but it is either not executing properly or not shutting down properly and returning control to Sqitch:
Aborted!
"C:\Program Files\Snowflake SnowSQL\snowsql.exe" unexpectedly returned exit value 1
Does anyone have any idea what the problem is?
Fixed by amending the ODBC - server needed the full URL (including .snowflakecomputing.com) and I just had the account/region
I have a WinSCP script that SFTPs a file from a remote server to a local directory. The script works fine when I execute it from the command line, but when I try to execute it as a command step in a SQL Server Agent job, the job fails. All the history tells me is:
Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output. Process Exit Code 1. The step failed.
which could mean anything. I've tried to break the problem down to its core by stripping everything out of the script except an exit statement. It still fails, so I know the issue is not in the script. Any thoughts?
Posting in case anyone else runs into this problem. The WinSCP FAQ has a little section on these kinds of problems, but missed one ridiculously simple possibility: does the job have access to the script being executed?
Regardless of who created the script, the command will be executed by the SQLSERVERAGENT account. If you're like me, you keep your scripts under your user account's home directory, which SQLSERVERAGENT doesn't have access to. Move the script to a directory it can read and see if that fixes it for you. I used the Users\Public directory.
So, I have an SSIS package that checks for file existence on the server, copies data from the file onto a table on sql server and moves the file to a done folder.
I have created environment variables and since I have full access to folders and to the server..the package got executed successfully. But, When I selected QA environment in the configuration manager and when I run the package..it's failing to move the file to the done folder and the error in execution result is - [File System Task] Error: An error occurred with the following error message: "Access to the path is denied.".
I have used user variables within the File system task
and the package overview
My question here is - since the file is present in file explorer on QA box and I don't have access..is it the reason for it to fail. But, I am not using my credentials to login at the connection manager level. I am using SQL server authentication (got a service account created).
Please let me know if you have any questions.
Thank you!
My question here is - since the file is present in file explorer on QA box and I don't have access..is it the reason for it to fail.
This is the reason for the failure, yes.
When running a SSIS package in Visual Studio most things will run under your credentials. Yes, you need to specify credentials for some connection managers, but File System Tasks use the Local User's credentials. If you, personally, do not have access to a file, neither does an SSIS package you are running.
I been working on installing Oracle 12c database on my windows machine. I downloaded the Microsoft Windows x64 (64-bit 2.8GB) file here.
Then I extracted the zip file into a folder in my Desktop and run the setup.exe
But I keep on getting this error and am unable to move forth.
[INS-30131] Initial setup required for the execution of installer validations failed._______________________________________________________________Cause - Failed to access the temporary location. Action - Ensure that the current user has required permissions to access the temporary location. Additional Information:
- PRVG-1901 : failed to setup CVU remote execution framework directory "C:\Users\Taro\AppData\Local\Temp\CVU_12.2.0.1.0_Taro\" on nodes "nayantara-jeyaraj" - Cause: An operation requiring remote execution could not complete because
the attempt to set up the Cluster Verification Utility remote
execution framework failed on the indicated nodes at the
indicated directory location because the CVU remote execution
framework version did not match the CVU java verification
framework version. The accompanying message provides detailed
failure information. - Action: Ensure that the directory indicated exists or can be created and
the user executing the checks has sufficient permission to
overwrite the contents of this directory. Also review the
accompanying error messages and respond to them. Summary of the failed nodes nayantara-jeyaraj - Version of exectask could not be retrieved from node "nayantara-jeyaraj" - Cause: Cause Of Problem Not Available - Action: User Action Not Available - Version of exectask could not be retrieved from node "nayantara-jeyaraj" - Cause: Cause Of Problem Not Available - Action: User Action Not Available
According to the error, I checked the C:\Users\Taro\AppData\Local\Temp folder permissions under its properties panel's security tab. All the users have full access permissions.
This helped me:
setup.exe -ignorePrereq -J"-Doracle.install.db.validate.supportedOSCheck=false"
I also
run the console as administrator
checked whether a REG DWORD named AutoShareWks (in registry Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters) exists. It did not. But if it would, make sure that the value is set to “1” and restart.
Stopped the OracleRemExecServiceV2 service
I am getting this error message running a batch job with TeamCity. The batchjob is copying files from TeamCity Server to another server(server2). Have checked multiple times, the folders have all the rights permissions needed and this works fine (copies files between servers) when the batch job is run manually from command prompt. I have this error for each file that needs to be copied.
error MSB3021: Unable to copy file "..\bin\Release\Boo.Lang.Compiler.dll" to "\Server2\DestinationFolder\". Could not find a part of the path '\Server2\DestinationFolder'.[10:54:32]: Creating directory "\Server2\DestinationFolder".
I tried few things, but issue remains unresolved. Thanks for your input.
TeamCity build Agent is running as System user account that has no access to the network resources, you should change the service user to an account that has network permissions, like your Administrator account.
See also the related question.