-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
tar: empty archive #169
Comments
I had the same problem. My config:
And when I use
When I use
|
I've been using this action for about 4 years now - it's been helpful. I always, always, always struggle to get the source / target to work correctly as I'm never sure what directories should exist on the target, or what other rules are. The 'empty archive' message isn't helpful. Would it be possible to please improve the logging so that we know what the target directory is at runtime? |
this really needs improving, its really misleading and a horrible error message, how could we improve the error message? are there are any issues open addressing this? |
I am having the same problem, changing the tar_tmp_path is not registered either |
I fixed this issue, the problem was with paths, if anyone else is having issues, Please make sure your paths are correct! the trailing and leading slashes matter. The action does not give clear error messages. here are some examples of how I am using this action after fixing the issue: - name: Copy the source to the server 🔁
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: "."
target: "~/src"
overwrite: true
strip_components: 1 - name: Copy dist content to server 🔁
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: "./dist/wwwroot/*"
target: "~/dist/"
rm: true
overwrite: true
strip_components: 2
|
@ddjerqq what if I want to transfer a xml file from a remote windows server into my workspace? I have been using this but I keep getting the empty file error message: This is my code: |
it is an issue with path names of the files, fix it, use absolute path names, please refer to this guide about scp https://linuxize.com/post/how-to-use-scp-command-to-securely-transfer-files/ |
@ddjerqq I think my issue is that I want to do a copy from a Windows server into the github workspace:
In that example the Windows Server Host is the source where the XML file is and I need to copy that one from there into my workspace to then do an update and sent it back to the server updated. Do you know if the scp works both ways? Does it support scp files from target host to drone itself? |
Please make sure your runner's https://github.com/orgs/community/discussions/141270#discussion-7310106 |
I get empty archive. Can I debug it? It doesn't even print out the paths it's trying to add to the archive. |
@alper can you share your file paths on the gha runner, and the server?
and you can check out this comment on how to use SCP without this GHA |
I got it to work finally but all the path mismatches were really awful. |
I get tar: empty archive when using the SCP action inside my Gitea Runner deployed in a docker container.
I tried to use folder structure used in this repository and the exact action definition, but no success.
The text was updated successfully, but these errors were encountered: