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

Mcafee audit plugin not working for MySQL Galera 5.6 version #160

Closed
subhajit1987 opened this issue Feb 16, 2017 · 9 comments
Closed

Mcafee audit plugin not working for MySQL Galera 5.6 version #160

subhajit1987 opened this issue Feb 16, 2017 · 9 comments

Comments

@subhajit1987
Copy link

Getting error:

2017-02-16 23:59:32 4737 [ERROR] Audit Plugin: Offsets: 5.6.30 (84dd43523b638e4b2817ca9b53f204fe) match thread validation check fails with value: 0. Skipping offset.
2017-02-16 23:59:32 4737 [ERROR] Audit Plugin: Offsets: 5.6.30 (84dd43523b638e4b2817ca9b53f204fe) match thread validation check fails with value: 0. Skipping offset.
2017-02-16 23:59:32 4737 [ERROR] Plugin 'AUDIT' init function returned error.
2017-02-16 23:59:32 4737 [ERROR] Plugin 'AUDIT' registration as a AUDIT failed.

@subhajit1987
Copy link
Author

I'm using audit-plugin-mysql-5.6-1.1.2-684-linux-x86_64 version and my Linux is: RedHat Linux 7 x86_64
MySql is 5.6.30

@subhajit1987
Copy link
Author

Any help will be greatly appreciated.

@aharonrobbins
Copy link

Hi. Please see if you can follow the troubleshooting instructions on the Wiki to extract the offsets for your version of Galera.

If you cannot, you will have to follow the instructions for building Galera from source, and then extract the offsets.

Thanks,

Aharon

@subhajit1987
Copy link
Author

I am getting the following error:

[root@hostname bin]# ./offset-extract.sh /usr/bin/mysqld
./offset-extract.sh: line 12: /usr/bin/mysqld: No such file or directory
md5sum: /usr/bin/mysqld: No such file or directory
//offsets for: /usr/bin/mysqld ()
{"",""offsets.gdb:7: Error in sourced command file:
No symbol table is loaded. Use the "file" command.,

@aharonrobbins
Copy link

Your mysqld is apparently not in /usr/bin - perhaps it is in /usr/sbin?

@subhajit1987
Copy link
Author

Similar error:

[root@hostname bin]# ./offset-extract.sh /usr/sbin/mysqld
//offsets for: /usr/sbin/mysqld (5.6.30)
{"5.6.30","92477ed697b1515bd51a408e00e18676"offsets.gdb:7: Error in sourced command file:
No symbol table is loaded. Use the "file" command.,

@aharonrobbins
Copy link

This is a different error. You found the correct file, but it does not have symbols.

At this point, your only option is to build the Galera version of MySQL from source code and extract the offsets from the compiled version.

@subhajit1987
Copy link
Author

Can you guide me how to do this.
Or I can share you the binary also.

@aharonrobbins
Copy link

aharonrobbins commented Feb 19, 2017

Sending me the binary won't help.

Please see http://galeracluster.com/documentation-webpages/installmysqlsrc.html which would appear to be instructions on how to build the Galera version from source. I have not tried this myself. You may wish to build from source, extract offsets, and then also run the version that you built to make sure that everything is in sync.

Hope this helps.

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

2 participants