I am trying to setup Filestore to backup my FreePBX 15.0. My FreePBX box is setup on an independent LAN network. VPN is setup to another LAN. I setup a Win 10, FTP server on the LAN at the end of the VPN tunnel. I can access the WIN 10 FTP from browsers on both sides of the tunnel.
When I run backup from FreePBX I select the Filestore FTP that I setup to the WIN 10 FTP. I get this error:
Saving to selected Filestore locations
Root is invalid or does not exist: /xxx.xxx.xxx.xxx/
Finished Saving to selected Filestore locations
There were errors during the backup process
ftp_chdir(): The system cannot find the file specified.
Root is invalid or does not exist: /xxx.xxx.xxx.xxx/
Thanks for this suggestion. I was able to logon to the WIN 10 ftp server from the FreePbx shell. I have tried a few alternative ways to enter the ftp details in the GUI. Here is what that looks like:
FTP instructions i pasted is to execute from Freepbx linux server not from asterisk cli. Refer to web url i posted to see how you can execute linux cli command.
switch to asterisk user means - generally you log in to freepbx linux system as root so need to switch to “asterisk” user by running “su asterisk” command.
with gui settings , its hard to tell what could be wrong, as original backup error mentioned its failed to change directory so i am sure its something to do with FTP server permission only.
using asterisk user is needed because freepbx runs as asterisk user not as root so better to switch to “asterisk” user and then execute all FTP commands.
I am able to logon to the ftp server from the freepbx shell. I again typed su asterisk. Then ftp ip address. I am able to change directories and us the ls command to list files. Everything works find from the shell.
Did you at any time need to type anything to access the ftp service as the asterisk user ? if you did , then did the FreePBX user type exactly the same thing automatically?
I type ftp ip address then, user name and password and ftp works from the shell as asterisk user. I get the same result if I type ftp ip address for the root or su asterisk
I continue to get this error message if I run backup from the FreePBX gui
Saving to selected Filestore locations
Root is invalid or does not exist: /172.16.10.110/
Finished Saving to selected Filestore locations
There were errors during the backup process
ftp_chdir(): The system cannot find the file specified.
Root is invalid or does not exist: /172.16.10.110/
the only typing difference between my entry in Filestore vs the shell is I enter ftp before the ip address. I believe I tried typing ftp in Filestore. I will try that again.
Saving to selected Filestore locations
Root is invalid or does not exist: /172.16.10.110/
Finished Saving to selected Filestore locations
There were errors during the backup process
ftp_chdir(): The system cannot find the file specified.
Root is invalid or does not exist: /172.16.10.110/
it is highly unlikely that you have a path named that on any ftp server, try something simple like freepbx or leave it blank, , (no / in windoze, they get everything backwards )