By using AWS re:Post, you agree to the Terms of Use

Questions tagged with Amazon EC2

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

What to look at for resolving Nice DCV 404 errors

I've got an EC2 instance setup with Nice DCV. I have setup port access in my security rules and created a session in nice dcv. However, whenever I try to connect to the session via the browsed, I get an HTTP ERROR 404. I can't seem to find any information in the Nice DCV docs about causes of 404 except for the session resolver which I'm not using. How can I go about resolving this issue? Below is the output from dcv list-sessions -j ``` [ { "id" : "cloud9-session", "owner" : "ubuntu", "num-of-connections" : 0, "creation-time" : "2022-09-23T12:58:40.919860Z", "last-disconnection-time" : "", "licenses" : [ { "product" : "dcv", "status" : "licensed", "check-timestamp" : "2022-09-23T12:58:42.540422Z", "expiration-date" : "" }, { "product" : "dcv-gl", "status" : "licensed", "check-timestamp" : "2022-09-23T12:58:42.540422Z", "expiration-date" : "" } ], "licensing-mode" : "EC2", "storage-root" : "", "type" : "virtual", "status" : "running", "x11-display" : ":0", "x11-authority" : "/run/user/1000/dcv/cloud9-session.xauth", "display-layout" : [ { "width" : 800, "height" : 600, "x" : 0, "y" : 0 } ] } ] ``` This is the output from dcv get-config ``` [connectivity] web-use-https = false web-port = 8080 web-extra-http-headers = [('test-header', 'test-value')] [security] authentication = 'none' ``` This is the output from systemctl status dcvserver ``` ● dcvserver.service - NICE DCV server daemon Loaded: loaded (/lib/systemd/system/dcvserver.service; enabled; vendor preset: enable> Active: active (running) since Fri 2022-09-23 12:58:40 UTC; 18min ago Main PID: 715 (dcvserver) Tasks: 6 (limit: 76196) Memory: 39.9M CGroup: /system.slice/dcvserver.service ├─715 /bin/bash /usr/bin/dcvserver -d --service └─724 /usr/lib/x86_64-linux-gnu/dcv/dcvserver --service Sep 23 12:58:40 ip-10-0-0-115 systemd[1]: Starting NICE DCV server daemon... Sep 23 12:58:40 ip-10-0-0-115 systemd[1]: Started NICE DCV server daemon. ``` I'm trying to access the page with http://<public ip>:8080 I've also tried including the #session_id part in the url and using the windows client with no luck. My operating system is Ubuntu 20.04 with a custom AMI running in a g4dn.4xlarge machine.
0
answers
0
votes
30
views
asked 14 days ago

Issues with ec2 describe-images when using filters with marketplace AMIs

I seem to be unable to search for marketplace AMIs when using a filter; this is frustrating because we use the product code to find the most up to date AMI. Searching for a standard AMI that you'd find if trying to launch an instance from the console: ``` ➜ aws ec2 describe-images --filters Name="image-id",Values="ami-09e2d756e7d78558d" --debug | cat 2022-09-21 14:38:36,360 - MainThread - awscli.formatter - DEBUG - RequestId: f3bf3f72-eabe-46a2-bdad-151712069a87 { "Images": [ { "Architecture": "x86_64", "CreationDate": "2022-08-17T23:46:17.000Z", "ImageId": "ami-09e2d756e7d78558d", "ImageLocation": "amazon/amzn2-ami-kernel-5.10-hvm-2.0.20220805.0-x86_64-gp2", "ImageType": "machine", "Public": true, "OwnerId": "137112412989", "PlatformDetails": "Linux/UNIX", "UsageOperation": "RunInstances", "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/xvda", "Ebs": { "DeleteOnTermination": true, "SnapshotId": "snap-0b1e0b58f54fc89ef", "VolumeSize": 8, "VolumeType": "gp2", "Encrypted": false } } ], "Description": "Amazon Linux 2 Kernel 5.10 AMI 2.0.20220805.0 x86_64 HVM gp2", "EnaSupport": true, "Hypervisor": "xen", "ImageOwnerAlias": "amazon", "Name": "amzn2-ami-kernel-5.10-hvm-2.0.20220805.0-x86_64-gp2", "RootDeviceName": "/dev/xvda", "RootDeviceType": "ebs", "SriovNetSupport": "simple", "VirtualizationType": "hvm", "DeprecationTime": "2024-08-17T23:46:17.000Z" } ] } ``` Searching for a marketplace AMI using the `--image-id` param: ``` ➜ aws ec2 describe-images --image-ids ami-0e1415fedc1664f51 --debug| cat 2022-09-21 14:39:14,069 - MainThread - awscli.formatter - DEBUG - RequestId: 3d52e935-1d74-48aa-b205-6dad06d23eb6 { "Images": [ { "Architecture": "x86_64", "CreationDate": "2020-07-31T17:51:20.000Z", "ImageId": "ami-0e1415fedc1664f51", "ImageLocation": "aws-marketplace/OpenVPN Access Server Community Image-fe8020db-5343-4c43-9e65-5ed4a825c931-ami-06585f7cf2fb8855c.4", "ImageType": "machine", "Public": true, "OwnerId": "679593333241", "PlatformDetails": "Linux/UNIX", "UsageOperation": "RunInstances", "ProductCodes": [ { "ProductCodeId": "f2ew2wrz425a1jagnifd02u5t", "ProductCodeType": "marketplace" } ], "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "DeleteOnTermination": true, "SnapshotId": "snap-0bb5570e9d1eb75ea", "VolumeSize": 8, "VolumeType": "gp2", "Encrypted": false } }, { "DeviceName": "/dev/sdb", "VirtualName": "ephemeral0" }, { "DeviceName": "/dev/sdc", "VirtualName": "ephemeral1" } ], "Description": "OpenVPN Access Server 2.8.3 publisher image from https://www.openvpn.net/.", "EnaSupport": true, "Hypervisor": "xen", "ImageOwnerAlias": "aws-marketplace", "Name": "OpenVPN Access Server Community Image-fe8020db-5343-4c43-9e65-5ed4a825c931-ami-06585f7cf2fb8855c.4", "RootDeviceName": "/dev/sda1", "RootDeviceType": "ebs", "SriovNetSupport": "simple", "VirtualizationType": "hvm", "DeprecationTime": "2022-07-31T17:51:20.000Z" } ] } ``` Searching for the same AMI; using the `image-id` filter (that worked for the first request): ``` ➜ aws ec2 describe-images --filters Name="image-id",Values="ami-0e1415fedc1664f51" --debug | cat 2022-09-21 14:39:41,422 - MainThread - awscli.formatter - DEBUG - RequestId: 1de1f1a6-76cf-4664-bde5-1f8a3f061815 { "Images": [] } ``` This was working the other day; or so I believe... am I doing something daft or has this behavior changed?
1
answers
0
votes
26
views
asked 16 days ago