Skip to content

Error: None of the available transfer modes work. #501

Open
@khokonm

Description

@khokonm

Bug Description
I recently changed my server for all my websites, but kept the FTP account credentials and other server configuration the same. But now whenever I push my changes to the deploy branch, I got the following error.

The same config worked just fine before changing my server.

My Action Config

on:
  push:
    branches:
      - deploy

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
       - name: Deploy to CPanel
        uses: SamKirkland/[email protected]
        with:
          server: ${{ secrets.HOST }}
          username: ${{ secrets.USER }}
          password: ${{ secrets.PASSWORD }}
          local-dir: ./out/ # The directory generated by `npm run export`
          server-dir: ./ 

My Action Log

   Error: None of the available transfer modes work.
    at Client.prepareTransfer (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:4293:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Client._uploadFromStream (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:3981:13)
    at async Client._uploadLocalFile (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.2.0/dist/index.js:3967:20)
Error: Error: None of the available transfer modes work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions