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

Error 522 when Cloudflare is Enable #58

Closed
demartini opened this issue Jun 28, 2020 · 3 comments
Closed

Error 522 when Cloudflare is Enable #58

demartini opened this issue Jun 28, 2020 · 3 comments

Comments

@demartini
Copy link

Hello guys,

First, thank you very much for all this work, I have been following it since the beginning, it saved me a lot of work.

Note: I don't know if my problem is related to this project, but any help is welcome.

I was using version 1 from the beginning and it was working really well. This week, I decided to upgrade to version 2 to take advantage of all the new features and because I needed to do a new installation from the beginning.

I followed all the steps described in the articles:

and I used the files docker-compose-t2.yml, .env.example as a reference.

To be honest, I didn't change anything in the file, just removed what I don't use.

The services I use are:

Everything worked as expected.

But when I Enable Cloudflare on Site as described in the article, I can no longer access the services: bazarr.example.com, heimdall.example.com, etc.example.com.

image

My Cloudflare records:
image

If I Pause Cloudflare on Site everything works again.

Does anyone have any idea what I did wrong?

@gzecchi
Copy link
Contributor

gzecchi commented Jul 3, 2020

Hi @demartini ,

A 522 error happens when a TCP connection to the web server could not be established.
This typically happens when Cloudflare requests to the origin (your webserver) get blocked.
Can you double check that your A record point to you WAN IP Address?

@demartini
Copy link
Author

Hello @gzecchi,

Yes, I double check and my A record point to my WAN IP Address. If I pause the Cloudflare service I can access it normally.

image

But if I enable the Cloudflare I get the 522 error.

I tried everything, but I was not successful. For now I'm using it disabled, which is not very safe.

@htpcBeginner
Copy link
Owner

No activity. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants