I've got a tool based on the functional tests that creates a community on one node, and then has a join function which is supposed to allow me to join the community I just created.

my expectation is that I can create the community on the "prime" node (literally just a status-backend node configured with no bootstrap config, as opposed to the rest of mine which have the prime node as the enode in their bootstrap configs)

and then go to any other node and join that community

Florin says we need to do a fetch before joining the community, I explained we have done so

Issues with waku store

Steps:

  1. Create Kubernetes namespace and deploy main manifests (Anvil deployment)

    wings:status-go-test/ (main) $ kubectl create ns status-go-test wings:status-go-test/ (main) $ ./manifests/deploy.sh

  2. Deploy, then destroy the status-backend container created as that is just for testing

  3. Deploy Prime/Alpha node (bootstrap node)

    wings:status-go-test/ (mainβœ—) $ kubectl apply -f scenarios/subscription/relay/status-go-configmap.yaml; kubectl apply -f scenarios/subscription/relay/status-go-init-configmap.yaml; kubectl apply -f scenarios/subscription/relay/status-backend-prime.yml

  4. Port forward port 3333 to status-backend on Prime/Alpha node

  5. Create a community


wings:status-go-test/ (mainβœ—) $ python3 main.py                                                                                    [16:33:50]
Running tests on localhost:3333
Initializing status-go
Initialization Response: 200, {"accounts":null,"centralizedMetricsInfo":{"enabled":false,"userConfirmed":false}}
Restoring account and logging in
Restore Account Response: 200, {"error":""}

=== Test Menu ===
1. Test Wallet RPC Calls
2. Test Wallet Transaction Calls
3. Test Accounts
4. Test App General
5. Test Waku RPC
6. Test Profile
7. Test Messenger
8. Test Eth Client
9. Test Wallet Activity
10. Test Settings
11. Create Community
12. Join Community
13. Create and Join Community
q. Quit
Please select an option: 13

πŸƒ Running Create and Join Community test...

πŸ”‘ Initializing and logging in...
Initialization Response: 200, {"accounts":[{"name":"Mr_Meeseeks","timestamp":1740674157,"identicon":"","colorHash":[[3,17],[2,30],[2,27],[4,2],[2,23],[3,19],[4,29],[5,17],[2,10],[5,21],[5,31]],"colorId":1,"customizationColor":"blue","keycard-pairing":"","key-uid":"0x7e77ee24a7266ac6b2e482fd2778b9671bef4b5418b37e318b6b466c23773b81","images":null,"kdfIterations":256000,"hasAcceptedTerms":true}],"centralizedMetricsInfo":{"enabled":false,"userConfirmed":false}}
Restore Account Response: 200, {"error":""}

πŸ“ Creating community: test_community_iZmTxJWhhb

πŸ“¨ Got community ID: 0x030b1afcff39b2c2259e73459ccaaa105860f62a8a8419ccba81cab8dd0c010787

πŸ”‘ Initializing and logging in...
Initialization Response: 200, {"accounts":[{"name":"Mr_Meeseeks","timestamp":1740674157,"identicon":"","colorHash":[[3,17],[2,30],[2,27],[4,2],[2,23],[3,19],[4,29],[5,17],[2,10],[5,21],[5,31]],"colorId":1,"customizationColor":"blue","keycard-pairing":"","key-uid":"0x7e77ee24a7266ac6b2e482fd2778b9671bef4b5418b37e318b6b466c23773b81","images":null,"kdfIterations":256000,"hasAcceptedTerms":true}],"centralizedMetricsInfo":{"enabled":false,"userConfirmed":false}}
Restore Account Response: 200, {"error":""}

πŸ“ Using chat public key: 0x04b0845dbe5aac196a2c1606fe3199e5ec9b2bd09a5bd801e478409544745bf6898bad70ee31d6c3061a86101a087bb605ce3c88292888221c992a17e8d6e40eaf

πŸ” Fetching community details...

πŸ“ Community details: {'jsonrpc': '2.0', 'id': 1, 'result': {'id': '0x030b1afcff39b2c2259e73459ccaaa105860f62a8a8419ccba81cab8dd0c010787', 'memberRole': 1, 'isControlNode': True, 'verified': False, 'joined': True, 'joinedAt': 1740674169, 'spectated': False, 'requestedAccessAt': 0, 'name': 'test_community_iZmTxJWhhb', 'description': 'Test community', 'introMessage': '', 'outroMessage': '', 'tags': [], 'chats': {'b2c4e62f-7588-4b85-8a6c-f12bcd652eca': {'id': 'b2c4e62f-7588-4b85-8a6c-f12bcd652eca', 'name': 'general', 'color': '#000000', 'emoji': '', 'description': 'General channel for the community', 'members': None, 'permissions': {'access': 1}, 'canPost': True, 'canView': True, 'canPostReactions': True, 'viewersCanPostReactions': False, 'position': 0, 'categoryID': '', 'tokenGated': False, 'hideIfPermissionsNotMet': False, 'missingEncryptionKey': False}}, 'categories': {}, 'images': None, 'permissions': {'access': 1}, 'members': {'0x04b0845dbe5aac196a2c1606fe3199e5ec9b2bd09a5bd801e478409544745bf6898bad70ee31d6c3061a86101a087bb605ce3c88292888221c992a17e8d6e40eaf': {'roles': [1]}}, 'canRequestAccess': False, 'canManageUsers': True, 'canDeleteMessageForEveryone': True, 'canJoin': False, 'color': '#000000', 'isMember': True, 'muted': False, 'muteTill': '0001-01-01T00:00:00Z', 'adminSettings': {'pinMessageAllMembersEnabled': False}, 'encrypted': False, 'pendingAndBannedMembers': {}, 'tokenPermissions': {}, 'communityTokensMetadata': None, 'activeMembersCount': 0, 'pubsubTopic': '', 'pubsubTopicKey': '', 'shard': None, 'lastOpenedAt': 0, 'clock': 1740674169310}}

🀝 Requesting to join community

❌ Create and Join Community test failed: Error requesting to join community: {'code': -32000, 'message': 'already joined'}
  1. Attempt to join community on prime node, to confirm we can

wings:status-go-test/ (mainβœ—) $ python3 main.py                                                                                    [16:37:16]
Running tests on localhost:3333
Initializing status-go
Initialization Response: 200, {"accounts":[{"name":"Mr_Meeseeks","timestamp":1740674157,"identicon":"","colorHash":[[3,17],[2,30],[2,27],[4,2],[2,23],[3,19],[4,29],[5,17],[2,10],[5,21],[5,31]],"colorId":1,"customizationColor":"blue","keycard-pairing":"","key-uid":"0x7e77ee24a7266ac6b2e482fd2778b9671bef4b5418b37e318b6b466c23773b81","images":null,"kdfIterations":256000,"hasAcceptedTerms":true}],"centralizedMetricsInfo":{"enabled":false,"userConfirmed":false}}
Restoring account and logging in
Restore Account Response: 200, {"error":""}

=== Test Menu ===
1. Test Wallet RPC Calls
2. Test Wallet Transaction Calls
3. Test Accounts
4. Test App General
5. Test Waku RPC
6. Test Profile
7. Test Messenger
8. Test Eth Client
9. Test Wallet Activity
10. Test Settings
11. Create Community
12. Join Community
13. Create and Join Community
q. Quit
Please select an option: 12

πŸƒ Running Join Community test...

Enter community ID: 0x030b1afcff39b2c2259e73459ccaaa105860f62a8a8419ccba81cab8dd0c010787

πŸ”‘ Initializing and logging in...
Initialization Response: 200, {"accounts":[{"name":"Mr_Meeseeks","timestamp":1740674157,"identicon":"","colorHash":[[3,17],[2,30],[2,27],[4,2],[2,23],[3,19],[4,29],[5,17],[2,10],[5,21],[5,31]],"colorId":1,"customizationColor":"blue","keycard-pairing":"","key-uid":"0x7e77ee24a7266ac6b2e482fd2778b9671bef4b5418b37e318b6b466c23773b81","images":null,"kdfIterations":256000,"hasAcceptedTerms":true}],"centralizedMetricsInfo":{"enabled":false,"userConfirmed":false}}
Restore Account Response: 200, {"error":""}

πŸ“ Using chat public key: 0x04b0845dbe5aac196a2c1606fe3199e5ec9b2bd09a5bd801e478409544745bf6898bad70ee31d6c3061a86101a087bb605ce3c88292888221c992a17e8d6e40eaf

πŸ” Fetching community details...

πŸ“ Community details: {'jsonrpc': '2.0', 'id': 1, 'result': {'id': '0x030b1afcff39b2c2259e73459ccaaa105860f62a8a8419ccba81cab8dd0c010787', 'memberRole': 1, 'isControlNode': True, 'verified': False, 'joined': True, 'joinedAt': 1740674169, 'spectated': False, 'requestedAccessAt': 0, 'name': 'test_community_iZmTxJWhhb', 'description': 'Test community', 'introMessage': '', 'outroMessage': '', 'tags': [], 'chats': {'b2c4e62f-7588-4b85-8a6c-f12bcd652eca': {'id': 'b2c4e62f-7588-4b85-8a6c-f12bcd652eca', 'name': 'general', 'color': '#000000', 'emoji': '', 'description': 'General channel for the community', 'members': None, 'permissions': {'access': 1}, 'canPost': True, 'canView': True, 'canPostReactions': True, 'viewersCanPostReactions': False, 'position': 0, 'categoryID': '', 'tokenGated': False, 'hideIfPermissionsNotMet': False, 'missingEncryptionKey': False}}, 'categories': {}, 'images': None, 'permissions': {'access': 1}, 'members': {'0x04b0845dbe5aac196a2c1606fe3199e5ec9b2bd09a5bd801e478409544745bf6898bad70ee31d6c3061a86101a087bb605ce3c88292888221c992a17e8d6e40eaf': {'roles': [1]}}, 'canRequestAccess': False, 'canManageUsers': True, 'canDeleteMessageForEveryone': True, 'canJoin': False, 'color': '#000000', 'isMember': True, 'muted': False, 'muteTill': '0001-01-01T00:00:00Z', 'adminSettings': {'pinMessageAllMembersEnabled': False}, 'encrypted': False, 'pendingAndBannedMembers': {}, 'tokenPermissions': {}, 'communityTokensMetadata': None, 'activeMembersCount': 0, 'pubsubTopic': '', 'pubsubTopicKey': '', 'shard': None, 'lastOpenedAt': 0, 'clock': 1740674169310}}

🀝 Requesting to join community

❌ Join Community test failed: Error requesting to join community: {'code': -32000, 'message': 'already joined'}
  1. Deploy new nodes
kubectl apply -f scenarios/subscription/relay/status-backend-deployment.yml

The static config is attached

example-static.json

Finally, this is the issue I'm actually having:

  1. Drop the port forward that we were using to access the Prime node, switch to the normal relay node: