ubuntu20.04に下記AWSドキュメントを参考にGreengrass core v2をインストールしました
テストのためにコンポーネントをローカルデプロイしようとしましたが、エラーメッセージが表示されできませんでした
AWSの認証情報はbashでexportし登録済みですが、"Please run CLI as authorized user or group"と表示されてしまいます
何を認証すればいいのでしょうか?
Error message
ava.lang.RuntimeException: Unable to create ipc client
at com.aws.greengrass.cli.adapter.impl.NucleusAdapterIpcClientImpl.getIpcClient(NucleusAdapterIpcClientImpl.java:260)
at com.aws.greengrass.cli.adapter.impl.NucleusAdapterIpcClientImpl.createLocalDeployment(NucleusAdapterIpcClientImpl.java:172)
at com.aws.greengrass.cli.commands.DeploymentCommand.create(DeploymentCommand.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at picocli.CommandLine.executeUserObject(CommandLine.java:1952)
at picocli.CommandLine.access$1100(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
at picocli.CommandLine.execute(CommandLine.java:2058)
at com.aws.greengrass.cli.CLI.main(CLI.java:57)
Caused by: java.io.IOException: Not able to find auth information in directory: /greengrass/v2/cli_ipc_info. Please run CLI as authorized user or group.
at com.aws.greengrass.cli.adapter.impl.NucleusAdapterIpcClientImpl.loadCliIpcInfo(NucleusAdapterIpcClientImpl.java:320)
at com.aws.greengrass.cli.adapter.impl.NucleusAdapterIpcClientImpl.getIpcClient(NucleusAdapterIpcClientImpl.java:231)
... 14 more
Suppressed: java.nio.file.NoSuchFileException: /greengrass/v2/cli_ipc_info/user-0
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.Files.readAllBytes(Files.java:3152)
at com.aws.greengrass.cli.adapter.impl.NucleusAdapterIpcClientImpl.loadCliIpcInfo(NucleusAdapterIpcClientImpl.java:324)
... 15 more
Suppressed: java.nio.file.NoSuchFileException: /greengrass/v2/cli_ipc_info/group-0
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.Files.readAllBytes(Files.java:3152)
at com.aws.greengrass.cli.adapter.impl.NucleusAdapterIpcClientImpl.loadCliIpcInfo(NucleusAdapterIpcClientImpl.java:330)
動作環境
myuser@ubuntu2004:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
ubuntu@urologger:~$ java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
ubuntu@urologger:~$ sudo /greengrass/v2/bin/greengrass-cli --version
Greengrass CLI Version: 2.0.3