Issues migrating from one server to another

Status
Not open for further replies.

Dee

Member
Jun 7, 2019
50
3
8
35
I am trying to migrate my fusionpbx from my existing server to Azure.

I followed the migration process from as https://docs.fusionpbx.com/en/latest/getting_started/restore.html#restore

However got an error after the installation error at the end of the script

Restoring the Backup
psql: error: could not connect to server: FATAL: password authentication failed for user "fusionpbx"
FATAL: password authentication failed for user "fusionpbx"
psql: error: could not connect to server: FATAL: password authentication failed for user "fusionpbx"
FATAL: password authentication failed for user "fusionpbx"
pg_restore: connecting to database for restore
pg_restore: error: connection to database "fusionpbx" failed: FATAL: password authentication failed for user "fusionpbx"
FATAL: password authentication failed for user "fusionpbx"
Restore Complete

when I access the GUI - i get this error

error: SQLSTATE[08006] [7] FATAL: password authentication failed for user "fusionpbx" FATAL: password authentication failed for user "fusionpbx"

Any ideas?
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Look in /etc/fusionpbx there are config files in there with the passwords. The must match your DB password
 
  • Like
Reactions: Dee

Dee

Member
Jun 7, 2019
50
3
8
35
Please advice what i am suppose to do.

When i tried to recover the password with below, i actually got the password but dont know where to put it to solve this problem,

cd /etc/fusionpbx
mv config.php config1.php
cat config1.php

Any help will be much appreciated
 

Dee

Member
Jun 7, 2019
50
3
8
35
I also tried /etc/fusionpbx/config.php but still stucked. Anyone with any suggestions? or is there a simple way to migrate from one server to another apart from the script in the documentation?



root@pbxsnapshot18december:~# /etc/fusionpbx/config.php

/etc/fusionpbx/config.php: line 1: ?php: No such file or directory

/etc/fusionpbx/config.php: line 3: /bin: Is a directory

/etc/fusionpbx/config.php: line 4: FusionPBX: command not found

/etc/fusionpbx/config.php: line 5: Version:: command not found

/etc/fusionpbx/config.php: line 7: The: command not found

/etc/fusionpbx/config.php: line 8: syntax error near unexpected token `the'

/etc/fusionpbx/config.php: line 8: `1.1 (the "License"); you may not use this file except in compliance with'

root@pbxsnapshot18december:~#
 
Status
Not open for further replies.