Skip to content

Commit be6bd9c

Browse files
authored
fix: raise provider-services install timeout to 60s (#67)
The 15s wall-clock timeout was insufficient for the v0.12.0 binary on real-world links and was firing during staging tests. Bump to 60s and drop the misleading '10 Mbps required' message.
1 parent 768962e commit be6bd9c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

application/service/wallet_service.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,17 @@ def _install_and_verify_provider_services(self) -> None:
230230
# Install unzip dependency
231231
run_ssh_command(self.ssh_client, "apt-get install -y unzip")
232232

233-
# Install provider-services with timeout (15s requires minimum ~10 Mbps connection)
234-
install_command = f"timeout 15 bash -c 'curl -sfL https://raw.githubusercontent.com/akash-network/provider/main/install.sh | bash -s -- {Config.PROVIDER_SERVICES_VERSION}'"
233+
install_command = f"timeout 60 bash -c 'curl -sfL https://raw.githubusercontent.com/akash-network/provider/main/install.sh | bash -s -- {Config.PROVIDER_SERVICES_VERSION}'"
235234
try:
236235
run_ssh_command(self.ssh_client, install_command)
237236
except ApplicationError as e:
238-
# timeout command returns exit code 124 when it kills the process
239237
if e.payload.get("exit_code") == 124:
240238
raise ApplicationError(
241239
status_code=status.HTTP_504_GATEWAY_TIMEOUT,
242240
error_code="WAL_007",
243241
payload={
244242
"error": "Provider Services Installation Timeout",
245-
"message": "Installation timed out. Your network connection is too slow. A minimum of 10 Mbps is required.",
243+
"message": "Provider-services download did not complete within 60 seconds. Check the target host's network connectivity to GitHub and retry.",
246244
},
247245
)
248246
raise

0 commit comments

Comments
 (0)