GCS storage from server running on Google Cloud VM. #1988
Unanswered
gincessant
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a pecular issue with uploading files to GCS. I am able to upload files to GCS using the command manually. But when sftpgo is started using Systemctl I always get Error Uploading Files. I have tried many overrides and sftpgo.json changes, specifically, adding a temp_path and override.conf with commands like these (a few at a time not all together) like this:
--- To make sure I am using my sftpgo.json file with temp_path set to /var/lib/sftpgo/tmp
[Service]
ExecStart=
ExecStart=/usr/bin/sftpgo serve --config-file /etc/sftpgo/sftpgo.json
--- Try to have sftpgo use a special environment
WorkingDirectory=/run/sftpgo
Environment="SFTPGO_COMMON_TEMP_PATH=/run/sftpgo"
RuntimeDirectory=sftpgo
RuntimeDirectoryMode=0700
--- Make sure it is really running as sftpgo. -- it is
User=sftpgo
Group=sftpgo
--- TEMPORARY TEST --- This was true
ProtectSystem=no
--- TEMPORARY TEST --- I added this
ReadWritePaths=/
Nothing seems to work. Always I get this error which looks to me that systemctl sftpgo is trying to create a pipefile in the root.
May 26 17:16:25 instance-20250522-190709 sftpgo[89356]: {"level":"error","time":"2025-05-26T17:16:25.449","sender":"HTTP","connection_id":"HTTP_d0qa3qbsrvmpt029p3pg","message":"error opening existing file, source: "test1/main.backup.py", err: open /pipefile4066577253: permission denied"}
May 26 17:16:25 instance-20250522-190709 sftpgo[89356]: {"level":"error","time":"2025-05-26T17:16:25.449","sender":"HTTP","connection_id":"HTTP_d0qa3qbsrvmpt029p3pg","message":"generic error: open /pipefile4066577253: permission denied"}
I did find another issue with this error but there was no solution given just marked as Support Request.
Any ideas?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions