pinokiod 3.15.7 → 3.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/kernel/index.js CHANGED
@@ -566,6 +566,7 @@ class Kernel {
566
566
  process.kill(process.pid, "SIGTERM")
567
567
  }
568
568
  async init(options) {
569
+ console.log("Kernel.init", new Error().stack)
569
570
 
570
571
  let home = this.store.get("home")
571
572
 
package/kernel/procs.js CHANGED
@@ -16,7 +16,7 @@ class Procs {
16
16
  return this.cache[localAddress]
17
17
  }
18
18
  try {
19
- await axios.head(`http://${localAddress}`, { timeout: 3000 });
19
+ await axios.head(`http://${localAddress}`, { timeout: 1000 });
20
20
  this.cache[localAddress] = true
21
21
  return true;
22
22
  } catch (err) {
@@ -159,7 +159,6 @@ class Procs {
159
159
  }
160
160
  }).then((result) => {
161
161
  this.port_running = false
162
- console.log(new Error().stack)
163
162
  console.log("Exec Finished", {result})
164
163
  })
165
164
  }
@@ -236,7 +235,6 @@ class Procs {
236
235
  }
237
236
  }).then((result) => {
238
237
  this.pid_running = false
239
- console.log(new Error().stack)
240
238
  console.log("Exec Finished", {result})
241
239
  })
242
240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.15.7",
3
+ "version": "3.15.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2773,6 +2773,7 @@ class Server {
2773
2773
  }))
2774
2774
 
2775
2775
  this.app.get("/check_router_up", ex(async (req, res) => {
2776
+ console.log("/check_router_up")
2776
2777
  // check if caddy is runnign properly
2777
2778
  // try https://pinokio.localhost
2778
2779
  // if it works, proceed
@@ -2814,6 +2815,8 @@ class Server {
2814
2815
  return
2815
2816
  }
2816
2817
 
2818
+ console.log("router is up")
2819
+
2817
2820
  res.json({ success: true })
2818
2821
  }))
2819
2822
 
@@ -3366,7 +3369,9 @@ class Server {
3366
3369
  bin: this.kernel.bin.preset("network"),
3367
3370
  })
3368
3371
 
3372
+ console.log({ requirements_pending, install_required })
3369
3373
  if (!requirements_pending && install_required) {
3374
+ console.log("redirect to /setup/network")
3370
3375
  res.redirect("/setup/network?callback=/network")
3371
3376
  return
3372
3377
  }