Azure / Azure/azure-linux-extensions
Unable to start Telegraf service appearing in log messages
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
Hello,
I have Azure monitor agent installed on a Ubuntu VM in Azure eastus and I'm seeing a lot of error messages in the log files, should I be concerned about these errors ?
`root@markstestVM1205Thu:/var/log/azure# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
root@markstestVM1205Thu:/var/log/azure# uname -av
Linux markstestVM1205Thu 5.4.0-1036-azure #38~18.04.1-Ubuntu SMP Wed Jan 6 18:26:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux`
I'm seeing the following error
`root@markstestVM1205Thu:/var/log/azure# tail -f ./Microsoft.Azure.Monitor.AzureMonitorLinuxAgent/telegraf.log
2021-01-14T14:56:59Z E! [agent] Failed to connect to [outputs.socket_writer], retrying in 15s, error was 'dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory'
2021-01-14T14:57:14Z E! [telegraf] Error running agent: dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory
2021-01-14T14:57:32Z E! [agent] Failed to connect to [outputs.socket_writer], retrying in 15s, error was 'dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory'
2021-01-14T14:57:47Z E! [telegraf] Error running agent: dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory
2021-01-14T14:58:05Z E! [agent] Failed to connect to [outputs.socket_writer], retrying in 15s, error was 'dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory'
2021-01-14T14:58:20Z E! [telegraf] Error running agent: dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory
2021-01-14T14:58:38Z E! [agent] Failed to connect to [outputs.socket_writer], retrying in 15s, error was 'dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory'
2021-01-14T14:58:53Z E! [telegraf] Error running agent: dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory
2021-01-14T14:59:11Z E! [agent] Failed to connect to [outputs.socket_writer], retrying in 15s, error was 'dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory'
2021-01-14T14:59:26Z E! [telegraf] Error running agent: dial unix /var/run/mdsd/default_influx.socket: connect: no such file or directory
`
and
`root@markstestVM1205Thu:/var/log/azure# tail -f ./Microsoft.Azure.Monitor.AzureMonitorLinuxAgent/extension.log
2021/01/14 15:44:54 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Unable to start Telegraf service. Failed to start telegraf service.
2021/01/14 15:45:24 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Telegraf binary process is not running. Restarting telegraf now. Retry count - 1
2021/01/14 15:45:24 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Telegraf service file does not exist. Failed to stop telegraf service: metrics-sourcer.service .
2021/01/14 15:45:24 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Unable to start Telegraf service. Failed to start telegraf service.
2021/01/14 15:45:54 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Telegraf binary process is not running. Restarting telegraf now. Retry count - 1
2021/01/14 15:45:54 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Telegraf service file does not exist. Failed to stop telegraf service: metrics-sourcer.service .
2021/01/14 15:45:54 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Unable to start Telegraf service. Failed to start telegraf service.
2021/01/14 15:46:24 [Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Telegraf binary process is not running. Restarting telegraf now. Retry count - 1
2021/01/14 15:46:24 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Telegraf service file does not exist. Failed to stop telegraf service: metrics-sourcer.service .
2021/01/14 15:46:24 ERROR:[Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.5.133] Unable to start Telegraf service. Failed to start telegraf service.
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported telegraf.log and extension.log entries on the Ubuntu 18.04 Azure VM, including the missing /var/run/mdsd/default_influx.socket and metrics-sourcer.service references. Determine whether the Telegraf startup failure is reproducible and what repository change or documented resolution is expected; the issue currently provides no acceptance criteria or named source file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, ubuntu
- Domain
- cloud, observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100