Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic upgrade fails from 1.29.0 to 1.33.1 #1994

Open
jantekb opened this issue Nov 6, 2024 · 1 comment
Open

Automatic upgrade fails from 1.29.0 to 1.33.1 #1994

jantekb opened this issue Nov 6, 2024 · 1 comment

Comments

@jantekb
Copy link

jantekb commented Nov 6, 2024

The automatic upgrade of the agent fails on Ubuntu 18.04.4 LTS from 1.29 to 1.33.1 with the below logs.

2024/11/04 15:26:33 ERROR:Preparing to unpack .../azuremonitoragent_1.33.1-build.main.708_x86_64.deb ...
2024/11/04 15:26:33 ERROR:PRE-RM: [upgrade 1.33.1-build.main.708] [ubuntu 18.04 systemd]
2024/11/04 15:26:33 ERROR:PRE-INSTALL: [upgrade 1.26.1-build.master.97] [ubuntu 18.04 systemd]
2024/11/04 15:26:33 ERROR:Failed to stop azuremonitor-kqlextension.service: Unit azuremonitor-kqlextension.service not loaded.
2024/11/04 15:26:33 ERROR:dpkg: error processing archive /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/p
ackages/azuremonitoragent_1.33.1-build.main.708_x86_64.deb (--install):
2024/11/04 15:26:33 ERROR: new azuremonitoragent package pre-installation script subprocess returned error exit status 5
2024/11/04 15:26:33 ERROR:POST-RM: [abort-upgrade 1.26.1-build.master.97] [ubuntu 18.04 systemd deb]
2024/11/04 15:26:33 ERROR:POST-INSTALL: [abort-upgrade 1.33.1-build.main.708] [ubuntu 18.04 systemd deb]
2024/11/04 15:26:33 ERROR:Errors were encountered while processing:
2024/11/04 15:26:33 ERROR: /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/packages/azuremonitoragent_1.33
.1-build.main.708_x86_64.deb
2024/11/04 15:26:33 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Output of command "dpkg --force-overwrite --force-con
fnew -i /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/packages/azuremonitoragent_1.33.1-build.main.708_x
86_64.deb":
2024/11/04 15:26:33 (Reading database ... 123095 files and directories currently installed.)
2024/11/04 15:26:33 Preparing to unpack .../azuremonitoragent_1.33.1-build.main.708_x86_64.deb ...
2024/11/04 15:26:33 PRE-RM: [upgrade 1.33.1-build.main.708] [ubuntu 18.04 systemd]
2024/11/04 15:26:33 PRE-INSTALL: [upgrade 1.26.1-build.master.97] [ubuntu 18.04 systemd]
2024/11/04 15:26:33 Failed to stop azuremonitor-kqlextension.service: Unit azuremonitor-kqlextension.service not loaded.
2024/11/04 15:26:33 dpkg: error processing archive /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/package
s/azuremonitoragent_1.33.1-build.main.708_x86_64.deb (--install):
2024/11/04 15:26:33  new azuremonitoragent package pre-installation script subprocess returned error exit status 5
2024/11/04 15:26:33 POST-RM: [abort-upgrade 1.26.1-build.master.97] [ubuntu 18.04 systemd deb]
2024/11/04 15:26:33 POST-INSTALL: [abort-upgrade 1.33.1-build.main.708] [ubuntu 18.04 systemd deb]
2024/11/04 15:26:33 Errors were encountered while processing:
2024/11/04 15:26:33  /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/packages/azuremonitoragent_1.33.1-bui
ld.main.708_x86_64.deb
2024/11/04 15:26:33 ERROR:Install failed with exit code 1. For error details, check logs in /var/log/azure/Microsoft.Azure.Monito
r.AzureMonitorLinuxAgent
2024/11/04 15:26:33 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Install failed with exit code 1. For error deta
ils, check logs in /var/log/azure/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent
2024/11/04 15:26:33 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Install,failed,1,Install failed with exit code 1. For
 error details, check logs in /var/log/azure/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent
2024/11/04 15:32:03 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] sequence number is 0
2024/11/04 15:32:03 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] setting file path is/var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/config/0.settings
2024/11/04 15:32:03 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] JSON config:
2024/11/04 15:32:03 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] JSON exception decoding
2024/11/04 15:32:03 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] JSON error processing settings file:
2024/11/04 15:32:03 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Running command "dpkg --force-overwrite --force-confnew -i /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/packages/azuremonitoragent_1.33.1-build.main.708_x86_64.deb"
2024-11-02T00:35:23.626682Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Target handler state: enabled
 [incarnation_1]
2024-11-02T00:35:23.627047Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] [Enable] current handler stat
e is: notinstalled
2024-11-02T00:35:29.073827Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Initializing extension Micros
oft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1
2024-11-02T00:35:29.878460Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Extension has no settings, wr
ite empty 0.settings
2024-11-02T00:35:29.879113Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Install extension [./shim.sh
-install]
2024-11-02T00:35:29.879634Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Executing command: /var/lib/w
aagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/./shim.sh -install with environment variables: {"AZURE_GUEST_AGENT_U
NINSTALL_CMD_EXIT_CODE": "NOT_RUN", "AZURE_GUEST_AGENT_EXTENSION_PATH": "/var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLin
uxAgent-1.33.1", "AZURE_GUEST_AGENT_EXTENSION_VERSION": "1.33.1", "AZURE_GUEST_AGENT_WIRE_PROTOCOL_ADDRESS": "168.63.129.16", "Co
nfigSequenceNumber": "0", "AZURE_GUEST_AGENT_EXTENSION_SUPPORTED_FEATURES": "[{\"Key\": \"ExtensionTelemetryPipeline\", \"Value\"
: \"1.0\"}]"}
2024-11-02T00:36:24.107389Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Target handler state: enabled [etag_235921197111359115]
2024-11-02T00:36:24.107975Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] [Enable] current handler state is: notinstalled
2024-11-02T00:36:29.893097Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Initializing extension Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1
2024-11-02T00:36:29.895871Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Extension has no settings, write empty 0.settings
2024-11-02T00:36:29.896122Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Install extension [./shim.sh -install]
2024-11-02T00:36:29.896427Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Executing command: /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1/./shim.sh -install with environment variables: {"AZURE_GUEST_AGENT_UNINSTALL_CMD_EXIT_CODE": "NOT_RUN", "AZURE_GUEST_AGENT_EXTENSION_PATH": "/var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1", "AZURE_GUEST_AGENT_EXTENSION_VERSION": "1.33.1", "AZURE_GUEST_AGENT_WIRE_PROTOCOL_ADDRESS": "168.63.129.16", "ConfigSequenceNumber": "0", "AZURE_GUEST_AGENT_EXTENSION_SUPPORTED_FEATURES": "[{\"Key\": \"ExtensionTelemetryPipeline\", \"Value\": \"1.0\"}]"}
2024-11-02T00:36:44.245784Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] Target handler state: enabled [etag_9624895348208696096]
2024-11-02T00:36:44.246250Z INFO ExtHandler [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.33.1] [Enable] current handler state is: notinstalled
@jantekb
Copy link
Author

jantekb commented Nov 6, 2024

After having manually created a completely dummy service with the required name, the installer ran fine and highlighted that .NET is not installed on the system, so KQL won't work - probably this is why the azuremonitor-kqlextension.service was not even installed by the previous versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant