Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Also, validation-api dependency need to be added, I was getting compilation failures
    @Dovchiproeng - I am not using docker, but com.mongodb.MongoSocketException: auth-mongodb error ?
    Agus Ekanurdi
    Hi. I am reading your PiggyMetrics code and found the stack interesting. However I cannot find the FrontEnd source code. May i know where can I get it? I can only find the Backend code in the Github repo for PiggyMetrics.
    Nevermind. Found it inside the gateway module
    May I know why the front end code is there in the gateway module? Would it be better to separate it as a new maven module?
    @SerieA - Could you please let us know what value did you set in all export environment variables ?

    tried to run the sample app(WIN7+docker-machine) and I got the following error:
    $ docker-compose up
    Creating network "piggymetrics_default" with the default driver
    Creating piggymetrics_config_1 ... done
    Creating piggymetrics_notification-mongodb_1 ... done
    Creating piggymetrics_auth-mongodb_1 ... done
    Creating piggymetrics_statistics-mongodb_1 ... done
    Creating piggymetrics_account-mongodb_1 ... done
    Creating piggymetrics_rabbitmq_1 ... done

    ERROR: for auth-service Container "6747c3eaedbb" is unhealthy.

    ERROR: for registry Container "6747c3eaedbb" is unhealthy.

    ERROR: for notification-service Container "6747c3eaedbb" is unhealthy.

    ERROR: for gateway Container "6747c3eaedbb" is unhealthy.

    ERROR: for monitoring Container "6747c3eaedbb" is unhealthy.

    ERROR: for account-service Container "6747c3eaedbb" is unhealthy.

    ERROR: for statistics-service Container "6747c3eaedbb" is unhealthy.
    ERROR: Encountered errors while bringing up the project.
    Could you advise what I need to do in order to deploy and run it?

    Sheshadri Patel
    Hi, I have the same issue as @springfred ..I am running Docker in Windows 10..installed MongoDB , created the database..but none of the services are running.
    Chi Dov
    @SheshadriPatel @springfred you guys might need to try again, as @sqshq just update the mongo docker file and Travis build file
    Hi, I'm the same problem
    of containers "unhealthy"
    It happens with when the images are downloaded as docker images and too when the images are generated directly with jar compiled in local
    UnknownHostException: config , how to fix it
    Chi Dov
    Full stacktrace please
    on the account-service , here is the log
    2019-02-25 14:13:26.610 INFO [auth-service,,,] 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://config:8888
    Chi Dov
    If you run it locally change it to localhost
    Instead of config
    oh ~ yes , i run it locally , and do you mean i should change it to "local" and rebuild the images using the docker-compose.dev.yml , right ?
    thank you a lot ! I will try it first
    i upgraded auth-service form 1.3.5 to 1.5.7 with Dalston.SR4 cloud , after upgrade account service feign client throwing access denied exception
    how do you deploy it to k8s?
    venkat chinni

    I am trying to run docker-compose on my mac and it doesn't work at all. docker-compose up gets launched but after that I see below
    ```account-mongodb_1 | 2019-05-26T21:50:45.675+0000 I COMMAND [ftdc] serverStatus was very slow: { after basic: 0, after asserts: 46, after backgroundFlushing: 46, after connections: 343, after dur: 1275, after extra_info: 1275, after globalLock: 1275, after locks: 3711, after logicalSessionRecordCache: 5345, after network: 6748, after opLatencies: 7268, after opReadConcernCounters: 7823, after opcounters: 7878, after opcountersRepl: 7878, after repl: 7878, after security: 7878, after storageEngine: 8843, after tcmalloc: 9326, after transactions: 9395, after transportSecurity: 9395, after wiredTiger: 10113, at end: 11322 }
    statistics-mongodb_1 | 2019-05-26T21:51:17.785+0000 I COMMAND [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 1770ms
    auth-mongodb_1 | 2019-05-26T21:51:16.080+0000 I COMMAND [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 2353ms
    account-mongodb_1 | 2019-05-26T21:51:14.186+0000 I COMMAND [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 2657ms
    Exception in thread Thread-43:
    Traceback (most recent call last):
    File "site-packages/urllib3/connectionpool.py", line 384, in _make_request
    File "<string>", line 2, in raise_from
    File "site-packages/urllib3/connectionpool.py", line 380, in _make_request
    File "http/client.py", line 1331, in getresponse
    File "http/client.py", line 297, in begin
    File "http/client.py", line 258, in _read_status
    File "socket.py", line 586, in readinto
    socket.timeout: timed out

    During handling of the above exception, another exception occurred:
    Anyone facing same issue. I used production mode, dev mode and as well as modified the compose file to build docker images in local but still same issue.

    hi,in many services,about cloud spring uri:http://config:8888,how is it connect to config?It does't has domain resolve in local machime.thx
    can anyone tell me the use of Notification service, Statistics service and the use of rabbitmq in this application. I cannot see the usage of these things in the UI (https://piggymetrics.tk/)
    maybe u can curl those interface
    sometime it lost services
    When run docker-compose,I encounter below problem
    Traceback (most recent call last):
    File "docker-compose", line 6, in <module>
    File "compose/cli/main.py", line 71, in main
    File "compose/cli/main.py", line 124, in perform_command
    File "compose/cli/command.py", line 42, in project_from_options
    File "compose/cli/command.py", line 128, in get_project
    File "compose/project.py", line 100, in from_config
    File "compose/network.py", line 320, in get_networks
    File "compose/network.py", line 125, in true_name
    File "compose/network.py", line 146, in _set_legacy_flag
    File "compose/network.py", line 106, in inspect
    File "site-packages/docker/utils/decorators.py", line 19, in wrapped
    File "site-packages/docker/api/network.py", line 211, in inspect_network
    File "site-packages/docker/utils/decorators.py", line 46, in inner
    File "site-packages/docker/api/client.py", line 215, in _get
    File "site-packages/requests/sessions.py", line 537, in get
    File "site-packages/requests/sessions.py", line 515, in request
    File "site-packages/requests/sessions.py", line 691, in merge_environment_settings
    File "site-packages/requests/utils.py", line 759, in get_environ_proxies
    File "site-packages/requests/utils.py", line 743, in should_bypass_proxies
    File "urllib/request.py", line 2612, in proxy_bypass
    File "urllib/request.py", line 2589, in proxy_bypass_macosx_sysconf
    File "urllib/request.py", line 2575, in _proxy_bypass_macosx_sysconf
    ValueError: negative shift count
    Is there anyone know why?
    It seems proxy problem?
    set http_proxy and https_proxy
    Parosh Dey
    Hi Can anyone help me with understanding the complete flow of the application ? i want to understand the complete flow ... basicailly i want to how request from clients are handled by api gateway then how the zuul ,service discovery , and other components interatct with one another . and finially the response is sent back . any help is appriciated .
    I'm studying this recently
    trying to create a new service
    Vengatesan Nagarajan
    Hi team, This is Vengat
    I'm full stack developer having experience on Spring boot, Spring cloud, Docker, Jenkins, React.js, Angular, Apache Kafka., so I also like to contribute to piggy metrics project. I have gone through the Piggy metrics architecture, It is really good great job team.
    Hi @sqshq and everyone. I'm trying to run this application either in production or dev mode. But none of the mode worked for me. All the mentioned localhost URI's don't work except RabbitMq.
    All the artefacts build successfully after cloning the latest project from git.
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] piggymetrics 1.0-SNAPSHOT .......................... SUCCESS [  0.030 s]
    [INFO] config 1.0.0-SNAPSHOT .............................. SUCCESS [ 46.397 s]
    [INFO] monitoring 0.0.1-SNAPSHOT .......................... SUCCESS [ 10.990 s]
    [INFO] registry 0.0.1-SNAPSHOT ............................ SUCCESS [ 10.915 s]
    [INFO] gateway 1.0-SNAPSHOT ............................... SUCCESS [  7.609 s]
    [INFO] auth-service 1.0-SNAPSHOT .......................... SUCCESS [ 35.003 s]
    [INFO] account-service 1.0-SNAPSHOT ....................... SUCCESS [ 10.860 s]
    [INFO] statistics-service 1.0-SNAPSHOT .................... SUCCESS [  8.481 s]
    [INFO] notification-service 1.0.0-SNAPSHOT ................ SUCCESS [ 12.265 s]
    [INFO] turbine-stream-service 0.0.1-SNAPSHOT .............. SUCCESS [  8.056 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  02:33 min
    [INFO] Finished at: 2020-04-03T07:48:28+05:00
    [INFO] ------------------------------------------------------------------------
    After running the application using production mode as mentioned - docker-compose up. I can see all the containers have started with assigned ports on localhost.
    deminem$ docker ps
    CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS                    PORTS                                                                     NAMES
    ae48dd57905f        sqshq/piggymetrics-monitoring               "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes    >8080/tcp                                                    piggymetrics_monitoring_1
    d33fe29dfab0        sqshq/piggymetrics-gateway                  "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes    >4000/tcp                                                      piggymetrics_gateway_1
    e25f5c8ba629        sqshq/piggymetrics-registry                 "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes    >8761/tcp                                                    piggymetrics_registry_1
    89d464f136b0        sqshq/piggymetrics-auth-service             "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes              5000/tcp                                                                  piggymetrics_auth-service_1
    d1a6000c71d5        sqshq/piggymetrics-turbine-stream-service   "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes    >8989/tcp                                                    piggymetrics_turbine-stream-service_1
    ba0582e3fd5e        sqshq/piggymetrics-notification-service     "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes              8000/tcp                                                                  piggymetrics_notification-service_1
    1253b7d67c94        sqshq/piggymetrics-account-service          "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes              6000/tcp                                                                  piggymetrics_account-service_1
    4a3a384490a0        sqshq/piggymetrics-statistics-service       "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes              7000/tcp                                                                  piggymetrics_statistics-service_1
    091b997e0af5        sqshq/piggymetrics-config                   "java -Xmx200m -jar …"   12 minutes ago      Up 12 minutes (healthy)   8888/tcp                                                                  piggymetrics_config_1
    22326c0ce17e        sqshq/piggymetrics-mongodb                  "/initx.sh"              12 minutes ago      Up 12 minutes             27017/tcp                                                                 piggymetrics_notification-mongodb_1
    da9eb0e2704f        sqshq/piggymetrics-mongodb                  "/initx.sh"              12 minutes ago      Up 12 minutes             27017/tcp                                                                 piggymetrics_auth-mongodb_1
    00790ba2c23e        rabbitmq:3-management                       "docker-entrypoint.s…"   12 minutes ago      Up 12 minutes             4369/tcp, 5671-5672/tcp, 15671/tcp, 25672/tcp,>15672/tcp   piggymetrics_rabbitmq_1
    19bb12c3767c        sqshq/piggymetrics-mongodb                  "/initx.sh"              12 minutes ago      Up 12 minutes             27017/tcp                                                                 piggymetrics_statistics-mongodb_1
    d8ea53b8e0a1        sqshq/piggymetrics-mongodb                  "/initx.sh"              12 minutes ago      Up 12 minutes             27017/tcp
    Now after several minutes, around 15 mins - I hit the below urls and none of them worked except RabbitMq.
    http://localhost:80 - Gatewayhttp://localhost:8761 - Eureka Dashboardhttp://localhost:9000/hystrix - Hystrix Dashboard (Turbine stream link: http://turbine-stream-service:8080/turbine/turbine.stream)http://localhost:15672 - RabbitMq management (default login/password: guest/guest)
    Can you please let me know why application not working in both prod and dev mode? And my next question how can I change localhost to some other URI in docker settings? Any help would be appreciated. I'm newbie to docker so required some feedback to fix these issues.
    Oh - Just want to add about my local environment. Running on 2010 mac edition with 8GB RAM and latest mac OS High Sierra.
    deminem$ docker-compose version
    docker-compose version 1.25.4, build 8d51620a
    docker-py version: 4.1.0
    CPython version: 3.7.5
    OpenSSL version: OpenSSL 1.1.1d  10 Sep 2019
    deminem$ docker version
    Client: Docker Engine - Community
     Version:           19.03.8
     API version:       1.40
     Go version:        go1.12.17
     Git commit:        afacb8b
     Built:             Wed Mar 11 01:21:11 2020
     OS/Arch:           darwin/amd64
     Experimental:      false
    Server: Docker Engine - Community
      Version:          19.03.8
      API version:      1.40 (minimum version 1.12)
      Go version:       go1.12.17
      Git commit:       afacb8b
      Built:            Wed Mar 11 01:29:16 2020
      OS/Arch:          linux/amd64
      Experimental:     false
      Version:          v1.2.13
      GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
      Version:          1.0.0-rc10
      GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
      Version:          0.18.0
      GitCommit:        fec3683