Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    Hacked. Somehow thru csf they got me.

    I had done some research because mysql was effected. One suggestion was to delete the ibdata files. Well, I saved them locally and then deleted them on the server. .frm files were not touched. I have since restored the original ibdata files.


    Nothing really damaged though.

    but pages arent loading. log says missing table. Ordinarilly not a problem. But its CEON uri. Install dow not come with tables. It creates them.

    I checked the server, and they are there in var/lib/mysql. In phpmyadmin, table is named but when I click on it it says missing table.

    So. How can I refresh phpmyadmin to pickup the tables?
    Last edited by pixelpadre; 6 Jun 2016 at 09:59 PM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    Quote Originally Posted by pixelpadre View Post
    I had done some research because mysql was effected. One suggestion was to delete the ibdata files. Well, I saved them locally and then deleted them on the server. .frm files were not touched. I have since restored the original ibdata files.


    Nothing really damaged though.

    but pages arent loading. log says missing table. Ordinarilly not a problem. But its CEON uri. Install dow not come with tables. It creates them.

    I checked the server, and they are there in var/lib/mysql. In phpmyadmin, table is named but when I click on it it says missing table.

    So. How can I refresh phpmyadmin to pickup the tables?
    phpMyAdmin simply reports what it reads from MySQL.
    And MySQL usually reports everything automatically, except occasionally when things are damaged.
    Sometimes restarting MySQL is enough.

    Sometimes repairing the tables manually from the command-line is necessary:
    Code:
    mysqlcheck --all-databases -r #repair
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    Yea i had already tried the repair. All that did was show me all the bad tables. Its weird how all of the zc databases only had the ceon table effected. I have 5-6 zc installs

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    If all the original ZC tables were MyISAM and the Ceon tables were the only InnoDB tables, then your ibdata files (the InnoDB data) were probably the culprit there.

    And ibdata files are only "copyable" when MySQL is shut down. Otherwise they're "open" and rarely ever copy cleanly or completely. So backups of files for InnoDB data are rarely reliable unless MySQL is shut down first. For InnoDB it's better to do a database dump/export instead.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    OK, you are right. Lost a lot of sleep over this. I still dont know what happened other than the mysql shutdown. It could have been an attack that overwhelmed the server or ......insufficient memory...1gb. or a combination.

    I was able to get sql running again by renaming the 3 ibdata files in mysql directory. That was a start. But upon inspection in the database files...all that remained were .frm files. It was really weird how only the ceon files were affected on all of my ZC sites. On my other sites, I lost most of my tables. I stumbled upon /backups in my directory and found all of the dbase backups made several hours before the crash.

    Two days later it happened all over again. Exactly the same files affected. How strange is that? Since the second crash, I moved half of my stuff to another server and everything seems to be running without any problem. I also set up CSF config file to block bad logins for 1 hours and notify me via email. Lots of blocking going on for bad logins. China and Vietnam seem to be at the top of the list.

    I am leaning towards insufficient memory at the heart of the problem. But my gut tells me, someone made that happen in an unnatural way.

  6. #6
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    Huh...I just read dr. last post more closely. So you are saying that ceon is innodb and ZC is myisam. Thats amazing. And it appears that all files that were myisam were left untouched. I even had non-ZC databases that were mixed with the two types. In those the same thing happened. ibdata was destroyed while the other data was fine. Sound like myisam is the only way to go. So now that we know that myisam was not vulnerable, can we say what caused the crash and/or damage?

    And can I convert the ibdata to myisam?

    Big kudo for the big reveal.
    Last edited by pixelpadre; 11 Jun 2016 at 09:14 PM.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    Quote Originally Posted by pixelpadre View Post
    So you are saying that ceon is innodb and ZC is misaim.
    I suspect Ceon used InnoDB because he wanted to use transactions, or needed InnoDB's alternate approach to record locking to support the features in his code.

    InnoDB isn't "wrong". But it's rarely properly optimized in the MySQL server. InnoDB serves a purpose. And MyISAM serves a purpose. One should use the right tool for the job. But if one is going to use it, one also needs to ensure that the infrastructure is prepared to support it.

    Quote Originally Posted by pixelpadre View Post
    can we say what caused the crash and/or damage?
    I think whoever has access to your server is in the best position to answer that.
    I doubt it has anything to do with "excess Zen Cart traffic".
    But if there's some OS-vulnerability or MySQL vulnerability that an attacker was trying to exploit, that might be a culprit.

    Quote Originally Posted by pixelpadre View Post
    And can I convert the ibdata to myisam?
    Sure: Use phpMyAdmin (or equiv) to change the table type from InnoDB to MyISAM.
    But remember that in doing so you will lose all the benefits that InnoDB offers.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. WARNING: An Error occurred, please refresh the page and try again
    By Amethyst_fairy in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 Aug 2016, 02:45 AM
  2. v151 WARNING: An Error occurred, please refresh the page and try again
    By pramitha in forum General Questions
    Replies: 5
    Last Post: 12 Jul 2016, 10:25 AM
  3. v151 Warning: An Error occurred, please refresh the page and try again...
    By Sellerz in forum Installing on a Windows Server
    Replies: 2
    Last Post: 4 Nov 2012, 03:12 AM
  4. v150 WARNING: An Error occurred, please refresh the page and try again.
    By dochsa in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2012, 08:10 AM
  5. v150 WARNING: An Error occurred, please refresh the page and try again.
    By jo54iv in forum General Questions
    Replies: 1
    Last Post: 30 Apr 2012, 09:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg