Giter VIP home page Giter VIP logo

amazon-chime-sdk-classroom-demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-chime-sdk-classroom-demo's Issues

The app crashes on 10.15.3 Catalina

After deploying the app using Cloud9, the app crashes with the following error:

Process:               ___app_name__ [25858]
Path:                  /Applications/___app_name__.app/Contents/MacOS/___app_name__
Identifier:            com.amazonaws.services.chime.sdk.classroom.demo.___app_name__
Version:               1.0.0 (1.0.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           ___app_name__ [25858]
User ID:               501

Date/Time:             2020-04-13 13:28:08.677 -0700
OS Version:            Mac OS X 10.15.3 (19D76)
Report Version:        12
Bridge OS Version:     4.2 (17P3050)
Anonymous UUID:        7EC3097D-4428-9C32-1409-D82CA5F7F039

Time Awake Since Boot: 1100 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: /Applications/___app_name__.app/Contents/MacOS/___app_name__
  Reason: no suitable image found.  Did find:
  /Applications/___app_name__.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short
  /Applications/___app_name__.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: stat() failed with errno=1

Binary Images:
       0x10b93a000 -        0x10b962fff +com.amazonaws.services.chime.sdk.classroom.demo.___app_name__ (1.0.0 - 1.0.0) <CD315A0C-AE44-3040-8C05-F56E5800F953> /Applications/___app_name__.app/Contents/MacOS/___app_name__
       0x10edb5000 -        0x10ee45cb7  dyld (733.๐Ÿ˜Ž <EBC07CB6-870A-3A8E-B48A-67F62EA161F3> /usr/lib/dyld
    0x7fff32a01000 -     0x7fff32ab8ff5  com.apple.MediaPlayer (1.0 - 1.0) <AD327638-B751-39B7-AE10-544E1E19D8BD> /System/Library/Frameworks/MediaPlayer.framework/Versions/A/MediaPlayer

Model: MacBookPro16,1, BootROM 1037.80.53.0.0 (iBridge: 17.16.13050.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 16 GB, SMC 
Graphics: kHW_IntelUHDGraphics630Item, Intel UHD Graphics 630, spdisplays_builtin
Graphics: kHW_AMDRadeonPro5300MItem, AMD Radeon Pro 5300M, spdisplays_pcie_device, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Dec  6 2019 11:24:25 version 9.112.4.0.32.5.41 FWID 01-69cdfdf2
Bluetooth: Version 7.0.3f5, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: Apple T2 Bus
USB Device: Composite Device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 51.7
Thunderbolt Bus: MacBook Pro, Apple Inc., 51.7

window size break in multiscreen or multidesktop.

window size break in multiscreen or multidesktop. if i move window primary screen to secondary screen windows size will break. and if i back in primary screen its open with default window height and width.
Note : only in macos

An error occurred (ValidationError) when calling the CreateChangeSet operation:

I run this:

$ script/deploy.js -r eu-west-1 -a aaa -s bbb -b ccc

And get:


[........]

Deploying serverless application
--> sam deploy --template-file ./build/packaged.yaml --stack-name fdsafds --parameter-overrides UseEventBridge=false --capabilities CAPABILITY_IAM --region eu-west-1

	Deploying with following values
	===============================
	Stack name                 : fdsafdsfds
	Region                     : eu-west-1
	Confirm changeset          : False
	Deployment s3 bucket       : None
	Capabilities               : ["CAPABILITY_IAM"]
	Parameter overrides        : {'UseEventBridge': 'false'}

Initiating deployment
=====================
ChimeSdkIndexLambda may not have authorization defined.
ChimeSdkCreateMeetingLambda may not have authorization defined.
ChimeSdkJoinLambda may not have authorization defined.
ChimeSdkEndLambda may not have authorization defined.
ChimeSdkAttendeeLambda may not have authorization defined.

Command sam failed with exit code 1 signal null
Error: Failed to create changeset for the stack: fdsafds, An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:eu-west-1:fdsafdsfds:stack/fdsafd is in ROLLBACK_COMPLETE state and can not be updated.

I figure that I've given all the neccessary permissions to a user.

Missing imports in ChimeSdkWrapper

Forked repo, ran yarn, found missing imports in ChimeSdkWrapper for:

import getBaseUrl from '../utils/getBaseUrl';
import getMessagingWssUrl from '../utils/getMessagingWssUrl';

Failed to upload the lms.zip to s3 bucket

Hi there :

The deployment failed when uploading the lms.zip to s3 bucket. It mentioned "release/lms.zip does not exist.
Please kindly advise. Thanks a lot !

... uploading Mac installer (this may take a while) ...
--> aws s3 cp --acl public-read release/lms.zip s3://chime-211259373114-releases/mac/lms.zip

Command aws failed with exit code 255 signal null

The user-provided path release/lms.zip does not exist.

Can it be run on a third-party VPS?

Can it be deployed and run on a VPS? Say, on a digitalocean or linode server.

If yes, how? Which example should I use and where is it described at all?

Cannot Deploy

When I try to deploy this app from my local machines its give me the error:
"Command aws failed with ENOENT"

I have aws cli and my keys configured on this mac and regularly deploy AWS lambda functions from it.

Mac Zip File Not Being Created

Same issue as #84
I am experiencing the same problem. The error is saying the mac zip file didn't get created, and I don't see the mac zip file in the release directory. So I postulate the problem is the mac zip file is not being created. Yet, I don't see an error either. This is on Cloud9. You might want to reopen this, because I think something is wonky with the deploy script.

... uploading Mac installer (this may take a while) ...
--> aws s3 cp --acl public-read release/human0.zip s3://human0-releases/mac/human0.zip

Command aws failed with exit code 255 signal null

The user-provided path release/human0.zip does not exist.

Originally posted by @rajleechaudry in #84 (comment)

403 Forbidden - Profile <AttendeeID> is not an attendee of the conference <MeetingID>

Hi team,

We are trying to use Chime SDK to create meetings in our application. Using a Lambda Serverless Nodejs API we expose 3 endpoints, create-meeting, create-attendee, end-meeting, we deployed the service in AWS us-east-1 and able to invoke the methods, see below the server-side implementation.

Create meeting:

    const chime = new Chime({ region: 'us-east-1' })
    chime.endpoint = new Endpoint('https://service.chime.aws.amazon.com/console')

    const request = {
        // Use a UUID for the client request token to ensure that any request retries
        // do not create multiple meetings.
        ClientRequestToken: uuidv4(),

        // Specify the media region (where the meeting is hosted).
        MediaRegion: 'us-east-1'
    }

    const meeting = await chime.createMeeting(request).promise()

    // Return the meeting and attendee responses. The client will use these
    // to join the meeting.
    return res.status(201).json({
        JoinInfo: meeting
    })

Create attendee:

    const chime = new Chime({ region: 'us-east-1' })
    chime.endpoint = new Endpoint('https://service.chime.aws.amazon.com/console')

    // Create new attendee for the meeting
    console.info('Adding new attendee')
    const attendee = await chime.createAttendee({
        // The meeting ID of the created meeting to add the attendee to
        MeetingId: req.body.meetingId,

        // Any user ID you wish to associate with the attendeee.
        // For simplicity here, we use a random UUID for uniqueness
        // combined with the name the user provided, which can later
        // be used to help build the roster.
        ExternalUserId: uuidv4()
    }).promise()

    return res.status(201).json({
        JoinInfo: attendee
    })

Everything works fine for the sake of example we have the below responses.

const meetingResponse = {
      JoinInfo: {
        Meeting: {
          MeetingId: "1de5b127-cfd6-44e9-ab21-e1760d7f9152",
          ExternalMeetingId: null,
          MediaPlacement: {
            AudioHostUrl:
              "c0186be44b5f11760b8578dc6deddab9.k.m1.ue1.app.chime.aws:3478",
            AudioFallbackUrl:
              "wss://haxrp.m1.ue1.app.chime.aws:443/calls/1de5b127-cfd6-44e9-ab21-e1760d7f9152",
            ScreenDataUrl:
              "wss://bitpw.m1.ue1.app.chime.aws:443/v2/screen/1de5b127-cfd6-44e9-ab21-e1760d7f9152",
            ScreenSharingUrl:
              "wss://bitpw.m1.ue1.app.chime.aws:443/v2/screen/1de5b127-cfd6-44e9-ab21-e1760d7f9152",
            ScreenViewingUrl:
              "wss://bitpw.m1.ue1.app.chime.aws:443/ws/connect?passcode=null&viewer_uuid=null&X-BitHub-Call-Id=1de5b127-cfd6-44e9-ab21-e1760d7f9152",
            SignalingUrl:
              "wss://signal.m1.ue1.app.chime.aws/control/1de5b127-cfd6-44e9-ab21-e1760d7f9152",
            TurnControlUrl: "https://ccp.cp.ue1.app.chime.aws/v2/turn_sessions",
          },
          MediaRegion: "us-east-1",
        },
      },
    }

    const attendeeResponse = {
      JoinInfo: {
        Attendee: {
          ExternalUserId: "2d3e2c5b-1953-4b13-9ed5-5563feb97845",
          AttendeeId: "a092e646-7c23-4068-bcf9-4cd68e2941af",
          JoinToken:
            "YTA5MmU2NDYtN2MyMy00MDY4LWJjZjktNGNkNjhlMjk0MWFmOmE1ZDAxZDY4LWVjMGUtNGNmZi1iYjZlLTE4NTEwM2UzNjgwMA",
        },
      },
    }

In a ReactJS front end client we wire up the meeting session configuration and trying to start audio-video.

import {
  ConsoleLogger,
  DefaultDeviceController,
  DefaultMeetingSession,
  LogLevel,
  MeetingSessionConfiguration,
} from "amazon-chime-sdk-js"

export default class ChimeSdkWrapper {
  createRoom = async (audioElement, videoElement) => {

    const meetingResponse = // from above
    const attendeeResponse = // from above

    const configuration = new MeetingSessionConfiguration(
      meetingResponse.JoinInfo.Meeting,
      attendeeResponse.JoinInfo.Attendee
    )
    await this.initializeMeetingSession(
      configuration,
      audioElement,
      videoElement
    )
  };

  async initializeMeetingSession(configuration, audioElement, videoElement) {
    let logger
    logger = new ConsoleLogger("SDK", LogLevel.INFO)
    const deviceController = new DefaultDeviceController(logger)

    configuration.enableWebAudio = true
    configuration.enableUnifiedPlanForChromiumBasedBrowsers = true

    const meetingSession = new DefaultMeetingSession(
      configuration,
      logger,
      deviceController
    )

    const audioInputDevices = await meetingSession.audioVideo.listAudioInputDevices()
    const audioOutputDevices = await meetingSession.audioVideo.listAudioOutputDevices()
    const videoInputDevices = await meetingSession.audioVideo.listVideoInputDevices()

    audioInputDevices.forEach((mediaDeviceInfo) => {
      console.log(
        `Device ID: ${mediaDeviceInfo.deviceId} Microphone: ${mediaDeviceInfo.label}`
      )
    })

    await meetingSession.audioVideo.chooseAudioInputDevice(
      audioInputDevices[0].deviceId
    )

    await meetingSession.audioVideo.chooseAudioOutputDevice(
      audioOutputDevices[0].deviceId
    )

    await meetingSession.audioVideo.chooseVideoInputDevice(
      videoInputDevices[0].deviceId
    )

    meetingSession.audioVideo.bindAudioElement(audioElement)

    const observer = {

      audioVideoDidStart: () => {
        console.log("Started")
      },

      audioVideoDidStartConnecting: (reconnecting) => {
        console.log(`session connecting. reconnecting: ${reconnecting}`)
      },

      audioVideoDidStop: (sessionStatus) => {
        console.log(`session stopped from ${JSON.stringify(sessionStatus)}`)
      },

      // videoTileDidUpdate is called whenever a new tile is created or tileState changes.
      videoTileDidUpdate: (tileState) => {
        // Ignore a tile without attendee ID and other attendee's tile.
        if (!tileState.boundAttendeeId || !tileState.localTile) {
          console.log("should be ignored")
        }

        meetingSession.audioVideo.bindVideoElement(
          tileState.tileId,
          videoElement
        )
      }

    }

    meetingSession.audioVideo.addObserver(observer)
    meetingSession.audioVideo.startLocalVideoTile()
    meetingSession.audioVideo.start()
  }
}

Trying to keep it as minimal as possible at the moment.

Running the front-end client and invoking the createRoom method will show the dialog to allow mic and camera, initialize camera (led light on) and then throw an error Forbidden 403 with the message

Message: "Profile is not an attendee of the conference <1de5b127-cfd6-44e9-ab21-e1760d7f9152>"

Request URL: https://ccp.cp.ue1.app.chime.aws/v2/turn_sessions?X-Amzn-Version=1.6.2&X-Amzn-User-Agent=chrome-81
Request Method: POST
Status Code: 403 Forbidden
meetingId: 1de5b127-cfd6-44e9-ab21-e1760d7f9152
atteendeeId: a092e646-7c23-4068-bcf9-4cd68e2941af

I really don't understand why this might be the case since meeting and attendee successfully created. Is there some kind of authentication/authorization needed on the reactjs application we miss; it looks like that!

On another note, is there some kind of 'console' where we can debug Chime SDK meetings created, get status, etc?
How long a meeting will stay as a resource?

Thank you!

bug - while screen sharing

Hello,

Screen sharing is working fine, but it is not working with the following scenario.

  1. Select window and start screen share (Working fine)
  2. Close(remove) the selected window previously
  3. Stop the content share
  4. Not able to share screen again (its automatically get resize when start to screen share)

i thinks this the bug, handle window remove event while screen share.

can you please provice the solution.

thanks.

Can't Turn on Video on MAC Application

I have successfully deployed the application to the AWS and when I install the /release/app.dmg, it's successfully installed the app in my MacBook.

Also, I can open it and join as teacher or student, but can't turn on the video option.

Apple Mac Store Submission Error

We are trying to submit the app in the Apple Mac store, but getting rejection with the following error:

Specifically, App still launches to no UI; user is unable to use the app.
Note: No main window appears on launch, menu and icon on Dock only.

Any Idea?

Need help to improve cpu performance

Hello,

I am using "amazon-chime-sdk-classroom-demo" for my desktop app, and seems its working fine there are some issues but will solve soon, but i am facing big issue on CPU, it goes up more than 100%, this happned in production verion also. is there any way to optimize app performance and redue the memory and CPU performance. this is happned specially while i share a screen or render to shared screen, render video etc..

image

Thanks.

video broadcaste is not working using chrom and safari browser.

Hello,

I am not able to brodcast video using chrome and safari browser. using the firefox browser i can broadcast fine to all other browser. but not from chrome and safari browser.
even its working fine firefox to electron app. but not working fine with chrome and safari to electron app. i am geeeting green screen like below.

image

code looks like below (web code)
if (navigator.userAgent.indexOf("Firefox") != -1) { // @ts-ignore const stream: MediaStream = await videoFile.mozCaptureStream(); await chime?.audioVideo?.startContentShare(stream); } else { // @ts-ignore const stream: MediaStream = await videoFile.captureStream(); await chime?.audioVideo?.startContentShare(stream); }

can you please solve my issue asap.

ref. link (Use case 20 ) https://aws.github.io/amazon-chime-sdk-js/

Thanks.

Step 1 not working

Can't seem to get Option 2 deploy from local machine running

I'm running the script/deploy.js -r -a -s -b but I'm getting a windows script host error with error: invalid character at line:1 Char:1 with error code 800A03F6

Improve README for local development

The deployment script uses Yarn, AWS CLI, and SAM CLI for building and deploying the classroom macOS and Windows binaries. These tools are pre-installed in the AWS Cloud9 environment. Developers need to install them for local development.

getting error while video broadcasting

Hello,

I am getting below error (continuously) while video broadcast
[16060:0312/150043.460232:ERROR:gles2_cmd_decoder.cc(18958)] [.RendererMainThread-0x7feba10c3200]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
image

How do i solve this.

my code

const [videoPalying, setVideoPalying] = useState(false); const sourceRefBroadCast = useRef<HTMLVideoElement>(null); const videoRefBroadCast = useRef<HTMLVideoElement>(null); async function videoStartStream(e) { e.preventDefault(); if(state.classMode === ClassMode.Teacher){ const videoFile = (videoRefBroadCast.current as unknown) as HTMLVideoElement const stream: MediaStream = await videoFile?.captureStream(); await chime?.audioVideo?.startContentShare(stream); } setVideoPalying(true); }

`

`

Permissions Issue - not able to download the APp from URL

while clicking on the Host URL to download mac(ZIP) file - following error results on web request.
An error occured - when calling CreateMultipartUpload operation:AccessDenied when aws s3 cp command is fired on Cloud9 application console.
This XML file does not appear to have any style information associated with it. The document tree is shown below.

AccessDenied
Access Denied
X
Y

Electron problem with MacOS Catalina

MacOS Catalina prevent the electron app to run. Please fix the configuration so we can run it in MacOS or at least give us some pointers (what should be done) to make it run in MacOS. Thanks

audio not working properly

facing issue with audio with page load ( audio not working fine, some times getting below error and then stop audio working )

[14799:0227/170124.920304:ERROR:webrtc_video_engine.cc(3252)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0 [14740:0227/170126.003219:ERROR:audio_rtp_receiver.cc(89)] AudioRtpReceiver::OnSetVolume: No audio channel exists.

is there any solution without upgrading electron version ???

thanks.

App issue locally after yarn dev command

Hi Team,

After the completion of step 1(Option 2: Deploy from your local machine), i was trying to run the app locally with yarn dev command. Currently i'm facing couple of issues:

  1. Getting below error with yarn dev command:
    Screenshot 2020-08-21 at 7 22 38 PM

  2. Audio/Video not working locally (it works in application under release folder):
    I'm was able to join as a Teacher/Student in app. & web socket seems to be work. Issue is with audio/video, unable to access them locally in app.

Versions:
MacOS - Catalina V10.15.4 (19E287)
node - v11.10.1

Pls. let me know if you need any other info.

Thanks.

Can't render video with no wisible errors

Hi guys!

I'm trying to implement your JS SDK API in our project based on Svelte3 and everyhting seems to be fine except the fact that I can't get the non empty video tiles. There are no errors in console, meeting session perfectly esteblished via our custom AWS Lambda endpoint and the Logger shows, that everyting is working fine. Audio and Video devices are listed and atteched without any issues and the Chrome browser indicating the video capturing from camera with the red circle blinking on the related tab. But, there is no sign of data for rendering. Can you please tell what am I doing wrong?

Screenshots are attached below. Thanks in advance!
Best, A!

2
1

Couldn't find valid filesystem superblock.

I have problems for deploying in cloud9, when execute:

script/deploy.js -r us-east-1 -a my-app-name -s my-unique-stack-name -b my-unique-bucket-name

occurs the next error:

CHANGED: partition=1 start=4096 old: size=20967391 end=20971487 new: size=209711071 end=209715167
Couldn't find valid filesystem superblock.

An error occurred (InvalidVolumeModification.NotFound) when calling the DescribeVolumesModifications operation: Modification for volume 'vol-xxxxxx' does not exist.

resize2fs: Bad magic number in super-block while trying to open /dev/xvda1

I have tried modifying the instance type, but the err continue. The instance is running with amazon linux

Did not install on Cloud 9

I followed the directions for cloud9 and got the following.

`AmplifyAdminUser:/environment $ git clone https://github.com/aws-samples/amazon-chime-sdk-classroom-demo.git
Cloning into 'amazon-chime-sdk-classroom-demo'...
remote: Enumerating objects: 408, done.
remote: Counting objects: 100% (106/106), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 408 (delta 65), reused 83 (delta 56), pack-reused 302
Receiving objects: 100% (408/408), 2.56 MiB | 16.94 MiB/s, done.
Resolving deltas: 100% (187/187), done.
AmplifyAdminUser:
/environment $ cd amazon-chime-sdk-classroom-demo
AmplifyAdminUser:~/environment/amazon-chime-sdk-classroom-demo (master) $ script/deploy.js -r us-west-2 -a y12-chime-classroom-demo -s y12-chime-classroom-demo-stack -b y12-chime-classroom-demo-bucket
--> aws --version

--> sam --version
SAM CLI, version 1.19.0

--> npm install -g yarn

[email protected] preinstall /home/ec2-user/.nvm/versions/node/v10.24.1/lib/node_modules/yarn
:; (node ./preinstall.js > /dev/null 2>&1 || true)

/home/ec2-user/.nvm/versions/node/v10.24.1/bin/yarn -> /home/ec2-user/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/bin/yarn.js
/home/ec2-user/.nvm/versions/node/v10.24.1/bin/yarnpkg -> /home/ec2-user/.nvm/versions/node/v10.24.1/lib/node_modules/yarn/bin/yarn.js

--> script/cloud9-resize.sh
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
242 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package jq.x86_64 0:1.5-1.amzn2.0.2 will be installed
--> Processing Dependency: libonig.so.2()(64bit) for package: jq-1.5-1.amzn2.0.2.x86_64
--> Running transaction check
---> Package oniguruma.x86_64 0:5.9.6-1.amzn2.0.4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size

Installing:
jq x86_64 1.5-1.amzn2.0.2 amzn2-core 154 k
Installing for dependencies:
oniguruma x86_64 5.9.6-1.amzn2.0.4 amzn2-core 127 k

Transaction Summary

Install 1 Package (+1 Dependent package)

Total download size: 281 k
Installed size: 890 k
Downloading packages:

Total 2.2 MB/s | 281 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oniguruma-5.9.6-1.amzn2.0.4.x86_64 1/2
Installing : jq-1.5-1.amzn2.0.2.x86_64 2/2
Verifying : jq-1.5-1.amzn2.0.2.x86_64 1/2
Verifying : oniguruma-5.9.6-1.amzn2.0.4.x86_64 2/2

Installed:
jq.x86_64 0:1.5-1.amzn2.0.2

Dependency Installed:
oniguruma.x86_64 0:5.9.6-1.amzn2.0.4

Complete!
{
"VolumeModification": {
"TargetSize": 100,
"OriginalMultiAttachEnabled": false,
"TargetVolumeType": "gp2",
"ModificationState": "modifying",
"TargetMultiAttachEnabled": false,
"VolumeId": "vol-00d5f3e3306a1b921",
"TargetIops": 300,
"StartTime": "2021-07-18T21:44:39.000Z",
"Progress": 0,
"OriginalVolumeType": "gp2",
"OriginalIops": 100,
"OriginalSize": 10
}
}
CHANGED: partition=1 start=4096 old: size=20967391 end=20971487 new: size=209711071 end=209715167
Couldn't find valid filesystem superblock.

Command script/cloud9-resize.sh failed with exit code 1 signal null

  • '[' -z Y12-Chime-Classroom-Tutorial ']'
  • SIZE=100
  • sudo yum -y install jq
    ++ curl http://169.254.169.254/latest/meta-data//instance-id
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 19 100 19 0 0 2714 0 --:--:-- --:--:-- --:--:-- 2714
  • INSTANCEID=i-0382b38c572993a02
    ++ jq -r '.Reservations[0].Instances[0].BlockDeviceMappings[0].Ebs.VolumeId'
    ++ aws ec2 describe-instances --instance-id i-0382b38c572993a02
  • VOLUMEID=vol-00d5f3e3306a1b921
    ++ jq '.VolumesModifications | length'
    ++ aws ec2 describe-volumes-modifications --volume-id vol-00d5f3e3306a1b921 --filters Name=modification-state,Values=optimizing,completed

An error occurred (InvalidVolumeModification.NotFound) when calling the DescribeVolumesModifications operation: Modification for volume 'vol-00d5f3e3306a1b921' does not exist.

  • '[' '' == 1 ']'
  • aws ec2 modify-volume --volume-id vol-00d5f3e3306a1b921 --size 100
    ++ jq '.VolumesModifications | length'
    ++ aws ec2 describe-volumes-modifications --volume-id vol-00d5f3e3306a1b921 --filters Name=modification-state,Values=optimizing,completed
  • '[' 0 '!=' 1 ']'
  • sleep 1
    ++ jq '.VolumesModifications | length'
    ++ aws ec2 describe-volumes-modifications --volume-id vol-00d5f3e3306a1b921 --filters Name=modification-state,Values=optimizing,completed
  • '[' 1 '!=' 1 ']'
  • sudo growpart /dev/xvda 1
  • sudo resize2fs /dev/xvda1
    resize2fs 1.42.9 (28-Dec-2013)
    resize2fs: Bad magic number in super-block while trying to open /dev/xvda1`

Issue in running classroom demo on my local machine

Hi Team,

I am trying to running classroom demo on my local machine as per your Readme File.

So I got this error-
Failed to create bucket: {"status":1,"signal":null,"output":[null,{"type":"Buffer","data":[]},{"type":"Buffer","data":[109,97,107,101,95,98,117,99,107,101,116,32,102,97,105,108,101,100,58,32,115,51,58,47,47,97,119,115,45,99,104,105,109,101,45,99,108,97,115,115,114,111,111,109,45,100,101,109,111,45,112,98,32,85,110,97,98,108,101,32,116,111,32,108,111,99,97,116,101,32,99,114,101,100,101,110,116,105,97,108,115,10]}],"pid":137308,"stdout":{"type":"Buffer","data":[]},"stderr":{"type":"Buffer","data":[109,97,107,101,95,98,117,99,107,101,116,32,102,97,105,108,101,100,58,32,115,51,58,47,47,97,119,115,45,99,104,105,109,101,45,99,108,97,115,115,114,111,111,109,45,100,101,109,111,45,112,98,32,85,110,97,98,108,101,32,116,111,32,108,111,99,97,116,101,32,99,114,101,100,101,110,116,105,97,108,115,10]}}
make_bucket failed: s3://aws-chime-classroom-demo-pb Unable to locate credentials.

Best Regards
Deepanshu Garg
Screenshot from 2021-07-23 09-26-00

ENOSPC: no space left on device, write

After following the instructions detailed on the README file, using Cloud9 for build and deployment I got the following error:

error /home/ec2-user/environment/amazon-chime-sdk-classroom-demo/node_modules/electron-chromedriver: Command failed.
Exit code: 1
Command: node ./download-chromedriver.js
Arguments: 
Directory: /home/ec2-user/environment/amazon-chime-sdk-classroom-demo/node_modules/electron-chromedriver
Output:
/home/ec2-user/environment/amazon-chime-sdk-classroom-demo/node_modules/electron-chromedriver/download-chromedriver.js:21
    if (error != null) throw error
                       ^

Error: ENOSPC: no space left on device, write

My guess was that the EBS wasn't successfully resized when cloud9-resize.sh was called but, as far as I can tell the EC2 instance is using the right EBS with 100GB of space. I'm clueless

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.