Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerializationException with ECS Fargate Tasks #3758

Closed
gsoyka opened this issue Aug 13, 2018 · 2 comments
Closed

SerializationException with ECS Fargate Tasks #3758

gsoyka opened this issue Aug 13, 2018 · 2 comments
Assignees
Labels
area/provider/ecs contributor/waiting-for-feedback kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. priority/P1 need to be fixed in next release status/5-frozen-due-to-age

Comments

@gsoyka
Copy link

gsoyka commented Aug 13, 2018

Do you want to request a feature or report a bug?

Bug

What did you do?

Attempted to run traefik using the ecs backend. We are currently utilizing a mix of Fargate and EC2 tasks. Verified that traefik starts up normally when only EC2 tasks are present, but fails when any Fargate tasks exist within the cluster.

What did you expect to see?

Traefik starting normally.

What did you see instead?

Provider connection error SerializationException:
	status code: 400, request id: 279485fa-9f13-11e8-a3c7-9510e5251df9, retrying in 714.423969ms

Output of traefik version: (What version of Traefik are you using?)

Version:      v1.6.5
Codename:     tetedemoine
Go version:   go1.10.3
Built:        2018-07-10_03:54:03PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?

docker run -it -p 80:80 -p 8080:8080 traefik:alpine --api --ping --ping.entrypoint=http --ecs --ecs.autodiscoverclusters --ecs.region=us-east-1

If applicable, please paste the log output in DEBUG level (--logLevel=DEBUG switch)

DEBU[2018-08-13T16:12:28Z] Global configuration loaded {"LifeCycle":{"RequestAcceptGraceTimeout":0,"GraceTimeOut":10000000000},"GraceTimeOut":0,"Debug":false,"CheckNewVersion":true,"SendAnonymousUsage":false,"AccessLogsFile":"","AccessLog":null,"TraefikLogsFile":"","TraefikLog":null,"Tracing":null,"LogLevel":"DEBUG","EntryPoints":{"http":{"Address":":80","TLS":null,"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"WhiteList":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}},"traefik":{"Address":":8080","TLS":null,"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"WhiteList":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}}},"Cluster":null,"Constraints":[],"ACME":null,"DefaultEntryPoints":["http"],"ProvidersThrottleDuration":2000000000,"MaxIdleConnsPerHost":200,"IdleTimeout":0,"InsecureSkipVerify":false,"RootCAs":null,"Retry":null,"HealthCheck":{"Interval":30000000000},"RespondingTimeouts":null,"ForwardingTimeouts":null,"AllowMinWeightZero":false,"Web":null,"Docker":null,"File":null,"Marathon":null,"Consul":null,"ConsulCatalog":null,"Etcd":null,"Zookeeper":null,"Boltdb":null,"Kubernetes":null,"Mesos":null,"Eureka":null,"ECS":{"Watch":true,"Filename":"","Constraints":[],"Trace":false,"TemplateVersion":2,"DebugLogGeneratedTemplate":false,"Domain":"","ExposedByDefault":true,"RefreshSeconds":15,"Clusters":["default"],"Cluster":"","AutoDiscoverClusters":true,"Region":"us-east-1","AccessKeyID":"","SecretAccessKey":""},"Rancher":null,"DynamoDB":null,"ServiceFabric":null,"Rest":null,"API":{"EntryPoint":"traefik","Dashboard":true,"Debug":false,"CurrentConfigurations":null,"Statistics":null},"Metrics":null,"Ping":{"EntryPoint":"http"}}
INFO[2018-08-13T16:12:28Z] Preparing server http &{Address::80 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc4202b7760} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s
INFO[2018-08-13T16:12:28Z] Preparing server traefik &{Address::8080 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc4202b7780} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s
INFO[2018-08-13T16:12:28Z] Starting provider *ecs.Provider {"Watch":true,"Filename":"","Constraints":[],"Trace":false,"TemplateVersion":2,"DebugLogGeneratedTemplate":false,"Domain":"","ExposedByDefault":true,"RefreshSeconds":15,"Clusters":["default"],"Cluster":"","AutoDiscoverClusters":true,"Region":"us-east-1","AccessKeyID":"","SecretAccessKey":""}
INFO[2018-08-13T16:12:28Z] Starting server on :80
INFO[2018-08-13T16:12:28Z] Starting server on :8080
DEBU[2018-08-13T16:12:28Z] ECS Clusters: [arn:aws:ecs:us-east-1:632106808859:cluster/ecs-cluster-Cluster-9DEW5N7BJ2IC]
2018/08/13 16:12:28 Request.NextPage deprecated. Use Pagination type for configurable pagination of API operations
ERRO[2018-08-13T16:12:28Z] Provider connection error SerializationException:
	status code: 400, request id: ace788e9-9f13-11e8-8e95-a9927097b410, retrying in 286.075265ms
DEBU[2018-08-13T16:12:29Z] ECS Clusters: [arn:aws:ecs:us-east-1:632106808859:cluster/ecs-cluster-Cluster-9DEW5N7BJ2IC]
@gsoyka gsoyka changed the title SerializationException when using ECS backend in us-east-1 SerializationException with ECS Fargate Tasks Aug 13, 2018
@nmengin nmengin added priority/P1 need to be fixed in next release area/provider/ecs kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. and removed status/0-needs-triage labels Aug 14, 2018
@mmatur
Copy link
Member

mmatur commented Aug 22, 2018

Hi @gsoyka,

Thanks for your interest in Træfik.

I think your issue is fixed by #3379.

The fargate support has been added in Traefik v1.7. It is not available in v1.6.

Could you please test with Traefik v1.7

@traefiker
Copy link
Contributor

Hi! I'm Træfiker 🤖 the bot in charge of tidying up the issues.

I have to close this one because of its lack of activity 😞

Feel free to re-open it or join our Slack workspace for more community #support.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/provider/ecs contributor/waiting-for-feedback kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. priority/P1 need to be fixed in next release status/5-frozen-due-to-age
Projects
None yet
Development

No branches or pull requests

4 participants