slow server creation

it takes up to 5 minutes to create a new hosting account. most of that time is spent with the line going across the top and zero server activity related to the task.

Status: 
Closed (cannot reproduce)
Files: 

Comments

Do you not see progress messages while virtual server creation is ongoing?

the little red bar is floating across the top and that is all that happens..there's not other server activity in top or any other metric. Once it gets done sitting for a while it then moves forward. This has been an ongoing symptom with the various ipv6 problems I have observed and reported over the past two years

Hmmmm ... so the delay happens even before the first message is printed?

Ilia's picture
Submitted by Ilia on Sun, 04/12/2020 - 06:22

@hescominsoon Please look at my comment below, from the right angle. It seems to me, as you're facing incorrect network and/or DNS setup/configuration.

Let's say that you have a host called myhost that has active eth0 interface, with IP 1.2.3.4, okay? All seems right.

Now open /etc/hosts file and add:

2.3.4.5 myhost
3.4.5.6 myhost
4.5.6.7 myhost


..in case your host doesn't have those IPs on the interface (simply saying, doesn't respond to the ping), you will get an incredible and hard to debug lags.

Is there a way you might be experiencing this kind or familiar issue?

Jamie, If i have ipv6 enabled, it's when it is when it starts messing with apache. I have yet to try it with ipv6 off but I bet things will go much faster than if ipv6 is on...I have another ticket from over the past two years describing this exact symptom.

Ilia, incorrect guess. all networking is setup fine. This is really a rehash of another ticket which got abandoned.
https://www.virtualmin.com/node/67149 https://www.virtualmin.com/node/67208

Ilia's picture
Submitted by Ilia on Sun, 04/12/2020 - 07:33

Can you share an exact, world accessible domain name that is slow and where IPv6 is enabled?

Please read the title: slow server creation

Ilia's picture
Submitted by Ilia on Sun, 04/12/2020 - 10:13

Please read the title: slow server creation

I mean the domain name of the server, where you're running Virtualmin.

etc-md.com

Ilia's picture
Submitted by Ilia on Sun, 04/12/2020 - 18:57

Ilia, incorrect guess. all networking is setup fine. This is really a rehash of another ticket which got abandoned.

Perhaps you could strace (debug it for us) the call to the new domain creation?

Do the following. Create custom BASH script with the following content:

#!/usr/bin/env bash
datetime=`date +%Y%m%d%H%M%S`
pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
f=
if [[ "$1" == "-f" ]] ; then
        f=-f
fi
strace -t $f -o webmin-strace-$datetime.log -p `cat $pidfile`

..then run it first as:

bash strace_webmin.sh

..and second time as:

bash strace_webmin.sh -f

It would be useful if you could:

  1. Make sure that you are the only one using Webmin/Virtualmin for the time of debugging
  2. Disabled live stats in theme configuration
  3. Ran those mentioned debugging commands a second before you go to the browser and click create new domain link
  4. When getting the output of the first command wait the whole time, until create new domain is fully loaded, and when it's done go back to the console, click Ctrl+C to interrupt the script and write the log
  5. When getting the output of the second command - wait just a minute and then hit Ctrl+C without waiting until the create new domain is finished loading (otherwise the log file size will be in gigabytes)
  6. Zip both logs that you could find under /root directory and send it to us
Ilia's picture
Submitted by Ilia on Wed, 04/15/2020 - 07:00

Notice: BASH script above was update with adding -t switch to print time.

well i had a new signup today and i did NOT enable ipv6 at the time of setup..and the install was completed in seconds. So this is confirmation that ipv6 issues still exist in Virtualmin.

I wonder if the slow part is allocating an IPv6 address from a large range. What allocation range do you have defined on the server template page?

none I am using a single shared ipv6 address. I have another ticket where i asked about that very issue...

When you say "did NOT enable ipv6 at the time of setup", what does that mean exactly?

There is an option on the domain creation form to enable a private IPv6 address, but even without that the domain will normally still get the default v6 address.

it's pretty straightforward. look at the attached pic. When i say i did not enable ipv6 on the domain..i meant just that. oh and to further add..that IS the default. I would have to click the dot to allow the domain to have the shared ipv6.

Re: the virt having problems choosing from the trillions of addresses allocated in a /64.... https://www.virtualmin.com/node/67970

This ticket went unanswered so i closed it..along with many others RE: ipv6 issues.

any progress on the ipv6 issues within virtualmin or are we at the point now where the ticket goes unanswered and gets auto-closed?

if you folks want remote access..which i have offered multiple times but never taken advantage of...i will be happy to give you folks root access. I am sure your diags would go much faster. The system is setup just as the installer set things up from scratch. If you want remote access let me know and I'll set things up.

Ilia's picture
Submitted by Ilia on Fri, 05/01/2020 - 11:50

Yes, that would help, along side with steps to reproduce the problem, and the domain name, which we could use to create/delete for testing purposes.

Thank you!