Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    d3minem
    @d3minem
    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
     Engine:
      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
     containerd:
      Version:          v1.2.13
      GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
     runc:
      Version:          1.0.0-rc10
      GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
     docker-init:
      Version:          0.18.0
      GitCommit:        fec3683
    d3minem
    @d3minem
    Please see the network configured by docker-compose up for this project.
    deminem$ docker network ls
    NETWORK ID          NAME                   DRIVER              SCOPE
    9f7a219cb430        bridge                 bridge              local
    c10b6ac6d1a7        host                   host                local
    05550862effb        none                   null                local
    ef177534f3e8      piggymetrics_default   bridge              local
    Inspecting piggymetrics_default network:
    d3minem
    @d3minem
    deminem$ docker network inspect ef177534f3e8
    [
        {
            "Name": "piggymetrics_default",
            "Id": "ef177534f3e8ed2725085faad8b232afa754d7486da68ab2a48af0ed5f954c1b",
            "Created": "2020-04-03T03:26:43.351943243Z",
            "Scope": "local",
            "Driver": "bridge",
            "EnableIPv6": false,
            "IPAM": {
                "Driver": "default",
                "Options": null,
                "Config": [
                    {
                        "Subnet": "172.20.0.0/16",
                        "Gateway": "172.20.0.1"
                    }
                ]
            },
            "Internal": false,
            "Attachable": true,
            "Ingress": false,
            "ConfigFrom": {
                "Network": ""
            },
            "ConfigOnly": false,
            "Containers": {
                "00790ba2c23e0c596251ab7fb38ad3ad7016bd5dc1ee168964521a5465cf344c": {
                    "Name": "piggymetrics_rabbitmq_1",
                    "EndpointID": "d957ddec2b2926f10b3d6749c746fec28c5fb3d3f8dcf17a80bf1af1d55dc450",
                    "MacAddress": "02:42:ac:14:00:03",
                    "IPv4Address": "172.20.0.3/16",
                    "IPv6Address": ""
                },
                "091b997e0af5415b0da70290d889b1cd046d4f5f35324145b85759098904c3e3": {
                    "Name": "piggymetrics_config_1",
                    "EndpointID": "bbd810d449012dcce65cc5cadcaa14b78739b2bd684d45cbdcebc2f4948c2c07",
                    "MacAddress": "02:42:ac:14:00:09",
                    "IPv4Address": "172.20.0.9/16",
                    "IPv6Address": ""
                },
                "1253b7d67c943a153629ad2dd609152a07dfc2545fd694c22d8b1d226a028a97": {
                    "Name": "piggymetrics_account-service_1",
                    "EndpointID": "a7b614298460ed909eea7c9d7860efe49c7955ed01d640fc1f25ea6bfa95bcc9",
                    "MacAddress": "02:42:ac:14:00:07",
                    "IPv4Address": "172.20.0.7/16",
                    "IPv6Address": ""
                },
                "19bb12c3767c17d3705104ca33e4febe153d0eac465c4346b1ae0140ab56d3be": {
                    "Name": "piggymetrics_statistics-mongodb_1",
                    "EndpointID": "0b17227ed986f038eb6d37be7513bf65a1dbc49823ecd163e196c5e7ce2fd0eb",
                    "MacAddress": "02:42:ac:14:00:0e",
                    "IPv4Address": "172.20.0.14/16",
                    "IPv6Address": ""
                },
                "22326c0ce17e93398ff87c0640a7989143078c609a3d3636f175ba81171467ef": {
                    "Name": "piggymetrics_notification-mongodb_1",
                    "EndpointID": "8cac7c70ff86a8d6d782e46620e47479993f58a7e10850394106d5cd9f80b4d9",
                    "MacAddress": "02:42:ac:14:00:04",
                    "IPv4Address": "172.20.0.4/16",
                    "IPv6Address": ""
                },
                "4a3a384490a01a58c14d2e0593efdc5150eb937492db38b592b88254afb0fc65": {
                    "Name": "piggymetrics_statistics-service_1",
                    "EndpointID": "508b3ea7d3fd6f4455a044bf5f2e96743f1ab7f184e86b1cbafed4cbbd95b9f0",
                    "MacAddress": "02:42:ac:14:00:0c",
                    "IPv4Address": "172.20.0.12/16",
                    "IPv6Address": ""
                },
                "89d464f136b0c6528232fc6ea1a623a556e568201697f82193da123e7b4db47d": {
                    "Name": "piggymetrics_auth-service_1",
                    "EndpointID": "6f20a0baa7f9be1ffe8e5ea485a659cdd9f3e447916d3d46c2cd42a14d559d7c",
                    "MacAddress": "02:42:ac:14:00:08",
                    "IPv4Address": "172.20.0.8/16",
                    "IPv6Address": ""
                },
                "ae48dd57905f52a59a003c568511841ff40c15d1c678256b69dcabd44026a868": {
                    "Name": "piggymetrics_monitoring_1",
                    "EndpointID": "2b03442795134db45ed22587c812e6fd8a0a23084a441023951a0d6761b9f08e",
                    "MacAddress": "02:42:ac:14:00:06",
                    "IPv4Address": "172.20.0.6/16",
                    "IPv6Address": ""
                },
    
                "ba0582e3fd5e1ad76585da6c17800bf3459a7bd635c0dba169292da56c7243d2": {
                    "Name": "piggymetrics_notification-service_1",
                    "EndpointID": "e57b7a63f3eed84a425046113e8fe05d938c4abdf694da06319ffecd7f93a617",
                    "MacAddress": "02:42:ac:14:00:05",
                    "IPv4Address": "172.20.0.5/16",
                    "IPv6Address": ""
                },
                "d1a6000c71d5543fa5de1ba83379a4e73f44da332c31a9648051265a2f828824": {
                    "Name": "piggymetrics_turbine-stream-service_1",
                    "EndpointID": "17962fcd7e9da0ff21d53be05c4fef90fab156646a97b8962b68983ad0da94b5",
                    "MacAddress": "02:42:ac:14:00:02",
                    "IPv4Address": "172.20.0.2/16",
                    "IPv6Address": ""
                },
                "d33fe29dfab0fac7dcf622351d97bf8b0f43197adc4c9ecdb1ba83fe6171ad7b": {
                    "Name": "piggymetrics_gateway_1",
                    "EndpointID": "0399250924d9ea79cb90ab660f15c0bc2ed75d5e2c9d5f107cb7fbf9977b1f6b",
                    "MacAddress": "02:42:ac:14:00:0d",
                    "IPv4Address": "172.20.0.13/16",
                    "IPv6Address": ""
                },
                "d8ea53b8e0a1248760eb717a5bcf25cc6e7bf561cf41a0d5edfd96945b7aafda": {
                    "Name": "piggymetrics_account-mongodb_1",
                    "EndpointID": "42f73ef212135db0f9830ccba2099c069aaceeef56b1d2bbbe0aa778a5c7fe5d",
                    "MacAddress": "02:42:ac:14:00:0b",
                    "IPv4Address": "172.20.0.11/16",
                    "IPv6Address": ""
                },
                "da9eb0e2704fa3cd2eb207563dfbbf416f6eeaa207407123bde8f2f0ac171473": {
                    "Name": "piggymetrics_auth-mongodb_1",
                    "EndpointID": "512d40fd3a3926c64db3989b2d6424bf604412a9fe416b1976221fbdbf057173",
                    "MacAddress": "02:42:ac:14:00:0f",
                    "IPv4Address": "172.20.0.15/16",
                    "IPv6Address": ""
                },
                "e25f5c8ba62974d8822650406807a6e7c3069b5881e57d59f22df0bd470b6966": {
                    "Name": "piggymetrics_registry_1",
                    "EndpointID": "29c71ddd3b7c5eda7699d0a891b000bb5bea5e9f8f84e3af8d99d169977b5ae1",
                    "MacAddress": "02:42:ac:14:00:0a",
                    "IPv4Address": "172.20.0.10/16",
                    "IPv6Address": ""
                }
            },
            "Options": {},
            "Labels": {
                "com.docker.compose.network": "default",
                "com.docker.compose.project": "piggymetrics",
                "com.docker.compose.version": "1.25.4"
            }
        }
    ]
    d3minem
    @d3minem
    All piggy metric application docker images/containers.
    deminem$ docker image ls
    REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE
    rabbitmq                                    3-management        38e57f281891        2 days ago          184MB
    sqshq/piggymetrics-mongodb                  latest              9c0e839ffb2e        2 months ago        442MB
    sqshq/piggymetrics-turbine-stream-service   latest              652082cbaea2        2 months ago        356MB
    sqshq/piggymetrics-monitoring               latest              7b2784dffdf5        2 months ago        343MB
    sqshq/piggymetrics-notification-service     latest              ec04913a68f8        2 months ago        367MB
    sqshq/piggymetrics-statistics-service       latest              0ad3e2105f7b        2 months ago        367MB
    sqshq/piggymetrics-account-service          latest              cf140b0ab65e        2 months ago        367MB
    sqshq/piggymetrics-auth-service             latest              5143fb2e4f9b        2 months ago        361MB
    sqshq/piggymetrics-gateway                  latest              a79bf3816ce0        2 months ago        356MB
    sqshq/piggymetrics-registry                 latest              74460780dd88        2 months ago        356MB
    sqshq/piggymetrics-config                   latest              482790d91398        2 months ago        340MB
    d3minem
    @d3minem
    Please see the log file for running the prod piggy-metrics application on mac. Download here
    Any help would be appreciated to run the application in dev or prod mode. Many thanks.
    d3minem
    @d3minem
    Are we on COVID-19 strike virtually as well? Thinking ...
    ferryS02
    @ferryS02
    Help me, please. I have been stuck for several days because of this problem. I have followed step by step to running the perimetric but my rabbitmq_management showing error too short cookie string and also my account-mongodb service also error, showing error connection refused, but the other service could connect to the db.
    image.png
    image.png
    itshan
    @MadeInChina
    seems that you couldn’t connect to your mongodb.
    cpatil7
    @cpatil7
    Hello Team,
    Facing issue, while browsing registry-- any inputs c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://config:8888
    Caused by: org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 null
    itshan
    @MadeInChina
    @cpatil7 did you apply some auth config in it?
    cpatil7
    @cpatil7
    Yes, I have configured config server username & password, i tried to spring:
    application:
    name: registry
    cloud:
    config:
    uri: http://config:8888
    username: user
    password: configpassword
    fail-fast: true
    When i try to access config server with above mentioned credentials, it works fine but when registry-service try to connect to config server with these credentials, it fails
    itshan
    @MadeInChina
    spring:
      application:
        name: config
      cloud:
        config:
          server:
            native:
              search-locations: classpath:/shared
      profiles:
        active: native
      security:
        user:
          username: user
          password: ${CONFIG_SERVICE_PASSWORD}
    
    
    
    spring:
      application:
        name: xxxxx-service
      cloud:
        config:
          uri: http://config:8888
          fail-fast: true
          password: ${CONFIG_SERVICE_PASSWORD}
          username: user
    it’s my configs which are working.
    just guess your config is not correct.
    cpatil7
    @cpatil7
    how are you reading the password for config service, it is through environment variables.Let me try updating the config as above. Thanks
    cpatil7
    @cpatil7

    still same issue
    2020-06-30 05:31:35.853 INFO 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://config:8888
    2020-06-30 05:31:36.026 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed

    java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing
    at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:136) ~[spring-cloud-config-client-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
    at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:94) ~[spring-cloud-context-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
    at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:633) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:373) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
    at com.piggymetrics.registry.RegistryApplication.main(RegistryApplication.java:12) [classes!/:0.0.1-SNAPSHOT]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [registry.jar:0.0.1-SNAPSHOT]
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [registry.jar:0.0.1-SNAPSHOT]
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [registry.jar:0.0.1-SNAPSHOT]
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [registry.jar:0.0.1-SNAPSHOT]
    Caused by: org.springframework.web.client.HttpClientErrorException: 401 null

    config-server application.yml spring:
    application:
    name: config
    cloud:
    config:
    server:
    native:
    search-locations: classpath:/shared
    profiles:
    active: native
    security:
    user:
    username: user
    password: ${CONFIG-SERVICE-PASSWORD}

    server:
    port: 8888 ----------------------------------------------------------------------------------------------------------------------------------------------------Registry bootstrap.yml spring:
    application:
    name: registry
    cloud:
    config:
    uri: http://config:8888
    fail-fast: true
    password: ${CONFIG-SERVICE-PASSWORD}
    username: user

    eureka:
    instance:
    prefer-ip-address: true
    client:
    registerWithEureka: false
    fetchRegistry: false
    server:
    waitTimeInMsWhenSyncEmpty: 0

    itshan
    @MadeInChina
    java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing
    at
    can you try set fail-fast to false to see what’s goning on?
    ${CONFIG-SERVICE-PASSWORD} it’s getting from system environment. you can change to any thing you want.
    cpatil7
    @cpatil7
    image.png
    @MadeInChina - I get above error when fail-fast is set to false
    itshan
    @MadeInChina
    Can you check the config service logs?
    it’s should be configuration issue.
    i had upgrade all lib to latest and replaced zuul to spring gateway if you want try https://github.com/MadeInChina/PiggyMetrics
    cpatil7
    @cpatil7
    @MadeInChina - I could not find any logs for config service, let me get the latest version & give it a try. Thanks for your support
    Parul Dhingra
    @parul-97
    Hi folks, May I know from where I can get frontend code?