Expose node refresh logs in launcher

This commit is contained in:
michele 2026-04-28 19:16:39 +00:00
parent 19a4da6301
commit 94ba7b1eac
2 changed files with 11 additions and 0 deletions

View File

@ -2111,6 +2111,10 @@ private function detectUpdateIssue(string $output, int $exitCode): ?string
}
if (str_contains($haystack, 'permission denied')) {
if (str_contains($haystack, 'rsync') || str_contains($haystack, '/var/www/') || str_contains($haystack, 'sync deploy fallita')) {
return 'Permessi insufficienti sulla cartella di deploy del nodo durante la sync da Gitea. Il processo web non riesce a scrivere nel path applicativo remoto.';
}
return 'Permessi insufficienti sul filesystem o su git durante update.';
}

View File

@ -98,6 +98,13 @@
<div class="mt-2 rounded border border-amber-300 bg-amber-50 px-2 py-2 text-[11px] text-amber-900">{{ $this->lastUpdateIssue }}</div>
@endif
</div>
@if(filled($this->lastUpdateOutput))
<div class="mt-3 rounded-lg border bg-slate-950 p-3">
<div class="mb-1 text-[11px] font-semibold text-slate-200">Output completo ultimo refresh nodo</div>
<pre class="max-h-64 overflow-auto whitespace-pre-wrap text-[11px] leading-relaxed text-slate-100">{{ $this->lastUpdateOutput }}</pre>
</div>
@endif
</div>
<div class="rounded-xl border bg-white p-4">