By: Darren Kennedy Account Admin 21 Nov 2019 at 6:51 p.m. CST

3 Responses
Darren Kennedy gravatar
There are a few possible error conditions before the last error below. ``` > git clone https://github.com/GluuFederation/enterprise-edition.git > cd enterprise-edition/examples/kubernetes > bash create.sh [I] Determining OS Type Host is detected as Mac |---------------------------------------------------------------- -| | Local Deployments | |---------------------------------------------------------------- -| | [1] Microk8s [default] | | [2] Minikube | |---------------------------------------------------------------- -| | Cloud Deployments | |----------------------------------------------------------------- | | [3] Amazon Web Services - Elastic Kubernetes Service (Amazon EKS)| | [4] Google Cloud Engine - Google Kubernetes Engine (GKE) | | [5] Microsoft Azure (AKS) | |------------------------------------------------------------------| Deploy using? 2 |------------------------------------------------------------------| | Persistence layer | |------------------------------------------------------------------| | [0] WrenDS [default] | | [1] Couchbase [Testing Phase] | | [2] Hybrid(WrenDS + Couchbase)[Testing Phase] | |------------------------------------------------------------------| Persistence layer? |------------------------------------------------------------------| | Is this a multi-cloud/region setup[N] ?[Y/N] | |------------------------------------------------------------------| | Notes | |------------------------------------------------------------------| |- If you are planning for a multi-cloud/region setup and this | | is the first cluster answer N or leave blank. You will answer Y | | for the second and more cluster setup | |------------------------------------------------------------------| Is this a multi-cloud/region setup[N] |------------------------------------------------------------------| | Local Deployments | |------------------------------------------------------------------| | [1] Microk8s | LDAP volumes on host | | [2] Minikube | LDAP volumes on host | |------------------------------------------------------------------| | Cloud Deployments | |------------------------------------------------------------------| |Amazon Web Services - Elastic Kubernetes Service (Amazon EKS) | | MultiAZ - Supported | |------------------------------------------------------------------| | [6] EKS | LDAP volumes on host | | [7] EKS | LDAP EBS volumes dynamically provisioned | | [8] EKS | LDAP EBS volumes statically provisioned | | [9] EKS | LDAP EFS volume | |------------------------------------------------------------------| |Google Cloud Engine - Google Kubernetes Engine | |------------------------------------------------------------------| | [11] GKE | LDAP volumes on host | | [12] GKE | LDAP Persistent Disk dynamically provisioned | | [13] GKE | LDAP Persistent Disk statically provisioned | |------------------------------------------------------------------| |Microsoft Azure | |------------------------------------------------------------------| | [16] Azure | LDAP volumes on host | | [17] Azure | LDAP Persistent Disk dynamically provisioned | | [18] Azure | LDAP Persistent Disk statically provisioned | |------------------------------------------------------------------| | Notes | |------------------------------------------------------------------| |- Any other option will default to choice 1 | |------------------------------------------------------------------| What type of deployment? 2 |------------------------------------------------------------------| | Cache layer | |------------------------------------------------------------------| | [0] NATIVE_PERSISTENCE [default] | | [1] IN_MEMORY | | [2] REDIS | |------------------------------------------------------------------| Cache layer? cat: /etc/*-release: No such file or directory Skipping command... Please install the follwing packages before you continue jq, openjdk 8, unzip, bc, and wget. Exit immediatly if these packages are not installed. Otherwise, setup will continue [I] kubectl detected version 1.16 Attempting to Gather External IP Address Warning: gnu-sed 4.7 is already installed and up-to-date To reinstall 4.7, run `brew reinstall gnu-sed` Updating Homebrew... Warning: jq 1.6 is already installed and up-to-date To reinstall 1.6, run `brew reinstall jq` Error: Cask adoptopenjdk8 exists in multiple taps: caskroom/versions/adoptopenjdk8 adoptopenjdk/openjdk/adoptopenjdk8 Skipping command... Is this the correct external IP Address: 192.168.86.163 [Y/n]? Deploy Cr-Rotate[N]?[Y/N] Deploy Key-Rotation[N]?[Y/N] Deploy Radius[N]?[Y/N] Deploy Passport[N]?[Y/N] Deploy Shibboleth SAML IDP[N]?[Y/N] [Testing Phase] Deploy Casa[N]?[Y/N] Deploy OXD-Server[N]?[Y/N] [I] Preparing cluster-wide config and secrets [I] Checking existing config parameters configmap create.sh: line 845: [[: NAME DATA AGE config-cm-d2hhgb67kc 3 7h11m config-generate-params-5g8c5bcf7m 1 108m config-generate-params-9tbdb78bgb 1 7h11m: syntax error in expression (error token is "DATA AGE config-cm-d2hhgb67kc 3 7h11m config-generate-params-5g8c5bcf7m 1 108m config-generate-params-9tbdb78bgb 1 7h11m") [I] Found existing parametes configmap Error from server (NotFound): configmaps "config-generate-params" not found [I] Use pervious params? [Y/n] [I] Removing all previous gluu services if found [I] Creating new configuration, please input the following parameters Enter Hostname [demoexample.gluu.org]: gluudev.evernote.com Enter Country Code [US]: Enter State [TX]: Enter City [Austin]: Enter Email [support@gluu.org]: Enter Organization [Gluu]: Evernote Password will be located in gluu_admin_password. Please save your password securely and delete file gluu_admin_password Enter Gluu Admin/LDAP Password [w3g***]: ******* Confirm Admin/LDAP Password: ******* Continue with the above settings? [Y/n] Are you using a globally resolvable FQDN [N] [Y/N]: mkdir: gluuminikubeyamls: File exists Skipping command... Size of ldap volume storage [4Gi]: Number of oxAuth replicas [1]: Number of oxTrust replicas [1]: Number of LDAP replicas [1]: all yamls have been generated in gluuminikubeyamls folder config.yaml oxauth.yaml persistence.yaml ldap.yaml oxtrust.yaml updatelbip.yaml Deploy the generated yamls? [Y][Y/n] cat: gluuminikubeyamls/shared-shib.yaml: No such file or directory error: no objects passed to apply Skipping command... Error from server (AlreadyExists): secrets "cb-pass" already exists Error from server (AlreadyExists): secrets "cb-crt" already exists role.rbac.authorization.k8s.io/gluu-role unchanged rolebinding.rbac.authorization.k8s.io/gluu-rolebinding unchanged configmap/config-cm-d2hhgb67kc unchanged configmap/config-generate-params-5g8c5bcf7m unchanged The Job "config-init-load-job" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:"", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{"app":"config-init-load", "controller-uid":"87d56bca-217b-49a0-a213-9c8a97f245a3", "job-name":"config-init-load-job"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume{core.Volume{Name:"config-generate-params", VolumeSource:core.VolumeSource{HostPath:(*core.HostPathVolumeSource)(nil), EmptyDir:(*core.EmptyDirVolumeSource)(nil), GCEPersistentDisk:(*core.GCEPersistentDiskVolumeSource)(nil), AWSElasticBlockStore:(*core.AWSElasticBlockStoreVolumeSource)(nil), GitRepo:(*core.GitRepoVolumeSource)(nil), Secret:(*core.SecretVolumeSource)(nil), NFS:(*core.NFSVolumeSource)(nil), ISCSI:(*core.ISCSIVolumeSource)(nil), Glusterfs:(*core.GlusterfsVolumeSource)(nil), PersistentVolumeClaim:(*core.PersistentVolumeClaimVolumeSource)(nil), RBD:(*core.RBDVolumeSource)(nil), Quobyte:(*core.QuobyteVolumeSource)(nil), FlexVolume:(*core.FlexVolumeSource)(nil), Cinder:(*core.CinderVolumeSource)(nil), CephFS:(*core.CephFSVolumeSource)(nil), Flocker:(*core.FlockerVolumeSource)(nil), DownwardAPI:(*core.DownwardAPIVolumeSource)(nil), FC:(*core.FCVolumeSource)(nil), AzureFile:(*core.AzureFileVolumeSource)(nil), ConfigMap:(*core.ConfigMapVolumeSource)(0xc00d566980), VsphereVolume:(*core.VsphereVirtualDiskVolumeSource)(nil), AzureDisk:(*core.AzureDiskVolumeSource)(nil), PhotonPersistentDisk:(*core.PhotonPersistentDiskVolumeSource)(nil), Projected:(*core.ProjectedVolumeSource)(nil), PortworxVolume:(*core.PortworxVolumeSource)(nil), ScaleIO:(*core.ScaleIOVolumeSource)(nil), StorageOS:(*core.StorageOSVolumeSource)(nil), CSI:(*core.CSIVolumeSource)(nil)}}}, InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:"config-init-load", Image:"gluufederation/config-init:4.0.1_04", Command:[]string(nil), Args:[]string{"load"}, WorkingDir:"", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource{core.EnvFromSource{Prefix:"", ConfigMapRef:(*core.ConfigMapEnvSource)(0xc002c23aa0), SecretRef:(*core.SecretEnvSource)(nil)}}, Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount{core.VolumeMount{Name:"config-generate-params", ReadOnly:false, MountPath:"/opt/config-init/db/generate.json", SubPath:"generate.json", MountPropagation:(*core.MountPropagationMode)(nil), SubPathExpr:""}}, VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:"/dev/termination-log", TerminationMessagePolicy:"File", ImagePullPolicy:"IfNotPresent", SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:"Never", TerminationGracePeriodSeconds:(*int64)(0xc0089e21a0), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:"ClusterFirst", NodeSelector:map[string]string(nil), ServiceAccountName:"", AutomountServiceAccountToken:(*bool)(nil), NodeName:"", SecurityContext:(*core.PodSecurityContext)(0xc009215650), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:"", Subdomain:"", Affinity:(*core.Affinity)(nil), SchedulerName:"default-scheduler", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:"", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable ```

By Mohit Mali staff 22 Nov 2019 at 12:11 a.m. CST

Mohit Mali gravatar
Hi Darren Kennedy, Thank you for reaching out gluu support , can you provide me the links which you are following to install gluu server. Thanks and Regards Mohit Mali

By Darren Kennedy Account Admin 22 Nov 2019 at 10:35 a.m. CST

Darren Kennedy gravatar
Hi Mohit, I used the 4.0 branch from the GitHub project: `git clone https://github.com/GluuFederation/enterprise-edition.git` with the intructions on https://github.com/GluuFederation/enterprise-edition/tree/4.0/examples/kubernetes

By Mohammad Abudayyeh staff 22 Nov 2019 at noon CST

Mohammad Abudayyeh gravatar
Hello Darren, Please pull again, run `bash create.sh delete`. It looks like things are overriding. Then run `bash create.sh`. I sent you some notes on the other ticket you opened. Thanks, Mohammad