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

New host generation is wrong (Singapore server only) #5

Closed
fu-sen opened this issue Jun 26, 2021 · 17 comments
Closed

New host generation is wrong (Singapore server only) #5

fu-sen opened this issue Jun 26, 2021 · 17 comments

Comments

@fu-sen
Copy link
Contributor

fu-sen commented Jun 26, 2021

I'm trying to host a new Singapore server, but it spawns several times and it all fails.

When I look at the deploy, I see the following line.

CRITICAL: SSH login failed. Most procedure will not execute.

The generated website is returning ERR_TOO_MANY_REDIRECTS.

In line with this, the portal response is currently significantly worse. I sometimes see the 502 Bad Gateway.
I feel that something is obviously wrong.
Even in this state, the New York server successfully created a new host. Therefore, I am reporting to domcloud-id.

@willnode
Copy link
Member

I forgot to turn the swapfile on. It should back to normal now.

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 26, 2021

Yes, the response is obviously faster. When I looked at the system status, swap was 0B.
スクリーンショット 2021-06-27 08 07 31

I will try to work on the portal again.

@willnode
Copy link
Member

Yeah, it's a common mistake. Now I have put this under cron job bootup so I won't need to turn it back on manually again.

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 26, 2021

No, it was too fast to close the issue. The portal response is lighter, but creating a new host is still problematic. There still seems to be some other problem.

@willnode willnode reopened this Jun 26, 2021
@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 26, 2021

The New York server can successfully generate a new host, but there is a problem with subsequent template generation.
The issue is related to dom-portal, but you are aware of it so let's continue with this issue.

@willnode
Copy link
Member

I noticed that in some cases invoking webmin host creation took longer than 30 seconds, which is the maximum time NginX can process. I will try to put it as a background job instead.

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 29, 2021

I have confirmed that the New York server *.domcloud.io works perfectly, including the template behavior.
On the other hand, the Singapore server *.dom.my.id cannot be newly used even now because the host creation is abnormal.
Something is wrong with the Singapore server.

@willnode
Copy link
Member

I checked your log files, it turns out the sga server actually correct. You missed the fastcgi: off and firewall: off hence the firewall kicks in. The firewall isn't gone, just need to be disabled explicitly.

You just need to put those to your existing template. No need to separate the template because the deployer knows the execution order automatically.

Btw, the nyc server had problem with it's iptables config. Turns out iptables config is far less reliable than nginx one. It gone back now.

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 29, 2021

I am trying 2 different steps at this time.

  • Template containing root: public_html/site: This should turn off the firewall.
  • Default template: I created a new host regardless of the template. The following contents
features: ['mysql', 'ssl']
nginx:
  ssl: on

So what I'm talking about right now is a problem that's occurring independently of the template.

@willnode
Copy link
Member

No, just setting the root to a subfolder doesn't turn it off, neither fastcgi: off. Explicitly telling firewall: off will do.

And by default firewall record will be added after creation of new host,

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 29, 2021

Hmm? You seem to be looking only at the effects of firewalls. See the original text where I put this issue. I'm not talking about firewalls: #5 (comment)

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 29, 2021

I created a Singapore server with the default template. You will know the host name. Please understand what is happening again.

@willnode
Copy link
Member

Ok I know the root problem. There's rogue username exist with that same name and that's prevent the creation of new host. Deleted it now.

@willnode
Copy link
Member

Anyway, feel free to drop an email to me if you need to solve problems privately.

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 29, 2021

Oh awesome! Our DOM Cloud is back.

I revived the GitHub project during this time. I needed that template. I also added a setting to disable the firewall:

https://mkdocs.dom.my.id/ wouldn't have been created by anyone other than me. It seems half-baked by creating or deleting.
Probably the timing when the load on the server was high.

It's time to close the issue. After that, we need to be careful about malicious attacks again.
Thank you for your support so far.

p.s. I'm looking at my profile, has PayPal payment been enabled?

@fu-sen fu-sen closed this as completed Jun 29, 2021
@willnode
Copy link
Member

Glad it worked now.

PayPal is enabled, though nobody has tested to pay with it so far.

@fu-sen
Copy link
Contributor Author

fu-sen commented Jun 29, 2021

PayPal is enabled, though nobody has tested to pay with it so far.

https://domcloud.io/price

FAQ What are the payment methods? Has not been updated.
I can work with PayPal, so I might be the first one. I am thinking about that possibility.

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