Database corruption

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Database corruption

Postby kashinc » Tue Oct 15, 2024 2:57 pm

Hello,

I am getting database corruption randomly on different clusters, it seems that somehow characters that are not supported by the DB are getting put into the database. I am assuming that its openers in putting characters that are not supported by the database. after running a mysql repair command it always seems to fix the issue.

Has anyone else ran into this issue and has anyone found a solution to fix it or prevent it from happening?
kashinc
 
Posts: 75
Joined: Thu Apr 23, 2015 12:04 pm

Re: Database corruption

Postby carpenox » Tue Oct 15, 2024 6:03 pm

its more than likely being exploited through the latest RCE - what svn are you using?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Database corruption

Postby kashinc » Tue Oct 15, 2024 10:07 pm

The SVN I am currently running on is 3875
kashinc
 
Posts: 75
Joined: Thu Apr 23, 2015 12:04 pm

Re: Database corruption

Postby carpenox » Wed Oct 16, 2024 9:55 am

ok so it wasnt a hacker, are you using a VPS or bare metal? ive seen this often on VPS, another reason the vicidial group strongly suggests NOT to use them.
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Database corruption

Postby kashinc » Wed Oct 16, 2024 11:42 am

all bare betal servers
kashinc
 
Posts: 75
Joined: Thu Apr 23, 2015 12:04 pm

Re: Database corruption

Postby carpenox » Wed Oct 16, 2024 12:50 pm

im not sure ive never came across it, try asking in the group chat we're in
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Database corruption

Postby williamconley » Wed Oct 16, 2024 10:39 pm

kashinc wrote:Hello,

I am getting database corruption randomly on different clusters, it seems that somehow characters that are not supported by the DB are getting put into the database. I am assuming that its openers in putting characters that are not supported by the database. after running a mysql repair command it always seems to fix the issue.

Has anyone else ran into this issue and has anyone found a solution to fix it or prevent it from happening?


"Characters that are not supported" in which field(s)? Does this happen during load of new leads? (If so: How are you loading the leads?)

What makes you think that unsupported characters are being inserted? The actual error message (from your next occurrence ...) may shed some light.

Are the tables which become corrupted ... Large? EG: Over 10Million records? Are they logs or other tables?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20252
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Database corruption

Postby kashinc » Wed Oct 16, 2024 11:07 pm

williamconley wrote:
kashinc wrote:Hello,

I am getting database corruption randomly on different clusters, it seems that somehow characters that are not supported by the DB are getting put into the database. I am assuming that its openers in putting characters that are not supported by the database. after running a mysql repair command it always seems to fix the issue.

Has anyone else ran into this issue and has anyone found a solution to fix it or prevent it from happening?


"Characters that are not supported" in which field(s)? Does this happen during load of new leads? (If so: How are you loading the leads?)

What makes you think that unsupported characters are being inserted? The actual error message (from your next occurrence ...) may shed some light.

Are the tables that become corrupted ... Large? EG: Over 10 Million records? Are they logs or other tables?


It is almost as if the openers are modifying the leads and putting in characters that are not supported, for example, characters with four bytes or weird non supported characters

I found these characters in the custom fields when I noticed DB corruption. There is no error message; dialing stats starts going down until they show 0 dials in the carrier stats 1 min box. This is generally an indicator that DB corruption or a heavy lock-up has occurred.

The files being loaded are less than 10 million; they aren't even 1 million records. The lead has a character, and once it hits that lead, the system does not return to normal until I run a db repair command. The leads also need to be removed before doing this, or else once it hits that lead again, we are back to square one.

Hope that is enough information.
kashinc
 
Posts: 75
Joined: Thu Apr 23, 2015 12:04 pm

Re: Database corruption

Postby williamconley » Thu Oct 17, 2024 1:43 pm

Are your agents copy/pasting information from other web pages during the interview?

It would also be possible to run a query that cleans these fields on a timed basis, or at least locates these characters so you may begin to narrow down the source and actually troubleshoot once found.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20252
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 62 guests