Commit Graph

26 Commits (0c2596360dce67ba7032dd46c2a2cf8fd6d7c651)

Author SHA1 Message Date
Mohammed Jasil 0c2596360d
Merge 48de78f9ae into 0ec1e18444 2025-04-02 06:33:20 +00:00
Mohammed Jasil 48de78f9ae
Fix TypeError in exponential_delay function when handling connection timeouts
Problem:
- Agent v1.8.3-1~noble crashes on Ubuntu 24.04 with TypeError when receiver.amplify.nginx.com times out
- Error occurs in backoff.py: "TypeError: 'float' object cannot be interpreted as an integer"
- The issue prevents proper exponential backoff during network connectivity problems
- Agent completely stops instead of retrying with the backoff delay

Solution:
- Add explicit integer type conversion to period_size before passing to randint()
- Convert: return randint(0, period_size - 1)
- To: return randint(0, int(period_size) - 1)

This fix allows the agent to properly handle connection timeouts without crashing.
The issue appears to be specific to Python 3.12 used in Ubuntu 24.04 Noble, as
the agent works correctly on Ubuntu 22.04 Jammy with Python 3.10.

Fixes #124
2025-04-02 12:02:55 +05:30
Andrei Belov 0ec1e18444
Update agent version to 1.8.3 (#119)
* Update agent version to 1.8.3

Changes:
 - amplify.agent.common.runner migrated to latest PEP 3143 implementation,
 - added support for packaging Ubuntu 24.04 "noble",
 - fixed package building for RHEL 9.

* packages: fixed issues found by internal CI
2025-01-14 11:32:56 +04:00
Andrei Belov 0b04168a5f
Merge pull request #112 from defanator/update-readme
Update README with actual links to public documentation
2024-06-04 13:31:10 +04:00
Andrei Belov 3b506b4c63
Update README with actual links to public documentation 2024-06-04 09:50:14 +04:00
Andrei Belov ef28727eb9
Merge pull request #110 from defanator/1.8.2
Update agent version to 1.8.2
2024-06-04 09:36:08 +04:00
Andrei Belov 6d3e17d8c7
Update agent version to 1.8.2
Changes:
 - pyMySQL version updated to 1.1.1 (CVE-2024-36039),
 - requests version updated to 2.32.2,
 - dropped support for RHEL 8 (Python 3.6 is EOL since 2021).
2024-06-02 18:44:16 +04:00
Andrei Belov 700d01db95
Merge pull request #106 from defanator/debian12-support
packages: added Debian 12 "bookworm" support
2024-01-08 11:23:20 +04:00
Andrei Belov 090de089e0
packages: added Debian 12 "bookworm" support
While here, updated some Python dependencies to address security issues.
2024-01-03 09:52:29 +04:00
Chris Austin ede484f7b6
Merge pull request #105 from nginxinc/remove-install-script
Remove install script
2023-09-20 08:53:51 -07:00
Chris Austin 21ec473fcc Remove install script 2023-09-20 08:34:36 -07:00
Nishant Kashiv cf27313cdd
Merge pull request #104 from nkashiv/nginx-agent-install
Add NGINX Agent install script
2023-08-30 10:18:45 -06:00
Nishant Kashiv eb08e9db7e Add NGINX Agent install script 2023-08-25 12:02:10 -06:00
Andrei Belov f6be8cf8f8
Merge pull request #93 from defanator/RHEL9
packages: add RHEL 9 support
2022-10-25 13:54:50 +04:00
Andrei Belov dc7a43984c
packages: add RHEL 9 support 2022-10-24 11:54:34 +04:00
Andrei Belov 8d32f72df2
Merge pull request #91 from defanator/rocky-linux
packages: added support for Rocky Linux to install script
2022-10-07 12:56:55 +04:00
Andrei Belov 5eb6a013a6
packages: added support for Rocky Linux to install script
While here, package builders were adjusted to include correct version build
when auto-increment feature is used.

Closes nginxinc/nginx-amplify-agent#77, nginxinc/nginx-amplify-agent#82.
2022-10-05 17:36:40 +04:00
Andrei Belov 3df258e7f5
Merge pull request #88 from defanator/1.8.1
Update agent version to 1.8.1
2022-09-27 11:52:15 +04:00
Andrei Belov 7c99e10894
Update agent version to 1.8.1 2022-09-26 10:09:06 +04:00
Andrei Belov e4e83af94e
Merge pull request #87 from nkashiv/jammy-install-option
Add ubuntu jammy as an option supporting python 3
2022-09-20 10:52:10 +04:00
Nishant Kashiv 3409a84019 Add ubuntu jammy as an option supporting python 3 2022-09-19 14:46:50 -06:00
Andrei Belov 4aaf5330b4
Merge pull request #86 from nkashiv/update-ujson
Update ujson version to 5.4.0
2022-09-19 19:55:30 +04:00
Nishant Kashiv 4cc53d23c4 Update ujson version to 5.4.0 2022-09-16 12:26:01 -06:00
Andrei Belov d84787be65
Merge pull request #85 from defanator/ubuntu-22.04-jammy
Add support for Ubuntu 22.04 "jammy"
2022-09-16 09:53:46 +04:00
Andrei Belov aeddcd2336
Add support for Ubuntu 22.04 "jammy" 2022-09-14 13:26:37 +04:00
Andrei Belov fa4fb352ee
1.8.0 - new Python 3 based agent version 2022-08-19 12:39:59 +04:00