ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

Error: The log was not found. It may have been deleted based on retention settings.

Open sebastienserre opened this issue 4 years ago • 2 comments

Hello,

Here's my yml file:

name: Deploy

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1
      - name: Install Node.js
        uses: actions/setup-node@v1
        with:
          node-version: '10.x'
      - name: Install npm dependencies
        run: npm install
      - name: npm init
        run: npm init -y
      - name: Run build task
        run: npm run build --if-present
      - name: Deploy to Server
        uses: easingthemes/[email protected]
        env:
          SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
          ARGS: "-avz"
          REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
          REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
          REMOTE_USER: ${{ secrets.REMOTE_USER }}
          TARGET: ${{ secrets.REMOTE_TARGET }}
          EXCLUDE: "/dist/, /node_modules/"

At the end of the deployment, I've the error: Error: The log was not found. It may have been deleted based on retention settings. screenshot-2021-05-08-14-39

Do you know why ?

sebastienserre avatar May 08 '21 12:05 sebastienserre

Same issue for me...

sleshJdev avatar May 22 '21 01:05 sleshJdev

That's the manifest which works for me:

name: CI
on:
  push:
    branches: [ main ]
    paths:
      - 'frontend/**'
  pull_request:
    branches: [ main ]
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Deploy frontend
      uses: easingthemes/[email protected]    
      env:
        SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
        ARGS: "-av"
        SOURCE: "./frontend/"
        REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
        REMOTE_USER: ${{ secrets.REMOTE_USER }}
        TARGET: ${{ secrets.REMOTE_TARGET }}

The only thing I did is specify another set of keys for rsync: ARGS: "-av"

sleshJdev avatar May 26 '21 19:05 sleshJdev