CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
201 stars 38 forks source link

ADS SFTP "connection refused" without any errors in log #1093

Closed BroOtti closed 1 month ago

BroOtti commented 1 month ago

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:

Symptoms

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 commented 1 month ago

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.
ssfdre38 commented 1 month ago

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

IceOfWraith commented 1 month ago

This is fixed in the next release.