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

Can't change ownership of the file during trim binlog #1107

Conversation

percona-ysorokin
Copy link
Contributor

Summary:
Mysqld error log:

2019-10-29 21:08:57 3013526 [ERROR] Taking backup from binary-logs-3306.000003 to binlog_backup.trunc
�mysqld: Can't change ownership of the file 'binary-logs-3306.000003' (Errcode: 1 - Operation not permitted)
2019-10-29 21:08:58 3013526 [ERROR] Could not take backup of the truncated binlog file binary-logs-3306.000003
2019-10-29 21:08:58 3013526 [Note] Crashed binlog file binary-logs-3306.000003 size is 189413002, but recovered up to 189412705. Binlog trimmed to 189412705 bytes.
2019-10-29 21:08:58 3013526 [Note] [rpl_wait_for_semi_sync_ack] Last ACKed pos initialized to: binary-logs-3306.000003:189418122

This issue is caused by mysqld is running under mysql user instead of root user.

We copy these files for diagnostic purpose and it should be ok to don't change ownership. :)

Originally Reviewed By: yizhang82, bhatvinay

Reference Patch: 8ee8ebe

fbshipit-source-id: f62bc35

Summary:
Mysqld error log:
>
2019-10-29 21:08:57 3013526 [ERROR] Taking backup from binary-logs-3306.000003 to binlog_backup.trunc
�mysqld: Can't change ownership of the file 'binary-logs-3306.000003' (Errcode: 1 - Operation not permitted)
2019-10-29 21:08:58 3013526 [ERROR] Could not take backup of the truncated binlog file binary-logs-3306.000003
2019-10-29 21:08:58 3013526 [Note] Crashed binlog file binary-logs-3306.000003 size is 189413002, but recovered up to 189412705. Binlog trimmed to 189412705 bytes.
2019-10-29 21:08:58 3013526 [Note] [rpl_wait_for_semi_sync_ack] Last ACKed pos initialized to: binary-logs-3306.000003:189418122

This issue is caused by mysqld is running under mysql user instead of root user.

We copy these files for diagnostic purpose and it should be ok to don't change ownership. :)

Originally Reviewed By: yizhang82, bhatvinay

Reference Patch: facebook/mysql-5.6@8ee8ebe

fbshipit-source-id: f62bc35
@percona-ysorokin
Copy link
Contributor Author

This fix should be squashed with #1079
D19357077

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hermanlee hermanlee closed this Feb 27, 2020
facebook-github-bot pushed a commit that referenced this pull request Feb 28, 2020
Summary:
Mysqld error log:
>
2019-10-29 21:08:57 3013526 [ERROR] Taking backup from binary-logs-3306.000003 to binlog_backup.trunc
�mysqld: Can't change ownership of the file 'binary-logs-3306.000003' (Errcode: 1 - Operation not permitted)
2019-10-29 21:08:58 3013526 [ERROR] Could not take backup of the truncated binlog file binary-logs-3306.000003
2019-10-29 21:08:58 3013526 [Note] Crashed binlog file binary-logs-3306.000003 size is 189413002, but recovered up to 189412705. Binlog trimmed to 189412705 bytes.
2019-10-29 21:08:58 3013526 [Note] [rpl_wait_for_semi_sync_ack] Last ACKed pos initialized to: binary-logs-3306.000003:189418122

This issue is caused by mysqld is running under mysql user instead of root user.

We copy these files for diagnostic purpose and it should be ok to don't change ownership. :)

Reference Patch: 8ee8ebe

Squash with D18812324

Pull Request resolved: #1107

Reviewed By: luqun

Differential Revision: D19876689

Pulled By: luqun

fbshipit-source-id: 6a3d4f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants