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

Permissions and errors in cronjob #1

Open
manics opened this issue Oct 3, 2019 · 0 comments
Open

Permissions and errors in cronjob #1

manics opened this issue Oct 3, 2019 · 0 comments

Comments

@manics
Copy link
Member

manics commented Oct 3, 2019

A recent update on a server that uses this role led to the following cron errors:

/etc/cron.daily/logrotate:

error: Ignoring osad because of bad file mode - must be 0644 or 0444.
/etc/cron.daily/mysql-backup:

 /usr/bin/mysqldump: Can't create/write to file '/xxx-Wed.mysqldump.tmp' (Errcode: 2 "No such file or directory")
stat: cannot stat ‘xxx-Wed.mysqldump.tmp’: No such file or directory
/etc/cron.daily/mysql-backup: line 8: [: -lt: unary operator expected
mv: cannot stat ‘xxx-Wed.mysqldump.tmp’: No such file or directory
  • change the permissions on /etc/cron.daily/mysql-backup
  • Add set -eu to the script
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