-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.11.2 fgt-workspace apihub fails frequently with "Parent process did not answer. Shutting down..." #126
Comments
@asaccool created a psk-release 2f1d49f168cdad784008a610b4c48cea311b755c with ping-pong disabled. |
v0.11.3 does not seem to work. Participants do not start: ...
wallet Loaded
App dashboard load with credentials {
"name": {
"secret": "PDM the Wholesaler",
"public": true
},
"id": {
"secret": "WHS000002",
"public": true
},
"email": {
"secret": "[email protected]",
"public": true
},
"address": {
"public": true,
"secret": "Lisbon, Portugal"
},
"pass": {
"secret": "********"
},
"passrepeat": {
"secret": "********"
}
}.
SSI: [object Object]
Could not initialize base manager Error: Could not get Identity(Path </participant/id/info> not found.)
/fgt-workspace/fgt-api/utils.js:130
throw new Error(err);
^
Error: Error: Could not get Identity(Path </participant/id/info> not found.)
at /fgt-workspace/fgt-api/utils.js:130:27
at /fgt-workspace/fgt-dsu-wizard/managers/ParticipantManager.js:29:24
at /fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:94:32
at ParticipantManager._err (/fgt-workspace/pdm-dsu-toolkit/services/utils.js:185:38)
at /fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:248:28
at ParticipantManager._err (/fgt-workspace/pdm-dsu-toolkit/services/utils.js:185:38)
at /fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:240:24
at ParticipantManager._err (/fgt-workspace/pdm-dsu-toolkit/services/utils.js:185:38)
at /fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:401:29
at /fgt-workspace/bin/environment/utils.js:102:23
at newFn (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:44557:20)
at _readFile (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:774:49)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:1360:17
at waitIfDSUIsRefreshing (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:446:20)
at Archive.readFile (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:1349:9)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:1368:36
at newFn (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:44557:20)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:2122:32
at Object.Manifest.manifestHandler.getArchiveForPath (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:7681:9)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:2115:25
at getManifest (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:1280:20)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:2105:13
at waitIfDSUIsRefreshing (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:446:20)
at Archive.getArchiveForPath (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:2102:9)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:1362:22
at waitIfDSUIsRefreshing (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:446:20)
at Archive.readFile (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:1349:9)
at Archive.getObject (/fgt-workspace/bin/environment/utils.js:100:13)
at ParticipantManager.getIdentity (/fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:399:25)
at getIdentity (/fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:239:18)
at /fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:247:19
at /fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:234:17
at Archive.dsu.enableDirectAccess (/fgt-workspace/bin/environment/utils.js:89:44)
at enableDirectAccess (/fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:232:29)
at ParticipantManager._initialize (/fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:245:20)
at initializer (/fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:90:18)
at new BaseManager (/fgt-workspace/pdm-dsu-toolkit/managers/BaseManager.js:103:20)
at new ParticipantManager (/fgt-workspace/fgt-dsu-wizard/managers/ParticipantManager.js:27:9)
at getParticipantManager (/fgt-workspace/fgt-dsu-wizard/managers/ParticipantManager.js:210:30)
at init (/fgt-workspace/fgt-api/utils.js:128:13)
at /fgt-workspace/fgt-api/utils.js:163:17
at /fgt-workspace/fgt-api/utils.js:116:9
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:29957:24
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:597:24
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:15971:17
at executeForSingleEntry (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:31660:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5) No previous errors noticed (so far...) |
Weird stuff... not even the basic OpenDSU APIs work well with this psk-release. fails on deriving an sRead SSI from the seedSSI: bash-5.1$ node createOneDSU.js
Logger not available, using console
Redefining require for node
seedSSI identifier: ssi:seed:traceability:WHS000001-WHS000001-2022-04-01T13:44:02.656Z:v0:v0
Data written succesfully! :)
KeySSI identifier: ssi:seed:traceability:exPvR5MEIOr4j6aN6HjNA9OXk+CcfQiUSn5d3ox4dXY=::v0
/fgt-workspace/privatesky/psknode/bundles/openDSU.js:15323
callback(undefined, sReadSSI);
^
TypeError: callback is not a function
at SeedSSI.self.derive (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:15323:9)
at /fgt-workspace/tests/privateksy/createOneDSU.js:58:53
at ArchiveConfigurator.getKeySSI (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:2569:20)
at Archive.getKeySSIAsObject (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:633:29)
at /fgt-workspace/tests/privateksy/createOneDSU.js:52:29
at newFn (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:44557:20)
at endAnchoring (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:3725:24)
at /fgt-workspace/privatesky/psknode/bundles/openDSU.js:4318:29
at LatestVersionStrategy.afterBrickMapAnchoring (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:6285:9)
at updateAnchorCallback (/fgt-workspace/privatesky/psknode/bundles/openDSU.js:4313:34)
... |
In the previous commit 035d6d8 , a patch file is applied (only in the fgt-workspace) to the apihub code. psk-release is set back at be8027202d04032bed93fb8de74253d61ec6a3b9 |
After running for around 8 hours (performing shippings and sales, which usually involves concurrent DSU updates, but on distinct DSUs), the apihub restart problem did not appear.I guess that the pingpong patch above is good enough for FGT Stage 5 testing. Thank you @asaccool (I don't really understand well why we have not bumped into this issue before, but at least for now, it seems to work, on v0.11.4). |
One example
While apihub goes down, other "clients" will fail with "Bad Gateway".
Does seem to happen on TST (with simulated blockchain), but not on DEV (with hlf anchoring for fgt-workspace).
The text was updated successfully, but these errors were encountered: