milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
62 stars 14 forks source link

[BUG] No files were transferred: Peer closed connection #37

Open xtay2 opened 2 months ago

xtay2 commented 2 months ago

full sync with fetch-depth: 10 and delta sync with fetch-depth: 0 both dont transfer files.

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Get Latest Code
        uses: actions/checkout@v4
        with:
          fetch-depth: 10
      - name: Sync Files
        uses: milanmk/actions-file-deployer@master
        with:
          remote-protocol: "ftp"
          remote-host: ${{ secrets.FTP_HOST }}
          remote-user: ${{ secrets.FTP_USERNAME }}
          remote-password: ${{ secrets.FTP_PASSWORD }}
          sync: full
          remote-path: "/choir-management/"
2024-06-21T11:21:38.9423824Z File created: /home/runner/.ssh/config
2024-06-21T11:21:38.9425004Z ____________________________________________________________________________________________________
2024-06-21T11:21:38.9437070Z File created: /home/runner/.netrc
2024-06-21T11:21:38.9438370Z ____________________________________________________________________________________________________
2024-06-21T11:21:38.9450857Z File created: ~/.lftprc
2024-06-21T11:21:38.9452405Z ##[endgroup]
2024-06-21T11:21:38.9471161Z ##[group]Prepare files
2024-06-21T11:21:38.9471956Z Event: push
2024-06-21T11:21:38.9473678Z Revision: https://github.com/xtay2/choir-management/commit/d553b6734be0b47a138e728ff72f307f152ebf72
2024-06-21T11:21:38.9475129Z Committer: xtay2
2024-06-21T11:21:38.9476168Z Message: Update deploy-to-acaunion.yml
2024-06-21T11:21:38.9477359Z ____________________________________________________________________________________________________
2024-06-21T11:21:38.9478513Z File created: ./.deploy-revision
2024-06-21T11:21:38.9479649Z d553b6734be0b47a138e728ff72f307f152ebf72
2024-06-21T11:21:38.9481724Z ____________________________________________________________________________________________________
2024-06-21T11:21:38.9483076Z ##[endgroup]
2024-06-21T11:21:38.9484048Z ##[group]Transfer files
2024-06-21T11:21:38.9484793Z Protocol: ftp
2024-06-21T11:21:38.9485443Z Synchronization: full
2024-06-21T11:21:38.9486107Z Local path: .
2024-06-21T11:21:38.9487027Z Remote path: /choir-management
2024-06-21T11:21:38.9487787Z ____________________________________________________________________________________________________
2024-06-21T11:21:39.3983528Z **** Peer closed connection
2024-06-21T11:21:39.3989756Z put: .deploy-running: Fatal error: max-retries exceeded
2024-06-21T11:21:39.6165835Z **** Peer closed connection
2024-06-21T11:21:54.8324765Z **** Peer closed connection
2024-06-21T11:21:54.8326501Z mirror: Fatal error: max-retries exceeded
2024-06-21T11:21:55.0483595Z **** Peer closed connection
2024-06-21T11:21:55.0494509Z ##[endgroup]
2024-06-21T11:21:55.0496015Z ##[group]Cleanup
2024-06-21T11:21:55.0512172Z removed '/home/runner/.netrc'
2024-06-21T11:21:55.0534493Z ##[endgroup]
2024-06-21T11:21:55.0605160Z ##[group]Run actions/upload-artifact@v4
2024-06-21T11:21:55.0605790Z with:
2024-06-21T11:21:55.0606099Z   name: transfer_artifacts
2024-06-21T11:21:55.0606612Z   path: ~/transfer_log.txt
~/transfer_files

2024-06-21T11:21:55.0607107Z   if-no-files-found: ignore
2024-06-21T11:21:55.0607496Z   compression-level: 6
2024-06-21T11:21:55.0607914Z   overwrite: false
2024-06-21T11:21:55.0608269Z ##[endgroup]
2024-06-21T11:21:55.2683274Z Multiple search paths detected. Calculating the least common ancestor of all paths
2024-06-21T11:21:55.2687231Z The least common ancestor is /home/runner. This will be the root directory of the artifact
2024-06-21T11:21:55.2689153Z No files were found with the provided path: ~/transfer_log.txt
2024-06-21T11:21:55.2690535Z ~/transfer_files. No artifacts will be uploaded.
2024-06-21T11:21:55.2844634Z Post job cleanup.
2024-06-21T11:21:55.3772508Z [command]/usr/bin/git version
2024-06-21T11:21:55.3812956Z git version 2.45.2
2024-06-21T11:21:55.3857125Z Temporarily overriding HOME='/home/runner/work/_temp/cf208901-c02a-4f06-ba5c-b76d3697a095' before making global git config changes
2024-06-21T11:21:55.3859936Z Adding repository directory to the temporary git global config as a safe directory
2024-06-21T11:21:55.3864319Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/choir-management/choir-management
2024-06-21T11:21:55.3909023Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-06-21T11:21:55.3949877Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-06-21T11:21:55.4213851Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-06-21T11:21:55.4237528Z http.https://github.com/.extraheader
2024-06-21T11:21:55.4251779Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-06-21T11:21:55.4287423Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-06-21T11:21:55.4764257Z Cleaning up orphan processes
milanmk commented 2 months ago

Peer closed connection Seems like your FTP credentials are not correct.