Azure devops deployment - azure-devops

Failed to deploy web package to IIS website.
Error: An error was encountered when processing operation 'Create File' on D:\Websites\project\project.pdb.
Error: The error code was 0x800704C8. Error: The requested operation
cannot be performed on a file with a user- mapped section open.
I have tried to add this
MSDEPLOY_RENAME_LOCKED_FILES = 1 on variables

Related

Pipeline sync is failing with error: "Failed to sync hook with err: Webhook creation failed with err: postHook returned error 422"

When I try to add my pipeline source, sync fails with the error:
Failed to sync hook with err: Webhook creation failed for path:
deepika/demoApp and integration: deepikaGithub with err: postHook
returned error 422 for deepika/demoApp
How can I resolve this error?
This is usually the result of too many webhooks. GitHub allows 20 webhooks per repository.
This can be resolved by performing following steps:
In GitHub, go to the Settings | Webhooks tab for the relevant repository
Delete all the failed webhooks

Getting an error while using copy activity (polybase) in adf to copy parquet files in ADLS gen2 to Azure synapse table

My source is parquet files in ADLS gen2. All the parquet files are part files of size 10-14 MB. The total size should be around 80 GB
Sink is Azuresynapse table.
Copy method is Polybase. Getting below error within 5 sec of execution like below:
ErrorCode=PolybaseOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Error happened when loading data into SQL Data Warehouse. Operation: 'Create external table'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Data.SqlClient.SqlException,Message=External file access failed due to internal error: 'Error occurred while accessing HDFS: Java exception raised on call to HdfsBridge_IsDirExist. Java exception message:
HdfsBridge::isDirExist - Unexpected error encountered checking whether directory exists or not: AbfsRestOperationException: Operation failed: "This request is not authorized to perform this operation.", 403, HEAD, URL',Source=.Net SqlClient Data Provider,SqlErrorNumber=105019,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=105019,State=1,Message=External file access failed due to internal error: 'Error occurred while accessing HDFS: Java exception raised on call to HdfsBridge_IsDirExist. Java exception message:
HdfsBridge::isDirExist - Unexpected error encountered checking whether directory exists or not: AbfsRestOperationException: Operation failed: "This request is not authorized to perform this operation.", 403, HEAD,
I've seen this error due to failed authentication, check whether the authorization header and/or signature is wrong.
For example, create the scope credential using your ADLS Gen2 storage account access key:
CREATE DATABASE SCOPED CREDENTIAL [MyADLSGen2Cred] WITH
IDENTITY='user',
SECRET='zge . . . 8V/rw=='
The external data source is created as follows:
CREATE EXTERNAL DATA SOURCE [MyADLSGen2] WITH (
TYPE=HADOOP,
LOCATION='abfs://myblob#pabechevb.dfs.core.windows.net',
CREDENTIAL=[MyADLSGen2Cred])
You can specify wasb instead of abfs, and if you're using SSL, specify it as abfss. Then the external table is created as follows:
CREATE EXTERNAL TABLE [dbo].[ADLSGen2] (
[Content] varchar(128))
WITH (
LOCATION='/',
DATA_SOURCE=[MyADLSGen2],
FILE_FORMAT=[TextFileFormat])
You can find additional information in my book "Hands-On Data Virtualization with Polybase".

SAM Deployment failed Error- Waiter StackCreateComplete failed: Waiter encountered a terminal failure state

When I try to deploy package on SAM, the very first status comes in cloud formation console is ROLLBACK_IN_PROGRESS after that it gets changed to ROLLBACK_COMPLETE
I have tried deleting the stack and trying again, but every time same issue occurs.
Error in terminal looks like this-
Sourcing local options from ./SAMToolkit.devenv
SAM_PARAM_PKG environment variable not set
SAMToolkit will operate in legacy mode.
Please set SAM_PARAM_PKG in your .devenv file to run modern packaging.
Run 'sam help package' for more information
Runtime: java
Attempting to assume role from AWS Identity Broker using account 634668058279
Assumed role from AWS Identity Broker successfully.
Deploying stack sam-dev* from template: /home/***/1.0/runtime/sam/template.yml
sam-additional-artifacts-url.txt was not found, which is fine if there is no additional artifacts uploaded
Replacing BATS::SAM placeholders in template...
Uploading template build/private/tmp/sam-toolkit.yml to s3://***/sam-toolkit.yml
make_bucket failed: s3://sam-dev* An error occurred (BucketAlreadyOwnedByYou) when calling the CreateBucket operation: Your previous request to create the named bucket succeeded and you already own it.
upload: build/private/tmp/sam-toolkit.yml to s3://sam-dev*/sam-toolkit.yml
An error occurred (ValidationError) when calling the DescribeStacks operation: Stack with id sam-dev* does not exist
sam-dev* will be created.
Creating ChangeSet ChangeSet-2020-01-20T12-25-56Z
Deploying stack sam-dev*. Follow in console: https://aws-identity-broker.amazon.com/federation/634668058279/CloudFormation
ChangeSet ChangeSet-2020-01-20T12-25-56Z in sam-dev* succeeded
"StackStatus": "REVIEW_IN_PROGRESS",
sam-dev* reached REVIEW_IN_PROGRESS
Deploying stack sam-dev*. Follow in console: https://console.aws.amazon.com/cloudformation/home?region=us-west-2
Waiting for stack-create-complete
Waiter StackCreateComplete failed: Waiter encountered a terminal failure state
Command failed.
Please see the logs above.
I set SQS as event source for Lambda, but didn't provided the permissions like this
- Effect: Allow
Action:
- sqs:ReceiveMessage
- sqs:DeleteMessage
- sqs:GetQueueAttributes
Resource: "*"
in lambda policies.
I found this error in "Events" tab of "CloudFormation" service.

File operation error: eacces. Target:../ebin. Function: list_dir. Process: application_controller. on ejjabberd server

I am getting an error as follow:
File operation error: eacces. Target: /opt/ejabberd-16.03/lib/xmerl-1.3.7/ebin. Function: list_dir. Process: application_controller.
On AWS server but it is working locally.Further it was working in the past but now its not working..
It means ejabberd does not have access to the target repository. You have an installation issue. Fix your Linux directory access rights.

Can't build the facebook bindings

I just downloaded these facebook bindings : https://github.com/mono/monotouch-bindings/tree/master/facebook
I use "make" command from facebook/binding/ directory but i can't build Facebook.dll.Here is the error:
Project "/Users/abc/facebook/binding/MonoTouch.FacebookConnect.csproj" (default target(s)): Target _AssignBundleResourceNames: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Xamarin.ObjcBinding.Common.targets: error : Error executing task AssignBundleResourceNames: Invalid reserved metadata name Task "AssignBundleResourceNames" execution -- FAILED Done building target "_AssignBundleResourceNames" in project "/Users/abc/facebook/binding/MonoTouch.FacebookConnect.csproj".-- FAILED Done building project "/Users/abc/facebook/binding/MonoTouch.FacebookConnect.csproj".-- FAILED
Build FAILED. Errors:
/Users/abc/facebook/binding/MonoTouch.FacebookConnect.csproj (default targets) -> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Xamarin.ObjcBinding.Common.targets (_AssignBundleResourceNames target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Xamarin.ObjcBinding.Common.targets: error : Error executing task AssignBundleResourceNames: Invalid reserved metadata name