Migrated Fusion to new server - getting <! - {title} -> after restore

Status
Not open for further replies.

alexoos

New Member
Apr 10, 2019
17
0
1
36
Hello!
I have fusion installed a on a physical computer running Debian 9.8 and postgres 13. Trying to migrate that server to a proxmox container. Both sides were fully up to date with the latest pull.

I setup a Debian 10 minimal image, went through the install script, Freeswitch wouldnt start. After some research I found this article, commented out these 3 lines (#IOSchedulingClass=realtime, #IOSchedulingPriority=2, #CPUSchedulingPolicy=rr) and freeswitch started correctly. I was able to login to the web interface. Everything looks good. Status of all services checked out.

I ran the backup script from the fusion site on my current server. It performs a DB dump without issues.

I login to my new server, run the restore script which uses RSYNC to copy files, tries to restores the database - Gives error
DROP SCHEMA
CREATE SCHEMA
pg_restore: connecting to database for restore
pg_restore: creating SCHEMA "public"
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 3; 2615 2200 SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists
Command was: CREATE SCHEMA public;

I manually deleted the public schema and restored the sql file manually and was able to get it to restore without errors. Compared the database to the old one and it appears to be the same.

When I login to my new server - Now i get a blank screen with only <! - {title} -> showing.

Enabled errors to be shown and I get:

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/fusionpbx/resources/php.php on line 29

Notice
: Undefined index: domains in /var/www/fusionpbx/resources/pdo.php on line 258

Notice
: Undefined index: domain_uuid in /var/www/fusionpbx/resources/classes/domains.php on line 95

Notice
: Undefined index: domain_name in /var/www/fusionpbx/resources/classes/domains.php on line 202

Notice
: Undefined index: domain_uuid in /var/www/fusionpbx/resources/pdo.php on line 329

Notice
: Undefined index: en-us in /var/www/fusionpbx/resources/classes/text.php on line 105

Notice
: Undefined index: en-us in /var/www/fusionpbx/resources/classes/text.php on line 110

Notice
: Undefined index: destination in /var/www/fusionpbx/resources/login.php on line 38

Notice
: Undefined index: cache in /var/www/fusionpbx/resources/footer.php on line 43

Notice
: Undefined variable: template_rss_sub_category in /var/www/fusionpbx/resources/footer.php on line 50

Notice
: Undefined index: custom_css in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 37

Notice
: Undefined index: font_loader in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 57


Any help would be appreciated. I feel like im pretty close to making this work but am at a loss.
 

alexoos

New Member
Apr 10, 2019
17
0
1
36
Forgot to mention - Below is the error.log file from Nginx

2021/04/18 11:38:51 [error] 274#274: *19 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-datetimepicker.min.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-datetimepicker.min.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 275#275: *14 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-colorpicker.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-colorpicker.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/themes/default/css.php?login=default HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/jquery/jquery-1.11.1.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/jquery/jquery-1.11.1.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/jquery/jquery.autosize.input.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/jquery/jquery.autosize.input.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/momentjs/moment.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/momentjs/moment.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap.min.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap.min.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-datetimepicker.min.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-datetimepicker.min.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-colorpicker.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-colorpicker.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
2021/04/18 11:38:51 [error] 274#274: *16 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-pwstrength.min.js" failed (2: No such file or directory), client: 10.242.2.2, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-pwstrength.min.js HTTP/1.1", host: "192.168.19.10", referrer: "https://192.168.19.10/"
 

alexoos

New Member
Apr 10, 2019
17
0
1
36
Just to add to this - Figured it may be something with the different version of debian... So I created a Debian 9 container, copied my same steps, got the same result.

Any help would be greatly appreciated :(
 

alexoos

New Member
Apr 10, 2019
17
0
1
36
I created a fresh container again, Debian V10, privileged (unchecked - unprivileged), enabled Nesting, ran the FusionPBX installation script, had to comment out 3 lines in fusionpbx service for it to start still... ran the restore script from the fusion site... Exact same result. get the title in the top bar when loading, nginx error log looks identical.
 

alexoos

New Member
Apr 10, 2019
17
0
1
36
Update: I figured the promox had something to do with it. Somehow going physical to virtual was causing issues. So I got a different physical server and performed the restore. End result was the exact same thing. Showing Title in browser only and identical error logs from nginx.

I thought maybe it was a configuration within nginx - so I copied the nginx folder as well... didnt appear to make any difference.

Kind of worried now that I don't have any restore route if this production server does crash.
 
Status
Not open for further replies.