Coder Social home page Coder Social logo

Comments (3)

timmattison avatar timmattison commented on May 28, 2024

Likely this doesn’t work because Docker gets the AWS credentials via the environment but doesn’t pass them to sub processes now.

Possible solutions:

  • copy .aws directory to container
  • bind .aws directory to container
  • copy environment variable credentials to sub process environment

from aws-greengrass-provisioner.

timmattison avatar timmattison commented on May 28, 2024

Error message looks like this:

master: Pulling from timmattison/aws-greengrass-provisioner
Digest: sha256:07c377ef87195da655f90a686d4e2398af22d51e5f91ff288e9afb0ec8f24e8f
Status: Image is up to date for timmattison/aws-greengrass-provisioner:master
[INFO] BasicGroupTestHelper: Downloading Device Tester to [/tmp/devicetester336027927627193391zip] ...
[INFO] BasicGroupTestHelper: Extracting Device Tester to [/tmp/d7a8cb46-259a-4de7-ad7a-6e1813e151894481856563164363207] ...
[INFO] BasicGroupTestHelper: Download and extraction of Device Tester is complete
[INFO] BasicIoHelper: Connected to device under test
[INFO] BasicGroupTestHelper: Not cleaning or generating the config in /var/lib/GGQ
[INFO] BasicGroupTestHelper: Stopping Greengrass if it is running
[INFO] Starting test                 | ggc_user_group_check_test_1
Exception in thread "Thread-4" java.lang.RuntimeException: No match for log message [time="2019-04-08T13:36:39Z" level=error msg=aws credentials not found: EnvAccessKeyNotFound: AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment executionId=5687202b-5a03-11e9-bb78-0242ac110002 suiteId=GGQ groupId=ggcdependencies testCaseId=ggc_user_group_check_test_1 deviceId=DUT]
        at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicDeviceTesterHelper.getLogMessageType(BasicDeviceTesterHelper.java:78)
        at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicDeviceTesterHelper.log(BasicDeviceTesterHelper.java:86)
        at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicGroupTestHelper.handleLogMessage(BasicGroupTestHelper.java:402)
        at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicGroupTestHelper.lambda$execute$2(BasicGroupTestHelper.java:257)
        at java.util.Iterator.forEachRemaining(Iterator.java:116)
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
        at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicProcessHelper.lambda$innerGetOutputFromProcess$2(BasicProcessHelper.java:60)
        at java.lang.Thread.run(Thread.java:748)
[INFO] BasicGroupTestHelper: Test duration: [PT2.352S]
[INFO] BasicGroupTestHelper: Tests executed:
[INFO] BasicGroupTestHelper: Tests passed:
[WARN] BasicGroupTestHelper: Tests failed:

from aws-greengrass-provisioner.

timmattison avatar timmattison commented on May 28, 2024

Fixed in #74

from aws-greengrass-provisioner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.