Skip to content

Commit 718bb01

Browse files
committed
Initialize log directory required by waagent
waagent assumes that the `/var/log/azure` directory exists and raises an exception in the telemetry module if it does not. ```sh ERROR TelemetryEventsCollector ExtHandler Event: name=WALinuxAgent, op=ExtensionTelemetryEventProcessing, message=Unknown error occurred when trying to collect extension events:[Errno 2] No such file or directory: '/var/log/azure' ```
1 parent 5ed1c3a commit 718bb01

File tree

1 file changed

+1
-0
lines changed
  • stemcell_builder/stages/system_azure_init

1 file changed

+1
-0
lines changed

stemcell_builder/stages/system_azure_init/apply.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ run_in_chroot $chroot "
3333
sudo rm -fr WALinuxAgent-${wala_release}
3434
rm wala.tar.gz
3535
"
36+
mkdir -p $chroot/var/log/azure
3637
cp -f $dir/assets/etc/waagent/waagent.conf $chroot/etc/waagent.conf
3738
cp -f $dir/assets/etc/waagent/walinuxagent.service $chroot/lib/systemd/system/walinuxagent.service
3839
chmod 0644 $chroot/lib/systemd/system/walinuxagent.service

0 commit comments

Comments
 (0)