I’m running through our internal docs here and I’ve found that restoring a backup from an FTP server in FREEPBX doesn’t appear to be working. We’re running 3.211.63-6.
If you go to Backup and Restore, and click on Restore on the right, then click on the FTP server entry on the right we get a spinning wheel in the freepbx interface, then nothing.
The FTP server shows that Freepbx is trying to access a directory that doesn’t access. Here’s the FTP log;
150 Opening data channel for directory list.
226 Transfer OK
200 Port command successful
LIST -d1 */
550 Directory not found.
The backup to the FTP site works fine and the uploaded TGZ is fine and can be manually copied to the FreePBX server and restored from there.
Any ideas why FTP restoration wouldnt work?
Anyone? This appears to have happen on the last few versions and we’ve tried using quite a few FTP servers now. There are a few forum posts on other sites from way-back implying this used to work though.
Can anyone confirm or deny it works or which file I might start looking at?
I posted this a bit ago. I have not looked into further.
If you do hear anything then do post it back here Alan, I’d love to get this working as it would give me real peace of mind.
I am running Distro 2.210.62-6 and do not get the list of files.
You debug info is valuable. This might be a bug. You should probably open a ticket so the developers can look at it.
I’ve raised a bug report so let’s see what they say.
Here is what I discovered through further testing.
I have a backup job that runs every Sunday night on the FreePBX server. The job is named Weekly_Su. When the job runs it created a subdirectory on my FTP backup server called Weekly_Su and stores the backup files in that directory. The problem seems to be that when you attempt to do a restore the system is unable to retrieve the listing of the subdirectory nor the files in the subdirectory. If I move the files up one directory level then the files will show up in when you do a restore. This is clearly a bug.
I also added the subdirectory Weekly_Su to the path in the FTP server config in FreePBX. The files are then listed. The problem with this is that the next backup will create another Weekly_Su directory within the existing Weekly_Su directory.
What is the ticket number? If you don’t mind I would like to add my findings.
create a second ftp server definition in freepbx with the appropriate path and use that definition for restore and the one without a path definition for backup
Now that is out of the box thinking!!! Great work around.
Nice work around, but a fix would be better
This is a problem with FreePBX 22.214.171.124rc1.4 as well. Backup to FTP works, restore doesn’t list files. Not having success with work around either. I am not dealing with folders, just dumping to root.
Looks like it might be a problem with PHP and ftp_nlist edit
//use pasive mode
//use pasive mode
I was then able to see files and perform a restore!