Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Python 2.7 Error when running localstack #227

Closed
@shrishinde

Description

@shrishinde

I see this issue on Ubuntu. Following are the details,

shrishinde:repos$ DEBUG=1 localstack start
Starting local dev environment. CTRL-C to quit.
Starting mock API Gateway (http port 4567)...
Starting mock CloudWatch (http port 4582)...
Starting mock SES (http port 4579)...
Starting mock Kinesis (http port 4568)...
Starting mock Redshift (http port 4577)...
Starting mock S3 (http port 4572)...
Starting mock CloudFormation (http port 4581)...
Starting mock DynamoDB (http port 4569)...
Starting mock SQS (http port 4576)...
Starting local Elasticsearch (http port 4571)...
Starting mock SNS (http port 4575)...
Starting mock DynamoDB Streams service (http port 4570)...
Starting mock Firehose service (http port 4573)...
Starting mock Route53 (http port 4580)...
Starting mock ES service (http port 4578)...
Starting mock Lambda service (http port 4574)...
Initializing DynamoDB Local with the following configuration:
Port:   4564
InMemory:   true
DbPath: null
SharedDb:   true
shouldDelayTransientStatuses:   false
CorsParams: *

* Running on http://0.0.0.0:4579/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4582/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4577/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4566/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4563/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4560/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4576/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4562/ (Press CTRL+C to quit)
* Running on http://0.0.0.0:4580/ (Press CTRL+C to quit)
[2017-08-02T16:47:27,538][INFO ][o.e.n.Node               ] [] initializing ...
[2017-08-02T16:47:27,608][INFO ][o.e.e.NodeEnvironment    ] [UT9YzFt] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [23.6gb], net total_space [78.6gb], spins? [possibly], types [ext4]
[2017-08-02T16:47:27,609][INFO ][o.e.e.NodeEnvironment    ] [UT9YzFt] heap size [483.3mb], compressed ordinary object pointers [true]
[2017-08-02T16:47:27,610][INFO ][o.e.n.Node               ] node name [UT9YzFt] derived from node ID [UT9YzFtzSaatL0HbGr8jPA]; set [node.name] to override
[2017-08-02T16:47:27,610][INFO ][o.e.n.Node               ] version[5.3.0], pid[10062], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Linux/3.19.0-61-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-08-02T16:47:28,231][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [aggs-matrix-stats]
[2017-08-02T16:47:28,231][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [ingest-common]
[2017-08-02T16:47:28,231][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [lang-expression]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [lang-groovy]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [lang-mustache]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [lang-painless]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [percolator]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [reindex]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [transport-netty3]
[2017-08-02T16:47:28,232][INFO ][o.e.p.PluginsService     ] [UT9YzFt] loaded module [transport-netty4]
[2017-08-02T16:47:28,233][INFO ][o.e.p.PluginsService     ] [UT9YzFt] no plugins loaded
[2017-08-02T16:47:29,629][INFO ][o.e.n.Node               ] initialized
[2017-08-02T16:47:29,629][INFO ][o.e.n.Node               ] [UT9YzFt] starting ...
[2017-08-02T16:47:29,791][INFO ][o.e.t.TransportService   ] [UT9YzFt] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2017-08-02T16:47:29,797][WARN ][o.e.b.BootstrapChecks    ] [UT9YzFt] initial heap size [209715200] not equal to maximum heap size [524288000]; this can cause resize pauses and prevents mlockall from locking the entire heap
[2017-08-02T16:47:29,798][WARN ][o.e.b.BootstrapChecks    ] [UT9YzFt] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2017-08-02T16:47:32,848][INFO ][o.e.c.s.ClusterService   ] [UT9YzFt] new_master {UT9YzFt}{UT9YzFtzSaatL0HbGr8jPA}{XNjuGQPgSRGP941x4Seysg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-08-02T16:47:32,878][INFO ][o.e.g.GatewayService     ] [UT9YzFt] recovered [0] indices into cluster_state
[2017-08-02T16:47:32,882][INFO ][o.e.h.n.Netty4HttpServerTransport] [UT9YzFt] publish_address {127.0.0.1:4561}, bound_addresses {[::1]:4561}, {127.0.0.1:4561}
[2017-08-02T16:47:32,885][INFO ][o.e.n.Node               ] [UT9YzFt] started
ERROR:localstack.services.generic_proxy:Error forwarding request: HTTPConnectionPool(host='127.0.0.1', port=4565): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f359c07b0d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/localstack/services/generic_proxy.py", line 185, in forward
    headers=forward_headers)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 471, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 581, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 481, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=4565): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f359c07b0d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

shrishinde:repos$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
shrishinde:repos$ 
shrishinde:repos$ python -c 'import localstack; import os; print os.path.dirname(localstack.__file__)'
/usr/local/lib/python2.7/dist-packages/localstack
shrishinde:repos$ ls -la `python -c 'import localstack; import os; print "%s/infra/dynamodb" % os.path.dirname(localstack.__file__)'`
total 3660
drwxrwsr-x 4 shrishinde staff    4096 Aug  2 16:37 .
drwxrwsr-x 5 shrishinde staff    4096 Aug  2 16:43 ..
-rw-r--r-- 1 shrishinde staff 3713946 Feb 16 23:02 DynamoDBLocal.jar
drwxr-xr-x 2 shrishinde staff    4096 Feb 16 23:02 DynamoDBLocal_lib
-rw-r--r-- 1 shrishinde staff    8644 Feb 16 23:02 LICENSE.txt
-rw-r--r-- 1 shrishinde staff     795 Feb 16 23:02 README.txt
drwxr-xr-x 2 shrishinde staff    4096 Feb 16 23:02 third_party_licenses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions