Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't send files from python Application to #1871

Open
2 tasks done
hamza-hadda opened this issue Jan 19, 2025 · 0 comments
Open
2 tasks done

[Bug]: Can't send files from python Application to #1871

hamza-hadda opened this issue Jan 19, 2025 · 0 comments
Labels
support request request for free support. Check out our support policy

Comments

@hamza-hadda
Copy link

⚠️ 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

When uploading files from python application using pysftp library to the SFTPGo data directory /srv/sftpgo/data/myuser using the Ubuntu root user, the files are successfully created but do not appear in the SFTPGo web client dashboard. Attempting to upload using the regular myuser results in "Permission Denied" errors.

Steps to reproduce

  1. Created user 'myuser' in SFTPGo

  2. Used Python script with pysftp to upload files:

    import pysftp
    
    with pysftp.Connection(host, username='myuser', password='password') as sftp:
        sftp.put('localfile.txt', '/srv/sftpgo/data/myuser/localfile.txt')
  3. First attempt with 'myuser' resulted in "Permission Denied"

  4. Second attempt using root user succeeded in creating files

  5. Logged into SFTPGo web client as 'myuser'

    Result: Uploaded files are not visible in the dashboard

Expected behavior

upload files from python app using myuser credentials and show the file in the we client

SFTPGo version

2.6

Data provider

python app

Installation method

Community Docker image

Configuration

config

Relevant log output

What are you using SFTPGo for?

Small business (3-person firm with file exchange?)

Additional info

No response

@hamza-hadda hamza-hadda added the bug Something isn't working label Jan 19, 2025
@drakkan drakkan added support request request for free support. Check out our support policy and removed bug Something isn't working labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request request for free support. Check out our support policy
Projects
None yet
Development

No branches or pull requests

2 participants