Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: Website down problems

  1. #1
    Join Date
    Sep 2001
    Posts
    180

    Default Website down problems

    One of my indexu websites seems to be down since yesterday and I am unable to figure out the problem. Note that the server is hosting other websites of mine and all seem to be fine except this one. Please see partial log file below: Any help would be appreciated!

    Mon Sep 07 18:54:35 2009] [error] [client 66.249.71.146] PHP Fatal error: Call to a member function Fields() on a non-object in /home/euredco/public_html/lib/db.class.php on line 120
    [Mon Sep 07 18:54:35 2009] [error] [client 66.249.71.146] PHP Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/euredco/public_html/lib/db.class.php on line 22
    [Mon Sep 07 18:54:35 2009] [error] [client 66.249.71.146] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'euredco'@'localhost' (using password: YES) in /home/euredco/public_html/lib/db.class.php on line 20

    It seems that this client's traces 66.249.71.146 are all over the error log file
    Last edited by Andros; 09-07-2009 at 11:03 AM.

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    It would appear that your MySQL is having an issue.

    [Mon Sep 07 18:54:35 2009] [error] [client 66.249.71.146] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'euredco'@'localhost' (using password: YES)
    If your unable to connect to the MySQL DB, then thats probably the issue for the other errors too
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Sep 2001
    Posts
    180

    Default

    Mysql seems to work fine. The problem is that the website is not always down, only at irregular intervals. I am not sure why mysql is down only at some times.

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    If you are in shared hosting, perhaps other users have busy website. From my experience, busy website usually take mysql resource bigger than httpd. It may cause mysql down.

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Dody is right! If other sites being hosted on that server are eating up all of the MySQL connections allowed / processes... Your going to run into that problem.

    Fortunately, this is never a problem with IndexU Hosting
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  6. #6
    Join Date
    Sep 2001
    Posts
    180

    Default

    Ok I do have my own dedicated server that hosts not more than 20 websites and some of the other websites are more demanding on mysql resources, so why only this website is down and only at irregular intervals?

  7. #7
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You should be more often to check how much resource eaten by mysqld. Perhaps you can use ps command in linux shell.

    One of my friend running busy drupal site, around 20k unique visit per day. His server is quad xeon and 8gb ram. But he still have problem with mysqld.

    I think FSGDAG (Frank) has better explaination since he is running webhost

  8. #8
    Join Date
    Sep 2001
    Posts
    180

    Default

    Somehow database user got mispelled or changed not sure how. Now site is working fine. Thanks for support and suggestions.

  9. #9
    Join Date
    Sep 2001
    Posts
    180

    Default

    No the problem is back.

    [I]" Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'euredco'@'localhost' (using password: YES) in /home/euredco/public_html/lib/db.class.php on line 20

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/euredco/public_html/lib/db.class.php on line 22

    Fatal error: Call to a member function Fields() on a non-object in /home/euredco/public_html/lib/db.class.php on line 120"
    [/I]

    Every day I issue the query
    grant all privileges on euredco_estate.* to 'euredco'@'localhost' identified by 'password_of_database_user';

    Problem is fixed temporarily and next day, again same problem, website is not accessible giving me the error above

  10. #10
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Well, this pretty much confirms that its a server issue, rather than being an IndexU or script issue.

    You should NEVER have to run the 'grant all privileges' query. Especially having to do it once a day.

    Did you clone a site that was already created on your server?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  11. #11
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by Andros View Post
    grant all privileges on euredco_estate.* to 'euredco'@'localhost' identified by 'password_of_database_user';
    I just thought about something... Are you also running 'flush privileges' directly after that command? So it should look like this:

    Code:
    mysql> grant all privileges on euredco_estate.* to 'euredco'@'localhost' identified by '<password>';
    mysql> flush privileges;
    mysql> \q
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  12. #12
    Join Date
    Sep 2001
    Posts
    180

    Default

    Yes the site was cloned or changed using an existing site on the server.

  13. #13
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    If your not doing the 'flush privileges' after the 'grant all' statement, then thats why your having to rerun the command every day. Let me know if that fixes it.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  14. #14
    Join Date
    Sep 2001
    Posts
    180

    Default

    Hi FSGDAG, have tried it and did not work. Again the strangest thing is as soon as I access the database through mysql site is working again

  15. #15
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Not sure how much help I can be at this point without being able to see the server. My suggestion at this point:

    - Export all the data to an SQL file
    - Create a new database
    - Import the SQL file into the new DB
    - Edit /application.php to reflect new database information

    That should clear up the issue - I hope!
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. A few website changes
    By Bruceper in forum Customers Lounge
    Replies: 10
    Last Post: 01-08-2009, 10:29 PM
  2. PTC Website!
    By Lanshire in forum Help Wanted/Job Request
    Replies: 5
    Last Post: 11-28-2008, 11:12 PM
  3. change website
    By sama in forum v5.x
    Replies: 1
    Last Post: 02-03-2008, 08:05 PM
  4. website under attack
    By frost13 in forum v5.x
    Replies: 4
    Last Post: 01-27-2007, 07:08 PM
  5. My Website CanadaOnline
    By pepleen in forum Sites in Action
    Replies: 1
    Last Post: 01-02-2007, 04:23 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
  •