TIPS Admin page says Forbidden after incrediblerestore2021

LitleBill

Active Member
Joined
May 10, 2023
Messages
146
Reaction score
26
I think something went wrong during restore, I am getting a 403 Forbidden when accessing the Admin module.
SSH works fine.
SIP phones don't register.



I wanted to create a secondary instance for IncrediblePBX2027 which is hosted on Crown cloud. I assumed it would be a usual 2027 U install.

So I installed incrediblePBX 2027-U on the secondary instance.
OS is Ubuntu 22.04.2 hosted on oracle cloud. which appeared to be identical to CC

after install I uploaded a backup file RP. XXXX from incrediblebackup2021
And I ran incrediblerestore2021 on the backup instance..

PBX status on the Restore instance looks fine


When visiting the Admin page from a whitelisted IP I get the Forbidden error above.

Are backups from Crowncloud not compatible with a usual Incredible2027 -U?
 
Last edited:
Yes, it returns an error


Bash:
root@noreply:/# fwconsole chown
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...

In Self_Helper.class.php line 212:

  Unable to locate the FreePBX BMO Class 'Core'A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install core 2) fwco
  nsole ma enable core
 
Did you try the suggestions it gave?
 
Thank you Knerd, yes I ran fwconsole chown
unfortunately it gave me an error

Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...

In Self_Helper.class.php line 212:

Unable to locate the FreePBX BMO Class 'Core'A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install core 2) fwco
nsole ma enable core
 
Yes, but did you execute the fwconsole commands suggested in the error message?
1) fwconsole ma install core
2) fwconsole ma enable core
 
Thank you Knerd, yes I ran fwconsole chown
unfortunately it gave me an error

Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...

In Self_Helper.class.php line 212:

Unable to locate the FreePBX BMO Class 'Core'A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install core 2) fwco
nsole ma enable core
So, you did not follow the advice it showed you do in the message it showed you.
 
My apologies, I misunderstood your instructions.

I did try
1) fwconsole ma install core
2) fwconsole ma enable core

all I got was just more errors .

I guess the backup is not compatible.
I will reinstall ubuntu 22 and then try the FreePBX backup/restore,
 
The FreePBX backup will definitely work for all your FreePBX configurations, custom recordings and CDR/CEL data. What won't be there is any firewall changes (you can copy over the /usr/local/sbin/iptables-custom from another system for that. Any Linux level stuff that incrediblerestore2021 would have brought won't be there.
 
My apologies, I misunderstood your instructions.

I did try
1) fwconsole ma install core
2) fwconsole ma enable core

all I got was just more errors .

I guess the backup is not compatible.
I will reinstall ubuntu 22 and then try the FreePBX backup/restore,
May have helped if you included the errors it returned
 
May have helped if you included the errors it returned


Code:
root@noreply:~# fwconsole ma install core
PHP Warning:  require_once(/var/www/html/admin/bootstrap.php): failed to open stream: No such file or directory in /etc/freepbx.conf on line 15
PHP Fatal error:  require_once(): Failed opening required '/var/www/html/admin/bootstrap.php' (include_path='.:/usr/share/php') in /etc/freepbx.conf on line 15
root@noreply:~# fwconsole ma enable core
PHP Warning:  require_once(/var/www/html/admin/bootstrap.php): failed to open stream: No such file or directory in /etc/freepbx.conf on line 15
PHP Fatal error:  require_once(): Failed opening required '/var/www/html/admin/bootstrap.php' (include_path='.:/usr/share/php') in /etc/freepbx.conf on line 15
root@noreply:~#
 
It sounds like something that would normally be installed during the Incrediblepbx install was not backed up with the Incrediblebackup2021. Check the systems you're trying to install this on for current PHP versions. My guess would be that either the PHP version is wrong or something in FreePBX-16 was not backed up by the incrediblebackup routine.

It should look like this:
Code:
php -v
PHP 7.4.33 (cli) (built: Jun  9 2023 16:51:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

Its obvious that /etc/freepbx.conf does not have the php path in it. That path is probably exported during the original PBX install and has not been captured on the backup/restore.
 
I honestly have never been able to make Incredible backup/restore work except on the system the backup was created on. I always build from scratch, do all my updates, do an Incredible install, restore the FreePBX backup, and then update my firewall settings (usually just copy over the /usr/local/sbin directory.)
 
Last edited:
I honestly have never been able to make Incredible backup/restore work except on the system the backup was created on. I always build from scratch, do all my updates, do an Incredible install, restore the FreePBX backup, and then update my firewall settings (usually just copy over the /usr/local/sbin directory.)
I think this is what I'm going to do.
Thank you
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top