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
Ajenti V Crash - could not bind error #424
Comments
That's not a crash. This means another process took the 8000 port. Check with |
Nothing is listening on port 8000:
But Ajenti isn't running:
|
Tried checking if somehow the port got closed but isn't the case:
With a normal request I get this:
Also:
What can this be? Has to be something with Ajenti... |
Sorry I didn't notice the domain the the log. You should use IP address, not the domain. You can fix it directly in /etc/ajenti/config.json |
But should I use IP always? But how then I get to the question that I want to redirect subdomain? Do I redirect it to the IP address? |
Your Ajenti will be listening on https://*:8000. For the redirection, you have an NGINX vhost which redirects http://ajenti.quantbull.com to https://quantbull.com:8000, which is Ajenti |
The TCP bind/listen specifications don't have anything to do with HTTP routing, they only specify which network interfaces will receive the connections. |
I get a Eugene. My config file is:
Ajenti.log:
Crash report: Ajenti bug report
Log content:
|
Use |
Where did you see my A record? But the domain.com I'm redirecting to www subdomain which is sent to launchrock and all the other subdomains are sent to 195.154.240.241 when I check it on godaddy... |
|
Where do you see that? Got me curious? BTW. Seemed like when I set both http://quantbull.com and http://www.quantbull.com it got changed to another IP address and as ajenti subdomain was pointing to A it got changed too. I know created a A record called server and pointed the intended subdomains to server and let's see what happens. |
You can use any DNS lookup tool to query the DNS zone. I just used |
Last question: Should host in Ajenti always be the IP address? Or are there possibilities to go around it? |
It can be a domain name. But your problem was that the domain name wasn't resolved to an IP that belongs to the machine, so it couldn't listen on that address. (Of course you can just use 0.0.0.0 to bind to all IPs) |
ah ok... And subdomain name? Does that make any difference? |
There's no real difference between domains and subdomains. Your domain is a subdomain of .com anyway. |
Ah ok... I'me sorry, but it's all quite new for me... Never hosted a website before... All I did was fooling around on localhost. |
It will only give a different result if your subdomain resolved to a different IP. Actually what happens is that domain is resolved on start, and the resulting IP is used to bind. Domain name is then discarded. |
Ah ok. So in that case using the IP or a domain that points to it should do? |
Right |
For debugging problems is there a way I can check if DNS updated my changes? |
For example: https://www.whatsmydns.net/ |
Thanks! |
Hi everyone, I just installed some monitoring plugins and the when Ajenti got restarted it didn't get back up... It crashes...
Any help debugging?
The text was updated successfully, but these errors were encountered: