質問編集履歴
4
エラーの記載が間違っていた
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,35 +38,45 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
[Mon Oct 23
|
41
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect'
|
42
42
|
|
43
|
-
[Mon Oct 23
|
43
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] :
|
44
44
|
|
45
|
-
[Mon Oct 23
|
45
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] Failed to open TCP connection to hogehoge.jp:443 (Permission denied - connect(2) for "hogehoge.jp" port 443)
|
46
46
|
|
47
|
-
[Mon Oct 23
|
47
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] (
|
48
48
|
|
49
|
-
[Mon Oct 23
|
49
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] Errno::EACCES
|
50
50
|
|
51
|
-
[Mon Oct 23
|
51
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] )
|
52
52
|
|
53
|
-
[Mon Oct 23
|
53
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:903:in `block in connect'
|
54
54
|
|
55
|
-
[Mon Oct 23
|
55
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'
|
56
56
|
|
57
|
-
[Mon Oct 23
|
57
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/timeout.rb:103:in `timeout'
|
58
58
|
|
59
|
-
[Mon Oct 23
|
59
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:902:in `connect'
|
60
60
|
|
61
|
-
[Mon Oct 23
|
61
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
|
62
62
|
|
63
|
-
[Mon Oct 23
|
63
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:876:in `start'
|
64
64
|
|
65
|
-
[Mon Oct 23
|
65
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:323:in `open_http'
|
66
66
|
|
67
|
-
[Mon Oct 23
|
67
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:741:in `buffer_open'
|
68
68
|
|
69
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:212:in `block in open_loop'
|
69
70
|
|
71
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:210:in `catch'
|
72
|
+
|
73
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:210:in `open_loop'
|
74
|
+
|
75
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:151:in `open_uri'
|
76
|
+
|
77
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /var/www/html/hogehoge/index.rb:117:in `url'
|
78
|
+
|
79
|
+
[Mon Oct 23 oo:oo:oo 2017] [error] [client ooo.oo.ooo.oo] \tfrom /var/www/html/hogehoge/index.rb:120:in `<main>'
|
70
80
|
|
71
81
|
```
|
72
82
|
|
3
エラーを詳細に記載した。
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,11 +38,33 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
|
41
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:903:in `block in connect'
|
42
42
|
|
43
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'
|
43
44
|
|
45
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/timeout.rb:103:in `timeout'
|
44
46
|
|
47
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:902:in `connect'
|
48
|
+
|
49
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
|
50
|
+
|
51
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/net/http.rb:876:in `start'
|
52
|
+
|
53
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:323:in `open_http'
|
54
|
+
|
55
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:741:in `buffer_open'
|
56
|
+
|
57
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:212:in `block in open_loop'
|
58
|
+
|
59
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:210:in `catch'
|
60
|
+
|
61
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:210:in `open_loop'
|
62
|
+
|
63
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /usr/local/bin/rbenv/versions/2.4.2/lib/ruby/2.4.0/open-uri.rb:151:in `open_uri'
|
64
|
+
|
45
|
-
|
65
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /var/www/html/hogehoge/hogehoge/index.rb:117:in `url'
|
66
|
+
|
67
|
+
[Mon Oct 23 01:14:45 2017] [error] [client ooo.oo.ooo.oo] \tfrom /var/www/html/hogehoge/hogehoge/index.rb:120:in `<main>'
|
46
68
|
|
47
69
|
|
48
70
|
|
2
説明書きを修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
```
|
50
50
|
|
51
|
-
ターミナル
|
51
|
+
ターミナルで hogehoge.com のサーバに接続して $ ruby index.rb を実行すると 問題なく取得できました。
|
52
52
|
|
53
53
|
```
|
54
54
|
|
1
言葉遣い
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
ブラウザから http://hogehoge.com/hogehoge/index.rb を実行
|
2
2
|
|
3
|
-
|
3
|
+
open_uri を用いて'https://hogehoge.jp/hogehoge.cgi' からデータを受け取る
|
4
4
|
|
5
5
|
-> エラー
|
6
6
|
|