- Newest
- Most votes
- Most comments
Thank you for that. Java 8 update 242 does not support ALPN which is needed to use port 443 as the data plane port. Please try switching to using port 8443 or updating your Java installation.
Edited by: MichaelDombrowski-AWS on Mar 9, 2021 10:47 AM
Can you please provide the configuration which you are using on the device from the effectiveConfig.yml file?
You will need to setup the greengrassDataPlanePort to be 443, see https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration.
Also be sure that you are using version 2.0.4 of the Greengrass nucleus which is necessary for this configuration to have any effect.
Please also see: https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-alpn-network-proxy for full instructions on setting up behind a proxy.
Cheers,
Michael
Hi Michael,
yes, both topics are fulfilled. Please find the effectiveConfig.yaml below.
Is maybe anything else wrong in this config?
Thank you!
Lukas
[root@xxxx v2]$ cat config/effectiveConfig.yaml
---
system:
certificateFilePath: "/greengrass/v2/device.pem.crt"
privateKeyPath: "/greengrass/v2/private.pem.key"
rootCaPath: "/greengrass/v2/AmazonRootCA1.pem"
rootpath: "/greengrass/v2"
thingName: "xxxxxx"
services:
aws.greengrass.Nucleus:
componentType: "NUCLEUS"
configuration:
awsRegion: "eu-west-1"
componentStoreMaxSizeBytes: 10000000000
deploymentPollingFrequencySeconds: 15
envStage: "prod"
greengrassDataPlanePort: 443
iotCredEndpoint: "c15xxxxrfznux.credentials.iot.eu-west-1.amazonaws.com"
iotDataEndpoint: "a20xxxxxfvowz-ats.iot.eu-west-1.amazonaws.com"
iotRoleAlias: "GreengrassCoreTokenExchangeRoleAlias"
logging: {}
mqtt:
port: 443
spooler: {}
networkProxy:
noProxyAddresses: "http://192.168.0.1"
proxy:
password: "xxxx"
url: "http://10.xx.xx.xx:8080/"
username: "xxxx"
platformOverride: {}
runWithDefault:
posixUser: "ggc_user:ggc_group"
telemetry: {}
dependencies: []
version: "2.0.4"
DeploymentService:
ComponentToGroups:
aws.greengrass.Nucleus: {}
dependencies: []
GroupToRootComponents:
thinggroup/xxxxxx: {}
runtime:
ProcessedDeployments: {}
version: "0.0.0"
FleetStatusService:
configuration:
periodicUpdateIntervalSec: 86400
dependencies: []
lastPeriodicUpdateTime: 1615209158926
sequenceNumber: 3
version: "0.0.0"
main:
dependencies:
- "FleetStatusService:HARD"
- "DeploymentService:HARD"
- "TelemetryAgent:HARD"
- "aws.greengrass.Nucleus"
- "UpdateSystemPolicyService:HARD"
lifecycle: {}
TelemetryAgent:
dependencies: []
runtime:
lastPeriodicAggregationMetricsTime: 1615216359045
lastPeriodicPublishMetricsTime: 1615209158989
version: "0.0.0"
UpdateSystemPolicyService:
dependencies: []
version: "0.0.0"
Edited by: lukas-o on Mar 9, 2021 3:08 AM
Please check your private messages, I've sent you instructions for providing your logs to me.
Please also try setting the dataplane port back to 8443.
What is the output of java -version?
Thanks,
Michael
Hi Michael,
the java output is:
[root@xxxx v2]$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
Thank you so much, Michael!
Upgrade to Java 11 and to the newest AWS Greengrass Version 2.0.5 solved my issue.
Best regards,
Lukas
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago