What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion Can't deploy Traefik.. Please help..

smithy_d

Full Member
PG Version
8.6.6
Server Type
Remote - VPS
Hi.

I have a domain from GoDaddy which I already replaced Name Servers with CloudFlare ones. Now in CloudFlare, it is saying my domain is active and protected by CloudFlare. However, whenever I tried deploy Traefik, it is showing the error and can't able to deploy. Is there any additional steps do I have to do? I watched Traefik Tutorial Video, but it doesn't show details about CloudFlare.... Do I missing anything?

I have done the following parts:

- already changed Name Servers in GoDaddy DNS / and it has already updated too
- already input Global API Key of CloudFlare in Traefik
- already input CF Email ID in Traefik
- already input domain name / email
- already selected Cloudflare
- already selected "portainer" in step 1 (as per your traefik tutorial video)

This is the error message I got

fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error starting container a8bce1b28f9661e2f5d560caf92ffe401376bb55467f52f5c3ac117a4fbad3f8: 500 Server Error: Internal Server Error (\"driver failed programming external connectivity on endpoint traefik (55a36b234ce5be53d6f3b4a69a4e6870205d56078b3e4f3a6eb826ed956d8b44): listen tcp 0.0.0.0:80: bind: address already in use\")"}
 

smithy_d

Full Member
Try rebooting your server, the error message says the port is already in use....
Thanks, will do now. Btw, do I've to add anything in CloudFlare DNS setting? I already added CNAME for required apps. On top of that, I added A record (A / Name = my domain name / Point to my server IP), do I miss anything?
 

Robo

Junior Member
In the DNS section add an A record, one for every single app
Example
A - portainer - you.server.ip - Automatic TTL (then click Add Record) *this is a must*
A - emby - you.server.ip - Automatic TTL (then click Add Record)
A - pgui - you.server.ip - Automatic TTL (then click Add Record)
A - radarr - you.server.ip - Automatic TTL (then click Add Record)
A - sonarr - you.server.ip - Automatic TTL (then click Add Record)
ETC

that should solver you issue.
 

smithy_d

Full Member
In the DNS section add an A record, one for every single app
Example
A - portainer - you.server.ip - Automatic TTL (then click Add Record) *this is a must*
A - emby - you.server.ip - Automatic TTL (then click Add Record)
A - pgui - you.server.ip - Automatic TTL (then click Add Record)
A - radarr - you.server.ip - Automatic TTL (then click Add Record)
A - sonarr - you.server.ip - Automatic TTL (then click Add Record)
ETC

that should solver you issue.
So not CNAME? Just add them as A? Right?
 

smithy_d

Full Member
yes A records point to IP's, Cnames points a name to another name example www.domain.com to domain.com
Thanks, any idea for this below error message? Due to that error, I can't able to deploy at the moment...

fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error starting container 53c70c584b5cede8d0cd899b79598b85424dfba22b762615b3f20feeace6b830: 500 Server Error: Internal Server Error (\"driver failed programming external connectivity on endpoint traefik (2370ec2dce19b99b5b51e80c5721aa91759e74c493885ec76bce9593db76c03e): listen tcp 0.0.0.0:80: bind: address already in use\")"}
 

Robo

Junior Member
Thanks, any idea for this below error message? Due to that error, I can't able to deploy at the moment...

fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error starting container 53c70c584b5cede8d0cd899b79598b85424dfba22b762615b3f20feeace6b830: 500 Server Error: Internal Server Error (\"driver failed programming external connectivity on endpoint traefik (2370ec2dce19b99b5b51e80c5721aa91759e74c493885ec76bce9593db76c03e): listen tcp 0.0.0.0:80: bind: address already in use\")"}
here portainer cant start the container
53c70c584b5cede8d0cd899b79598b85424dfba22b762615b3f20feeace6b830
because it is using the same ip address of another container. But it seems that all your configuration is not deployed correctly.
 

smithy_d

Full Member
here portainer cant start the container
53c70c584b5cede8d0cd899b79598b85424dfba22b762615b3f20feeace6b830
because it is using the same ip address of another container. But it seems that all your configuration is not deployed correctly.
How can I fix it?
 
T

TheShadow

Guest
1 A record for the main domain, CNames for the subdomains. This is the best practice and recommended way.

Several A records are redundant and if you ever need to update the IP, using CNames it's just 1 field, instead of several.

See the CloudFlare wiki to ensure you have it setup correctly.

 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Top NZB NewsGroups!

Members - Up To a 58% Discount!

Development Donations

 

Online statistics

Members online
6
Guests online
77
Total visitors
83
Top