Skip to content

create-domain-job.sh: line 4: $'\r': command not found #2636

Closed
@gwbatte

Description

@gwbatte

HiHi,

Following > Samples > Azure Kubernetes Service > Domain home on a PV:

Step: Asking Operator to create WebLogic Server domain within the Azure: AKS Cluster.

$ ./create-domain.sh -i ~/azure/weblogic-on-aks/domain1.yaml -o ~/azure_11_22_2021 -e -v
Input parameters being used
export version="create-weblogic-sample-domain-inputs-v1"
export adminPort="7001"
export adminServerName="admin-server"
export domainUID="domain1"
export domainHome="/shared/domains/domain1"
export serverStartPolicy="IF_NEEDED"
export clusterName="cluster-1"
export configuredManagedServerCount="5"
export initialManagedServerReplicas="2"
export managedServerNameBase="managed-server"
export managedServerPort="8001"
export image="<ACR_Name>.azurecr.io/middleware/weblogic:12.2.1.4"
export imagePullPolicy="Always"
export imagePullSecretName="wlsregcred"
export productionModeEnabled="true"
export weblogicCredentialsSecretName="domain1-weblogic-credentials"
export includeServerOutInPodLog="true"
export logHome="/shared/logs/domain1"
export httpAccessLogInLogHome="true"
export t3ChannelPort="30012"
export exposeAdminT3Channel="false"
export adminNodePort="30701"
export exposeAdminNodePort="true"
export namespace="idam"
javaOptions=-Dweblogic.StdoutDebugEnabled=false -XX:MinRAMPercentage=25.0 -XX:MaxRAMPercentage=50.0
export persistentVolumeClaimName="wls-azurefile-1637114823"
export domainPVMountPath="/shared"
export createDomainScriptsMountPath="/u01/weblogic"
export createDomainScriptName="create-domain-job.sh"
export createDomainFilesDir="wlst"
export serverPodMemoryRequest="1.5Gi"
export serverPodCpuRequest="250m"
export istioEnabled="false"
export istioReadinessPort="8888"

createFiles - valuesInputFile is /c/Users//azure/weblogic-on-aks/domain1.yaml
createDomainScriptName is create-domain-job.sh
Generating /c/Users//azure_11_22_2021/weblogic-domains/domain1/create-domain-job.yaml
Generating /c/Users//azure_11_22_2021/weblogic-domains/domain1/delete-domain-job.yaml
Generating /c/Users//azure_11_22_2021/weblogic-domains/domain1/domain.yaml
/c/Users//11-16-2021/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/../../common/utility.sh: line 614: [[: MINGW64_NT-10.0-19042: syntax error: invalid arithmetic operator (error token is ".0-19042")
Checking to see if the secret domain1-weblogic-credentials exists in namespace idam
Checking if the persistent volume claim wls-azurefile-1637114823 in NameSpace idam exists
The persistent volume claim wls-azurefile-1637114823 already exists in NameSpace idam
/c/Users//11-16-2021/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/../../common/utility.sh: line 693: [[: MINGW64_NT-10.0-19042: syntax error: invalid arithmetic operator (error token is ".0-19042")
W1122 08:31:03.141965 26216 helpers.go:555] --dry-run is deprecated and can be replaced with --dry-run=client.
configmap/domain1-create-weblogic-sample-domain-job-cm configured
Checking the configmap domain1-create-weblogic-sample-domain-job-cm was created
'weblogic.domainUID' already has a value (domain1), and --overwrite is false
'weblogic.domainName' already has a value (domain1), and --overwrite is false
Checking if object type job with name domain1-create-weblogic-sample-domain-job exists
No resources found in idam namespace.
Creating the domain by creating the job /c/Users//azure_11_22_2021/weblogic-domains/domain1/create-domain-job.yaml
job.batch/domain1-create-weblogic-sample-domain-job created
Waiting for the job to complete...
Found 3 pods, using pod/domain1-create-weblogic-sample-domain-job-tz279
status on iteration 1 of 30

Operator 3.3.4 [container-registry.oracle.com/middleware/weblogic-kubernetes-operator:3.3.4]
OIG Image used: [ Oracle Identity and Access Management 12.2.1.4 Products with Kubernetes (Doc ID 2723908.1) ]

kubectl logs domain1-create-weblogic-sample-domain-job-g48rc -n idam
/u01/weblogic/create-domain-job.sh: line 4: $'\r': command not found
/u01/weblogic/create-domain-job.sh: line 5: syntax error near unexpected token $'{\r'' 'u01/weblogic/create-domain-job.sh: line 5: function exitIfError {

Any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions