Installation freezes when using a script

Hello.
I’m trying to install FreePBX 17 on Debian 12.15.0 using a script.
Everything goes fine until the Upgrading FreePBX 17 modules step.
And at that point, the installation freezes. No matter how long I wait, the installation won’t proceed.
The log file contains the following information:

Upgrading module ‘endpoint’ from 17.0.3 to 17.0.16.4
Downloading module ‘endpoint’
Processing endpoint
Downloading…
0/100149994 [>---------------------------] 0%
5128496/100149994 [=>--------------------------] 5%
10016064/100149994 [==>-------------------------] 10%
20031000/100149994 [=====>----------------------] 20%
30045200/100149994 [=========>-------------------] 30%
40061088/100149994 [============>----------------] 40%
50075176/100149994 [================>------------] 50%
60090448/100149994 [==================>----------] 60%
70105912/100149994 [======================>--------] 70%
80120360/100149994 [=====================>-----] 80%
90135632/100149994 [========================>–] 90%
100149994/100149994 [===========================] 100%
Finished downloading
Extracting…Done
Download completed in 12 seconds
Create symlink…Done
Checking database tables…Done
Migrating tables as required…Done
Checking Settings and Defaults…

I will be glad for any help.

Thank you.

Do you have at least 2GB RAM?

This is a virtual machine and it is allocated 8GB and 8 processor cores.

Did it fail with any output? How long did you leave it hanging?

It just freezes on “Checking Settings and Defaults”… it’s been stuck there for about three hours now.
I tried interrupting the script and restarting it. Same result.
I recreated the virtual machine, installed Debian, and ran the script.
And it froze again, right where it was.

I have run a fresh install just now on the cheapest 2GB at Vultr with no issues.

You’re welcome to try IN1CLICK and see if that gets it done, or provides any clues for failure:

Thanks for the advice, I’ll try your solution.
I understand that most users don’t have any problems installing with the script.

What spice level were you trying to install?