Closed aravindj76 closed 3 years ago
Can you try using:
helm install --name sitewhere \
-f ./sitewhere/values-dev.yaml \
--set sitewhere-infra-database.mongodb.persistence.storageClass=hostpath \
--set sitewhere-infra-core.kafka.persistence.storageClass=hostpath \
--set sitewhere-infra-core.kafka.zookeeper.persistence.storageClass=hostpath \
sitewhere/sitewhere
Hi Jorge,
Thanks for your reply. I ran the command and got the below error.
$ helm install --name sitewhere -f ./sitewhere/values-dev.yaml --set sitewhere-infra-database.mongodb.persistence.storageClass=hostpath --set sitewhere-infra-core.kafka.persistence.storageClass=hostpath --set sitewhere-infra-core.kafka.zookeeper.persistence.storageClass=hostpath sitewhere/sitewhere
Error: failed to download "sitewhere/sitewhere" (hint: running helm repo update
may help)
$ helm repo update Hang tight while we grab the latest from your chart repositories... ...Skip local chart repository ...Successfully got an update from the "stable" chart repository Update Complete.
Then I ran the install and I got the same error.
Am I having wrong file structures for the software to work.
My compiled development code exist in $pwd /home/ceyarkadmin/siteWhere/sitewhere ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere$ ls build.gradle service-instance-management CODE_OF_CONDUCT.md service-label-generation gradle service-outbound-connectors gradle.properties service-rule-processing gradlew service-schedule-management gradlew.bat service-streaming-media HEADER service-web-rest LICENSE.txt settings.gradle package-lock.json sitewhere-cassandra README.md sitewhere-communication service-asset-management sitewhere-configuration service-batch-operations sitewhere-core service-command-delivery sitewhere-core-api service-device-management sitewhere-core-lifecycle service-device-registration sitewhere-grpc-client service-device-state sitewhere-influxdb service-event-management sitewhere-jdk service-event-search sitewhere-microservice service-event-sources sitewhere-mongodb service-inbound-processing sitewhere-solr
The K8s charts is in the following path pwd /home/ceyarkadmin/siteWhere/sitewhere-k8s/charts ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere-k8s/charts$ ls common-issues.md sitewhere sitewhere-infra-database README.md sitewhere-infra-core warp10
Can you please guide here If I have restructure the files path to resolve this issue.
Thanks.
From this:
helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
It seems that you don't have sitewhere
helm repository.
Please, add it, update and install again:
helm repo add sitewhere https://sitewhere.io/helm-charts
helm repo update
helm install --name sitewhere \
-f ./sitewhere/values-dev.yaml \
--set sitewhere-infra-database.mongodb.persistence.storageClass=hostpath \
--set sitewhere-infra-core.kafka.persistence.storageClass=hostpath \
--set sitewhere-infra-core.kafka.zookeeper.persistence.storageClass=hostpath \
sitewhere/sitewhere
Thanks for your reply. I executed the two commands you gave me. But still have the same error. Please find my commands executed.
---------------start of logs---------------------------------------------------------------------
ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere-k8s/charts$ kubectl get svc -n istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
istio-ingressgateway LoadBalancer 10.110.93.72 192.168.99.96 15021:31586/TCP,80:30801/TCP,443:31464/TCP,15443:30166/TCP 5d10h
istiod ClusterIP 10.107.41.77
NAME: sitewhere LAST DEPLOYED: Sun Aug 2 20:41:29 2020 NAMESPACE: default STATUS: DEPLOYED
RESOURCES: ==> v1/ConfigMap NAME DATA AGE sitewhere-influxdb 1 12s sitewhere-syncope-environment-config 10 11s sitewhere-warp10 1 11s
==> v1/Deployment NAME READY UP-TO-DATE AVAILABLE AGE sitewhere-asset-management 0/1 1 0 15s sitewhere-batch-operations 0/1 1 0 13s sitewhere-command-delivery 0/1 1 0 13s sitewhere-device-management 0/1 1 0 14s sitewhere-device-registration 0/1 1 0 14s sitewhere-device-state 0/1 1 0 14s sitewhere-event-management 0/1 1 0 14s sitewhere-event-search 0/1 1 0 14s sitewhere-event-sources 0/1 1 0 14s sitewhere-inbound-processing 0/1 1 0 14s sitewhere-instance-management 0/1 1 0 14s sitewhere-label-generation 0/1 1 0 14s sitewhere-mosquitto 0/1 1 0 14s sitewhere-outbound-connectors 0/1 1 0 14s sitewhere-rule-processing 0/1 1 0 15s sitewhere-schedule-management 0/1 1 0 15s sitewhere-streaming-media 0/1 1 0 15s sitewhere-syncope 0/1 1 0 15s sitewhere-syncope-console 0/1 1 0 15s sitewhere-syncope-enduser 0/1 1 0 15s sitewhere-web-rest 0/1 1 0 13s
==> v1/Pod(related) NAME READY STATUS RESTARTS AGE sitewhere-asset-management-6f4f47844b-jr9jm 0/2 Init:0/1 0 20s sitewhere-batch-operations-765b7b7df4-7vv4b 0/2 Init:0/1 0 19s sitewhere-cassandra-0 0/1 ContainerCreating 0 32s sitewhere-command-delivery-5ff76b6797-q9snx 0/2 Init:0/1 0 22s sitewhere-cp-kafka-0 0/1 ContainerCreating 0 33s sitewhere-cp-kafka-1 0/1 ContainerCreating 0 32s sitewhere-cp-kafka-2 0/1 ContainerCreating 0 31s sitewhere-cp-zookeeper-0 0/1 ContainerCreating 0 30s sitewhere-cp-zookeeper-1 0/1 ContainerCreating 0 29s sitewhere-cp-zookeeper-2 0/1 ContainerCreating 0 28s sitewhere-device-management-677fc47656-zdvbq 0/2 Init:0/1 0 23s sitewhere-device-registration-6d95f76f47-gdwmf 0/2 Init:0/1 0 20s sitewhere-device-state-6f9877f9f4-l5rdz 0/2 Init:0/1 0 22s sitewhere-event-management-6b65bd7b46-2pdjf 0/2 Init:0/1 0 23s sitewhere-event-search-64695685c8-jmczm 0/2 Init:0/1 0 22s sitewhere-event-sources-b498b76d7-8npbx 0/2 Init:0/1 0 26s sitewhere-inbound-processing-76f4797697-wxqpn 0/2 Init:0/1 0 24s sitewhere-influxdb-0 0/1 Running 0 35s sitewhere-instance-management-54bf57d5f4-9j9n6 0/2 Init:0/1 0 28s sitewhere-label-generation-78f8b6bb94-c6lg4 0/2 Init:0/1 0 28s sitewhere-mongodb-arbiter-0 0/1 ContainerCreating 0 36s sitewhere-mongodb-primary-0 0/1 ContainerCreating 0 32s sitewhere-mongodb-secondary-0 0/1 ContainerCreating 0 35s sitewhere-mosquitto-84444d4fb8-8v92c 0/1 ContainerCreating 0 30s sitewhere-outbound-connectors-75d5c6b695-szk7q 0/2 Init:0/1 0 25s sitewhere-postgresql-0 0/1 ContainerCreating 0 32s sitewhere-rule-processing-5b57ccf8cf-nkqcg 0/2 Init:0/1 0 28s sitewhere-schedule-management-6b6c788d84-b8wff 0/2 Init:0/1 0 30s sitewhere-streaming-media-79b59c5856-ktm2q 0/2 Init:0/1 0 29s sitewhere-syncope-7fc989f5f6-pb4j9 0/1 Init:0/1 0 21s sitewhere-syncope-console-66c66ff696-5pjrr 0/1 ContainerCreating 0 21s sitewhere-syncope-enduser-56877b8875-sxqfx 0/1 ContainerCreating 0 22s sitewhere-tenantsdb-0 0/1 ContainerCreating 0 35s sitewhere-warp10-0 0/1 ContainerCreating 0 31s sitewhere-web-rest-859b684955-rkbk8 0/2 Init:0/1 0 20s
==> v1/Secret NAME TYPE DATA AGE sitewhere-tenantsdb Opaque 1 11s syncope Opaque 1 11s
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
sitewhere-asset-management-svc ClusterIP None
==> v1/StatefulSet NAME READY AGE sitewhere-cassandra 0/3 16s sitewhere-cp-kafka 0/3 15s sitewhere-cp-zookeeper 0/3 14s sitewhere-influxdb 0/1 16s sitewhere-mongodb-arbiter 0/1 16s sitewhere-mongodb-primary 0/1 15s sitewhere-mongodb-secondary 0/1 15s sitewhere-postgresql 0/1 14s sitewhere-tenantsdb 0/1 15s sitewhere-warp10 0/1 15s
==> v1alpha3/Gateway NAME AGE sitewhere-gateway 16s
==> v1alpha3/VirtualService NAME GATEWAYS HOSTS AGE sitewhere-web-rest [sitewhere-gateway] [*] 16s
==> v1beta1/PodDisruptionBudget NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE sitewhere-cp-zookeeper-pdb N/A 1 0 11s sitewhere-mongodb-arbiter 1 N/A 0 11s sitewhere-mongodb-primary 1 N/A 0 11s sitewhere-mongodb-secondary 1 N/A 0 10s
NOTES:
ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere-k8s/charts$
ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere-k8s/charts$ helm ls --all sitewhere
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
sitewhere 1 Sun Aug 2 20:41:29 2020 DEPLOYED sitewhere-0.2.9 2.2 default
ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere-k8s/charts$
ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere-k8s/charts$ helm install --name sitewhere -f ./sitewhere/values-dev.yaml --set sitewhere-infra-database.mongodb.persistence.storageClass=hostpath --set sitewhere-infra-core.kafka.persistence.storageClass=hostpath --set sitewhere-infra-core.kafka.zookeeper.persistence.storageClass=hostpath sitewhere/sitewhere
Error: a release named sitewhere already exists.
Run: helm ls --all sitewhere; to check the status of the release
Or run: helm del --purge sitewhere; to delete it
-------------------------------------end of logs---------------------- So i have a query. Why am I getting an error when I execute the command helm install --name sitewhere -f ./sitewhere/values-dev.yaml sitewhere
whereas I don't get error when I execute "helm install --name sitewhere sitewhere/sitewhere". Can you please clarify.
Is this sufficient to continue to work on this software package. But I would prefer to work on the developer instance running to save the resources on the machine. Can you please guide.
Thanks.
The issue is solved. Thanks for the support.
Describe the bug I am installing sitewhere and I am getting this error during install.
Error: validation failed: unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"
Provide Information Output of
helm version
: Client: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"}Output of
kubectl version
: Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:58:53Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}Output of
helm ls sitewhere
None.But I have already followed the steps provided in the development guide link and please find below the folders.
$ ls build.gradle LICENSE.txt service-device-registration service-label-generation sitewhere-cassandra sitewhere-influxdb CODE_OF_CONDUCT.md package-lock.json service-device-state service-outbound-connectors sitewhere-communication sitewhere-jdk gradle README.md service-event-management service-rule-processing sitewhere-configuration sitewhere-microservice gradle.properties service-asset-management service-event-search service-schedule-management sitewhere-core sitewhere-mongodb gradlew service-batch-operations service-event-sources service-streaming-media sitewhere-core-api sitewhere-solr gradlew.bat service-command-delivery service-inbound-processing service-web-rest sitewhere-core-lifecycle HEADER service-device-management service-instance-management settings.gradle sitewhere-grpc-client ceyarkadmin@ceyark-macserv1:~/siteWhere/sitewhere$ pwd /home/ceyarkadmin/siteWhere/sitewhere
and please find my docker images.
$ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE sitewhere/service-web-rest 2.1.1 7a390009cc94 5 days ago 160MB sitewhere/service-streaming-media 2.1.1 19726c38bef8 5 days ago 146MB sitewhere/service-schedule-management 2.1.1 bc1d80f9239d 5 days ago 143MB sitewhere/service-rule-processing 2.1.1 8ee1e57e6dc3 5 days ago 140MB sitewhere/service-outbound-connectors 2.1.1 d8eee561b66c 5 days ago 148MB sitewhere/service-label-generation 2.1.1 a2fea2e8cf35 5 days ago 141MB sitewhere/service-instance-management 2.1.1 1f11247fc559 5 days ago 145MB sitewhere/service-inbound-processing 2.1.1 5857ee1ccc7d 5 days ago 140MB sitewhere/service-event-sources 2.1.1 410e9b479e82 5 days ago 152MB sitewhere/service-event-search 2.1.1 e823bba56eba 5 days ago 142MB sitewhere/service-event-management 2.1.1 0e9d92bc2a53 5 days ago 146MB sitewhere/service-device-state 2.1.1 c2a38c413a2c 5 days ago 142MB sitewhere/service-device-registration 2.1.1 3254f04e4c4b 5 days ago 140MB sitewhere/service-device-management 2.1.1 9168243d2b88 5 days ago 142MB sitewhere/service-command-delivery 2.1.1 bb21068ac93d 5 days ago 143MB sitewhere/service-batch-operations 2.1.1 ac566456ff8e 5 days ago 142MB sitewhere/service-asset-management 2.1.1 04fcbab910ca 5 days ago 143MB gcr.io/k8s-minikube/kicbase v0.0.10 e6bc41c39dc4 3 months ago 974MB analyticsserverdocker_ui latest 036cda8e4821 4 months ago 134MB