Git Product home page Git Product logo

Comments (14)

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

Apple M1 mac with OS Ventura 13.4

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

Restarting cockpit gives the error Error: ENOENT: no such file or directory, scandir '/Users/<user>/.localstack'

Logs -

LocalStack version: 2.1.1.dev
LocalStack Docker container id: 70bc27da8a66
LocalStack build date: 2023-06-12
LocalStack build git hash: 664749d6

2023-06-13T19:34:04.470  INFO --- [-functhread5] hypercorn.error            : Running on https://0.0.0.0:4566 (CTRL + C to quit)
2023-06-13T19:34:04.470  INFO --- [-functhread5] hypercorn.error            : Running on https://0.0.0.0:4566 (CTRL + C to quit)

from cockpit.

lukqw avatar lukqw commented on July 28, 2024

Hi there @bviswanathan-exelixis !

Could you please include the concrete steps you're performing which lead to this:

After installing cockpit and starting up the services. The health check endpoint returns available but not in running status

What are you doing to "start up the services" ?

No logs are shown in the UI
Which logs are you expecting?

Restarting cockpit gives the error Error: ENOENT: no such file or directory, scandir '/Users//.localstack'

Does the cockpit still work, or does it crash?

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

Could you please include the concrete steps you're performing which lead to this:
Steps -

  1. Installed Docker UI for Mac M1 to get docker runtime

  2. Installed Cockpit UI using .dmg (installation went through no errors)

  3. Clicked "Start" button from UI ->
    Screenshot 2023-06-22 at 9 12 47 AM

  4. The status is shown as Running

  5. "Services" tab is showing 0/34 (0 running , 34 available
    Screenshot 2023-06-22 at 9 13 34 AM

  6. Tested /health endpoint using curl -

curl http://localhost:4566/health
{"services": {"acm": "available", "apigateway": "available", "cloudformation": "available", "cloudwatch": "available", "config": "available", "dynamodb": "available", "dynamodbstreams": "available", "ec2": "available", "es": "available", "events": "available", "firehose": "available", "iam": "available", "kinesis": "available", "kms": "available", "lambda": "available", "logs": "available", "opensearch": "available", "redshift": "available", "resource-groups": "available", "resourcegroupstaggingapi": "available", "route53": "available", "route53resolver": "available", "s3": "available", "s3control": "available", "secretsmanager": "available", "ses": "available", "sns": "available", "sqs": "available", "ssm": "available", "stepfunctions": "available", "sts": "available", "support": "available", "swf": "available", "transcribe": "available"}, "version": "2.1.1.dev"}%      
  1. Looked at "Logs" tab and saw the error related to hypercorn
    Screenshot 2023-06-22 at 9 15 32 AM

from cockpit.

lukqw avatar lukqw commented on July 28, 2024

@bviswanathan-exelixis the cockpit works as expected then - only once you actually interact with a specific service, i.e. lambda / s3, they'll update their status from available to running

this will also be reflected in the curl command you've performed 👍

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

@lukqw It looks like it is not connecting to localstack (or something is blocking) -

aws --endpoint-url=http://localhost:4572 s3 ls                  

Could not connect to the endpoint URL: "http://localhost:4572/"

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

With debug turned on -

% aws --debug --endpoint-url=http://localhost:4572 s3 ls               
2023-07-07 08:57:00,536 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.11.27 Python/3.11.3 Darwin/22.5.0 exe/x86_64
2023-07-07 08:57:00,536 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', '--endpoint-url=http://localhost:4572', 's3', 'ls']
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_s3 at 0x11026ef20>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_ddb at 0x1100cc7c0>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x10fac0180>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x10fac3ce0>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x1102959e0>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_history_commands at 0x11010f1a0>
2023-07-07 08:57:00,558 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
2023-07-07 08:57:00,559 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_waiters at 0x1102958a0>
2023-07-07 08:57:00,559 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x110347a90>>
2023-07-07 08:57:00,559 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/awscli/data/cli.json
2023-07-07 08:57:00,560 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_types at 0x1101d8b80>
2023-07-07 08:57:00,560 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function no_sign_request at 0x1101d8ea0>
2023-07-07 08:57:00,560 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x1101d8e00>
2023-07-07 08:57:00,560 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x1101d8fe0>
2023-07-07 08:57:00,560 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x1101d8f40>
2023-07-07 08:57:00,560 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x110344d00>
2023-07-07 08:57:00,561 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.11.27 Python/3.11.3 Darwin/22.5.0 exe/x86_64 prompt/off
2023-07-07 08:57:00,561 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', '--endpoint-url=http://localhost:4572', 's3', 'ls']
2023-07-07 08:57:00,561 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x11026f880>
2023-07-07 08:57:00,561 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x10f873600>
2023-07-07 08:57:00,561 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x11030ede0>
2023-07-07 08:57:00,561 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function no_pager_handler at 0x10f847d80>
2023-07-07 08:57:00,561 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10f8b8f40>
2023-07-07 08:57:00,569 - MainThread - botocore.utils - DEBUG - IMDS ENDPOINT: http://169.254.169.254/
2023-07-07 08:57:00,574 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x1100ffa60>
2023-07-07 08:57:00,574 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x1100bca40>
2023-07-07 08:57:00,574 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: calling handler <function add_waiters at 0x1102958a0>
2023-07-07 08:57:00,574 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x110347a90>>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3_ls: calling handler <function add_waiters at 0x1102958a0>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3_ls: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x110347a90>>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.paths: calling handler <awscli.paramfile.URIArgumentHandler object at 0x110383b90>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.anonymous: calling handler <awscli.paramfile.URIArgumentHandler object at 0x110383b90>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.page-size: calling handler <awscli.paramfile.URIArgumentHandler object at 0x110383b90>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.human-readable: calling handler <awscli.paramfile.URIArgumentHandler object at 0x110383b90>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.ls: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10f88f1d0>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.summarize: calling handler <awscli.paramfile.URIArgumentHandler object at 0x110383b90>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.ls: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10f88f1d0>
2023-07-07 08:57:00,575 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.request-payer: calling handler <awscli.paramfile.URIArgumentHandler object at 0x110383b90>
2023-07-07 08:57:00,576 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2023-07-07 08:57:00,576 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2023-07-07 08:57:00,576 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role-with-web-identity
2023-07-07 08:57:00,576 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: sso
2023-07-07 08:57:00,576 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2023-07-07 08:57:00,576 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2023-07-07 08:57:00,577 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/awscli/botocore/data/endpoints.json
2023-07-07 08:57:00,585 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x10e5ee160>
2023-07-07 08:57:00,605 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/awscli/botocore/data/s3/2006-03-01/service-2.json
2023-07-07 08:57:00,631 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/awscli/botocore/data/s3/2006-03-01/endpoint-rule-set-1.json
2023-07-07 08:57:00,635 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/awscli/botocore/data/partitions.json
2023-07-07 08:57:00,636 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10e54aac0>
2023-07-07 08:57:00,636 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10e54a840>
2023-07-07 08:57:00,639 - MainThread - botocore.endpoint - DEBUG - Setting s3 timeout as (60, 60)
2023-07-07 08:57:00,640 - MainThread - botocore.utils - DEBUG - Registering S3 region redirector handler
2023-07-07 08:57:00,640 - MainThread - botocore.hooks - DEBUG - Event before-endpoint-resolution.s3: calling handler <function customize_endpoint_resolver_builtins at 0x10e60e840>
2023-07-07 08:57:00,640 - MainThread - botocore.hooks - DEBUG - Event before-endpoint-resolution.s3: calling handler <bound method S3RegionRedirectorv2.redirect_from_cache of <botocore.utils.S3RegionRedirectorv2 object at 0x110ac4b90>>
2023-07-07 08:57:00,640 - MainThread - botocore.regions - DEBUG - Calling endpoint provider with parameters: {'Region': 'us-east-1', 'UseFIPS': False, 'UseDualStack': False, 'Endpoint': 'http://localhost:4572', 'ForcePathStyle': True, 'Accelerate': False, 'UseGlobalEndpoint': False, 'DisableMultiRegionAccessPoints': False, 'UseArnRegion': True}
2023-07-07 08:57:00,641 - MainThread - botocore.regions - DEBUG - Endpoint provider result: http://localhost:4572
2023-07-07 08:57:00,641 - MainThread - botocore.regions - DEBUG - Selecting from endpoint provider's list of auth schemes: "sigv4". User selected auth scheme is: "None"
2023-07-07 08:57:00,641 - MainThread - botocore.regions - DEBUG - Selected auth type "v4" as "v4" with signing context params: {'region': 'us-east-1', 'signing_name': 's3', 'disableDoubleEncoding': True}
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event provide-client-params.s3.ListBuckets: calling handler <function base64_decode_input_blobs at 0x11030ee80>
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler <function validate_bucket_name at 0x10e60c5e0>
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler <function remove_bucket_from_url_paths_from_model at 0x10e60e660>
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler <bound method S3RegionRedirectorv2.annotate_request_context of <botocore.utils.S3RegionRedirectorv2 object at 0x110ac4b90>>
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler <function generate_idempotent_uuid at 0x10e60c400>
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event before-call.s3.ListBuckets: calling handler <function add_expect_header at 0x10e60c9a0>
2023-07-07 08:57:00,641 - MainThread - botocore.hooks - DEBUG - Event before-call.s3.ListBuckets: calling handler <function inject_api_version_header_if_needed at 0x10e60dee0>
2023-07-07 08:57:00,641 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=ListBuckets) with params: {'url_path': '/', 'query_string': '', 'method': 'GET', 'headers': {'User-Agent': 'aws-cli/2.11.27 Python/3.11.3 Darwin/22.5.0 exe/x86_64 prompt/off command/s3.ls'}, 'body': b'', 'url': 'http://localhost:4572/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x110798890>, 'has_streaming_input': False, 'auth_type': 'v4', 'signing': {'region': 'us-east-1', 'signing_name': 's3', 'disableDoubleEncoding': True}, 's3_redirect': {'redirected': False, 'bucket': None, 'params': {}}}}
2023-07-07 08:57:00,642 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x110ad9d50>>
2023-07-07 08:57:00,642 - MainThread - botocore.hooks - DEBUG - Event choose-signer.s3.ListBuckets: calling handler <function set_operation_specific_signer at 0x10e60c2c0>
2023-07-07 08:57:00,642 - MainThread - botocore.hooks - DEBUG - Event before-sign.s3.ListBuckets: calling handler <function remove_arn_from_signing_path at 0x10e60e7a0>
2023-07-07 08:57:00,642 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2023-07-07 08:57:00,642 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
GET
/

host:localhost:4572
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20230707T155700Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2023-07-07 08:57:00,642 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20230707T155700Z
20230707/us-east-1/s3/aws4_request
322591e162044a91a4441c6be236658b117f96203b25449cfc01b259f46e24a8
2023-07-07 08:57:00,642 - MainThread - botocore.auth - DEBUG - Signature:
b51656b38db942bbb1cd6bd0c9afb3fb950080888b1b49d66aef912e3a4f6da4
2023-07-07 08:57:00,642 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=http://localhost:4572/, headers={'User-Agent': b'aws-cli/2.11.27 Python/3.11.3 Darwin/22.5.0 exe/x86_64 prompt/off command/s3.ls', 'X-Amz-Date': b'20230707T155700Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=test/20230707/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=b51656b38db942bbb1cd6bd0c9afb3fb950080888b1b49d66aef912e3a4f6da4'}>
2023-07-07 08:57:00,643 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): localhost:4572
2023-07-07 08:57:00,644 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "urllib3/connection.py", line 174, in _new_conn
  File "urllib3/util/connection.py", line 95, in create_connection
  File "urllib3/util/connection.py", line 85, in create_connection
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/httpsession.py", line 448, in send
  File "urllib3/connectionpool.py", line 798, in urlopen
  File "urllib3/util/retry.py", line 525, in increment
  File "urllib3/packages/six.py", line 770, in reraise
  File "urllib3/connectionpool.py", line 714, in urlopen
  File "urllib3/connectionpool.py", line 415, in _make_request
  File "urllib3/connection.py", line 244, in request
  File "http/client.py", line 1283, in request
  File "awscli/botocore/awsrequest.py", line 94, in _send_request
  File "http/client.py", line 1329, in _send_request
  File "http/client.py", line 1278, in endheaders
  File "awscli/botocore/awsrequest.py", line 122, in _send_output
  File "awscli/botocore/awsrequest.py", line 206, in send
  File "http/client.py", line 976, in send
  File "urllib3/connection.py", line 205, in connect
  File "urllib3/connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x110b48bd0>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/endpoint.py", line 199, in _do_get_response
  File "awscli/botocore/endpoint.py", line 271, in _send
  File "awscli/botocore/httpsession.py", line 477, in send
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4572/"
2023-07-07 08:57:00,645 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x110b1c850>>
2023-07-07 08:57:00,645 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.0709473792377644
2023-07-07 08:57:00,645 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x110ac4b90>>
2023-07-07 08:57:00,645 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.0709473792377644 seconds
2023-07-07 08:57:00,721 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x110ad9d50>>
2023-07-07 08:57:00,721 - MainThread - botocore.hooks - DEBUG - Event choose-signer.s3.ListBuckets: calling handler <function set_operation_specific_signer at 0x10e60c2c0>
2023-07-07 08:57:00,721 - MainThread - botocore.hooks - DEBUG - Event before-sign.s3.ListBuckets: calling handler <function remove_arn_from_signing_path at 0x10e60e7a0>
2023-07-07 08:57:00,721 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2023-07-07 08:57:00,721 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
GET
/

host:localhost:4572
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20230707T155700Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2023-07-07 08:57:00,721 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20230707T155700Z
20230707/us-east-1/s3/aws4_request
322591e162044a91a4441c6be236658b117f96203b25449cfc01b259f46e24a8
2023-07-07 08:57:00,721 - MainThread - botocore.auth - DEBUG - Signature:
b51656b38db942bbb1cd6bd0c9afb3fb950080888b1b49d66aef912e3a4f6da4
2023-07-07 08:57:00,721 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=http://localhost:4572/, headers={'User-Agent': b'aws-cli/2.11.27 Python/3.11.3 Darwin/22.5.0 exe/x86_64 prompt/off command/s3.ls', 'X-Amz-Date': b'20230707T155700Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=test/20230707/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=b51656b38db942bbb1cd6bd0c9afb3fb950080888b1b49d66aef912e3a4f6da4'}>
2023-07-07 08:57:00,722 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (2): localhost:4572
2023-07-07 08:57:00,723 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "urllib3/connection.py", line 174, in _new_conn
  File "urllib3/util/connection.py", line 95, in create_connection
  File "urllib3/util/connection.py", line 85, in create_connection
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/httpsession.py", line 448, in send
  File "urllib3/connectionpool.py", line 798, in urlopen
  File "urllib3/util/retry.py", line 525, in increment
  File "urllib3/packages/six.py", line 770, in reraise
  File "urllib3/connectionpool.py", line 714, in urlopen
  File "urllib3/connectionpool.py", line 415, in _make_request
  File "urllib3/connection.py", line 244, in request
  File "http/client.py", line 1283, in request
  File "awscli/botocore/awsrequest.py", line 94, in _send_request
  File "http/client.py", line 1329, in _send_request
  File "http/client.py", line 1278, in endheaders
  File "awscli/botocore/awsrequest.py", line 122, in _send_output
  File "awscli/botocore/awsrequest.py", line 206, in send
  File "http/client.py", line 976, in send
  File "urllib3/connection.py", line 205, in connect
  File "urllib3/connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x110b49d90>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/endpoint.py", line 199, in _do_get_response
  File "awscli/botocore/endpoint.py", line 271, in _send
  File "awscli/botocore/httpsession.py", line 477, in send
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4572/"
2023-07-07 08:57:00,724 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x110b1c850>>
2023-07-07 08:57:00,724 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.965809707050022
2023-07-07 08:57:00,724 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x110ac4b90>>
2023-07-07 08:57:00,724 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.965809707050022 seconds
2023-07-07 08:57:01,695 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x110ad9d50>>
2023-07-07 08:57:01,696 - MainThread - botocore.hooks - DEBUG - Event choose-signer.s3.ListBuckets: calling handler <function set_operation_specific_signer at 0x10e60c2c0>
2023-07-07 08:57:01,696 - MainThread - botocore.hooks - DEBUG - Event before-sign.s3.ListBuckets: calling handler <function remove_arn_from_signing_path at 0x10e60e7a0>
2023-07-07 08:57:01,697 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2023-07-07 08:57:01,697 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
GET
/

host:localhost:4572
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20230707T155701Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2023-07-07 08:57:01,697 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20230707T155701Z
20230707/us-east-1/s3/aws4_request
b788e35798af762e2b4b3343ae9cb95b80b7fe01ea1cc029e18db7862b629f50
2023-07-07 08:57:01,697 - MainThread - botocore.auth - DEBUG - Signature:
bd582dcdb8d6d9111095215c7324ef9f746a89770608545a6ae4b7ae0b41517b
2023-07-07 08:57:01,698 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=http://localhost:4572/, headers={'User-Agent': b'aws-cli/2.11.27 Python/3.11.3 Darwin/22.5.0 exe/x86_64 prompt/off command/s3.ls', 'X-Amz-Date': b'20230707T155701Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=test/20230707/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=bd582dcdb8d6d9111095215c7324ef9f746a89770608545a6ae4b7ae0b41517b'}>
2023-07-07 08:57:01,699 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTP connection (3): localhost:4572
2023-07-07 08:57:01,701 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
  File "urllib3/connection.py", line 174, in _new_conn
  File "urllib3/util/connection.py", line 95, in create_connection
  File "urllib3/util/connection.py", line 85, in create_connection
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/httpsession.py", line 448, in send
  File "urllib3/connectionpool.py", line 798, in urlopen
  File "urllib3/util/retry.py", line 525, in increment
  File "urllib3/packages/six.py", line 770, in reraise
  File "urllib3/connectionpool.py", line 714, in urlopen
  File "urllib3/connectionpool.py", line 415, in _make_request
  File "urllib3/connection.py", line 244, in request
  File "http/client.py", line 1283, in request
  File "awscli/botocore/awsrequest.py", line 94, in _send_request
  File "http/client.py", line 1329, in _send_request
  File "http/client.py", line 1278, in endheaders
  File "awscli/botocore/awsrequest.py", line 122, in _send_output
  File "awscli/botocore/awsrequest.py", line 206, in send
  File "http/client.py", line 976, in send
  File "urllib3/connection.py", line 205, in connect
  File "urllib3/connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x110b4ae10>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/endpoint.py", line 199, in _do_get_response
  File "awscli/botocore/endpoint.py", line 271, in _send
  File "awscli/botocore/httpsession.py", line 477, in send
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4572/"
2023-07-07 08:57:01,704 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x110b1c850>>
2023-07-07 08:57:01,704 - MainThread - botocore.retries.standard - DEBUG - Max attempts of 3 reached.
2023-07-07 08:57:01,705 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2023-07-07 08:57:01,705 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.ListBuckets: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x110ac4b90>>
2023-07-07 08:57:01,705 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
  File "urllib3/connection.py", line 174, in _new_conn
  File "urllib3/util/connection.py", line 95, in create_connection
  File "urllib3/util/connection.py", line 85, in create_connection
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/botocore/httpsession.py", line 448, in send
  File "urllib3/connectionpool.py", line 798, in urlopen
  File "urllib3/util/retry.py", line 525, in increment
  File "urllib3/packages/six.py", line 770, in reraise
  File "urllib3/connectionpool.py", line 714, in urlopen
  File "urllib3/connectionpool.py", line 415, in _make_request
  File "urllib3/connection.py", line 244, in request
  File "http/client.py", line 1283, in request
  File "awscli/botocore/awsrequest.py", line 94, in _send_request
  File "http/client.py", line 1329, in _send_request
  File "http/client.py", line 1278, in endheaders
  File "awscli/botocore/awsrequest.py", line 122, in _send_output
  File "awscli/botocore/awsrequest.py", line 206, in send
  File "http/client.py", line 976, in send
  File "urllib3/connection.py", line 205, in connect
  File "urllib3/connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPConnection object at 0x110b4ae10>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "awscli/clidriver.py", line 460, in main
  File "awscli/customizations/commands.py", line 151, in __call__
  File "awscli/customizations/commands.py", line 205, in __call__
  File "awscli/customizations/s3/subcommands.py", line 505, in _run_main
  File "awscli/customizations/s3/subcommands.py", line 570, in _list_all_buckets
  File "awscli/botocore/client.py", line 341, in _api_call
  File "awscli/botocore/client.py", line 683, in _make_api_call
  File "awscli/botocore/client.py", line 703, in _make_request
  File "awscli/botocore/endpoint.py", line 101, in make_request
  File "awscli/botocore/endpoint.py", line 155, in _send_request
  File "awscli/botocore/endpoint.py", line 199, in _do_get_response
  File "awscli/botocore/endpoint.py", line 271, in _send
  File "awscli/botocore/httpsession.py", line 477, in send
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4572/"

Could not connect to the endpoint URL: "http://localhost:4572/"

from cockpit.

lukqw avatar lukqw commented on July 28, 2024

do you have LocalStack running on that port? usually it's 4566

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

@lukqw Yes, the port is in LISTEN mode -

% netstat -an |grep 4566
tcp4       0      0  127.0.0.1.4566         *.*                    LISTEN     
tcp4       0      0  127.0.0.1.60267        127.0.0.1.4566         TIME_WAIT  
tcp4       0      0  127.0.0.1.60275        127.0.0.1.4566         TIME_WAIT  
tcp4       0      0  127.0.0.1.60283        127.0.0.1.4566         TIME_WAIT  
tcp4       0      0  127.0.0.1.60294        127.0.0.1.4566         TIME_WAIT  
tcp4       0      0  127.0.0.1.60300        127.0.0.1.4566         TIME_WAIT  
tcp4       0      0  127.0.0.1.60307        127.0.0.1.4566         TIME_WAIT  
tcp4       0      0  127.0.0.1.60312        127.0.0.1.4566         TIME_WAIT  

from cockpit.

lukqw avatar lukqw commented on July 28, 2024

why are you setting the endpoint url to 4572 when using the aws cli?

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

I was thinking that each service starts in a new port and s3 service is on 4572?. I was looking at this github link - https://gist.github.com/lobster1234/57e803ebca47c3c263a9d53ccd1f1783. I also tried - aws --endpoint-url=http://localhost:4566 s3 ls which returns nothing but no error

from cockpit.

lukqw avatar lukqw commented on July 28, 2024

That link is pretty outdated. All your services should be addressable via aws --endpoint-url=http://localhost:4566 or our own wrapper awslocal https://github.com/localstack/awscli-local.

try

aws --endpoint-url=http://localhost:4566 s3 mb s3://test               
make_bucket: test
aws --endpoint-url=http://localhost:4566 s3 ls                         
2023-07-10 20:58:31 test

from cockpit.

bviswanathan-exelixis avatar bviswanathan-exelixis commented on July 28, 2024

Thanks @lukqw That seems to have worked, sorry for referring to an outdated document.

from cockpit.

lukqw avatar lukqw commented on July 28, 2024

You're welcome 👍 I'll close the issue in the mean time.

from cockpit.

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.