Jump to content
thirty bees forum
  • 0

Stuck on install - Gateway timeout


Question

Posted

Hello,

I am trying to install thirty bees on my VPS,

The VPS has some good specs: KVM virtualization, 4 Epyc cores, 8GB RAM.

I have installed Navy Linux 8.4 (a RHEL repack, just like CentOS), PHP 7.4 from Remi's repository and Apache httpd and MySQL from the repositories standard.

While installing thirty bees, the installer successfully connects to the database in the "System configuration" step. In the following step however the installer encounters a "Gateway timout" error and fails to complete the install process. The complete error message is 

Ajax request failed for process installDatabase=true with error. Gateway Timeout

Do you know how to get past this problem?

Any clue is appreciated.

My virtual host .user.ini contains the following lines

memory_limit = 1024M
max_execution_time = 300

But changing or removing them doesn't seem to change the behavior of the installer.

6 answers to this question

Recommended Posts

  • 0
Posted

Also, if you are using cloudflare, try to disable it for the installation process. Cloudflare by default respons with 524 Gateway Timeout error after 30 seconds... so even though your server supports 300 secs the request will be terminated after 30 seconds.

  • 0
Posted

Hi datakick, thank you for your replies. I really appreciate your work and help.

I am not using Cloudflare, so I don't think that is the problem, but that is interesting.

With "server configuration issue" are you talking about something that I could have set up wrong in my virtualized environment or about something that the host has done while setting up my VPS? Do you have any suggestion on how to diagnose php or mysql performance issues?

Thank you again for the support

  • 0
Posted

I figured it out: the host limits storage IOPS.

Once I discovered that the host limits storage performance I did the following:

In the apache httpd virtual host configuration I have added the line

TimeOut 900

In the .user.ini of the virtual host I have added the lines

max_execution_time = 900
max_input_time = 900
default_socket_timeout = 900

And in php-fpm's configuration file located in /etc/php-fpm.d/www.conf I have added the line

request_terminate_timeout = 900

The installation took about 11 minutes, which is insane.

After the installation was successful I reverted these changes.

  • 0
Posted

Hi,

I just installed ThirtyBees version 1.3.0 and it took me about 3 minutes to create the database, import the files, do the installation procedure.

I think you have a problem on your server to take so much time.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...