Browse Source

add mongo error

master
zeus 3 years ago
parent
commit
a83300c7ad
  1. 2
      dist/index.html
  2. 2
      dist/js/app.cfda0929.js
  3. 1
      dist/js/app.cfda0929.js.map
  4. 2
      dist/js/app.dcbd1a1a.js
  5. 1
      dist/js/app.dcbd1a1a.js.map
  6. 4
      src-local/llo/new.js
  7. 3
      src/components/mynetwork/availablemicroservices.vue
  8. 36
      src/components/mynetwork/mytable.vue

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.cfda0929.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.cfda0929.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.dcbd1a1a.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.dcbd1a1a.js"></script></body></html>

2
dist/js/app.cfda0929.js

File diff suppressed because one or more lines are too long

1
dist/js/app.cfda0929.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.dcbd1a1a.js

File diff suppressed because one or more lines are too long

1
dist/js/app.dcbd1a1a.js.map

File diff suppressed because one or more lines are too long

4
src-local/llo/new.js

@ -2375,12 +2375,16 @@ TEST=${service}
child[0].stdout.on('data', function (data) { child[0].stdout.on('data', function (data) {
var n = {} var n = {}
n.data = data.toString() n.data = data.toString()
n.cwdpath = process.cwd()
n.service = service
io.emit('message_out', n); io.emit('message_out', n);
}); });
child[0].stderr.on('data', function (data) { child[0].stderr.on('data', function (data) {
var n = {} var n = {}
n.data = data.toString() n.data = data.toString()
n.cwdpath = process.cwd()
n.service = service
io.emit('message_err', n); io.emit('message_err', n);
}); });

3
src/components/mynetwork/availablemicroservices.vue

@ -650,7 +650,6 @@ export default {
async setHybridoptions(){ async setHybridoptions(){
//console.log(JSON.stringify(this.hybridoptions)) //console.log(JSON.stringify(this.hybridoptions))
//console.log('RUN 1 '+ JSON.stringify(data.swarmlabname))
// run on mytable.vue // run on mytable.vue
let value = {} let value = {}
value.swarmlabname = this.hybridoptions.swarmlabname value.swarmlabname = this.hybridoptions.swarmlabname
@ -663,6 +662,8 @@ export default {
//Vue.nextTick( () => this.$refs.vuetable.refresh()) //Vue.nextTick( () => this.$refs.vuetable.refresh())
this.refreshVuetable() this.refreshVuetable()
//console.log('RUN 1 '+ JSON.stringify(this.hybridoptions))
}, },
async refreshVuetableall() { async refreshVuetableall() {
this.$nextTick(()=>{ this.$nextTick(()=>{

36
src/components/mynetwork/mytable.vue

@ -1074,6 +1074,7 @@ info +='This permits the docker user on the local machine to connect to X window
}, },
async message_out(val) { async message_out(val) {
console.log(" socket out "+JSON.stringify(val)) console.log(" socket out "+JSON.stringify(val))
//search for error in mongoserver must run sudo chown
this.$root.$emit('hybrid_log_in',val) this.$root.$emit('hybrid_log_in',val)
// refresh adhocview.vue on console await // refresh adhocview.vue on console await
this.$root.$emit('SERVER_hybrid_table_start') this.$root.$emit('SERVER_hybrid_table_start')
@ -1081,7 +1082,40 @@ info +='This permits the docker user on the local machine to connect to X window
this.hybridshowdata = {} this.hybridshowdata = {}
}, },
async message_err(val) { async message_err(val) {
//console.log(" socket err "+JSON.stringify(val)) console.log(" socket err "+JSON.stringify(val))
var extenderror = new RegExp('error checking context');
if(extenderror.test(val.data)){
var cwdpath = val.cwdpath
var cwdservice = val.service
//console.log(" path "+JSON.stringify(cwdpath))
//console.log(" path-------- "+JSON.stringify(val))
var errorrun = "<b>error checking context:</b> 'no permission to read from '... ./src-local/instance/microservice-mongoserver/microservice-mongoserver/data/WiredTiger'"
var info=`<h5><b>You might see an error message:</b></h5><br>
<samp> ${errorrun} </samp>
<br>
<br>
<b>In this case open Open a terminal and Run:</b>
<br>
<br> `
info +='<p class="text-success">'
info += 'sudo chown -R $USER.$USER '+cwdpath + '/instance/'+cwdservice+'/'+cwdservice+'/data'
info +='</p>'
info +='<br> <br> <b>and try again</b> <br>'
this.$swal({
type: 'info',
html: info,
icon:'info',
showCloseButton: true,
showLoaderOnConfirm: false,
allowOutsideClick: false,
cancelButtonText: 'No, cancel!',
showCancelButton: false,
showLoaderOnConfirm: false,
reverseButtons: true,
focusCancel: true,
})
}
this.$root.$emit('hybrid_log_in',val) this.$root.$emit('hybrid_log_in',val)
}, },
async message_close(val) { async message_close(val) {

Loading…
Cancel
Save