質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,85 @@
|
|
40
40
|
|
41
41
|
```
|
42
42
|
|
43
|
-
|
43
|
+
またGCP、App EngineのアプリケーションエラーにOperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)")とありました。
|
44
|
+
|
45
|
+
同じくGCPのオペレーションロギングのクエリ結果には
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
{
|
50
|
+
|
51
|
+
"textPayload": "Traceback (most recent call last):
|
52
|
+
|
53
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/django/db/backends/base/base.py\", line 219, in ensure_connection
|
54
|
+
|
55
|
+
self.connect()
|
56
|
+
|
57
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/django/utils/asyncio.py\", line 26, in inner
|
58
|
+
|
59
|
+
return func(*args, **kwargs)
|
60
|
+
|
61
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/django/db/backends/base/base.py\", line 200, in connect
|
62
|
+
|
63
|
+
self.connection = self.get_new_connection(conn_params)
|
64
|
+
|
65
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/django/utils/asyncio.py\", line 26, in inner
|
66
|
+
|
67
|
+
return func(*args, **kwargs)
|
68
|
+
|
69
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/django/db/backends/mysql/base.py\", line 234, in get_new_connection
|
70
|
+
|
71
|
+
connection = Database.connect(**conn_params)
|
72
|
+
|
73
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/MySQLdb/__init__.py\", line 130, in Connect
|
74
|
+
|
75
|
+
return Connection(*args, **kwargs)
|
76
|
+
|
77
|
+
File \"/layers/google.python.pip/pip/lib/python3.8/site-packages/MySQLdb/connections.py\", line 185, in __init__
|
78
|
+
|
79
|
+
super().__init__(*args, **kwargs2)
|
80
|
+
|
81
|
+
MySQLdb._exceptions.OperationalError: (2003, \"Can't connect to MySQL server on '127.0.0.1' (111)\")",
|
82
|
+
|
83
|
+
"insertId": "609e8e320002a0e6b9e5b86d",
|
84
|
+
|
85
|
+
"resource": {
|
86
|
+
|
87
|
+
"type": "gae_app",
|
88
|
+
|
89
|
+
"labels": {
|
90
|
+
|
91
|
+
"version_id": "20210514t234717",
|
92
|
+
|
93
|
+
"project_id": "really-site-313406",
|
94
|
+
|
95
|
+
"zone": "asia-northeast1-1",
|
96
|
+
|
97
|
+
"module_id": "default"
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
},
|
102
|
+
|
103
|
+
"timestamp": "2021-05-14T14:50:26.172262Z",
|
104
|
+
|
105
|
+
"severity": "ERROR",
|
106
|
+
|
107
|
+
"labels": {
|
108
|
+
|
109
|
+
"clone_id": "00c61b117ce871cd7450a677b50311234c543f9dc2eb4c0e51c522002311a23d7343c4599c7151cf66b51fac54e3f9f612601bc56ab269bcfad519e0c5941986adebd2b409d5d9f23adfefbb53ed"
|
110
|
+
|
111
|
+
},
|
112
|
+
|
113
|
+
"logName": "projects/really-site-313406/logs/stderr",
|
114
|
+
|
115
|
+
"receiveTimestamp": "2021-05-14T14:50:26.268170929Z"
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
とあり、127.0.0.1のMySQLサーバーに接続できませんと言われてしまいました。
|
44
122
|
|
45
123
|
|
46
124
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -114,6 +114,10 @@
|
|
114
114
|
|
115
115
|
### 補足情報(FW/ツールのバージョンなど)
|
116
116
|
|
117
|
+
macOS Big Surです。
|
118
|
+
|
119
|
+
python3.8.5 pyenv+venv環境です。
|
120
|
+
|
117
121
|
私自身、初心者でしてdjangoでアプリを作るのもデプロイするのも今回が初めてになります。
|
118
122
|
|
119
123
|
私の力では解決できず、皆さんのお力を借りたいと思い質問させていただきました。
|