質問編集履歴

7

情報追加

2017/02/07 04:43

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -408,36 +408,24 @@
408
408
 
409
409
  [anime@tk2-241-30026 log]$ cat unicorn-stderr.log
410
410
 
411
- I, [2017-02-02T11:40:50.910639 #23231] INFO -- : Refreshing Gem list
411
+ I, [2017-02-06T15:49:11.050366 #2363] INFO -- : Refreshing Gem list
412
412
 
413
413
  DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
414
414
 
415
415
  Please use `config.public_file_server.enabled = false` instead.
416
416
 
417
- (called from block in <top (required)> at /home/anime/app/anime-report/config/environments/production.rb:25)
417
+ (called from block in <top (required)> at /home/anime/var/www/anime-report/config/environments/production.rb:25)
418
+
418
-
419
+ I, [2017-02-06T15:49:12.997127 #2363] INFO -- : listening on addr=/home/anime/var/www/anime-report/tmp/sockets/unicorn.sock fd=8
420
+
421
+ I, [2017-02-06T15:49:12.997561 #2363] INFO -- : worker=0 spawning...
422
+
419
- I, [2017-02-02T11:40:53.220240 #23231] INFO -- : listening on addr=0.0.0.0:8080 fd=11
423
+ I, [2017-02-06T15:49:13.002448 #2363] INFO -- : worker=1 spawning...
420
-
424
+
421
- E, [2017-02-02T11:40:53.332302 #23231] ERROR -- : uninitialized constant Errno::ESERCH
425
+ I, [2017-02-06T15:49:13.005643 #2363] INFO -- : master process ready
422
-
423
- Did you mean? Errno::ESRCH (NameError)
426
+
424
-
425
- /home/anime/app/anime-report/config/unicorn.rb:23:in `rescue in block in reload'
426
-
427
- /home/anime/app/anime-report/config/unicorn.rb:21:in `block in reload'
428
-
429
- /usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:502:in `spawn_missing_workers'
430
-
431
- /usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:132:in `start'
432
-
433
- /usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/bin/unicorn_rails:209:in `<top (required)>'
434
-
435
- /usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `load'
436
-
437
- /usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `<main>'
438
-
439
- I, [2017-02-02T11:47:05.233506 #23283] INFO -- : Refreshing Gem list
427
+ I, [2017-02-06T15:49:13.300405 #2369] INFO -- : worker=1 ready
440
-
428
+
441
- /usr/local/rbenv/versions/2.3.1/bin/unicorn_rails must be run inside RAILS_ROOT: #<LoadError: cannot load such file -- /home/anime/app/anime-report/config/environments/config/boot>
429
+ I, [2017-02-06T15:49:13.353984 #2366] INFO -- : worker=0 ready
442
-
430
+
443
- ```
431
+ ```

6

情報追加

2017/02/07 04:43

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -188,74 +188,6 @@
188
188
 
189
189
 
190
190
 
191
- 【/etc/sysconfig/iptables】
192
-
193
- ```ここに言語を入力
194
-
195
- [anime@tk2-241-30026 anime-report]$ sudo cat /etc/sysconfig/iptables
196
-
197
- # Generated by iptables-save v1.4.7 on Fri Jan 20 17:22:53 2017
198
-
199
- *filter
200
-
201
- :INPUT DROP [0:0]
202
-
203
- :FORWARD ACCEPT [0:0]
204
-
205
- :OUTPUT ACCEPT [66777:4837845]
206
-
207
- -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
208
-
209
- -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
210
-
211
- -A INPUT -p icmp -j ACCEPT
212
-
213
- -A INPUT -i lo -j ACCEPT
214
-
215
- -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
216
-
217
- -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
218
-
219
- -A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
220
-
221
- -A INPUT -p tcp -m state --state NEW -m tcp --dport 61203 -j ACCEPT
222
-
223
- -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
224
-
225
- -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
226
-
227
- -A INPUT -p tcp -m tcp --dport 61203 -j ACCEPT
228
-
229
- -A SERVICES -p tcp --dport 22 -j ACCEPT
230
-
231
- -A SERVICES -p tcp --dport 3000 -j ACCEPT
232
-
233
- -A INPUT -j REJECT --reject-with icmp-host-prohibited
234
-
235
- -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
236
-
237
- -A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
238
-
239
- -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP
240
-
241
- -A INPUT -i lo -j ACCEPT
242
-
243
- -A INPUT -p icmp -j ACCEPT
244
-
245
- -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
246
-
247
- -A FORWARD -j REJECT --reject-with icmp-host-prohibited
248
-
249
- COMMIT
250
-
251
- # Completed on Fri Jan 20 17:22:53 2017
252
-
253
- ```
254
-
255
-
256
-
257
-
258
-
259
191
 
260
192
 
261
193
  ご経験ある方、ご指摘お願いします。
@@ -467,3 +399,45 @@
467
399
  srwxrwxrwx 1 anime anime 0 2月 6 21:39 2017 unicorn.sock
468
400
 
469
401
  ```
402
+
403
+
404
+
405
+
406
+
407
+ ```
408
+
409
+ [anime@tk2-241-30026 log]$ cat unicorn-stderr.log
410
+
411
+ I, [2017-02-02T11:40:50.910639 #23231] INFO -- : Refreshing Gem list
412
+
413
+ DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
414
+
415
+ Please use `config.public_file_server.enabled = false` instead.
416
+
417
+ (called from block in <top (required)> at /home/anime/app/anime-report/config/environments/production.rb:25)
418
+
419
+ I, [2017-02-02T11:40:53.220240 #23231] INFO -- : listening on addr=0.0.0.0:8080 fd=11
420
+
421
+ E, [2017-02-02T11:40:53.332302 #23231] ERROR -- : uninitialized constant Errno::ESERCH
422
+
423
+ Did you mean? Errno::ESRCH (NameError)
424
+
425
+ /home/anime/app/anime-report/config/unicorn.rb:23:in `rescue in block in reload'
426
+
427
+ /home/anime/app/anime-report/config/unicorn.rb:21:in `block in reload'
428
+
429
+ /usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:502:in `spawn_missing_workers'
430
+
431
+ /usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:132:in `start'
432
+
433
+ /usr/local/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/unicorn-5.2.0/bin/unicorn_rails:209:in `<top (required)>'
434
+
435
+ /usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `load'
436
+
437
+ /usr/local/rbenv/versions/2.3.1/bin/unicorn_rails:23:in `<main>'
438
+
439
+ I, [2017-02-02T11:47:05.233506 #23283] INFO -- : Refreshing Gem list
440
+
441
+ /usr/local/rbenv/versions/2.3.1/bin/unicorn_rails must be run inside RAILS_ROOT: #<LoadError: cannot load such file -- /home/anime/app/anime-report/config/environments/config/boot>
442
+
443
+ ```

5

情報追加

2017/02/07 04:41

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -332,22 +332,138 @@
332
332
 
333
333
  11:48:03.591622 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 631, length 64
334
334
 
335
- 11:48:05.294145 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 3229, length 64
336
-
337
- 11:48:05.294220 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 3229, length 64
338
-
339
- 11:48:08.744798 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 1142, length 64
340
-
341
- 11:48:08.744987 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 1142, length 64
342
-
343
- 11:48:09.126543 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 3612, length 64
344
-
345
- 11:48:09.126628 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 3612, length 64
346
-
347
- 11:48:11.237496 IP 160.16.198.30 > 183.69.131.213: ICMP host 160.16.198.30 unreachable - admin prohibited, length 48
348
-
349
- 11:48:11.413781 IP 160.16.198.30 > 183.69.131.213: ICMP host 160.16.198.30 unreachable - admin prohibited, length 48
350
-
351
- 11:48:13.900012 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 1653, length 64
352
-
353
- ```
335
+ 11:48:05.294145 IP 157.119.234.13 > 160.16.198.30: ICMP echo request,
336
+
337
+ ```
338
+
339
+
340
+
341
+ ```ここに言語を入力
342
+
343
+ [anime@tk2-241-30026 ~]$ ls -l /var/
344
+
345
+ 合計 76
346
+
347
+ drwxr-xr-x. 2 root root 4096 12 6 19:09 2016 account
348
+
349
+ drwxr-xr-x. 10 root root 4096 1月 19 23:09 2017 cache
350
+
351
+ drwxr-xr-x. 2 root root 4096 1119 00:19 2016 crash
352
+
353
+ drwxr-xr-x. 2 root root 4096 11月 22 21:29 2013 cvs
354
+
355
+ drwxr-xr-x. 3 root root 4096 12月 6 19:09 2016 db
356
+
357
+ drwxr-xr-x. 3 root root 4096 12月 6 19:09 2016 empty
358
+
359
+ drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 games
360
+
361
+ drwxr-xr-x. 27 root root 4096 2月 7 03:02 2017 lib
362
+
363
+ drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 local
364
+
365
+ drwxrwxr-x. 5 root lock 4096 2月 7 03:02 2017 lock
366
+
367
+ drwxr-xr-x. 9 root root 4096 2月 5 04:51 2017 log
368
+
369
+ lrwxrwxrwx. 1 root root 10 1月 18 23:08 2017 mail -> spool/mail
370
+
371
+ drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 nis
372
+
373
+ drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 opt
374
+
375
+ drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 preserve
376
+
377
+ drwxr-xr-x. 20 root root 4096 2月 7 10:57 2017 run
378
+
379
+ drwxr-xr-x. 11 root root 4096 12月 6 19:09 2016 spool
380
+
381
+ drwxrwxrwt. 5 root root 4096 2月 7 12:08 2017 tmp
382
+
383
+ drwxr-xr-x 6 root root 4096 1月 19 11:25 2017 www
384
+
385
+ drwxr-xr-x. 2 root root 4096 9月 23 20:50 2011 yp
386
+
387
+ ```
388
+
389
+
390
+
391
+ ```ここに言語を入力
392
+
393
+ [anime@tk2-241-30026 ~]$ ls -l /var/run/
394
+
395
+ 合計 108
396
+
397
+ drwxr-xr-x. 2 root root 4096 5月 11 06:09 2016 ConsoleKit
398
+
399
+ drwxr-xr-x. 2 root root 4096 5月 12 05:43 2016 abrt
400
+
401
+ -rw-r--r-- 1 root root 5 1月 28 12:53 2017 acpid.pid
402
+
403
+ srw-rw-rw- 1 root root 0 1月 28 12:53 2017 acpid.socket
404
+
405
+ -rw-r--r-- 1 root root 5 1月 28 12:53 2017 atd.pid
406
+
407
+ drwxr-xr-x. 2 root root 4096 5月 11 08:18 2016 console
408
+
409
+ ---------- 1 root root 0 1月 28 12:53 2017 cron.reboot
410
+
411
+ -rw-r--r-- 1 root root 5 1月 28 12:53 2017 crond.pid
412
+
413
+ drwxr-xr-x. 2 root root 4096 4月 22 19:52 2015 dbus
414
+
415
+ drwxr-xr-x. 2 root root 4096 1月 28 12:53 2017 fail2ban
416
+
417
+ drwxr-xr-x. 2 root root 4096 5月 11 08:18 2016 faillock
418
+
419
+ drwx------. 2 haldaemon haldaemon 4096 10月 15 19:49 2014 hald
420
+
421
+ drwx--x--- 2 root apache 4096 2月 1 21:34 2017 httpd
422
+
423
+ -rw-r--r-- 1 root root 5 1月 28 12:53 2017 irqbalance.pid
424
+
425
+ drwx------. 2 root root 4096 8月 24 03:37 2016 lvm
426
+
427
+ drwx------. 2 root root 4096 7月 13 00:43 2016 mdadm
428
+
429
+ drwxr-xr-x 2 mysql mysql 4096 1月 28 12:53 2017 mysqld
430
+
431
+ drwxrwxr-x. 2 root root 4096 7月 13 01:40 2016 netreport
432
+
433
+ -rw-r--r-- 1 root root 5 2月 7 10:57 2017 nginx.pid
434
+
435
+ -rw-r--r-- 1 root root 4 1月 28 12:53 2017 ntpd.pid
436
+
437
+ drwxr-xr-x. 2 root root 4096 8月 12 02:59 2014 plymouth
438
+
439
+ drwxr-xr-x. 4 root root 4096 12月 6 19:09 2016 pm-utils
440
+
441
+ drwxr-xr-x. 2 root root 4096 3月 25 19:24 2015 saslauthd
442
+
443
+ drwxr-xr-x. 2 root root 4096 5月 11 08:18 2016 sepermit
444
+
445
+ drwxr-xr-x. 2 root root 4096 5月 11 07:59 2016 setrans
446
+
447
+ -rw-r--r-- 1 root root 6 2月 2 09:53 2017 sshd.pid
448
+
449
+ -rw------- 1 root root 5 1月 28 12:53 2017 syslogd.pid
450
+
451
+ drwxrwxrwx 2 root root 4096 2月 6 21:39 2017 unicorn
452
+
453
+ -rw-rw-r-- 1 root utmp 2688 2月 7 10:42 2017 utmp
454
+
455
+ ```
456
+
457
+
458
+
459
+ ```ここに言語を入力
460
+
461
+ [anime@tk2-241-30026 ~]$ ls -l /var/run/unicorn/
462
+
463
+ 合計 4
464
+
465
+ -rw-r--r-- 1 anime anime 5 2月 6 21:39 2017 unicorn.pid
466
+
467
+ srwxrwxrwx 1 anime anime 0 2月 6 21:39 2017 unicorn.sock
468
+
469
+ ```

4

情報追加

2017/02/07 03:12

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -311,3 +311,43 @@
311
311
  anime 8115 0.0 0.0 103328 868 pts/0 S+ 11:16 0:00 grep nginx
312
312
 
313
313
  ```
314
+
315
+
316
+
317
+
318
+
319
+ ```ここに言語を入力
320
+
321
+ [anime@tk2-241-30026 etc]$ sudo tcpdump -n icmp
322
+
323
+ tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
324
+
325
+ listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
326
+
327
+ 11:48:01.461745 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 2846, length 64
328
+
329
+ 11:48:01.461908 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 2846, length 64
330
+
331
+ 11:48:03.591478 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 631, length 64
332
+
333
+ 11:48:03.591622 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 631, length 64
334
+
335
+ 11:48:05.294145 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 3229, length 64
336
+
337
+ 11:48:05.294220 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 3229, length 64
338
+
339
+ 11:48:08.744798 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 1142, length 64
340
+
341
+ 11:48:08.744987 IP 160.16.198.30 > 139.5.110.36: ICMP echo reply, id 23756, seq 1142, length 64
342
+
343
+ 11:48:09.126543 IP 157.119.234.13 > 160.16.198.30: ICMP echo request, id 23721, seq 3612, length 64
344
+
345
+ 11:48:09.126628 IP 160.16.198.30 > 157.119.234.13: ICMP echo reply, id 23721, seq 3612, length 64
346
+
347
+ 11:48:11.237496 IP 160.16.198.30 > 183.69.131.213: ICMP host 160.16.198.30 unreachable - admin prohibited, length 48
348
+
349
+ 11:48:11.413781 IP 160.16.198.30 > 183.69.131.213: ICMP host 160.16.198.30 unreachable - admin prohibited, length 48
350
+
351
+ 11:48:13.900012 IP 139.5.110.36 > 160.16.198.30: ICMP echo request, id 23756, seq 1653, length 64
352
+
353
+ ```

3

情報追加

2017/02/07 02:53

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -297,3 +297,17 @@
297
297
  nginx: configuration file /etc/nginx/nginx.conf test failed
298
298
 
299
299
  ```
300
+
301
+
302
+
303
+ ```
304
+
305
+ [anime@tk2-241-30026 etc]$ ps aux | grep nginx
306
+
307
+ root 8080 0.0 0.0 45096 1044 ? Ss 10:57 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
308
+
309
+ nginx 8081 0.0 0.1 45492 2124 ? S 10:57 0:00 nginx: worker process
310
+
311
+ anime 8115 0.0 0.0 103328 868 pts/0 S+ 11:16 0:00 grep nginx
312
+
313
+ ```

2

情報追加

2017/02/07 02:17

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -279,3 +279,21 @@
279
279
  2017/02/07 10:48:29 [error] 7984#7984: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 126.129.108.242, server: anime-report, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "xxx.xx.xxx.xx"
280
280
 
281
281
  ```
282
+
283
+
284
+
285
+ ```ここに言語を入力
286
+
287
+ [anime@tk2-241-30026 etc]$ service nginx configtest
288
+
289
+ nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
290
+
291
+ 2017/02/07 11:12:32 [warn] 8111#8111: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
292
+
293
+ nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
294
+
295
+ 2017/02/07 11:12:32 [emerg] 8111#8111: open() "/var/run/nginx.pid" failed (13: Permission denied)
296
+
297
+ nginx: configuration file /etc/nginx/nginx.conf test failed
298
+
299
+ ```

1

情報追加

2017/02/07 02:13

投稿

s.k
s.k

スコア423

test CHANGED
File without changes
test CHANGED
@@ -259,3 +259,23 @@
259
259
 
260
260
 
261
261
  ご経験ある方、ご指摘お願いします。
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+ ###追加
270
+
271
+
272
+
273
+ 【INETに変更後】
274
+
275
+
276
+
277
+ ```ここに言語を入力
278
+
279
+ 2017/02/07 10:48:29 [error] 7984#7984: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 126.129.108.242, server: anime-report, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "xxx.xx.xxx.xx"
280
+
281
+ ```