Skip to content

[Bug]: SSH_FXP_STAT fails with S3 backend #2010

@ivaradi

Description

@ivaradi

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

Hi,

I have a program that uploads files to an SFTP server and changes its mode bits. This program works with several SFTP servers, but fails with SFTPGo when using an S3 backend (MinIO). The following SFTP requests are sent:

  1. SSH_FXP_OPEN to open the file for writing
  2. one or more SSH_FXP_WRITE requests to write data into it
  3. SSH_FXP_STAT to query the current file attributes for modification
    ...

However, the SSH_FXP_STAT request fails with a "no such file" error, if the file does not exist before uploading.

Steps to reproduce

See the description.

Expected behavior

SSH_FXP_STAT should work for the file.

SFTPGo version

2.6.6

Data provider

SQLite

Installation method

Community Docker image

Configuration

Added administrative user, normal user and setup a bucket on the MinIO backend (RELEASE.2025-06-13T11-33-47Z) as a virtual folder mapped for the user.

Relevant log output

What are you using SFTPGo for?

Private user, home usecase (home backup/VPS)

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions