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

Sometimes https is not working for new site #18

Open
dkeza opened this issue Nov 17, 2016 · 2 comments
Open

Sometimes https is not working for new site #18

dkeza opened this issue Nov 17, 2016 · 2 comments

Comments

@dkeza
Copy link

dkeza commented Nov 17, 2016

I have issue, that after some time, Armor won't issue TLS certificate for newly entered site in config.json.
Only way to get around this issue is to completely delete cache_tls file, and to start again.

Another problem is, that I don't see that error in my Armor log file.
I am on Windows, and I am calling Armor from BAT file like so:
armor -c config.json >> armor.log
And this is working perfectly, but TLS error messages were not written into file. I see those messages only when I run armor.exe in terminal window:

 ⇛ https server started on
2016/11/17 11:27:42 http: TLS handshake error from 72.66.115.14:52280: unknown host
2016/11/17 11:27:45 http: TLS handshake error from 72.66.115.14:58976: unknown host
2016/11/17 11:27:45 http: TLS handshake error from 72.66.115.14:58977: unknown host)

But in my armor.log I don't see those messages, only JSON log lines are showed:
{"time":"2016-11-17T11:29:42+01:00","remote_ip":"192.168.1.3","host":"","method":"GET","uri":"timeline","status":200, "latency":2131000,"latency_human":"2.131s","bytes_in":0,"bytes_out":86578}
{"time":"2016-11-17T11:29:42+01:00","remote_ip":"192.168.1.3","host":"
","method":"GET","uri":"chrome.ico","status":200, "latency":55000,"latency_human":"55ms","bytes_in":0,"bytes_out":3638}

@vishr
Copy link
Member

vishr commented Nov 17, 2016

For logs, you also need to redirect stderr see http://stackoverflow.com/questions/503846/how-do-i-echo-and-send-console-output-to-a-file-in-a-bat-script

How often are you adding new domains?

@dkeza
Copy link
Author

dkeza commented Nov 18, 2016

Thank You for this this tip for redirecting stderr! It works now.

I am actually experimenting with Armor, and now I have 8 domains. When I added 9 domain, only for this newly added domain I am receiving this error.
First time when this issue occurred, I had 4 domains, and when I tried to add 5. then it didn't work, until i deleted cache_tls and then it worked for first 8 domains. When I later (tomorrow) tried to add 9. domain, it didn't work.
I have dyndns account, and I create there new domains for testing.

I want to move some static sites from web hosting to my local PC, with Armor as reverse proxy and for auto TLS.

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

2 participants