FreePBX / issue-tracker

The unified FreePBX issue tracker.
https://www.freepbx.org
GNU General Public License v3.0
9 stars 1 forks source link

[bug]: FTPS Not Working #379

Closed FastEddy1114 closed 1 month ago

FastEddy1114 commented 2 months ago

FreePBX Version

FreePBX 17

Issue Description

I recently upgraded from FreePBX 16 to 17. I uploaded my latest backup to FreePBX and restored the backup without issue. I noticed that my backups to FTP were not showing up on the FTP server. I monitored the server interface of the FTP server and noticed every time the backup ran it would throw an error on the FTP server stating "503 use AUTH first." My FTP server is configured to "Require explicit FTP over TLS", and this configuration works fine with my FreePBX 16 server. When the old server connects to the FTP server there is a log entry of "AUTH TLS" followed by "234 Using authentication type TLS." The only way I can get the FreePBX 17 server to connect is to reconfigure the FTP server to allow plain FTP. In Settings > Filestore > FTP the FTP instance on the FreePBX 17 server is set to "Use TLS" > "Yes" just like it is on the FreePBX 16 server. Something is not right in the implementation here as the toggle for the Use TLS option seems to be ignored and it is stuck on No no matter what.

Operating Environment

FreePBX 17.0.19.1, Asterisk Version: 21.4.1, Filestore version: 17.0.2.22

Relevant log output

When FreePBX 17 tries to connect via FTPS
2024-08-16T16:13:31.331Z << [FTP Session 12 192.168.x.x] 503 Use AUTH first.
2024-08-16T16:13:31.332Z >> [FTP Session 12 192.168.x.x] QUIT
2024-08-16T16:13:31.332Z << [FTP Session 12 192.168.x.x] 221 Goodbye.

When FreePBX 16 tries to connect via FTPS
2024-08-16T19:13:47.756Z >> [FTP Session 38 192.168.x.x] AUTH TLS
2024-08-16T19:13:47.757Z << [FTP Session 38 192.168.x.x] 234 Using authentication type TLS.
AA7CL commented 1 month ago

I'm glad to see I'm not the only one having this issue. I've opened a bug issue as you did and was told or open a support case with Sangoma. I ran a tcpdump on my system and TLS is not being implemented even thought it is selected in the Filestore configuration. Sangoma told me to update the modules (mine are already up to date) and they also told be to buy some credits. Hmmmmmm.... buy support credits to fix a bug.... :) Like you, my FreePBX 16 instance works fine.

kguptasangoma commented 1 month ago

Hi @FastEddy1114 @AA7CL Can any one of you provide us the access of your FTP server so we can try to connect to reproduce issue in-house? Please send me email with credentials to kgupta@sangoma.com

FastEddy1114 commented 1 month ago

Hi @FastEddy1114 @AA7CL Can any one of you provide us the access of your FTP server so we can try to connect to reproduce issue in-house? Please send me email with credentials to kgupta@sangoma.com

Kapil, I have emailed you credentials so you can test connecting to my FTP server so you can troubleshoot this in-house.

jissphilip commented 1 month ago

filestore version 17.0.2.24

AA7CL commented 1 month ago

I'm running 17.0.2.23. Does 24 fix this issue? If so, how do you get it?

jissphilip commented 1 month ago

fwconsole ma update filestore --edge

AA7CL commented 1 month ago

That worked and fixed the issue.. Thanks Phillip!


From: Philip Joseph @.> Sent: Sunday, September 1, 2024 10:39 PM To: FreePBX/issue-tracker @.> Cc: Jim Stadtfeld @.>; Mention @.> Subject: Re: [FreePBX/issue-tracker] [bug]: FTPS Not Working (Issue #379)

fwconsole ma update filestore --edge

— Reply to this email directly, view it on GitHubhttps://github.com/FreePBX/issue-tracker/issues/379#issuecomment-2323855032, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACDDEQYO4YJHIIURABXER3TZUP22XAVCNFSM6AAAAABMUTJBX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTHA2TKMBTGI. You are receiving this because you were mentioned.Message ID: @.***>