You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting social-app-template with a local node, there is a race condition with the startup of the gateway services and the frequency node. If the services come up before the node, the provider seed phrase validation fails.
Steps to Reproduce
Execute start.sh
Accept all of the defaults
Check docker logs to see that one or more of the workers have failed to verify the seed phrase and exited.
Solution
Use the gateway start.sh as a model and port over the startup logic such that the frequency container is started and setup before the rest of the gateway containers are started.
The text was updated successfully, but these errors were encountered:
I don't think the issue is that Frequency isn't running. docker-compose.local-frequency.yaml includes a dependency on frequency: service_healthy for all Gateway services.
The issue, I think, is that although the chain is up, the provider hasn't been provisioned yet when the Gateway services come up, so seed phrase validation fails.
Potential solution:
Define a custom HEALTHCHECK command for the local frequency service that runs a curl jsonrpc query to get the provider info for provider 1; when that returns with the the expected value, the service is healthy.
I can confirm @JoeCap08055's assumption here. I've run into a similar issue when integrating Gateway Services with Custodial Wallet app. I had to manually create a provider on a brand new chain for the error to go away. This is the error I was running into:
Gateway has fixed this issue, see the following code snippet.
start.sh on gateway has been updated to use functions, which allows for a test framework, bats, to run some tests in CI.
The function relevant to fixing this startup race condition is in the function start_services(). The main difference being that the frequency container is started and runs the local_setup_tasks before the rest of the gateway service containers are started. This solves the issue that the gateway containers cannot validate the Provider key.
This is not an issue when configured to run on Testnet.
Uh oh!
There was an error while loading. Please reload this page.
Description
When starting social-app-template with a local node, there is a race condition with the startup of the gateway services and the frequency node. If the services come up before the node, the provider seed phrase validation fails.
Steps to Reproduce
start.sh
Solution
start.sh
as a model and port over the startup logic such that the frequency container is started and setup before the rest of the gateway containers are started.The text was updated successfully, but these errors were encountered: