質問編集履歴
9
誤字
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -172,7 +172,7 @@ 
     | 
|
| 
       172 
172 
     | 
    
         
             
            I, [2021-05-07T14:10:30.770737 #3957]  INFO -- : reaped #<Process::Status: pid 3961 exit 0> worker=1
         
     | 
| 
       173 
173 
     | 
    
         
             
            I, [2021-05-07T14:10:30.770821 #3957]  INFO -- : master complete
         
     | 
| 
       174 
174 
     | 
    
         
             
            I, [2021-05-07T14:35:51.235962 #3443]  INFO -- : Refreshing Gem list
         
     | 
| 
       175 
     | 
    
         
            -
            I, [2021-05-07T14:35:53.728166 #3443]  INFO -- : unlinking existing socket=/var/www/rails/ 
     | 
| 
      
 175 
     | 
    
         
            +
            I, [2021-05-07T14:35:53.728166 #3443]  INFO -- : unlinking existing socket=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock
         
     | 
| 
       176 
176 
     | 
    
         
             
            I, [2021-05-07T14:35:53.728336 #3443]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock fd=9
         
     | 
| 
       177 
177 
     | 
    
         
             
            I, [2021-05-07T14:35:53.742418 #3443]  INFO -- : master process ready
         
     | 
| 
       178 
178 
     | 
    
         
             
            I, [2021-05-07T14:35:53.746745 #3447]  INFO -- : worker=1 ready
         
     | 
8
【補足2】unicornのログの状況 を修正 ログを長めにだしました。
    
        title	
    CHANGED
    
    | 
         @@ -1,1 +1,1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            nginx 
     | 
| 
      
 1 
     | 
    
         
            +
            nginxの起動に失敗し、ブラウザにアプリが表示がされない原因が知りたい
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -1,36 +1,28 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ### 前提・実現したいこと
         
     | 
| 
       2 
2 
     | 
    
         
             
            プログラミング初心者です。
         
     | 
| 
       3 
     | 
    
         
            -
            $ sudo service nginx start 
     | 
| 
      
 3 
     | 
    
         
            +
            $ sudo service nginx startの実行に失敗し、アプリがブラウザ上に表示されません。
         
     | 
| 
       4 
4 
     | 
    
         
             
            ブラウザのアドレス欄には、以下のとおり入力しました。
         
     | 
| 
       5 
5 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       6 
6 
     | 
    
         
             
            http://xx.xxx.xx.xx/(Elastic IP アドレス)
         
     | 
| 
       7 
7 
     | 
    
         
             
            ```
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
            どうしてブラウザ上に表示されないの 
     | 
| 
      
 9 
     | 
    
         
            +
            どうしてブラウザ上に表示されないのでしょうか。
         
     | 
| 
       10 
     | 
    
         
            -
            以下に情報を記載させていただきますので、 
     | 
| 
      
 10 
     | 
    
         
            +
            以下に情報を記載させていただきますので、お気づきの点がございましたらご教示いただけますと幸いです。
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            ### $ sudo nginx -t 
     | 
| 
      
 12 
     | 
    
         
            +
            ### $ sudo nginx -t 実行結果
         
     | 
| 
       16 
13 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       17 
14 
     | 
    
         
             
            nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
         
     | 
| 
       18 
15 
     | 
    
         
             
            nginx: configuration file /etc/nginx/nginx.conf test is successful
         
     | 
| 
       19 
16 
     | 
    
         
             
            ```
         
     | 
| 
       20 
17 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
            ### $  
     | 
| 
      
 18 
     | 
    
         
            +
            ### $ ps -ef | grep unicorn | grep -v grep 実行結果
         
     | 
| 
       22 
19 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       23 
     | 
    
         
            -
            Unit firewalld.service could not be found.
         
     | 
| 
       24 
     | 
    
         
            -
            ```
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            ### $ ps -ef | grep unicorn | grep -v grepを実行した結果
         
     | 
| 
       27 
     | 
    
         
            -
            ```ここに言語を入力
         
     | 
| 
       28 
20 
     | 
    
         
             
            asami     4290     1  0  5月08 ?      00:00:01 unicorn_rails master -c /var/www/rails/アプリ名/config/unicorn.conf.rb -D -E production
         
     | 
| 
       29 
21 
     | 
    
         
             
            asami     4293  4290  0  5月08 ?      00:00:00 unicorn_rails worker[0] -c /var/www/rails/アプリ名/config/unicorn.conf.rb -D -E production
         
     | 
| 
       30 
22 
     | 
    
         
             
            asami     4294  4290  0  5月08 ?      00:00:00 unicorn_rails worker[1] -c /var/www/rails/アプリ名/config/unicorn.conf.rb -D -E production
         
     | 
| 
       31 
23 
     | 
    
         
             
            ```
         
     | 
| 
       32 
24 
     | 
    
         | 
| 
       33 
     | 
    
         
            -
            ### $ curl http://127.0.0.1/ 
     | 
| 
      
 25 
     | 
    
         
            +
            ### $ curl http://127.0.0.1/ 実行結果
         
     | 
| 
       34 
26 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       35 
27 
     | 
    
         
             
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
         
     | 
| 
       36 
28 
     | 
    
         
             
            <html>
         
     | 
| 
         @@ -54,7 +46,7 @@ 
     | 
|
| 
       54 
46 
     | 
    
         
             
            ```
         
     | 
| 
       55 
47 
     | 
    
         | 
| 
       56 
48 
     | 
    
         | 
| 
       57 
     | 
    
         
            -
            ### http://xx.xxx.xx.xx/(Elastic IP アドレス)  
     | 
| 
      
 49 
     | 
    
         
            +
            ### http://xx.xxx.xx.xx/(Elastic IP アドレス) 実行結果
         
     | 
| 
       58 
50 
     | 
    
         | 
| 
       59 
51 
     | 
    
         
             
            
         
     | 
| 
       60 
52 
     | 
    
         | 
| 
         @@ -70,44 +62,8 @@ 
     | 
|
| 
       70 
62 
     | 
    
         
             
            ③所属するサブネットのルートテーブル
         
     | 
| 
       71 
63 
     | 
    
         
             
            
         
     | 
| 
       72 
64 
     | 
    
         | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
            ```ここに言語を入力
         
     | 
| 
       75 
     | 
    
         
            -
            [    1.534066] systemd[1]: Inserted module 'autofs4'
         
     | 
| 
       76 
     | 
    
         
            -
            [    1.553417] NET: Registered protocol family 10
         
     | 
| 
       77 
     | 
    
         
            -
            [    1.560335] Segment Routing with IPv6
         
     | 
| 
       78 
     | 
    
         
            -
            [    1.564621] systemd[1]: Inserted module 'ipv6'
         
     | 
| 
       79 
     | 
    
         
            -
            [    1.570486] random: systemd: uninitialized urandom read (16 bytes read)
         
     | 
| 
       80 
     | 
    
         
            -
            [    1.578054] random: systemd: uninitialized urandom read (16 bytes read)
         
     | 
| 
       81 
     | 
    
         
            -
            [    1.584941] random: systemd: uninitialized urandom read (16 bytes read)
         
     | 
| 
       82 
     | 
    
         
            -
            [    1.593304] systemd[1]: systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
         
     | 
| 
       83 
     | 
    
         
            -
            [    1.621080] systemd[1]: Detected virtualization xen.
         
     | 
| 
       84 
     | 
    
         
            -
            [    1.627380] systemd[1]: Detected architecture x86-64.
         
     | 
| 
       85 
     | 
    
         
            -
            [    1.633814] systemd[1]: Running in initial RAM disk.
         
     | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
       87 
     | 
    
         
            -
            Welcome to [0;34mAmazon Linux 2 dracut-033-535.amzn2.1.3 (Initramfs)[0m!
         
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
            .
         
     | 
| 
       90 
     | 
    
         
            -
            .
         
     | 
| 
       91 
     | 
    
         
            -
            .
         
     | 
| 
       92 
     | 
    
         
            -
            .
         
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
            2021/05/08 18:21:50Z: OsVersion: 2
         
     | 
| 
       96 
     | 
    
         
            -
            [   11.136038] cloud-init[3142]: Cloud-init v. 19.3-43.amzn2 running 'modules:final' at Sat, 08 May 2021 18:21:51 +0000. Up 11.00 seconds.
         
     | 
| 
       97 
     | 
    
         
            -
            [   11.167737] cloud-init[3142]: Cloud-init v. 19.3-43.amzn2 finished at Sat, 08 May 2021 18:21:51 +0000. Datasource DataSourceEc2.  Up 11.15 seconds
         
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
            Amazon Linux 2
         
     | 
| 
       100 
     | 
    
         
            -
            Kernel 4.14.231-173.361.amzn2.x86_64 on an x86_64
         
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
            ip-10-0-0-248 login: 
         
     | 
| 
      
 65 
     | 
    
         
            +
            ### /etc/nginx/conf.d/アプリ名.confの中身
         
     | 
| 
       103 
66 
     | 
    
         
             
            ```
         
     | 
| 
       104 
     | 
    
         
            -
             
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
            ⑤インスタンスのスクリーンショット
         
     | 
| 
       107 
     | 
    
         
            -
            ]
         
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
            ### /etc/nginx/conf.d/アプリ名.confの中身
         
     | 
| 
       110 
     | 
    
         
            -
            ```ここに言語を入力
         
     | 
| 
       111 
67 
     | 
    
         
             
            # log directory
         
     | 
| 
       112 
68 
     | 
    
         
             
            error_log  /var/www/rails/アプリ名/log/nginx.error.log;
         
     | 
| 
       113 
69 
     | 
    
         
             
            access_log /var/www/rails/アプリ名/log/nginx.access.log;
         
     | 
| 
         @@ -119,7 +75,7 @@ 
     | 
|
| 
       119 
75 
     | 
    
         
             
            }
         
     | 
| 
       120 
76 
     | 
    
         | 
| 
       121 
77 
     | 
    
         
             
            upstream unicorn {
         
     | 
| 
       122 
     | 
    
         
            -
              server unix:/var/www/rails/アプリ名/tmp/unicorn.sock;
         
     | 
| 
      
 78 
     | 
    
         
            +
              server unix:/var/www/rails/アプリ名/tmp/sockets/unicorn.sock;
         
     | 
| 
       123 
79 
     | 
    
         
             
            }
         
     | 
| 
       124 
80 
     | 
    
         | 
| 
       125 
81 
     | 
    
         
             
            server {
         
     | 
| 
         @@ -146,26 +102,10 @@ 
     | 
|
| 
       146 
102 
     | 
    
         
             
              }
         
     | 
| 
       147 
103 
     | 
    
         
             
              # Rails error pages
         
     | 
| 
       148 
104 
     | 
    
         
             
              error_page 500 502 503 504 /500.html;
         
     | 
| 
       149 
     | 
    
         
            -
            "アプリ名.conf" 42L, 1217C
         
     | 
| 
       150 
105 
     | 
    
         
             
            ```
         
     | 
| 
       151 
106 
     | 
    
         | 
| 
       152 
     | 
    
         
            -
            ### /etc/nginx/conf.d/rails.confの中身
         
     | 
| 
       153 
     | 
    
         
            -
            ```
         
     | 
| 
       154 
     | 
    
         
            -
            server {
         
     | 
| 
       155 
     | 
    
         
            -
                access_log  /var/log/nginx/access.log;
         
     | 
| 
       156 
     | 
    
         
            -
                error_log   /var/log/nginx/error.log;
         
     | 
| 
       157 
     | 
    
         
            -
             
     | 
| 
       158 
     | 
    
         
            -
                root /var/www/rails/アプリ名/public;
         
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
                client_max_body_size 100m;
         
     | 
| 
       161 
     | 
    
         
            -
                error_page  404              /404.html;
         
     | 
| 
       162 
     | 
    
         
            -
                error_page  500 502 503 504  /500.html;
         
     | 
| 
       163 
     | 
    
         
            -
                try_files   $uri/index.html $uri @unicorn;
         
     | 
| 
       164 
     | 
    
         
            -
            }
         
     | 
| 
       165 
     | 
    
         
            -
            ```
         
     | 
| 
       166 
     | 
    
         
            -
             
     | 
| 
       167 
     | 
    
         
            -
            ### 【補足1】nginxのログ 
     | 
| 
      
 107 
     | 
    
         
            +
            ### 【補足1】nginxのログ状況
         
     | 
| 
       168 
     | 
    
         
            -
            $ sudo nano /var/log/nginx/access.log 
     | 
| 
      
 108 
     | 
    
         
            +
            $ sudo nano /var/log/nginx/access.log 実行結果
         
     | 
| 
       169 
109 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       170 
110 
     | 
    
         
             
            111.239.181.40 - - [09/May/2021:11:17:42 +0000] "GET / HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36$
         
     | 
| 
       171 
111 
     | 
    
         
             
            188.166.70.83 - - [09/May/2021:11:20:20 +0000] "GET / HTTP/1.0" 500 1635 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/2010010$
         
     | 
| 
         @@ -180,7 +120,7 @@ 
     | 
|
| 
       180 
120 
     | 
    
         
             
            47.241.125.249 - - [09/May/2021:13:02:16 +0000] "\x04\x01\x00Pg)\xA7\xEA\x00" 400 157 "-" "-" "-"
         
     | 
| 
       181 
121 
     | 
    
         
             
            ```
         
     | 
| 
       182 
122 
     | 
    
         | 
| 
       183 
     | 
    
         
            -
            $ sudo service nginx status 
     | 
| 
      
 123 
     | 
    
         
            +
            $ sudo service nginx status 実行結果
         
     | 
| 
       184 
124 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       185 
125 
     | 
    
         
             
            Redirecting to /bin/systemctl status nginx.service
         
     | 
| 
       186 
126 
     | 
    
         
             
            ● nginx.service - The nginx HTTP and reverse proxy server
         
     | 
| 
         @@ -200,34 +140,52 @@ 
     | 
|
| 
       200 
140 
     | 
    
         
             
            Hint: Some lines were ellipsized, use -l to show in full.
         
     | 
| 
       201 
141 
     | 
    
         
             
            ```
         
     | 
| 
       202 
142 
     | 
    
         | 
| 
       203 
     | 
    
         
            -
            ### 【補足2】unicornのログ 
     | 
| 
      
 143 
     | 
    
         
            +
            ### 【補足2】unicornのログ状況
         
     | 
| 
       204 
144 
     | 
    
         | 
| 
       205 
145 
     | 
    
         
             
            /var/www/rails/アプリ名/log に移動し、
         
     | 
| 
       206 
     | 
    
         
            -
            $ sudo  
     | 
| 
      
 146 
     | 
    
         
            +
            $ sudo less unicorn.logを実行した結果
         
     | 
| 
       207 
147 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
      
 148 
     | 
    
         
            +
            I, [2021-05-04T16:45:51.374358 #7310]  INFO -- : Refreshing Gem list
         
     | 
| 
      
 149 
     | 
    
         
            +
            I, [2021-05-04T16:45:53.511544 #7310]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock fd=9
         
     | 
| 
      
 150 
     | 
    
         
            +
            I, [2021-05-04T16:45:53.517088 #7310]  INFO -- : master process ready
         
     | 
| 
      
 151 
     | 
    
         
            +
            I, [2021-05-04T16:45:53.521522 #7312]  INFO -- : worker=0 ready
         
     | 
| 
      
 152 
     | 
    
         
            +
            I, [2021-05-04T16:45:53.522770 #7313]  INFO -- : worker=1 ready
         
     | 
| 
      
 153 
     | 
    
         
            +
            I, [2021-05-05T04:19:37.632516 #7310]  INFO -- : reaped #<Process::Status: pid 7312 exit 0> worker=0
         
     | 
| 
      
 154 
     | 
    
         
            +
            I, [2021-05-05T04:19:37.634294 #7310]  INFO -- : reaped #<Process::Status: pid 7313 exit 0> worker=1
         
     | 
| 
      
 155 
     | 
    
         
            +
            I, [2021-05-05T04:19:37.634380 #7310]  INFO -- : master complete
         
     | 
| 
      
 156 
     | 
    
         
            +
            I, [2021-05-05T04:43:27.493213 #7551]  INFO -- : Refreshing Gem list
         
     | 
| 
      
 157 
     | 
    
         
            +
            I, [2021-05-05T04:43:30.223796 #7551]  INFO -- : unlinking existing socket=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock
         
     | 
| 
      
 158 
     | 
    
         
            +
            I, [2021-05-05T04:43:30.223963 #7551]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock fd=9
         
     | 
| 
      
 159 
     | 
    
         
            +
            I, [2021-05-05T04:43:30.247530 #7551]  INFO -- : master process ready
         
     | 
| 
       208 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 160 
     | 
    
         
            +
            I, [2021-05-05T04:43:30.253070 #7555]  INFO -- : worker=1 ready
         
     | 
| 
       209 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 161 
     | 
    
         
            +
            I, [2021-05-05T04:43:30.253508 #7554]  INFO -- : worker=0 ready
         
     | 
| 
       210 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 162 
     | 
    
         
            +
            I, [2021-05-06T13:26:07.863029 #7551]  INFO -- : reaped #<Process::Status: pid 7554 exit 0> worker=0
         
     | 
| 
       211 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 163 
     | 
    
         
            +
            I, [2021-05-06T13:26:07.863371 #7551]  INFO -- : reaped #<Process::Status: pid 7555 exit 0> worker=1
         
     | 
| 
       212 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 164 
     | 
    
         
            +
            I, [2021-05-06T13:26:07.863439 #7551]  INFO -- : master complete
         
     | 
| 
       213 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 165 
     | 
    
         
            +
            I, [2021-05-06T15:10:40.684478 #3957]  INFO -- : Refreshing Gem list
         
     | 
| 
      
 166 
     | 
    
         
            +
            I, [2021-05-06T15:10:46.922051 #3957]  INFO -- : unlinking existing socket=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock
         
     | 
| 
       214 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 167 
     | 
    
         
            +
            I, [2021-05-06T15:10:46.922219 #3957]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock fd=9
         
     | 
| 
       215 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 168 
     | 
    
         
            +
            I, [2021-05-06T15:10:46.939327 #3957]  INFO -- : master process ready
         
     | 
| 
       216 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 169 
     | 
    
         
            +
            I, [2021-05-06T15:10:46.943953 #3960]  INFO -- : worker=0 ready
         
     | 
| 
       217 
     | 
    
         
            -
            I, [2021-05- 
     | 
| 
      
 170 
     | 
    
         
            +
            I, [2021-05-06T15:10:46.945229 #3961]  INFO -- : worker=1 ready
         
     | 
| 
      
 171 
     | 
    
         
            +
            I, [2021-05-07T14:10:30.770122 #3957]  INFO -- : reaped #<Process::Status: pid 3960 exit 0> worker=0
         
     | 
| 
      
 172 
     | 
    
         
            +
            I, [2021-05-07T14:10:30.770737 #3957]  INFO -- : reaped #<Process::Status: pid 3961 exit 0> worker=1
         
     | 
| 
      
 173 
     | 
    
         
            +
            I, [2021-05-07T14:10:30.770821 #3957]  INFO -- : master complete
         
     | 
| 
      
 174 
     | 
    
         
            +
            I, [2021-05-07T14:35:51.235962 #3443]  INFO -- : Refreshing Gem list
         
     | 
| 
      
 175 
     | 
    
         
            +
            I, [2021-05-07T14:35:53.728166 #3443]  INFO -- : unlinking existing socket=/var/www/rails/my_portfolio4/tmp/sockets/.unicorn.sock
         
     | 
| 
      
 176 
     | 
    
         
            +
            I, [2021-05-07T14:35:53.728336 #3443]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock fd=9
         
     | 
| 
      
 177 
     | 
    
         
            +
            I, [2021-05-07T14:35:53.742418 #3443]  INFO -- : master process ready
         
     | 
| 
      
 178 
     | 
    
         
            +
            I, [2021-05-07T14:35:53.746745 #3447]  INFO -- : worker=1 ready
         
     | 
| 
      
 179 
     | 
    
         
            +
            I, [2021-05-07T14:35:53.748069 #3446]  INFO -- : worker=0 ready
         
     | 
| 
      
 180 
     | 
    
         
            +
            I, [2021-05-08T09:03:57.347631 #3443]  INFO -- : reaped #<Process::Status: pid 3446 exit 0> worker=0
         
     | 
| 
      
 181 
     | 
    
         
            +
            I, [2021-05-08T09:03:57.348178 #3443]  INFO -- : reaped #<Process::Status: pid 3447 exit 0> worker=1
         
     | 
| 
      
 182 
     | 
    
         
            +
            I, [2021-05-08T09:03:57.348261 #3443]  INFO -- : master complete
         
     | 
| 
      
 183 
     | 
    
         
            +
            I, [2021-05-08T10:32:02.517721 #3826]  INFO -- : Refreshing Gem list
         
     | 
| 
      
 184 
     | 
    
         
            +
            I, [2021-05-08T10:32:05.086000 #3826]  INFO -- : unlinking existing socket=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock
         
     | 
| 
      
 185 
     | 
    
         
            +
            I, [2021-05-08T10:32:05.086181 #3826]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/.unicorn.sock fd=9
         
     | 
| 
       218 
186 
     | 
    
         
             
            ```
         
     | 
| 
       219 
     | 
    
         
            -
            ### 【補足3】$ netstat -tlntを実行した結果
         
     | 
| 
       220 
     | 
    
         
            -
            ```ここに言語を入力
         
     | 
| 
       221 
     | 
    
         
            -
            Active Internet connections (only servers)
         
     | 
| 
       222 
     | 
    
         
            -
            Proto Recv-Q Send-Q Local Address           Foreign Address         State
         
     | 
| 
       223 
     | 
    
         
            -
            tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
         
     | 
| 
       224 
     | 
    
         
            -
            tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
         
     | 
| 
       225 
     | 
    
         
            -
            tcp6       0      0 :::3306                 :::*                    LISTEN
         
     | 
| 
       226 
     | 
    
         
            -
            tcp6       0      0 :::111                  :::*                    LISTEN
         
     | 
| 
       227 
     | 
    
         
            -
            tcp6       0      0 :::22                   :::*                    LISTEN
         
     | 
| 
       228 
     | 
    
         
            -
            ```
         
     | 
| 
       229 
187 
     | 
    
         | 
| 
       230 
     | 
    
         
            -
            ### 【補足 
     | 
| 
      
 188 
     | 
    
         
            +
            ### 【補足3】バージョン
         
     | 
| 
       231 
189 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       232 
190 
     | 
    
         
             
            macOs Catalina 10.15.7
         
     | 
| 
       233 
191 
     | 
    
         
             
            Nginx 1.16.1
         
     | 
7
誤字
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -216,7 +216,7 @@ 
     | 
|
| 
       216 
216 
     | 
    
         
             
            I, [2021-05-08T19:24:44.962589 #4293]  INFO -- : worker=0 ready
         
     | 
| 
       217 
217 
     | 
    
         
             
            I, [2021-05-08T19:24:44.964148 #4294]  INFO -- : worker=1 ready
         
     | 
| 
       218 
218 
     | 
    
         
             
            ```
         
     | 
| 
       219 
     | 
    
         
            -
            ### $ netstat -tlntを実行した結果
         
     | 
| 
      
 219 
     | 
    
         
            +
            ### 【補足3】$ netstat -tlntを実行した結果
         
     | 
| 
       220 
220 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       221 
221 
     | 
    
         
             
            Active Internet connections (only servers)
         
     | 
| 
       222 
222 
     | 
    
         
             
            Proto Recv-Q Send-Q Local Address           Foreign Address         State
         
     | 
6
ログについて詳しく記載させていただきました。
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -86,24 +86,12 @@ 
     | 
|
| 
       86 
86 
     | 
    
         | 
| 
       87 
87 
     | 
    
         
             
            Welcome to [0;34mAmazon Linux 2 dracut-033-535.amzn2.1.3 (Initramfs)[0m!
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
     | 
    
         
            -
            [    1.647248] systemd[1]: No hostname configured.
         
     | 
| 
       90 
     | 
    
         
            -
            [    1.653022] systemd[1]: Set hostname to <localhost>.
         
     | 
| 
       91 
     | 
    
         
            -
            [    1.659201] systemd[1]: Initializing machine ID from random generator.
         
     | 
| 
       92 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Local File Systems.
         
     | 
| 
       93 
     | 
    
         
            -
            [    1.699783] systemd[1]: Reached target Local File Systems.
         
     | 
| 
       94 
     | 
    
         
            -
            [    1.706604] systemd[1]: Starting Local File Systems.
         
     | 
| 
       95 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Timers.
         
     | 
| 
       96 
     | 
    
         
            -
            [    1.718582] systemd[1]: Reached target Timers.
         
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
89 
     | 
    
         
             
            .
         
     | 
| 
       99 
90 
     | 
    
         
             
            .
         
     | 
| 
       100 
91 
     | 
    
         
             
            .
         
     | 
| 
       101 
92 
     | 
    
         
             
            .
         
     | 
| 
       102 
93 
     | 
    
         | 
| 
       103 
94 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
            [   10.035766] cloud-init[2992]: Cloud-init v. 19.3-43.amzn2 running 'modules:config' at Sat, 08 May 2021 18:21:49 +0000. Up 9.88 seconds.
         
     | 
| 
       105 
     | 
    
         
            -
            2021/05/08 18:21:50Z: Amazon SSM Agent v3.0.529.0 is running
         
     | 
| 
       106 
     | 
    
         
            -
            2021/05/08 18:21:50Z: OsProductName: Amazon Linux
         
     | 
| 
       107 
95 
     | 
    
         
             
            2021/05/08 18:21:50Z: OsVersion: 2
         
     | 
| 
       108 
96 
     | 
    
         
             
            [   11.136038] cloud-init[3142]: Cloud-init v. 19.3-43.amzn2 running 'modules:final' at Sat, 08 May 2021 18:21:51 +0000. Up 11.00 seconds.
         
     | 
| 
       109 
97 
     | 
    
         
             
            [   11.167737] cloud-init[3142]: Cloud-init v. 19.3-43.amzn2 finished at Sat, 08 May 2021 18:21:51 +0000. Datasource DataSourceEc2.  Up 11.15 seconds
         
     | 
| 
         @@ -177,7 +165,7 @@ 
     | 
|
| 
       177 
165 
     | 
    
         
             
            ```
         
     | 
| 
       178 
166 
     | 
    
         | 
| 
       179 
167 
     | 
    
         
             
            ### 【補足1】nginxのログの状況
         
     | 
| 
       180 
     | 
    
         
            -
            $ sudo nano /var/log/nginx/access.log 
     | 
| 
      
 168 
     | 
    
         
            +
            $ sudo nano /var/log/nginx/access.logを実行した結果
         
     | 
| 
       181 
169 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       182 
170 
     | 
    
         
             
            111.239.181.40 - - [09/May/2021:11:17:42 +0000] "GET / HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36$
         
     | 
| 
       183 
171 
     | 
    
         
             
            188.166.70.83 - - [09/May/2021:11:20:20 +0000] "GET / HTTP/1.0" 500 1635 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/2010010$
         
     | 
| 
         @@ -192,9 +180,24 @@ 
     | 
|
| 
       192 
180 
     | 
    
         
             
            47.241.125.249 - - [09/May/2021:13:02:16 +0000] "\x04\x01\x00Pg)\xA7\xEA\x00" 400 157 "-" "-" "-"
         
     | 
| 
       193 
181 
     | 
    
         
             
            ```
         
     | 
| 
       194 
182 
     | 
    
         | 
| 
       195 
     | 
    
         
            -
            $ sudo  
     | 
| 
      
 183 
     | 
    
         
            +
            $ sudo service nginx statusを実行した結果
         
     | 
| 
       196 
184 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
      
 185 
     | 
    
         
            +
            Redirecting to /bin/systemctl status nginx.service
         
     | 
| 
      
 186 
     | 
    
         
            +
            ● nginx.service - The nginx HTTP and reverse proxy server
         
     | 
| 
      
 187 
     | 
    
         
            +
               Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
         
     | 
| 
      
 188 
     | 
    
         
            +
               Active: inactive (dead)
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
      
 190 
     | 
    
         
            +
             5月 10 14:23:27 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
         
     | 
| 
      
 191 
     | 
    
         
            +
             5月 10 14:23:27 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Unit nginx.service entered failed state.
         
     | 
| 
      
 192 
     | 
    
         
            +
             5月 10 14:23:27 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: nginx.service failed.
         
     | 
| 
      
 193 
     | 
    
         
            +
             5月 10 14:26:24 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Starting The nginx HTTP and reverse proxy server...
         
     | 
| 
       197 
     | 
    
         
            -
             
     | 
| 
      
 194 
     | 
    
         
            +
             5月 10 14:26:24 ip-10-0-0-248.ap-northeast-1.compute.internal nginx[20542]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
         
     | 
| 
      
 195 
     | 
    
         
            +
             5月 10 14:26:24 ip-10-0-0-248.ap-northeast-1.compute.internal nginx[20542]: nginx: configuration file /etc/nginx/nginx.conf test is su...sful
         
     | 
| 
      
 196 
     | 
    
         
            +
             5月 10 14:26:24 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument
         
     | 
| 
      
 197 
     | 
    
         
            +
             5月 10 14:26:24 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Started The nginx HTTP and reverse proxy server.
         
     | 
| 
      
 198 
     | 
    
         
            +
             5月 10 15:29:29 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Stopping The nginx HTTP and reverse proxy server...
         
     | 
| 
      
 199 
     | 
    
         
            +
             5月 10 15:29:29 ip-10-0-0-248.ap-northeast-1.compute.internal systemd[1]: Stopped The nginx HTTP and reverse proxy server.
         
     | 
| 
      
 200 
     | 
    
         
            +
            Hint: Some lines were ellipsized, use -l to show in full.
         
     | 
| 
       198 
201 
     | 
    
         
             
            ```
         
     | 
| 
       199 
202 
     | 
    
         | 
| 
       200 
203 
     | 
    
         
             
            ### 【補足2】unicornのログの状況
         
     | 
| 
         @@ -213,9 +216,18 @@ 
     | 
|
| 
       213 
216 
     | 
    
         
             
            I, [2021-05-08T19:24:44.962589 #4293]  INFO -- : worker=0 ready
         
     | 
| 
       214 
217 
     | 
    
         
             
            I, [2021-05-08T19:24:44.964148 #4294]  INFO -- : worker=1 ready
         
     | 
| 
       215 
218 
     | 
    
         
             
            ```
         
     | 
| 
      
 219 
     | 
    
         
            +
            ### $ netstat -tlntを実行した結果
         
     | 
| 
      
 220 
     | 
    
         
            +
            ```ここに言語を入力
         
     | 
| 
      
 221 
     | 
    
         
            +
            Active Internet connections (only servers)
         
     | 
| 
      
 222 
     | 
    
         
            +
            Proto Recv-Q Send-Q Local Address           Foreign Address         State
         
     | 
| 
      
 223 
     | 
    
         
            +
            tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
         
     | 
| 
      
 224 
     | 
    
         
            +
            tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
         
     | 
| 
      
 225 
     | 
    
         
            +
            tcp6       0      0 :::3306                 :::*                    LISTEN
         
     | 
| 
      
 226 
     | 
    
         
            +
            tcp6       0      0 :::111                  :::*                    LISTEN
         
     | 
| 
      
 227 
     | 
    
         
            +
            tcp6       0      0 :::22                   :::*                    LISTEN
         
     | 
| 
      
 228 
     | 
    
         
            +
            ```
         
     | 
| 
       216 
229 
     | 
    
         | 
| 
       217 
     | 
    
         
            -
             
     | 
| 
       218 
     | 
    
         
            -
            ### 【補足 
     | 
| 
      
 230 
     | 
    
         
            +
            ### 【補足4】ツールのバージョンなど
         
     | 
| 
       219 
231 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       220 
232 
     | 
    
         
             
            macOs Catalina 10.15.7
         
     | 
| 
       221 
233 
     | 
    
         
             
            Nginx 1.16.1
         
     | 
5
誤字
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -214,10 +214,8 @@ 
     | 
|
| 
       214 
214 
     | 
    
         
             
            I, [2021-05-08T19:24:44.964148 #4294]  INFO -- : worker=1 ready
         
     | 
| 
       215 
215 
     | 
    
         
             
            ```
         
     | 
| 
       216 
216 
     | 
    
         | 
| 
       217 
     | 
    
         
            -
            ### 【補足3】所属するサブネットのルートテーブル
         
     | 
| 
       218 
217 
     | 
    
         | 
| 
       219 
     | 
    
         
            -
             
     | 
| 
       220 
     | 
    
         
            -
            ### 【補足 
     | 
| 
      
 218 
     | 
    
         
            +
            ### 【補足3】ツールのバージョンなど
         
     | 
| 
       221 
219 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       222 
220 
     | 
    
         
             
            macOs Catalina 10.15.7
         
     | 
| 
       223 
221 
     | 
    
         
             
            Nginx 1.16.1
         
     | 
4
所属するサブネットのルートテーブルについても記載
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -67,7 +67,10 @@ 
     | 
|
| 
       67 
67 
     | 
    
         
             
            ②インスタンスに使われているセキュリティグループ
         
     | 
| 
       68 
68 
     | 
    
         
             
            
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
      
 70 
     | 
    
         
            +
            ③所属するサブネットのルートテーブル
         
     | 
| 
      
 71 
     | 
    
         
            +
            
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
      
 73 
     | 
    
         
            +
            ④EC2のシステムログ
         
     | 
| 
       71 
74 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       72 
75 
     | 
    
         
             
            [    1.534066] systemd[1]: Inserted module 'autofs4'
         
     | 
| 
       73 
76 
     | 
    
         
             
            [    1.553417] NET: Registered protocol family 10
         
     | 
| 
         @@ -112,7 +115,7 @@ 
     | 
|
| 
       112 
115 
     | 
    
         
             
            ```
         
     | 
| 
       113 
116 
     | 
    
         | 
| 
       114 
117 
     | 
    
         | 
| 
       115 
     | 
    
         
            -
             
     | 
| 
      
 118 
     | 
    
         
            +
            ⑤インスタンスのスクリーンショット
         
     | 
| 
       116 
119 
     | 
    
         
             
            ]
         
     | 
| 
       117 
120 
     | 
    
         | 
| 
       118 
121 
     | 
    
         
             
            ### /etc/nginx/conf.d/アプリ名.confの中身
         
     | 
| 
         @@ -211,7 +214,10 @@ 
     | 
|
| 
       211 
214 
     | 
    
         
             
            I, [2021-05-08T19:24:44.964148 #4294]  INFO -- : worker=1 ready
         
     | 
| 
       212 
215 
     | 
    
         
             
            ```
         
     | 
| 
       213 
216 
     | 
    
         | 
| 
      
 217 
     | 
    
         
            +
            ### 【補足3】所属するサブネットのルートテーブル
         
     | 
| 
      
 218 
     | 
    
         
            +
             
     | 
| 
      
 219 
     | 
    
         
            +
             
     | 
| 
       214 
     | 
    
         
            -
            ### 【補足 
     | 
| 
      
 220 
     | 
    
         
            +
            ### 【補足4】ツールのバージョンなど
         
     | 
| 
       215 
221 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       216 
222 
     | 
    
         
             
            macOs Catalina 10.15.7
         
     | 
| 
       217 
223 
     | 
    
         
             
            Nginx 1.16.1
         
     | 
3
誤字
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -174,7 +174,7 @@ 
     | 
|
| 
       174 
174 
     | 
    
         
             
            ```
         
     | 
| 
       175 
175 
     | 
    
         | 
| 
       176 
176 
     | 
    
         
             
            ### 【補足1】nginxのログの状況
         
     | 
| 
       177 
     | 
    
         
            -
            $ sudo nano /var/log/nginx/access.log ( 
     | 
| 
      
 177 
     | 
    
         
            +
            $ sudo nano /var/log/nginx/access.log (アクセスログ確認コマンド)を実行した結果
         
     | 
| 
       178 
178 
     | 
    
         
             
            ```ここに言語を入力
         
     | 
| 
       179 
179 
     | 
    
         
             
            111.239.181.40 - - [09/May/2021:11:17:42 +0000] "GET / HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36$
         
     | 
| 
       180 
180 
     | 
    
         
             
            188.166.70.83 - - [09/May/2021:11:20:20 +0000] "GET / HTTP/1.0" 500 1635 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/2010010$
         
     | 
2
補足情報追加
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -91,60 +91,6 @@ 
     | 
|
| 
       91 
91 
     | 
    
         
             
            [    1.706604] systemd[1]: Starting Local File Systems.
         
     | 
| 
       92 
92 
     | 
    
         
             
            [[32m  OK  [0m] Reached target Timers.
         
     | 
| 
       93 
93 
     | 
    
         
             
            [    1.718582] systemd[1]: Reached target Timers.
         
     | 
| 
       94 
     | 
    
         
            -
            [[32m  OK  [0m] Created slice Root Slice.
         
     | 
| 
       95 
     | 
    
         
            -
            [[32m  OK  [0m] Listening on Journal Socket.
         
     | 
| 
       96 
     | 
    
         
            -
            [[32m  OK  [0m] Listening on udev Control Socket.
         
     | 
| 
       97 
     | 
    
         
            -
            [[32m  OK  [0m] Created slice System Slice.
         
     | 
| 
       98 
     | 
    
         
            -
                     Starting Journal Service...
         
     | 
| 
       99 
     | 
    
         
            -
            [[32m  OK  [0m] Listening on udev Kernel Socket.
         
     | 
| 
       100 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Swap.
         
     | 
| 
       101 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Sockets.
         
     | 
| 
       102 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Paths.
         
     | 
| 
       103 
     | 
    
         
            -
                     Starting Create list of required st... nodes for the current kernel...
         
     | 
| 
       104 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Slices.
         
     | 
| 
       105 
     | 
    
         
            -
                     Starting Apply Kernel Variables...
         
     | 
| 
       106 
     | 
    
         
            -
            [[32m  OK  [0m] Started Journal Service.
         
     | 
| 
       107 
     | 
    
         
            -
            [[32m  OK  [0m] Started Create list of required sta...ce nodes for the current kernel.
         
     | 
| 
       108 
     | 
    
         
            -
            [[32m  OK  [0m] Started Apply Kernel Variables.
         
     | 
| 
       109 
     | 
    
         
            -
                     Starting Create Static Device Nodes in /dev...
         
     | 
| 
       110 
     | 
    
         
            -
            [    1.856070] tsc: Refined TSC clocksource calibration: 2400.026 MHz
         
     | 
| 
       111 
     | 
    
         
            -
            [    1.862427] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x229850030f8, max_idle_ns: 440795254466 ns
         
     | 
| 
       112 
     | 
    
         
            -
            [[32m  OK  [0m] Started Create Static Device Nodes in /dev.
         
     | 
| 
       113 
     | 
    
         
            -
                     Starting udev Kernel Device Manager...
         
     | 
| 
       114 
     | 
    
         
            -
            [[32m  OK  [0m] Started udev Kernel Device Manager.
         
     | 
| 
       115 
     | 
    
         
            -
                     Starting dracut pre-trigger hook...
         
     | 
| 
       116 
     | 
    
         
            -
            [[32m  OK  [0m] Started dracut pre-trigger hook.
         
     | 
| 
       117 
     | 
    
         
            -
                     Starting udev Coldplug all Devices...
         
     | 
| 
       118 
     | 
    
         
            -
            [[32m  OK  [0m] Started udev Coldplug all Devices.
         
     | 
| 
       119 
     | 
    
         
            -
                     Starting dracut initqueue hook...
         
     | 
| 
       120 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target System Initialization.
         
     | 
| 
       121 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Basic System.
         
     | 
| 
       122 
     | 
    
         
            -
            [    2.029843] SCSI subsystem initialized
         
     | 
| 
       123 
     | 
    
         
            -
            [    2.055541] Invalid max_queues (4), will use default max: 1.
         
     | 
| 
       124 
     | 
    
         
            -
            [    2.072655] scsi host0: ata_piix
         
     | 
| 
       125 
     | 
    
         
            -
            [    2.075892] scsi host1: ata_piix
         
     | 
| 
       126 
     | 
    
         
            -
            [    2.227135] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc100 irq 14
         
     | 
| 
       127 
     | 
    
         
            -
            [    2.233208] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc108 irq 15
         
     | 
| 
       128 
     | 
    
         
            -
            [    2.255984] blkfront: xvda: barrier or flush: disabled; persistent grants: disabled; indirect descriptors: enabled;
         
     | 
| 
       129 
     | 
    
         
            -
            [    2.275719]  xvda: xvda1
         
     | 
| 
       130 
     | 
    
         
            -
            [[32m  OK  [0m] Found device /dev/disk/by-uuid/2753b570-611a-44cb-8bd2-888283108b55.
         
     | 
| 
       131 
     | 
    
         
            -
                     Starting File System Check on /dev/...0-611a-44cb-8bd2-888283108b55...
         
     | 
| 
       132 
     | 
    
         
            -
            [[32m  OK  [0m] Started File System Check on /dev/d...570-611a-44cb-8bd2-888283108b55.
         
     | 
| 
       133 
     | 
    
         
            -
            [[32m  OK  [0m] Started dracut initqueue hook.
         
     | 
| 
       134 
     | 
    
         
            -
                     Mounting /sysroot...
         
     | 
| 
       135 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Remote File Systems (Pre).
         
     | 
| 
       136 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Remote File Systems.
         
     | 
| 
       137 
     | 
    
         
            -
            [    2.489197] SGI XFS with ACLs, security attributes, no debug enabled
         
     | 
| 
       138 
     | 
    
         
            -
            [    2.498793] XFS (xvda1): Mounting V5 Filesystem
         
     | 
| 
       139 
     | 
    
         
            -
            [    2.524543] XFS (xvda1): Ending clean mount
         
     | 
| 
       140 
     | 
    
         
            -
            [[32m  OK  [0m] Mounted /sysroot.
         
     | 
| 
       141 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Initrd Root File System.
         
     | 
| 
       142 
     | 
    
         
            -
                     Starting Reload Configuration from the Real Root...
         
     | 
| 
       143 
     | 
    
         
            -
            [[32m  OK  [0m] Started Reload Configuration from the Real Root.
         
     | 
| 
       144 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Initrd File Systems.
         
     | 
| 
       145 
     | 
    
         
            -
            [[32m  OK  [0m] Reached target Initrd Default Target.
         
     | 
| 
       146 
     | 
    
         
            -
                     Starting dracut pre-pivot and cleanup hook...
         
     | 
| 
       147 
     | 
    
         
            -
            [[32m  OK  [0m] Started dracut pre-pivot and cleanup hook.
         
     | 
| 
       148 
94 
     | 
    
         | 
| 
       149 
95 
     | 
    
         
             
            .
         
     | 
| 
       150 
96 
     | 
    
         
             
            .
         
     | 
| 
         @@ -227,13 +173,52 @@ 
     | 
|
| 
       227 
173 
     | 
    
         
             
            }
         
     | 
| 
       228 
174 
     | 
    
         
             
            ```
         
     | 
| 
       229 
175 
     | 
    
         | 
| 
       230 
     | 
    
         
            -
            ### 補足 
     | 
| 
      
 176 
     | 
    
         
            +
            ### 【補足1】nginxのログの状況
         
     | 
| 
      
 177 
     | 
    
         
            +
            $ sudo nano /var/log/nginx/access.log (nginxのアクセスログ確認コマンド)を実行した結果
         
     | 
| 
      
 178 
     | 
    
         
            +
            ```ここに言語を入力
         
     | 
| 
      
 179 
     | 
    
         
            +
            111.239.181.40 - - [09/May/2021:11:17:42 +0000] "GET / HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36$
         
     | 
| 
      
 180 
     | 
    
         
            +
            188.166.70.83 - - [09/May/2021:11:20:20 +0000] "GET / HTTP/1.0" 500 1635 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/2010010$
         
     | 
| 
      
 181 
     | 
    
         
            +
            127.0.0.1 - - [09/May/2021:11:32:28 +0000] "GET / HTTP/1.1" 200 732 "-" "curl/7.61.1" "-"
         
     | 
| 
      
 182 
     | 
    
         
            +
            188.166.70.83 - - [09/May/2021:11:48:07 +0000] "GET /_ignition/execute-solution HTTP/1.1" 301 5 "-" "python-requests/2.18.4" "-"
         
     | 
| 
      
 183 
     | 
    
         
            +
            132.145.196.125 - - [09/May/2021:12:15:13 +0000] "POST / HTTP/1.1" 307 5 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like $
         
     | 
| 
      
 184 
     | 
    
         
            +
            132.145.196.125 - - [09/May/2021:12:15:15 +0000] "GET /.env HTTP/1.1" 301 5 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, li$
         
     | 
| 
      
 185 
     | 
    
         
            +
            124.219.132.185 - - [09/May/2021:12:35:52 +0000] "GET / HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT$
         
     | 
| 
      
 186 
     | 
    
         
            +
            170.254.75.31 - - [09/May/2021:12:44:03 +0000] "GET / HTTP/1.1" 301 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like$
         
     | 
| 
      
 187 
     | 
    
         
            +
            47.241.125.249 - - [09/May/2021:13:00:54 +0000] "\x05\x01\x00" 400 157 "-" "-" "-"
         
     | 
| 
      
 188 
     | 
    
         
            +
            47.241.125.249 - - [09/May/2021:13:01:20 +0000] "GET http://passport.baidu.com/ HTTP/1.1" 200 732 "-" "-" "-"
         
     | 
| 
      
 189 
     | 
    
         
            +
            47.241.125.249 - - [09/May/2021:13:02:16 +0000] "\x04\x01\x00Pg)\xA7\xEA\x00" 400 157 "-" "-" "-"
         
     | 
| 
      
 190 
     | 
    
         
            +
            ```
         
     | 
| 
       231 
191 
     | 
    
         | 
| 
      
 192 
     | 
    
         
            +
            $ sudo nano /var/log/nginx/error.log(エラーログ確認コマンド)を実行した結果
         
     | 
| 
      
 193 
     | 
    
         
            +
            ```ここに言語を入力
         
     | 
| 
      
 194 
     | 
    
         
            +
            2021/05/09 11:20:20 [error] 11227#0: *4 could not find named location "@unicorn", client: 188.166.70.83, server: , request: "GET / HTTP/1.0"
         
     | 
| 
      
 195 
     | 
    
         
            +
            ```
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
            ### 【補足2】unicornのログの状況
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
            /var/www/rails/アプリ名/log に移動し、
         
     | 
| 
      
 200 
     | 
    
         
            +
            $ sudo tail unicorn.log(最新10行のログ確認コマンド)を実行した結果
         
     | 
| 
      
 201 
     | 
    
         
            +
            ```ここに言語を入力
         
     | 
| 
      
 202 
     | 
    
         
            +
            I, [2021-05-08T17:43:30.984050 #4428]  INFO -- : worker=0 ready
         
     | 
| 
      
 203 
     | 
    
         
            +
            I, [2021-05-08T17:43:30.985252 #4429]  INFO -- : worker=1 ready
         
     | 
| 
      
 204 
     | 
    
         
            +
            I, [2021-05-08T18:20:29.354874 #4425]  INFO -- : reaped #<Process::Status: pid 4428 exit 0> worker=0
         
     | 
| 
      
 205 
     | 
    
         
            +
            I, [2021-05-08T18:20:29.354950 #4425]  INFO -- : reaped #<Process::Status: pid 4429 exit 0> worker=1
         
     | 
| 
      
 206 
     | 
    
         
            +
            I, [2021-05-08T18:20:29.355014 #4425]  INFO -- : master complete
         
     | 
| 
      
 207 
     | 
    
         
            +
            I, [2021-05-08T19:24:42.486318 #4290]  INFO -- : Refreshing Gem list
         
     | 
| 
      
 208 
     | 
    
         
            +
            I, [2021-05-08T19:24:44.942332 #4290]  INFO -- : listening on addr=/var/www/rails/アプリ名/tmp/sockets/unicorn.sock fd=9
         
     | 
| 
      
 209 
     | 
    
         
            +
            I, [2021-05-08T19:24:44.957852 #4290]  INFO -- : master process ready
         
     | 
| 
      
 210 
     | 
    
         
            +
            I, [2021-05-08T19:24:44.962589 #4293]  INFO -- : worker=0 ready
         
     | 
| 
      
 211 
     | 
    
         
            +
            I, [2021-05-08T19:24:44.964148 #4294]  INFO -- : worker=1 ready
         
     | 
| 
      
 212 
     | 
    
         
            +
            ```
         
     | 
| 
      
 213 
     | 
    
         
            +
             
     | 
| 
      
 214 
     | 
    
         
            +
            ### 【補足3】ツールのバージョンなど
         
     | 
| 
      
 215 
     | 
    
         
            +
            ```ここに言語を入力
         
     | 
| 
       232 
216 
     | 
    
         
             
            macOs Catalina 10.15.7
         
     | 
| 
       233 
217 
     | 
    
         
             
            Nginx 1.16.1
         
     | 
| 
       234 
218 
     | 
    
         
             
            Unicorn 6.0.0
         
     | 
| 
       235 
219 
     | 
    
         
             
            Rails 6.0.3
         
     | 
| 
       236 
220 
     | 
    
         
             
            Ruby 2.7.2p137
         
     | 
| 
      
 221 
     | 
    
         
            +
            ```
         
     | 
| 
       237 
222 
     | 
    
         | 
| 
       238 
223 
     | 
    
         
             
            以上になります。
         
     | 
| 
       239 
224 
     | 
    
         
             
            よろしくお願いいたします。
         
     | 
1
誤字
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -213,6 +213,7 @@ 
     | 
|
| 
       213 
213 
     | 
    
         
             
            ```
         
     | 
| 
       214 
214 
     | 
    
         | 
| 
       215 
215 
     | 
    
         
             
            ### /etc/nginx/conf.d/rails.confの中身
         
     | 
| 
      
 216 
     | 
    
         
            +
            ```
         
     | 
| 
       216 
217 
     | 
    
         
             
            server {
         
     | 
| 
       217 
218 
     | 
    
         
             
                access_log  /var/log/nginx/access.log;
         
     | 
| 
       218 
219 
     | 
    
         
             
                error_log   /var/log/nginx/error.log;
         
     | 
| 
         @@ -224,6 +225,7 @@ 
     | 
|
| 
       224 
225 
     | 
    
         
             
                error_page  500 502 503 504  /500.html;
         
     | 
| 
       225 
226 
     | 
    
         
             
                try_files   $uri/index.html $uri @unicorn;
         
     | 
| 
       226 
227 
     | 
    
         
             
            }
         
     | 
| 
      
 228 
     | 
    
         
            +
            ```
         
     | 
| 
       227 
229 
     | 
    
         | 
| 
       228 
230 
     | 
    
         
             
            ### 補足情報(FW/ツールのバージョンなど)
         
     | 
| 
       229 
231 
     | 
    
         |