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]: Permission Denied While Uploading Files To GCS Bucket #1686

Open
2 tasks done
gouravjoshicldcvr opened this issue Jul 4, 2024 · 0 comments
Open
2 tasks done
Labels
support request request for free support. Check out our support policy

Comments

@gouravjoshicldcvr
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

I have installed sftpgo on a Ubuntu server and created a user with a GCS bucket backend.
I have used the service account key file which has full access to the GCS bucket but cannot upload files.
I can read files and folders from the bucket and I can delete those files and folders but not able to delete them and same service account is working with another sftp server.

In logs I am getting below error

{"level":"debug","time":"2024-07-03T18:01:39.115","sender":"HTTP","connection_id":"HTTP_cq2p40s50djsgr8e2rj0","message":"connection added, local address "10.2.0.44:8080", remote address "10.2.0.11:41808", num open connections: 1"}
{"level":"error","time":"2024-07-03T18:01:39.215","sender":"HTTP","connection_id":"HTTP_cq2p40s50djsgr8e2rj0","message":"could not open file "test1/image (4).png" for reading: open /pipefile1467703216: permission denied"}

Steps to reproduce

1.Setup sftpgo on ubuntu
2.Added GCS as backend for user
3.upload a file

Expected behavior

File should be uploaded without any error

SFTPGo version

SFTPGo 2.6.2

Data provider

Sqlite

Installation method

Community Deb package

Configuration

Default Config
Installed via sudo apt install sftpgo

Relevant log output

{"level":"debug","time":"2024-07-03T18:01:39.115","sender":"HTTP","connection_id":"HTTP_cq2p40s50djsgr8e2rj0","message":"connection added, local address \"10.2.0.44:8080\", remote address \"10.2.0.11:41808\", num open connections: 1"}
{"level":"error","time":"2024-07-03T18:01:39.215","sender":"HTTP","connection_id":"HTTP_cq2p40s50djsgr8e2rj0","message":"**could not open file \"test1/image (4).png\"** **for reading: open /pipefile1467703216: permission denied**"}

What are you using SFTPGo for?

Medium business

Additional info

NA

@gouravjoshicldcvr gouravjoshicldcvr added the bug Something isn't working label Jul 4, 2024
@drakkan drakkan added support request request for free support. Check out our support policy and removed bug Something isn't working labels Jul 4, 2024
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
-