AMP icon indicating copy to clipboard operation
AMP copied to clipboard

ADS SFTP "connection refused" without any errors in log

Open BroOtti opened this issue 1 year ago • 2 comments

Bug Report

System Information

┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Key                  ┃ Value                                 ┃
┣━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Operating System     ┃ Linux - Debian GNU/Linux 12 on x86_64 ┃
┃ Product              ┃ AMP 'Callisto' v2.5.0.8 (Mainline)    ┃
┃ Virtualization       ┃ ProxmoxLXC                            ┃
┃ Application          ┃ Application Deployment                ┃
┃ Module               ┃ ADSModule                             ┃
┃ Running in Container ┃ No                                    ┃
┃ Current State        ┃ Indeterminate                         ┃
┗━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

I confirm:

  • [x] that I have searched for an existing bug report for this issue.
  • [x] that I am using the latest available version of AMP.
  • [x] that my operating system is up-to-date.

Symptoms

  • What are you trying to do? Access ADS SFTP
  • What are you expecting to happen? The connection to ADS SFTP works
  • What is actually happening? ('Nothing' is not an acceptable answer!) I get the message Connection refused, but nothing is logged in AMP logs or the AMP Event logs.

Reproduction

  1. Go to ADS File Manager and click Connect to SFTP
  2. Click the link which opens with WinSCP or manually fill in the details in FileZilla
  3. Provide your password and 2FA code
  4. Get a Connection refused
  5. Check AMP Console and Logs without any info (even with debug log enabled)
  6. Check the Event Log within AMP and don't see anything related
  7. Try the same with an instance specific SFTP and notice it logs fine and works as expected
  8. Check on the host if AMP listens on the port of ADS and it does
  9. Check debug log for FileManager SFTP related messages and find [12:15:40] [FileManager Info] : SFTP Server started on 0.0.0.0:2223
  10. Check firewall rules are present. Rules are existing
  11. Check correct port forwarding for port 2223. Same as for instance specific SFTP ports

I don't know what else to check. Other people on discord also have this problem.

PS: This is a standalone system

BroOtti avatar May 04 '24 12:05 BroOtti

Test update from discord:

Just tried again with disabled 2FA in case I missed to test it. Same error. Nothing in the logs. 
The Web File Manager from ADS seems to work as expected. If I delete a directory, the action gets logged. Only SFTP for ADS doesn't work.

BroOtti avatar May 07 '24 13:05 BroOtti

https://discord.com/channels/266012086423912458/1237242215940620359

ssfdre38 avatar May 07 '24 18:05 ssfdre38

This is fixed in the next release.

IceOfWraith avatar May 12 '24 18:05 IceOfWraith