question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to deploy a .Net core app

See original GitHub issue

Bug Description The upload process is failing always on the same dll file (automapper.dll)

My Action Config


name: Deployment

concurrency: production

on:
  push:
    branches: ["master"]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - name: Setup .NET
        uses: actions/setup-dotnet@v2
        with:
          dotnet-version: 6.0.x
      - name: Restore dependencies
        run: dotnet restore
      - name: Build
        run: dotnet build --no-restore
      - name: Test
        run: dotnet test --no-build --verbosity normal
      - name: Publish
        run: dotnet publish -c Release --output ./Release
      - name: FTP Deploy
        uses: SamKirkland/FTP-Deploy-Action@4.3.1
        with:
          # Deployment destination server & path. Formatted as protocol://domain.com:port/full/destination/path/
          server: ${{ secrets.FTP_SERVER }}
          # FTP account username
          username: ${{ secrets.FTP_USERNAME }}
          # FTP account password
          password: ${{ secrets.FTP_PASSWORD }}
          # The local folder to copy, defaults to root project folder
          local-dir: ./Release/
          server-dir: ${{ secrets.SERVER_DIR }}
          exclude: |
            **/.git*
            **/.git*/**
            **/node_modules/**
            **/wwwroot/**
          dangerous-clean-slate: true
          log-level: verbose

My Action Log


Uploading to 191.6.218.55:39462 (No encryption)
858
upload progress for "appsettings.json". Progress: 0 bytes of 6806 bytes
859
upload progress for "appsettings.json". Progress: 318 bytes of 7124 bytes
860
< 226 Transfer complete.
861

862
  file uploaded
863
uploading "AutoMapper.dll"
864
> EPSV
865
< 229 Entering Extended Passive Mode (|||39463|)
866

867
> STOR AutoMapper.dll
868
< 550 
869

870

871
----------------------------------------------------------------
872
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
873
----------------------------------------------------------------
874

875
----------------------------------------------------------------
876
----------------------  full error below  ----------------------
877
----------------------------------------------------------------
878

879
FTPError: 550 
880
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.1/dist/index.js:5254:39)
881
    at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.3.1/dist/index.js:5095:44)
882
    at Socket.emit (events.js:314:20)
883
    at addChunk (_stream_readable.js:297:12)
884
    at readableAddChunk (_stream_readable.js:268:11)
885
    at Socket.Readable.push (_stream_readable.js:213:10)
886
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
887
  code: 550
888
}
889
Error: FTPError: 550 

   logging with   log-level: verbose

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
dampeecommented, Aug 22, 2022

This is because your app is still running. You’ll need to stop the process first. If this is hosted by IIS, then you can create a app_offline.htm file which will take down the site for you. After that the files will be writable.

0reactions
d1ag0ncommented, Aug 24, 2022

Which action have you used to create the app_offline file? Can you share the script? I created an issue. https://github.com/SamKirkland/FTP-Deploy-Action/issues/315 Ended up using a python script to generate the file and handle the upload/delete of the app_offline.htm file. I still use this action for my front end workflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common error troubleshooting for Azure App Service and IIS ...
Provides troubleshooting advice for the most common errors when hosting ASP.NET Core apps on Azure Apps Service and IIS.
Read more >
Gitlab - Getting error while deploying .net core application. apt ...
I have setup Gitlab pipeline for my repository. I am getting error on deployment. Below is my deploy script.
Read more >
Common .NET Software Errors and How to Fix Them - Stackify
This error comes about when debugging an ASP.NET app with Visual Studio. The full error message is: “Error while trying to run project:...
Read more >
StaticWebApp Deployment Error: Could not find the .NET Core ...
I am using AzureStaticWebApp@0 task and trying to deploy to a React app with Node Js. Required package.json and staticwebapp.config.json ...
Read more >
“An error occurred while starting the application” in ASP.NET ...
It basically means something really bad happened with your app. Some things that might have gone wrong: You might not have the correct...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found