From 61fe8f630b43a403ecfcedc3ed1a05fc38fc8061 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 5 Apr 2026 16:48:20 -0400 Subject: [PATCH] Fix sudo permission denied in nginx and service setup capture_output=True on sudo_run suppresses the sudo password prompt, causing silent auth failure and permission denied on subsequent calls. Removed capture_output from nginx -t and systemctl enable so the password prompt and any error output appear on screen. Co-Authored-By: Claude Sonnet 4.6 --- manage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manage.py b/manage.py index 07a1ede..ba3e31e 100755 --- a/manage.py +++ b/manage.py @@ -495,9 +495,9 @@ server {{ ok(f'nginx config written to {conf_path}') print(' Testing nginx configuration...') - r = sudo_run(['nginx', '-t'], capture_output=True) + r = sudo_run(['nginx', '-t']) if r.returncode != 0: - err(f'nginx config test failed — run "sudo nginx -t" for details') + err(f'nginx config test failed — see output above') return ok('nginx configuration is valid') @@ -550,7 +550,7 @@ def action_install_service(): ok('systemd daemon reloaded') print(' Enabling dataflow.service to start on boot...') - sudo_run(['systemctl', 'enable', 'dataflow'], capture_output=True) + sudo_run(['systemctl', 'enable', 'dataflow']) ok('dataflow.service enabled on boot') info('Run option 7 to start the service now.')