Skip to content

Offline Timeout happening? #1775

@wills721

Description

@wills721

Describe the bug
I am confused about an error. I have GG configured for OffLine. My Nuc config is below. My assumption is that I should NEVER see timeouts if GG is configured for OffLine? However, I am seeing Timeout exceptions. I am not using the Moquette broker as per documentation I do not seem to need this if I simply configure Nuc as shown below. This seems contradictory? Is this a bug or is this mis configured?

Nuc Config:

 "components": {
   "aws.greengrass.Cli": {
      "componentVersion": "2.16.0"
    },
    "aws.greengrass.DiskSpooler": {
      "componentVersion": "1.0.7"
    },
      "aws.greengrass.Nucleus": {
      "componentVersion": "2.16.1",
      "configurationUpdate": {
        "merge": "{ \"logging\": {\"level\": \"WARN\", \"fileSizeLimit\": \"1MB\"}, \"deploymentPollingFrequencySeconds\": \"60\", \"fleetStatus\": {\"periodicStatusPublishIntervalSeconds\":0},  \"telemetry\": {\"enabled\": false }, \"mqtt\": { \"maxInFlightPublishes\": 5, \"keepAlive\": 300, \"maxQueuedMessages\": 100, \"keepAliveTimeoutMs\": 300000, \"pingTimeoutMs\": 60000, \"operationTimeoutMs\": 60000, \"port\": 8883, \"maxPublishRetry\": 5, \"spooler\": { \"storageType\": \"Disk\", \"pluginName\": \"aws.greengrass.DiskSpooler\", \"maxSizeInBytes\": 2621440 } } }" } },
     "aws.greengrass.TokenExchangeService": {
      "componentVersion": "2.0.3",     
      "configurationUpdate": {
        "merge": "{ \"port\": 2020, \"credentialRetryInSec\": {\"clientError\": 15, \"serverError\": 30, \"unknownError\": 45} }"
      }

    },
    "com.thio.coredevice.thio-poller-common": {
      "componentVersion": "${CUSTOM_COMPONENT_VERSION}"
    },
    "com.thio.coredevice.thio-manage-common": {
      "componentVersion": "${MANAGE_COMPONENT_VERSION}"
    },
    "com.thio.coredevice.thio-printer-common": {
      "componentVersion": "${PRINTER_COMPONENT_VERSION}"
    }
  },
  "deploymentPolicies": {
    "componentUpdatePolicy": {
      "action": "NOTIFY_COMPONENTS",
      "timeoutInSeconds": 30
    },
    "configurationValidationPolicy": {
      "timeoutInSeconds": 60
    },
    "failureHandlingPolicy": "ROLLBACK"
  }
}

Exception:
> File "/var/snap/thio/x1/greengrass/v2/packages/artifacts-unarchived/com.thio.coredevice.thio-poller-common/1.0.199/thio_bp/thioglobals.py", line 1079, in global_publish_binary_message_to_topic
    future.result(timeout=retry_interval) # 2s timeout
    │      │              └ 4
    │      └ <function Future.result at 0xffffb267bf60>
    └ <Future at 0xffffac99c860 state=running>

  File "/snap/thio/x1/usr/lib/python3.12/concurrent/futures/_base.py", line 458, in result
    raise TimeoutError()
          └ <class 'TimeoutError'>

TimeoutError

To Reproduce
Test offline

Expected behavior
Timeout exceptions should NEVER happen?

Actual behavior
Timeouts are happening

Environment

  • OS: Ubuntu Core 24
  • JDK version:
  • Nucleus version: 2.16.1

Additional context
Add any other context about the problem here.

E.g. what is the impact of the bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNeeds eyeballs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions