FTP-Diagnose: user + Passwort-Laenge beim Login loggen (kein Leak)
All checks were successful
Build & Deploy / deploy (push) Successful in 11s
All checks were successful
Build & Deploy / deploy (push) Successful in 11s
Bei "530 Login incorrect" trotz FileZilla-OK zeigt pw_len im Backend-Log, ob das Passwort im .env die falsche Laenge hat (Quotes/CRLF/Leerzeichen). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -69,6 +69,9 @@ async function buildMergedPdf(subs) {
|
||||
async function ftpUpload(dateien) {
|
||||
const { host, port, user, password, secure, rejectUnauthorized } = config.ftp;
|
||||
if (!host || !user) throw new Error('FTP nicht konfiguriert (SKRIFT_FTP_HOST/USER fehlen).');
|
||||
// Diagnose ohne Passwort-Leak: bei „530 Login incorrect" trotz korrekter Daten
|
||||
// ist meist die Passwort-Laenge im .env falsch (Quotes/CRLF/Leerzeichen).
|
||||
console.log(`[batch] FTP-Login: host=${host}:${port} user="${user}" pw_len=${(password || '').length} secure=${secure}`);
|
||||
const client = new ftp.Client(30000);
|
||||
// client.ftp.verbose = true;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user