querysub 0.625.0 → 0.627.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "querysub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.627.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
|
|
80
80
|
"pako": "^2.1.0",
|
|
81
81
|
"peggy": "^5.0.6",
|
|
82
|
-
"sliftutils": "^1.7.
|
|
82
|
+
"sliftutils": "^1.7.96",
|
|
83
83
|
"socket-function": "^1.2.30",
|
|
84
84
|
"terser": "^5.31.0",
|
|
85
85
|
"typenode": "^6.6.1",
|
|
@@ -201,7 +201,5 @@ export async function initArchives2() {
|
|
|
201
201
|
getArchives2PublicImmutable(""),
|
|
202
202
|
getArchives2Public(""),
|
|
203
203
|
];
|
|
204
|
-
|
|
205
|
-
await bucket.hasWriteAccess();
|
|
206
|
-
}
|
|
204
|
+
await Promise.allSettled(buckets.map(bucket => bucket.get("")));
|
|
207
205
|
}
|
|
@@ -15,7 +15,6 @@ const NOTIFY_GRACE_PERIOD = 10 * 1000;
|
|
|
15
15
|
// The emergency workflow from the services list page, as one command: commit/publish/push querysub, commit/push the service repo, then point every service config at the new commit with no overlap. Everything here writes to the service configs archives directly, which falls back to backblaze, so this works while the storage servers (and therefore the deploy pages) are down.
|
|
16
16
|
async function main() {
|
|
17
17
|
disablePathAuditer();
|
|
18
|
-
await Querysub.hostService("emergency-update");
|
|
19
18
|
|
|
20
19
|
let controller = new MachineServiceControllerBase();
|
|
21
20
|
let commitMessage = `emergency update ${formatDateTime(Date.now())}`;
|
|
@@ -76,6 +75,8 @@ async function main() {
|
|
|
76
75
|
console.log(green(`Emergency update complete: ${outdated.length} services updating to ${gitInfo.latestRef}`));
|
|
77
76
|
|
|
78
77
|
await initArchives2();
|
|
78
|
+
|
|
79
|
+
console.log(green(`Archives initialized`));
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
main().catch(logErrors).finally(() => process.exit());
|
package/src/storageSetup.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
process.env.PRODUCTION = "true";
|
|
2
|
+
import { magenta } from "socket-function/src/formatting/logColors";
|
|
2
3
|
import "./inject";
|
|
3
4
|
|
|
4
5
|
// The storage server entry point (see bin/storageserve.js): sets up the CLI args the sliftutils storage server expects, synchronizes our network trust list into its trust store, and runs its CLI.
|
|
@@ -8,7 +9,7 @@ async function main() {
|
|
|
8
9
|
let trustedMachineIds = await getTrustedMachineIds();
|
|
9
10
|
let { setTrustedMachines } = await import("sliftutils/storage/remoteStorage/serverConfig");
|
|
10
11
|
await setTrustedMachines({ account: "root", machineIds: trustedMachineIds });
|
|
11
|
-
console.log(`Synchronized ${trustedMachineIds.length} trusted machines`);
|
|
12
|
+
console.log(magenta(`Synchronized ${trustedMachineIds.length} trusted machines`));
|
|
12
13
|
|
|
13
14
|
await import("sliftutils/storage/remoteStorage/storageServerCli");
|
|
14
15
|
}
|