@constellation-network/node-pilot 0.15.0-intnet → 0.16.0-intnet

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/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @constellation-network/node-pilot
21
21
  $ cpilot COMMAND
22
22
  running command...
23
23
  $ cpilot (--version|-v)
24
- @constellation-network/node-pilot/0.15.0-intnet darwin-arm64 node-v22.15.0
24
+ @constellation-network/node-pilot/0.16.0-intnet darwin-arm64 node-v22.15.0
25
25
  $ cpilot --help [COMMAND]
26
26
  USAGE
27
27
  $ cpilot COMMAND
@@ -72,7 +72,7 @@ EXAMPLES
72
72
  $ cpilot clean
73
73
  ```
74
74
 
75
- _See code: [src/commands/clean.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/clean.ts)_
75
+ _See code: [src/commands/clean.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/clean.ts)_
76
76
 
77
77
  ## `cpilot config`
78
78
 
@@ -89,7 +89,7 @@ EXAMPLES
89
89
  $ cpilot config
90
90
  ```
91
91
 
92
- _See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/config.ts)_
92
+ _See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/config.ts)_
93
93
 
94
94
  ## `cpilot config get [NAME]`
95
95
 
@@ -113,7 +113,7 @@ EXAMPLES
113
113
  $ cpilot config get gl0:CL_PUBLIC_HTTP_PORT
114
114
  ```
115
115
 
116
- _See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/config/get.ts)_
116
+ _See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/config/get.ts)_
117
117
 
118
118
  ## `cpilot config set NAME VALUE`
119
119
 
@@ -136,7 +136,7 @@ EXAMPLES
136
136
  $ cpilot config set gl0:CL_PUBLIC_HTTP_PORT 9000
137
137
  ```
138
138
 
139
- _See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/config/set.ts)_
139
+ _See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/config/set.ts)_
140
140
 
141
141
  ## `cpilot help [COMMAND]`
142
142
 
@@ -173,7 +173,7 @@ EXAMPLES
173
173
  $ cpilot info
174
174
  ```
175
175
 
176
- _See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/info.ts)_
176
+ _See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/info.ts)_
177
177
 
178
178
  ## `cpilot logs LAYER`
179
179
 
@@ -199,7 +199,7 @@ EXAMPLES
199
199
  $ cpilot logs
200
200
  ```
201
201
 
202
- _See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/logs.ts)_
202
+ _See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/logs.ts)_
203
203
 
204
204
  ## `cpilot restart [LAYER]`
205
205
 
@@ -227,7 +227,7 @@ EXAMPLES
227
227
  $ cpilot restart
228
228
  ```
229
229
 
230
- _See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/restart.ts)_
230
+ _See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/restart.ts)_
231
231
 
232
232
  ## `cpilot shutdown`
233
233
 
@@ -244,7 +244,7 @@ EXAMPLES
244
244
  $ cpilot shutdown
245
245
  ```
246
246
 
247
- _See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/shutdown.ts)_
247
+ _See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/shutdown.ts)_
248
248
 
249
249
  ## `cpilot status`
250
250
 
@@ -258,7 +258,7 @@ DESCRIPTION
258
258
  Display node status and configuration settings
259
259
  ```
260
260
 
261
- _See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/status.ts)_
261
+ _See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/status.ts)_
262
262
 
263
263
  ## `cpilot uninstall`
264
264
 
@@ -275,5 +275,5 @@ EXAMPLES
275
275
  $ cpilot uninstall
276
276
  ```
277
277
 
278
- _See code: [src/commands/uninstall.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.15.0-intnet/src/commands/uninstall.ts)_
278
+ _See code: [src/commands/uninstall.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.16.0-intnet/src/commands/uninstall.ts)_
279
279
  <!-- commandsstop -->
@@ -45,8 +45,9 @@ export const checkInitialSetup = {
45
45
  const usersWithPilot = [];
46
46
  for (const folder of userFolders) {
47
47
  const dirPath = path.join(homeFolder, folder, '.node-pilot');
48
+ const prefix = isLinux ? 'sudo ' : '';
48
49
  // eslint-disable-next-line no-await-in-loop
49
- const exists = await shellService.runCommandWithOutput(`sudo test -d "${dirPath}" && echo 1 || echo 0`);
50
+ const exists = await shellService.runCommandWithOutput(`${prefix}test -d "${dirPath}" && echo 1 || echo 0`);
50
51
  if (exists === '1')
51
52
  usersWithPilot.push(folder);
52
53
  }
@@ -26,6 +26,7 @@ export const checkNetwork = {
26
26
  if (!isDockerRunning && found) {
27
27
  clm.warn('Node ID already exists in the cluster.');
28
28
  clm.warn('You need to shutdown your node from a previous installation before continuing.');
29
+ clm.warn('If you recently left the cluster, you may need to wait for your Node Id to be cleared. ~1 minute');
29
30
  clm.error(`Or to change the node ID, configure the Key File: use ${chalk.cyan('cpilot config')}, and select ${chalk.cyan('Key File')}`);
30
31
  }
31
32
  // configStore.setProjectFlag('duplicateNodeIdChecked', true);
@@ -29,7 +29,7 @@ export const projectHelper = {
29
29
  }
30
30
  if (deleteJars) {
31
31
  // eslint-disable-next-line no-await-in-loop
32
- await shellService.runProjectCommand(`sudo rm -rf ${layer}/dist`);
32
+ await shellService.runProjectCommand(`sudo rm -rf dist`);
33
33
  }
34
34
  }
35
35
  clm.postStep('Cleanup complete');
@@ -110,7 +110,7 @@ export const statusTableHeader = [
110
110
  { color: 'white', formatter: formatState, headerColor: 'whiteBright', value: 'Cluster State', width: 16 },
111
111
  { color: 'white', formatter: formatCpu, headerColor: 'whiteBright', value: 'CPU Usage', width: 12 },
112
112
  { color: 'white', formatter: formatMem, headerColor: 'whiteBright', value: 'Mem Usage', width: 12 },
113
- { color: 'white', formatter: formatError, headerColor: 'whiteBright', value: 'Error', width: 22 },
113
+ { color: 'white', formatter: formatError, headerColor: 'whiteBright', value: 'Last Error', width: 22 },
114
114
  ];
115
115
  export const glHeader1 = [
116
116
  // { color: 'white', headerColor: 'whiteBright', value: 'Network' },
@@ -124,5 +124,5 @@ export const glHeader2 = [
124
124
  { color: 'white', formatter: formatState, headerColor: 'whiteBright', value: 'Cluster State', width: 22 },
125
125
  { color: 'white', formatter: formatCpu, headerColor: 'whiteBright', value: 'CPU Usage', width: 13 },
126
126
  { color: 'white', formatter: formatMem, headerColor: 'whiteBright', value: 'Mem Usage', width: 16 },
127
- { color: 'white', formatter: formatError, headerColor: 'whiteBright', value: 'Error', width: 22 },
127
+ { color: 'white', formatter: formatError, headerColor: 'whiteBright', value: 'Last Error', width: 22 },
128
128
  ];
@@ -8,7 +8,7 @@ export const systemdService = {
8
8
  async install() {
9
9
  const platform = os.platform();
10
10
  if (platform !== 'linux') {
11
- clm.warn('Node Pilot services can only be installed on Linux systems. Skipping systemd service installation.\n');
11
+ clm.warn('systemd services can only be installed on Linux systems. Skipping...\n');
12
12
  return;
13
13
  }
14
14
  const scriptFile = path.resolve(path.dirname(fileURLToPath(import.meta.url)), `../../scripts/install_services.sh`);
@@ -22,7 +22,7 @@ export const systemdService = {
22
22
  async uninstall() {
23
23
  const platform = os.platform();
24
24
  if (platform !== 'linux') {
25
- clm.warn('Node Pilot services can only be installed on Linux systems. Skipping systemd service uninstallation.\n');
25
+ clm.warn('systemd services can only be installed on Linux systems. Skipping...\n');
26
26
  }
27
27
  const scriptFile = path.resolve(path.dirname(fileURLToPath(import.meta.url)), `../../scripts/uninstall_services.sh`);
28
28
  if (!fs.existsSync(scriptFile)) {
@@ -363,5 +363,5 @@
363
363
  ]
364
364
  }
365
365
  },
366
- "version": "0.15.0-intnet"
366
+ "version": "0.16.0-intnet"
367
367
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@constellation-network/node-pilot",
3
3
  "description": "An easy deployment and monitoring tool for Constellation nodes.",
4
- "version": "0.15.0-intnet",
4
+ "version": "0.16.0-intnet",
5
5
  "author": "Frank Fox",
6
6
  "bin": {
7
7
  "cpilot": "bin/run.js"
@@ -39,7 +39,7 @@ COPY dist/gl0.jar /app/jars/gl0.jar
39
39
  #COPY ./health-check /health-check
40
40
  #RUN chmod +x /health-check/bin/run.sh
41
41
  #RUN chmod +x /health-check/bin/hydrate.sh
42
- RUN npm install -g "@constellation-network/node-pilot-health-check@0.0.29"
42
+ RUN npm install -g "@constellation-network/node-pilot-health-check@0.0.31"
43
43
 
44
44
  # Add entrypoint
45
45
  COPY ./entrypoint.sh /app/entrypoint.sh
@@ -218,8 +218,8 @@ check_curl() {
218
218
 
219
219
  # Run all checks
220
220
  echo "🔍 Checking and installing required dependencies..."
221
- check_java
222
- check_java_home
221
+ #check_java
222
+ #check_java_home
223
223
  check_jq
224
224
  check_wget
225
225
  check_curl