Hi, ich habe versucht eine Webseite automatisch auf den Server zu laden (Webhosting 4000), indem ich github actions nutze. Leider scheint beim Erstellen von Verzeichnissen ein Fehler aufzutreten und ich weiß nicht warum. Der FTP-Zugang an sich funktioniert, das habe ich mit Filezilla überprüft.
Code: main.yml
name: FTP Deployment
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy over FTP
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server:...
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: "/"
local-dir: "./"
Display More
Ich bekomme dabei diese Fehlermeldungen:
Code: Deploy over FTP
Run SamKirkland/FTP-Deploy-Action@4.0.0
----------------------------------------------------------------
🚀 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
----------------------------------------------------------------
No file exists on the server "/.ftp-deploy-sync-state.json" - this much be your first publish! 🎉
The first publish will take a while... but once the initial sync is done only differences are published!
If you get this message and its NOT your first publish, something is wrong.
----------------------------------------------------------------
Local Files: 10
Server Files: 10
----------------------------------------------------------------
Calculating differences between client & server
----------------------------------------------------------------
➕ Upload: index.html
📁 Create: js
➕ Upload: js/app.js
➕ Upload: package-lock.json
➕ Upload: package.json
➕ Upload: README.md
📁 Create: stylesheets
➕ Upload: stylesheets/output.css
➕ Upload: stylesheets/style.css
➕ Upload: tailwind.config.js
----------------------------------------------------------------
Making changes to 10 files to sync server state
Uploading: 117 kB -- Deleting: 0 B -- Replacing: 0 B
----------------------------------------------------------------
creating folder "js/"
Error: Client is closed
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3704:29
at new Promise (<anonymous>)
at FTPContext.handle (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3684:16)
at Client.sendIgnoringError (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2745:25)
at Client._openDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3251:20)
at Client.ensureDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3242:24)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1962:121
at Generator.next (<anonymous>)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1823:71
at new Promise (<anonymous>)
Closing reason: Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:218:20) {
code: 'ECONNRESET'
}
Error: Client is closed
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3704:29
at new Promise (<anonymous>)
at FTPContext.handle (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3684:16)
at Client.sendIgnoringError (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:2745:25)
at Client._openDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3251:20)
at Client.ensureDir (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:3242:24)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1962:121
at Generator.next (<anonymous>)
at /home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/4.0.0/dist/index.js:1823:71
at new Promise (<anonymous>)
Closing reason: Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:218:20) {
code: 'ECONNRESET'
}
----------------------------------------------------------------
Time spent hashing: 18 milliseconds
Time spent connecting to server: 1.3 seconds
Time spent deploying: 4 milliseconds (32.2 MB/second)
- changing dirs: 144 milliseconds
- logging: 28 milliseconds
----------------------------------------------------------------
Total time: 2 seconds
----------------------------------------------------------------
Display More
Vielen Dank im Voraus, falls mir jemand helfen kann.