Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Chi Dov
    @chidov
    Full stacktrace please
    张智城
    @zach007
    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
    @chidov
    If you run it locally change it to localhost
    Instead of config
    张智城
    @zach007
    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
    alihasanzaade
    @alihasanzaade
    hi
    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
    Srivatsa
    @srivatsamarichi
    how do you deploy it to k8s?
    venkat chinni
    @clipod

    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.

    T0RJAN
    @t0rjan
    hi
    GerryDeng
    @usdj
    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
    MD NAYAB HAIDER
    @Nayab-Haider
    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/)
    GerryDeng
    @usdj
    maybe u can curl those interface
    sometime it lost services
    jackingyu
    @jackingyu
    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?
    jackingyu
    @jackingyu
    Resolved
    set http_proxy and https_proxy
    Parosh Dey
    @paroshdey
    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 .
    jackingyu
    @jackingyu
    I'm studying this recently
    trying to create a new service
    Vengatesan Nagarajan
    @vengatesanns
    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.
    d3minem
    @d3minem
    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] 
    [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] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  02:33 min
    [INFO] Finished at: 2020-04-03T07:48:28+05:00
    [INFO] ------------------------------------------------------------------------
    d3minem
    @d3minem
    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              0.0.0.0:9000->8080/tcp                                                    piggymetrics_monitoring_1
    d33fe29dfab0        sqshq/piggymetrics-gateway                  "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes              0.0.0.0:80->4000/tcp                                                      piggymetrics_gateway_1
    e25f5c8ba629        sqshq/piggymetrics-registry                 "java -Xmx200m -jar …"   2 minutes ago       Up 2 minutes              0.0.0.0:8761->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              0.0.0.0:8989->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, 0.0.0.0:15672->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.
    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,