Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
When I upgraded to UBBthreads I never performed subsequent backups. (I didn't know how using the myPHP interface) and now I may be burnt toast. Network Solutions suffered some kind of catastrophe last night and now I just see this:

UBB Error
We encountered a problem. The reason reported was

Database error only visible to forum administrators

Please use your back button to return to the previous page.

The databases generate errors like they are not there when I access the myPHP interface.

Can anyone speculate what might have happened here? Another application I have that reads from a database is also not working and when I go into the myPHP interface I get error messages that the tables are not found. I didn't install UBB so I am not a expert.


Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
I am updating my calls to Network Solutions here:

http://www.popularwireless.com

I alerted my users to the down time in my blog and shortly afterward the blog DB was corrupt when it had survived the first catastrophe. I don't know whether the ISP erased the message or just thought I was complaining about the blog.

I'd be willing to pay the fees from the UBB folks to help diagnose this. The site is part of my livelihood and an essential part of a new non-profit group.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you don't have SQL error logging turned on, then what you can do is edit the libs/mysql.inc.php script. Around line 281 of that file you'll see this:

$showerror = 0;

Change that, to:

$showerror = 1;

This should then display the actual database error and we can give more advice on what to do next.

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Thanks Rick I'm off to to do the edit.

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Interesting. I can't find the php scripts or a LIBS directory. In the old UBB directory Rick?

nevermind. I found them.

Last edited by PopWireless; 08/17/2007 1:12 PM.
Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
We encountered a problem. The reason reported was

Script: /data/4/0/138/114/301929/user/306957/htdocs/forum/libs/ubbthreads.inc.php
Line#: 2179
SQL Error: Can't open file: 'ubbt_USERS.MYI' (errno: 145)
SQL Error #: 1016
Query: select t2.USER_TIME_OFFSET,t2.USER_TOPIC_VIEW_TYPE,t2.USER_TIME_FORMAT,t1.USER_DISPLAY_NAME,t1.USER_PASSWORD,t1.USER_SESSION_ID, t1.USER_MEMBERSHIP_LEVEL, t2.USER_TOTAL_PM, t1.USER_ID, t1.USER_IS_BANNED,t1.USER_IS_UNDERAGE, t2.USER_STYLE,t2.USER_HIDE_LEFT_COLUMN,t2.USER_HIDE_RIGHT_COLUMN,t2.USER_LANGUAGE,t2.USER_MOOD,t2.USER_RELATIVE_TIME from ubbt_USERS AS t1, ubbt_USER_PROFILE as t2 where t1.USER_ID = 4 and t1.USER_ID = t2.USER_ID

Please use your back button to return to the previous page.

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
I can also attempt access via the Network Solutions myPHP panel and copy that error. I have another PHP application that usese a smaller database with two tables and the smaller database reports the tables are not there.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
error code 145 is for a crashed table. So basically you'll need to repair that table. If you have something like phpmyadmin installed you can run the following SQL command on your database.

repair table ubbt_USERS

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
OK. I'll go to that interface and report back.

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Here's is what appears in the left column of the myPHP interface.

Warning: Cannot modify header information - headers already sent by (output started at /usr/services/mysql/phpmyadmin/left.php:92) in /usr/services/mysql/phpmyadmin/libraries/ob.lib.php on line 61

Error

SQL query: DocumentationEdit

SELECT COUNT( * ) AS num
FROM `ubbwireless`.`ubbt_USERS`

MySQL said: Documentation
#1016 - Can't open file: 'ubbt_USERS.MYI' (errno: 145)

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Is repair table ubbt_USERS considered a Query? I cretaed tables for another datbase I made by using the import option which ran the command lines in an SQL sript. Do I import this line in a text file or run this as a query. I don't see a "command" window. I do see a QUERY window.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, the repair statement would go in the query window.

Last edited by Rick; 08/17/2007 1:39 PM.
Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59


Table Op Msg_type Msg_text
ubbwireless.ubbt_USERS repair status OK

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Rick, where do I send the money dude? Flowers for the wife? Toy for the kid? Call the boss what?

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Oh and is there a FAQ on how to do a back up?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I need to hurry up and setup the feedback/testimonial forum wink

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yep, Gizmo has a topic in the FAQ forum:

here

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Originally Posted by Rick
I need to hurry up and setup the feedback/testimonial forum wink

No kidding.

UBB ROCKS.

Rick, my Alexa status went from 900,000 something to just above 500,000. My advertising income is pleasant enough, my USERS think UBB is the BOMB...I just can't say enough good things. I'd like you to upgrade my site now if you think the latest version warrants it. I have the scratch at the moment sir.

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
Is there a T-Shirt? UBB gear?

Joined: Apr 2007
Posts: 59
journeyman
journeyman
Joined: Apr 2007
Posts: 59
I don't have SSH access to this company's machines. I assume then I need to use a backup option somewhere in the product or use myPHP admin to export tables? I'll start another thread....

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
phpmyadmin has an 'export' option. you can then select to gzip the result.

if all goes well, you'll have something like 'yoursite.sql.gz' ready to d/l to your computer smile

Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
I think that with a db over about 50-100mb phpmyadmin will not provide a "complete dump" as it'll hit the php maximum execution time and kill the file...

you really need ssh access to use the items in the backup faq entry, but it's the best way to do a backup.

I believe you my be able to find some php scripts which create a dump in your webspace which isn't too out of the ordinary, assuming you can use system() or exec()... Heck, they may even use something differant wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
What about the backup routine from cron - can't it backup your DB as part of the site properly on *nix ?

Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Well, you could do what I did on one of my sites... I set cron to execute a backup.c file, chmodded 777, then set in there the commands i wanted to have run, which creates a folder, backs up the sql database, tars the directory, then ftps it elsewhere and then removes the archive... kind of advanced for a beginner though lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Originally Posted by PopWireless
Rick, where do I send the money dude? Flowers for the wife? Toy for the kid? Call the boss what?


Just send each Moderator & Admin cash - we will not complain wink

Seriously, glad you are all back up and running smile

Oh and don't forget to do that backup smile

Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Yeh, this little moderator L-O-V-E-S getting donations or payment... though development is generally the means hehe...

Hope you get a backup solution in place though


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
you never complain about all the thousands of dollars I send you....

...I assume you do get it all wink

Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Thousands of dollars? Psh, if I where getting thousands of dollars you'd have a private developer in yer pocket :x...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
1 members (1 invisible), 939 guests, and 146 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)