Dba.deploySandboxInstance: (RuntimeError)

本文记录了使用sandbox部署InnoDBCluster过程中遇到的RuntimeError问题及其解决方案,包括忽略SSL错误设置、zlib及ssl相关依赖的安装等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

用sandbox 搭建InnoDB Cluster环境时遇到如下问题:

mysql-js> dba.deploySandboxInstance(3310)
A new MySQL sandbox instance will be created on this host in 
/root/mysql-sandboxes/3310


Warning: Sandbox instances are only suitable for deploying and 
running on your local machine for testing purposes and are not 
accessible from external networks.


Please enter a MySQL root password for the new instance: 
Deploying new MySQL instance...

Dba.deploySandboxInstance:  (RuntimeError)


通过dba.help('deploySandboxInstance')看到RuntimeError的解释,但还是不知道该怎么处理

mysql-js>  dba.help('deploySandboxInstance')

EXCEPTIONS

  RuntimeError: f SSL support can be provided and ignoreSslError: false.

DESCRIPTION

- ignoreSslError: Ignore errors when adding SSL support for the new instance,  by default: true.


检查mysqlshell的日志:

tail -f  $/HOME/.mysqlsh/mysqlsh.log  

ImportError: can't decompress data; zlib not available

发现python2.7 环境中缺少zlib,ssl

安装相关依赖:yum -y install zlib*,openssl

重新编译python后,重试,正常。



https://dev.mysql.com/doc/refman/5.7/en/mysql-innodb-cluster-sandbox-deployment.html

<div class="info" v-if="addressList.length"> <div v-for="(item) in addressList" :key="item.address_id"> <div class="info-content"> <span class="name">{{item.name}}</span> <span class="mobile">{{item.phone}}</span> </div> <div class="info-address"> {{item.province}} {{item.city}} {{item.region}} </div> </div> </div>报错:main.js:11 [Vue warn]: Property or method "addressList" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <PayIndex> at src/views/Pay/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:4482 warnNonPresent_1 @ vue.runtime.esm.js:5082 get @ vue.runtime.esm.js:5115 render @ index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/Pay/index.vue?vue&type=template&id=cd080b3e&scoped=true:30 Vue._render @ vue.runtime.esm.js:2649 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 init @ vue.runtime.esm.js:4277 merged @ vue.runtime.esm.js:4439 createComponent @ vue.runtime.esm.js:6264 createElm @ vue.runtime.esm.js:6226 createChildren @ vue.runtime.esm.js:6335 createElm @ vue.runtime.esm.js:6243 patch @ vue.runtime.esm.js:6706 Vue._update @ vue.runtime.esm.js:3669 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 init @ vue.runtime.esm.js:4277 createComponent @ vue.runtime.esm.js:6264 createElm @ vue.runtime.esm.js:6226 patch @ vue.runtime.esm.js:6737 Vue._update @ vue.runtime.esm.js:3669 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 eval @ main.js:11 ./src/main.js @ app.js:792 __webpack_require__ @ app.js:1482 (匿名) @ app.js:2593 __webpack_require__.O @ app.js:1524 (匿名) @ app.js:2594 (匿名) @ app.js:2596 显示另外 33 个框架 收起 main.js:11 [Vue warn]: Error in render: "TypeError: Cannot read properties of undefined (reading 'length')" found in ---> <PayIndex> at src/views/Pay/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:4482 logError @ vue.runtime.esm.js:2985 globalHandleError @ vue.runtime.esm.js:2981 handleError @ vue.runtime.esm.js:2949 Vue._render @ vue.runtime.esm.js:2651 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 init @ vue.runtime.esm.js:4277 merged @ vue.runtime.esm.js:4439 createComponent @ vue.runtime.esm.js:6264 createElm @ vue.runtime.esm.js:6226 createChildren @ vue.runtime.esm.js:6335 createElm @ vue.runtime.esm.js:6243 patch @ vue.runtime.esm.js:6706 Vue._update @ vue.runtime.esm.js:3669 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 init @ vue.runtime.esm.js:4277 createComponent @ vue.runtime.esm.js:6264 createElm @ vue.runtime.esm.js:6226 patch @ vue.runtime.esm.js:6737 Vue._update @ vue.runtime.esm.js:3669 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 eval @ main.js:11 ./src/main.js @ app.js:792 __webpack_require__ @ app.js:1482 (匿名) @ app.js:2593 __webpack_require__.O @ app.js:1524 (匿名) @ app.js:2594 (匿名) @ app.js:2596 显示另外 33 个框架 收起 main.js:11 TypeError: Cannot read properties of undefined (reading 'length') at Proxy.render (index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/Pay/index.vue?vue&type=template&id=cd080b3e&scoped=true:30:28) at Vue._render (vue.runtime.esm.js:2649:22) at VueComponent.updateComponent (vue.runtime.esm.js:3769:21) at Watcher.get (vue.runtime.esm.js:3363:27) at new Watcher (vue.runtime.esm.js:3353:47) at mountComponent (vue.runtime.esm.js:3790:3) at Vue.$mount (vue.runtime.esm.js:8323:10) at init (vue.runtime.esm.js:4277:13) at merged (vue.runtime.esm.js:4439:5) at createComponent (vue.runtime.esm.js:6264:9) logError @ vue.runtime.esm.js:2989 globalHandleError @ vue.runtime.esm.js:2981 handleError @ vue.runtime.esm.js:2949 Vue._render @ vue.runtime.esm.js:2651 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 init @ vue.runtime.esm.js:4277 merged @ vue.runtime.esm.js:4439 createComponent @ vue.runtime.esm.js:6264 createElm @ vue.runtime.esm.js:6226 createChildren @ vue.runtime.esm.js:6335 createElm @ vue.runtime.esm.js:6243 patch @ vue.runtime.esm.js:6706 Vue._update @ vue.runtime.esm.js:3669 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 init @ vue.runtime.esm.js:4277 createComponent @ vue.runtime.esm.js:6264 createElm @ vue.runtime.esm.js:6226 patch @ vue.runtime.esm.js:6737 Vue._update @ vue.runtime.esm.js:3669 updateComponent @ vue.runtime.esm.js:3769 Watcher.get @ vue.runtime.esm.js:3363 Watcher @ vue.runtime.esm.js:3353 mountComponent @ vue.runtime.esm.js:3790 Vue.$mount @ vue.runtime.esm.js:8323 eval @ main.js:11 ./src/main.js @ app.js:792 __webpack_require__ @ app.js:1482 (匿名) @ app.js:2593 __webpack_require__.O @ app.js:1524 (匿名) @ app.js:2594 (匿名) @ app.js:2596 显示另外 32 个框架 收起
最新发布
07-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值