Coder Social home page Coder Social logo

kbhattac / coolretailer Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 16.0 2.51 MB

Microservices with Istio, gRPC, Redis, BigQuery, Spring Boot, Spring Cloud and Stackdriver

License: Apache License 2.0

Shell 8.38% HTML 0.68% Dockerfile 0.69% Java 19.45% Python 1.96% CSS 1.80% JavaScript 64.67% Jinja 2.36%
bigquery google-cloud google-kubernetes-engine grafana grpc istio kiali locust microservices redis spring-boot spring-cloud zipkin

coolretailer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

coolretailer's Issues

Building queryservice fails (missing dependency for protobuf)

STEPS TO REPRODUCE

  • create new project
  • set project to newly created project (gcloud)
  • Confirm project (tutorial)
  • Enable API's (tutorial)
  • launch deploy.sh
    #service account creation OK
    #policy binding OK
    #importing data

--2019-03-07 11:35:12-- https://raw.githubusercontent.com/BestBuyAPIs/open-data-set/master/products.json
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39685207 (38M) [text/plain]
Saving to: ‘products.json.1’

products.json.1 100%[=====================================================================================>] 37.85M 210MB/s in 0.2s

2019-03-07 11:35:13 (210 MB/s) - ‘products.json.1’ saved [39685207/39685207]

[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.coolretailer:queryservice >--------------------
[INFO] Building queryservice 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.1.1.RELEASE:run (default-cli) > test-compile @ queryservice >>>
[WARNING] The POM for com.coolretailer:protobuf:jar:1.0.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.559 s
[INFO] Finished at: 2019-03-07T11:35:22+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project queryservice: Could not resolve dependencies for project com.coolretailer:queryservice:jar:1.0.0: Failure to find com.coolretailer:protobuf:jar:1.0.0 in https://repo.spring.io/milestone was cached in the local repository, resolution will not be reattempted until the update interval of spring-milestones has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Creating gs://coolretailer-gcs-bucket-kxysj3jrh327pliqnbe4-1551953559/...
ServiceException: 409 Bucket coolretailer-gcs-bucket-kxysj3jrh327pliqnbe4-1551953559 already exists.
CommandException: No URLs matched: products.nd.json
Dataset 'cool-retailer-plb02:coolretailer' successfully created.
BigQuery error in load operation: Error processing job 'cool-retailer-plb02:bqjob_r396448bec35229f3_0000016957b8f485_1': An internal error occurred and the request
could not be completed. Error: 9724253
Failure details:

  • An internal error occurred and the request could not be completed.
    Error: 9724253
    . Creating cluster...
    WARNING: Starting in 1.12, new clusters will not have a client certificate issued. You can manually enable (or disable) the issuance of the client certificate using the --[no-]issue-client-certificate flag.
    WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run clusters create with the flag --metadata disable-legacy-endpoints=true.
    This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
    This will enable the autoupgrade feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-management for more information on node autoupgrades.
    ERROR: (gcloud.beta.container.clusters.create) ResponseError: code=400, message=Master version "1.10.11-gke.1" is unsupported.
    Fetching cluster endpoint and auth data.
    ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=404, message=Not found: projects/cool-retailer-plb02/zones/europe-west4-a/clusters/coolretailer.
    No cluster named 'coolretailer' in cool-retailer-plb02.

empty email in service account

Starting deploy.sh

Terminal shows:
. Starting the setup process in project coolretailer-2...
. Creating a service account coolretailer-app-1553854075...
Created service account [coolretailer-app-1553854075].
Service Account email is empty. Exiting.

Running the deploy.sh again results in error that service accounts already exists, but does continue afterwards.

Perhaps insert short delay after service account is created?

Unable to delete repository images

The actions are performedin teardown.sh

Deleting GCR images 
WARNING: Implicit ":latest" tag specified: gcr.io/plb-coolretailer/queryservice
ERROR: (gcloud.container.images.delete) [gcr.io/plb-coolretailer/queryservice:latest] is not a valid name. Expected tag in the form "base:tag" or "tag" or digest in the form "sha256:<digest>"
WARNING: Implicit ":latest" tag specified: gcr.io/plb-coolretailer/cacheservice
ERROR: (gcloud.container.images.delete) [gcr.io/plb-coolretailer/cacheservice:latest] is not a valid name. Expected tag in the form "base:tag" or "tag" or digest in the form "sha256:<digest>"
WARNING: Implicit ":latest" tag specified: gcr.io/plb-coolretailer/dataservice
ERROR: (gcloud.container.images.delete) [gcr.io/plb-coolretailer/dataservice:latest] is not a valid name. Expected tag in the form "base:tag" or "tag" or digest in the form "sha256:<digest>"
WARNING: Implicit ":latest" tag specified: gcr.io/plb-coolretailer/loadgenerator
ERROR: (gcloud.container.images.delete) [gcr.io/plb-coolretailer/loadgenerator:latest] is not a valid name. Expected tag in the form "base:tag" or "tag" or digest in the form "sha256:<digest>"

Looking in container registry, no images are listed.

Creating cluster fails

Running ./deply.sh produces errors:

WARNING: Starting in 1.12, new clusters will not have a client certificate issued. You can manually enable (or disable) the issuance of the client certificate using the `--[no-]issue-client-certificate` flag.
WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run `clusters create` with the flag `--metadata disable-legacy-endpoints=true`.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
ERROR: (gcloud.beta.container.clusters.create) ResponseError: code=400, message=Master version "1.11.7-gke.4" is unsupported.
Fetching cluster endpoint and auth data.
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=404, message=Not found: projects/coolretailer-3/zones/europe-west4-a/clusters/coolretailer.
No cluster named 'coolretailer' in coolretailer-3.

Script continues and repeatedly fails at connecting:

Unable to connect to the server: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "https://storage.googleapis.com/gke-release/istio/release/1.0.3-gke.0/stackdriver/stackdriver-tracing.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "https://storage.googleapis.com/gke-release/istio/release/1.0.3-gke.0/stackdriver/stackdriver-tracing.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "https://storage.googleapis.com/gke-release/istio/release/1.0.3-gke.0/stackdriver/stackdriver-tracing.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout

and

019-03-29 11:39:08 (59.6 MB/s) - ‘./helm/helm-v2.11.0-linux-amd64.tar.gz’ saved [19149273/19149273]

unable to recognize "kiali.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "kiali.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "kiali.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "kiali.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout

and

.  Starting deployments... 
unable to recognize "kubernetes-manifests/redis/redis-master.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "kubernetes-manifests/redis/redis-master.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "kubernetes-manifests/redis/redis-slave.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "kubernetes-manifests/redis/redis-slave.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "./kubernetes-manifests/dataservice.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout
unable to recognize "./kubernetes-manifests/dataservice.yaml": Get https://35.204.255.219/api?timeout=32s: dial tcp 35.204.255.219:443: i/o timeout

and

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.