質問編集履歴
3
エラーメッセージ追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,6 +31,26 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
```
|
34
|
+
|
35
|
+
209e729f8486: Layer already exists
|
36
|
+
|
37
|
+
b31a4422279c: Pushed
|
38
|
+
|
39
|
+
fe8739e9df49: Pushed
|
40
|
+
|
41
|
+
6fb446f7ac33: Pushed
|
42
|
+
|
43
|
+
latest: digest: sha256:c899761948f5c9a3a3d1179dcf76bd1df44ad36934d8b109c6ce7c4f5f42914e size: 2206
|
44
|
+
|
45
|
+
DONE
|
46
|
+
|
47
|
+
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
Updating service [default] (this may take several minutes)...failed.
|
52
|
+
|
53
|
+
ERROR: (gcloud.beta.app.deploy) Error Response: [9]
|
34
54
|
|
35
55
|
Application startup error:
|
36
56
|
|
2
タイトル編集
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Cloud
|
1
|
+
Cloud Endpointsを使ったGAEから、別プロジェクトのCloudSQLに接続したい
|
test
CHANGED
File without changes
|
1
不足を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,19 +8,19 @@
|
|
8
8
|
|
9
9
|
Ruby言語を選んで、参考にしながらとりあえず立てることができたのですが、
|
10
10
|
|
11
|
+
このチュートリアル(https://cloud.google.com/appengine/docs/flexible/ruby/using-cloud-sql#before_you_begin)をやっていて
|
12
|
+
|
11
13
|
DBに接続するところで詰まってしまいました。
|
12
14
|
|
13
15
|
|
14
16
|
|
15
|
-
DBは
|
17
|
+
cloud_sql_proxyを使ってローカルからDB接続することは成功したのですが、
|
18
|
+
|
19
|
+
gaeにdeployするとエラーでデプロイできなくなってしまったので、そのデプロイで出るエラーを解決したいです。
|
16
20
|
|
17
21
|
|
18
22
|
|
19
|
-
cloud_sql_proxyを使ってローカルで接続することは成功したのですが、
|
20
|
-
|
21
|
-
|
23
|
+
※DBはGCP内ではありますが別プロジェクトにあります
|
22
|
-
|
23
|
-
そのデプロイで出るエラーを解決したいです。
|
24
24
|
|
25
25
|
|
26
26
|
|
@@ -32,7 +32,39 @@
|
|
32
32
|
|
33
33
|
```
|
34
34
|
|
35
|
-
|
35
|
+
Application startup error:
|
36
|
+
|
37
|
+
/app/vendor/bundle/ruby/2.3.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `connect': Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/cloudsql/xxxxxx:asia-northeast1:xxxxxxxxx' (2) (Sequel::DatabaseConnectionError)
|
38
|
+
|
39
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `initialize'
|
40
|
+
|
41
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/adapters/mysql2.rb:44:in `new'
|
42
|
+
|
43
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/adapters/mysql2.rb:44:in `connect'
|
44
|
+
|
45
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/connection_pool.rb:127:in `make_new'
|
46
|
+
|
47
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/connection_pool/threaded.rb:206:in `assign_connection'
|
48
|
+
|
49
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/connection_pool/threaded.rb:138:in `acquire'
|
50
|
+
|
51
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/connection_pool/threaded.rb:90:in `hold'
|
52
|
+
|
53
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/database/connecting.rb:253:in `synchronize'
|
54
|
+
|
55
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/database/connecting.rb:279:in `test_connection'
|
56
|
+
|
57
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/database/connecting.rb:58:in `connect'
|
58
|
+
|
59
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/core.rb:116:in `connect'
|
60
|
+
|
61
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/core.rb:394:in `adapter_method'
|
62
|
+
|
63
|
+
from /app/vendor/bundle/ruby/2.3.0/gems/sequel-5.11.0/lib/sequel/core.rb:401:in `block (2 levels) in def_adapter_method'
|
64
|
+
|
65
|
+
from app.rb:29:in `<main>'
|
66
|
+
|
67
|
+
|
36
68
|
|
37
69
|
```
|
38
70
|
|