FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

FTPError: 550 /public_html/favicomatic: No such file or directory

Open simonbrage opened this issue 2 years ago • 5 comments

Bug Description I am getting FTPError: 550 /public_html/favicomatic: No such file or directory when deploying. I don't even have a favicomatic-folder in my public_html-folder. The favicomatic-folder is placed in public_html/img/favicomatic, so it all seem kind of weird to me. Deploying still updates my website, but the action registers and error.

My Action Config

on: push
name: 🚀 Deploy website on push
jobs:
  web-deploy:
    name: 🎉 Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚚 Get latest code
      uses: actions/checkout@v3
    
    - name: 📂 Sync files
      uses: SamKirkland/[email protected]
      with:
        server: <REDACTED>.com
        username: <REDACTED>.dk
        password: ${{ secrets.password }}
        server-dir: ./public_html/

My Action Log

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------

FTPError: 550 /public_html/favicomatic: No such file or directory
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.3/dist/index.js:5254:39)
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.3/dist/index.js:5095:44)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:285:11)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
  code: 550
}
Error: FTPError: 550 /public_html/favicomatic: No such file or directory```

simonbrage avatar Feb 01 '23 22:02 simonbrage

It's a problem that happened to me, too. It suddenly doesn't work.

bvoat avatar Feb 02 '23 03:02 bvoat

This action navigates in/out of folders to deploy only changed files. This has been a hard to recreate bug.

If you could post your full action log. Specifically I'm looking to recreate this hug so i can write some tests and fix it. Thanks.

SamKirkland avatar Feb 02 '23 08:02 SamKirkland

I have bumped into the same issue. It has happened to me for the second time but I do not have the previous log as it expired. Maybe it has to do with a previous version of the server directory? I had a different folder structure earlier and the workflow has started after the change.

All of the data got uploaded correctly. Only issue is the failing workflow badge in the repository 😅

Here is my config

name: Production Deployment

on:
  push:
    branches: prod

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          persist-credentials: false

      - name: Install Node.js
        uses: actions/setup-node@v3
        with:
          node-version: latest

      - uses: pnpm/[email protected]
        name: Install pnpm
        id: pnpm-install
        with:
          version: latest
          run_install: true

      - name: Build
        run: |
          pnpm build
      - name: Reset pnpm-lock.yaml
        run: |
          git checkout pnpm-lock.yaml
      - name: File Sanity Check
        run: ls build

      - name: Upload FTP
        uses: SamKirkland/[email protected]
        with:
          server: ${{ secrets.FTP_SERVER }}
          username: ${{ secrets.FTP_USERNAME }}
          password: ${{ secrets.FTP_PASSWORD }}
          local-dir: "build/client/"
          server-dir: "www/"

and here is the full log

 ----------------------------------------------------------------
🚀 Thanks for using ftp-deploy. Let's deploy some stuff!   
----------------------------------------------------------------
If you found this project helpful, please support it
by giving it a ⭐ on Github --> https://github.com/SamKirkland/FTP-Deploy-Action
or add a badge 🏷️ to your projects readme --> https://github.com/SamKirkland/FTP-Deploy-Action#badge
----------------------------------------------------------------
Last published on 📅 Sunday, February 14, 2021, 1:55 PM
----------------------------------------------------------------
Local Files:	28
Server Files:	24
----------------------------------------------------------------
Calculating differences between client & server
----------------------------------------------------------------
📁 Create: assets
📁 Create: assets/src
📁 Create: assets/src/renderer
📄 Upload: 404.html
📄 Upload: assets/chunk-0efebcaf.js
📄 Upload: assets/chunk-4ed993c7.js
📄 Upload: assets/chunk-5335a9d3.js
📄 Upload: assets/chunk-8649acf1.js
📄 Upload: assets/chunk-9153d54c.js
📄 Upload: assets/entry-client-routing.19d306f2.js
📄 Upload: assets/entry-server-routing.75f37d10.js
📄 Upload: assets/Header.17f3d2d0.css
📄 Upload: assets/index.a35c69e8.css
📄 Upload: assets/jost-all-400-normal.19c2f793.woff
📄 Upload: assets/jost-latin-400-normal.a25da21f.woff2
📄 Upload: assets/jost-latin-ext-400-normal.155818f3.woff2
📄 Upload: assets/Me.406c08b5.jpg
📄 Upload: assets/src/renderer/_default.page.client.ab28a44a.js
📄 Upload: manifest.json
📄 Upload: vite-plugin-ssr.json
🔁 File replace: index.html
🔁 File replace: site.webmanifest
📄 Delete: about.txt    
📄 Delete: asset-manifest.json    
📁 Delete: static    
⚖️  File content is the same, doing nothing: android-chrome-192x192.png
⚖️  File content is the same, doing nothing: android-chrome-512x512.png
⚖️  File content is the same, doing nothing: apple-touch-icon.png
⚖️  File content is the same, doing nothing: favicon-16x16.png
⚖️  File content is the same, doing nothing: favicon-32x32.png
⚖️  File content is the same, doing nothing: favicon.ico
----------------------------------------------------------------
Making changes to 25 files/folders to sync server state
Uploading: 408 kB -- Deleting: 656 kB -- Replacing: 6.43 kB
----------------------------------------------------------------
creating folder "assets/"
creating folder "assets/src/"
creating folder "assets/src/renderer/"
uploading "404.html"
uploading "assets/chunk-0efebcaf.js"
uploading "assets/chunk-4ed993c7.js"
uploading "assets/chunk-5335a9d3.js"
uploading "assets/chunk-8649acf1.js"
uploading "assets/chunk-9153d54c.js"
uploading "assets/entry-client-routing.19d306f2.js"
uploading "assets/entry-server-routing.75f37d10.js"
uploading "assets/Header.17f3d2d0.css"
uploading "assets/index.a35c69e8.css"
uploading "assets/jost-all-400-normal.19c2f793.woff"
uploading "assets/jost-latin-400-normal.a25da21f.woff2"
uploading "assets/jost-latin-ext-400-normal.155818f3.woff2"
uploading "assets/Me.406c08b5.jpg"
uploading "assets/src/renderer/_default.page.client.ab28a44a.js"
uploading "manifest.json"
uploading "vite-plugin-ssr.json"
replacing "index.html"
replacing "site.webmanifest"
removing "about.txt"
File not found or you don't have access to the file - skipping...
removing "asset-manifest.json"
File not found or you don't have access to the file - skipping...
removing folder "/www/static"

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------

FTPError: 550 Can't change directory to /www/static: No such file or directory
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.2/dist/index.js:5254:39)
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.2/dist/index.js:5095:44)
    at Socket.emit (events.js:314:20)
    at addChunk (_stream_readable.js:297:12)
    at readableAddChunk (_stream_readable.js:268:11)
    at Socket.Readable.push (_stream_readable.js:213:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
  code: 550
}

portrik avatar Feb 11 '23 17:02 portrik

Facing a similar issue. My config:

name: Deploy App

on:
  push:
    branches:
      - master
      
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
      - name: Use Node.js 16.x
        uses: actions/setup-node@v1
        with:
          node-version: 16.x
      - name: Install dependencies
        run: npm install    
      #- name: Test
      #  run: npm test
      #  env:
      #    CI: true
      - name: Generate build
        run: npm run build
      # Share artifact inside workflow
      - name: Share artifact inside workflow
        uses: actions/upload-artifact@v1
        with:
          name: react-github-actions-build
          path: build
  deploy:
    runs-on: ubuntu-latest
    # When application is successfully tested and build has been generated
    # Then we can start with deployment
    needs: build
    steps:
      # Download previously shared build
      - name: Get artifact
        uses: actions/download-artifact@v1
        with:
          name: react-github-actions-build
      - name: Sync files
        uses: SamKirkland/[email protected]
        with:
          server: ${{ secrets.CPANEL_SERVER }}
          username: ${{ secrets.CPANEL_USER_NAME }}
          password: ${{ secrets.CPANEL_PASSWORD }}
          local-dir: ./react-github-actions-build/

Logs:

Run SamKirkland/[email protected]
  with:
    server: ***
    username: ***
    password: ***
    local-dir: ./react-github-actions-build/
----------------------------------------------------------------
🚀 Thanks for using ftp-deploy. Let's deploy some stuff!   
----------------------------------------------------------------
If you found this project helpful, please support it
by giving it a ⭐ on Github --> https://github.com/SamKirkland/FTP-Deploy-Action
or add a badge 🏷️ to your projects readme --> https://github.com/SamKirkland/FTP-Deploy-Action#badge
----------------------------------------------------------------
Last published on 📅 Friday, March 24, 202[3](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:3), 6:[4](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:4)3 PM
----------------------------------------------------------------
Local Files:	20
Server Files:	20
----------------------------------------------------------------
Calculating differences between client & server
----------------------------------------------------------------
➕ Upload: asset-manifest.json
➕ Upload: favicon.ico
➕ Upload: index.html
➕ Upload: logo192.png
➕ Upload: logo[5](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:5)12.png
➕ Upload: manifest.json
📁  Delete: react-github-actions-build    
🗑️  Delete: react-github-actions-build/asset-manifest.json    
🗑️  Delete: react-github-actions-build/favicon.ico    
🗑️  Delete: react-github-actions-build/index.html    
🗑️  Delete: react-github-actions-build/logo192.png    
🗑️  Delete: react-github-actions-build/logo512.png    
🗑️  Delete: react-github-actions-build/manifest.json    
🗑️  Delete: react-github-actions-build/robots.txt    
📁  Delete: react-github-actions-build/static    
📁  Delete: react-github-actions-build/static/css    
🗑️  Delete: react-github-actions-build/static/css/main.3ddee309.css    
🗑️  Delete: react-github-actions-build/static/css/main.3ddee309.css.map    
📁  Delete: react-github-actions-build/static/js    
🗑️  Delete: react-github-actions-build/static/js/787.c07174e2.chunk.js    
🗑️  Delete: react-github-actions-build/static/js/787.c07174e2.chunk.js.map    
🗑️  Delete: react-github-actions-build/static/js/main.7dac[6](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:6)db6.js    
🗑️  Delete: react-github-actions-build/static/js/main.[7](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:8)dac6db6.js.LICENSE.txt    
🗑️  Delete: react-github-actions-build/static/js/main.7dac6db6.js.map    
📁  Delete: react-github-actions-build/static/media    
🗑️  Delete: react-github-actions-build/static/media/logo.6475537241365e210a94[8](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:9)c48d1e8f110.svg    
➕ Upload: robots.txt
📁 Create: static
📁 Create: static/css
➕ Upload: static/css/main.68[9](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:10)0d58a.css
➕ Upload: static/css/main.6890d58a.css.map
📁 Create: static/js
➕ Upload: static/js/787.c07174e2.chunk.js
➕ Upload: static/js/787.c07174e2.chunk.js.map
➕ Upload: static/js/main.7953f623.js
➕ Upload: static/js/main.7953f623.js.LICENSE.txt
➕ Upload: static/js/main.7953f623.js.map
📁 Create: static/media
➕ Upload: static/media/logo-with-text.751adf38f93434b7ae1e0db1988e0cde.svg
➕ Upload: static/media/main-block-net.7644c2d950581f2798d9175aa450ce9a.svg
----------------------------------------------------------------
Making changes to 40 files/folders to sync server state
Uploading: 1.16 MB -- Deleting: 1.06 MB -- Replacing: 0 B
----------------------------------------------------------------
creating folder "static/"
creating folder "static/css/"
creating folder "static/js/"
creating folder "static/media/"
uploading "asset-manifest.json"
uploading "favicon.ico"
uploading "index.html"
uploading "logo192.png"
uploading "logo512.png"
uploading "manifest.json"
uploading "robots.txt"
uploading "static/css/main.6890d58a.css"
uploading "static/css/main.6890d58a.css.map"
uploading "static/js/787.c07174e2.chunk.js"
uploading "static/js/787.c07174e2.chunk.js.map"
uploading "static/js/main.7953f623.js"
uploading "static/js/main.7953f623.js.LICENSE.txt"
uploading "static/js/main.7953f623.js.map"
uploading "static/media/logo-with-text.751adf38f93434b7ae1e0db1988e0cde.svg"
uploading "static/media/main-block-net.7644c2d950581f2798d9175aa450ce9a.svg"
removing "react-github-actions-build/asset-manifest.json"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/favicon.ico"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/index.html"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/logo192.png"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/logo512.png"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/manifest.json"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/robots.txt"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/css/main.3ddee309.css"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/css/main.3ddee309.css.map"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/js/787.c07174e2.chunk.js"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/js/787.c07174e2.chunk.js.map"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/js/main.7dac6db6.js"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/js/main.7dac6db6.js.LICENSE.txt"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/js/main.7dac6db6.js.map"
File not found or you don't have access to the file - skipping...
removing "react-github-actions-build/static/media/logo.6475537241365e2[10](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:11)a948c48d1e8f[11](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:12)0.svg"
File not found or you don't have access to the file - skipping...
removing folder "react-github-actions-build/"

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------

FTPError: 550 Can't change directory to react-github-actions-build/: No such file or directory
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.1.0/dist/index.js:3945:39)
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.1.0/dist/index.js:3786:44)
    at Socket.emit (events.js:314:20)
    at addChunk (_stream_readable.js:297:[12](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:13))
    at readableAddChunk (_stream_readable.js:268:11)
    at Socket.Readable.push (_stream_readable.js:2[13](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:14):10)
    at TCP.onStreamRead (internal/stream_base_commons.js:[18](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:19)8:[23](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:24)) {
  code: 5[50](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:51)
}
Error: FTPError: [55](https://github.com/illiashutieiev/new-health-it-consulting/actions/runs/4518188735/jobs/7957892938#step:3:56)0 Can't change directory to react-github-actions-build/: No such file or directory

illiashutieiev avatar Mar 25 '23 07:03 illiashutieiev

+1 same issue here, it's trying to do something with the "local-dir" folder.

dennishelbig avatar Jun 02 '23 09:06 dennishelbig