cloud sql在部署期间无法连接到app引擎

时间:2016-10-29 11:51:58

标签: google-app-engine google-cloud-sql

App Engine:灵活

CloudSQL:第二代

框架:Node.js

节点lib:mysql

我在部署后看到了这个错误:

2016/10/29 11:38:03 listenInstance: "santex-1101:asia-east1:santexdb"

2016/10/29 11:38:03 Remove("/cloudsql/santex-1101:asia-east1:santexdb") error: remove /cloudsql/santex-1101:asia-east1:santexdb: no such file or directory

2016/10/29 11:38:03 Open socket for "santex-1101:asia-east1:santexdb" at "/cloudsql/santex-1101:asia-east1:santexdb"

2016/10/29 11:38:03 Socket prefix: /cloudsql

2016/10/29 11:39:20 listenInstance: "santex-1101:asia-east1:santexdb"

2016/10/29 11:39:20 Remove("/cloudsql/santex-1101:asia-east1:santexdb") error: remove /cloudsql/santex-1101:asia-east1:santexdb: no such file or directory

2016/10/29 11:39:20 Open socket for "santex-1101:asia-east1:santexdb" at "/cloudsql/santex-1101:asia-east1:santexdb"

2016/10/29 11:39:20 Socket prefix: /cloudsql

app.js:

var pool = mysql.createPool({
    connectionLimit: 100,
    multipleStatements: true,
    user: config.get('MYSQL_USER'),
    password: config.get('MYSQL_PASSWORD'),
    database: config.get('MYSQL_DATABASE'),
    socketPath: "/cloudsql/santex-1101:asia-east1:santexdb"
});

app.yaml:

runtime: nodejs
vm: true

beta_settings:
    cloud_sql_instances: "santex-1101:asia-east1:santexdb"

我不确定导致此问题的原因。

我也用ssh进入vm进行检查,我可以看到/ cloudsql / santex-1101:asia-east1:santexdb已经存在。

请帮忙

提前致谢, timecatcher

0 个答案:

没有答案