SMB uploader not able to overwrite files
I'm getting failures for the SMB uploader when it needs to overwrite files, but everything works fine when I delete the files and have it write them as new.
I assume it's a permissions issue, but it seems odd that it is able to write the files if they don't already exist. Does anyone know if there is a special permission to allow overwriting that is different from writing?
The target SMB server is running Samba and the file and directory owner is the same as the credentials in the SMB uploader settings. Permissions for the owner are read + write + execute (755 overall for those files).
Any ideas what might be causing trouble?
Please sign in to leave a comment.
Hi Eric,
I concur that the core issue seems to be permissions. You could try debugging it using the smb command line client and see whether that works. If it does work, I'd recommend filing up an issue in our tracker (https://youtrack.jetbrains.com/issues/TW) against the SMB Uploader.
The details in particular to troubleshoot this kind of issue from TeamCity's side are described here: https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity
I finally had time to look at this again and it is definitely a permissions issue, and not a TeamCity bug.
It's convoluted to explain, so if anyone else runs into this I can elaborate. But for now it's resolved.