Timeout Error When installing dedicated server on Hetzner#1154
Timeout Error When installing dedicated server on Hetzner#1154fatihalp wants to merge 3 commits into
Conversation
… failed: failed_jobs.uuid (Connection: sqlite
… failed: failed_jobs.uuid (Connection: sqlite
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
… failed: failed_jobs.uuid (Connection: sqlite
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent SSH provisioning jobs (notably on Hetzner dedicated servers) from hanging/timeing out by making apt/dpkg upgrades fully non-interactive and by increasing queue/Horizon timeouts for the SSH worker.
Changes:
- Add needrestart/dpkg non-interactive handling to OS upgrade/dependency/cleanup SSH scripts.
- Increase the SSH queue/Horizon worker timeout defaults to allow longer-running provisioning tasks.
- Add dpkg options to automatically keep existing config files during upgrades/installs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| resources/views/ssh/os/upgrade.blade.php | Adjust apt upgrade to force non-interactive dpkg config handling. |
| resources/views/ssh/os/install-dependencies.blade.php | Make dependency installs non-interactive and add dpkg conf handling. |
| resources/views/ssh/os/cleanup.blade.php | Attempt to suppress interactive needrestart behavior during cleanup. |
| config/queue.php | Increase SSH queue connection timeout/retry settings. |
| config/horizon.php | Increase Horizon SSH supervisor timeout default. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| export NEEDRESTART_MODE=l | ||
| sudo DEBIAN_FRONTEND=noninteractive apt-get clean | ||
| sudo DEBIAN_FRONTEND=noninteractive apt-get update | ||
| sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y | ||
| sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" |
| export NEEDRESTART_MODE=l | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| sudo apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" software-properties-common curl zip unzip git gcc openssl ufw cron |
| export NEEDRESTART_MODE=l | ||
| # Update package lists | ||
| sudo DEBIAN_FRONTEND=noninteractive apt-get update -y |
| 'ssh' => [ | ||
| 'driver' => 'redis', | ||
| 'connection' => 'default', | ||
| 'queue' => 'default', | ||
| 'timeout' => 600, | ||
| 'retry_after' => 600, | ||
| 'timeout' => 3600, |
| 'memory' => env('HORIZON_SSH_MEMORY', 128), | ||
| 'tries' => env('HORIZON_SSH_TRIES', 1), | ||
| 'timeout' => env('HORIZON_SSH_TIMEOUT', 600), | ||
| 'timeout' => env('HORIZON_SSH_TIMEOUT', 6600), | ||
| 'nice' => env('HORIZON_SSH_NICE', 0), | ||
| ], |
No description provided.