Azure / Azure/azure-linux-extensions

[OSPatching] Oracle 7.2 enable fails

Open
#196 1 comment 0 reactions 1 assignee Claimed by @mbearup View on GitHub
Distro support extensions/OSPatching
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

With agent rc3 bits, the enable step fails with:

2016/07/06 17:02:08 ERROR:Reading from file /etc/crontab Exception is [Errno 2] No such file or directory: '/etc/crontab'
2016/07/06 17:02:08 ERROR:[Microsoft.OSTCExtensions.OSPatchingForLinux-1.0]Failed to enable the extension with error: 'NoneType' object has no attribute 'split', stack trace: Traceback (most recent call last):
2016/07/06 17:02:08 ERROR: File "/var/lib/waagent/Microsoft.OSTCExtensions.OSPatchingForLinux-2.3.0.1/./handler.py", line 74, in enable
2016/07/06 17:02:08 ERROR: MyPatching.enable()
2016/07/06 17:02:08 ERROR: File "/var/lib/waagent/Microsoft.OSTCExtensions.OSPatchingForLinux-2.3.0.1/patch/AbstractPatching.py", line 323, in enable
2016/07/06 17:02:08 ERROR: self.set_download_cron()
2016/07/06 17:02:08 ERROR: File "/var/lib/waagent/Microsoft.OSTCExtensions.OSPatchingForLinux-2.3.0.1/patch/AbstractPatching.py", line 368, in set_download_cron
2016/07/06 17:02:08 ERROR: waagent.ReplaceFileContentsAtomic(self.crontab, '\n'.join(filter(lambda a: a and (old_line_end not in a), waagent.GetFileContents(self.crontab).split('\n'))) + new_line)
2016/07/06 17:02:08 ERROR:AttributeError: 'NoneType' object has no attribute 'split'
2016/07/06 17:02:08 ERROR:
2016/07/06 17:02:08 [Microsoft.OSTCExtensions.OSPatchingForLinux-1.0]Enable,error,0,Enable Failed. Current Configuation: category=important,dayOfWeek=Everyday,distUpgradeAll=False,intervalOfWeeks=1,stop=False,disabled=False,installDuration=01:00,rebootAfterPatch=rebootifneed,oneoff=False,startTime=03:00

[root@o72rc3 waagent]# ls /etc/cr*
/etc/crypttab

/etc/cron.daily:
0yum-daily.cron logrotate man-db.cron

/etc/cron.hourly:
0yum-hourly.cron

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.