Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2011, 02:01 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database error Help

Hi , Since this morning iam receiving Database error. I run my Db from the Cpanel but still doesnt work or fixed.

this is the message received in the cpanel

Quote:
canarybr_canary.fnewfiledata
error : 12 when fixing table
error : Not enough memory for blob at 342578404 (need 10133987)
status : Operation failed
[QUOTEcanarybr_canary.fnewfiledata
warning : Table is marked as crashed and last repair failed
warning : Size of indexfile is: 879616 Should be: 296960
error : Not enough memory (10133987) for blob at 342578404
][/QUOTE]


Also vbulletin gives you this message as well

Quote:
Database error in vBulletin 4.1.1 Beta 1:

Invalid SQL:
(
SELECT
COUNT(*) AS count, SUM(fd.filesize) AS sum
FROM fnewattachment AS a
INNER JOIN fnewfiledata AS fd ON (a.filedataid = fd.filedataid)
LEFT JOIN fnewattachmenttype AS at ON (at.extension = fd.extension)
INNER JOIN fnewalbum AS album ON (album.albumid = a.contentid)
LEFT JOIN fnewprofileblockprivacy AS pbp ON (pbp.userid = a.userid AND pbp.blockid = 'albums')
LEFT JOIN fnewuser AS user ON (a.userid = user.userid)
WHERE
a.contenttypeid = 8 AND
(
(
a.contentid = 0
AND
a.userid = 1
)
OR
(
a.contentid <> 0
)
)
AND a.userid = 1
) UNION ALL (
SELECT
COUNT(*) AS count, SUM(fd.filesize) AS sum
FROM fnewattachment AS a
INNER JOIN fnewfiledata AS fd ON (a.filedataid = fd.filedataid)
LEFT JOIN fnewattachmenttype AS at ON (at.extension = fd.extension)
LEFT JOIN fnewpost AS post ON (post.postid = a.contentid)
LEFT JOIN fnewthread AS thread ON (post.threadid = thread.threadid)
LEFT JOIN fnewuser AS user ON (a.userid = user.userid)
WHERE
a.contenttypeid = 1 AND
(
(
a.contentid = 0
AND
a.userid = 1
)
OR
(
thread.forumid IN (0, 6, 50, 116, 5, 28, 21, 83, 69, 70, 36, 111, 117, 4, 105, 71, 91, 92, 93, 94, 19, 14, 15, 13, 109, 106, 108, 52, 53, 59, 54, 60, 55, 61, 56, 62, 58, 38, 110, 73, 98, 40, 75, 42, 49, 12, 104, 99, 100, 101, 102, 103, 107, 120, 121, 122, 123, 124, 125, 127, 128, 126, 39, 16, 17, 84, 79, 85, 86, 87, 23, 88, 89, 90, 130, 29, 112, 113, 114, 115, 129, 32, 30, 81, 82, 118, 119) AND (
thread.forumid IN (0, 6, 50, 116, 5, 28, 21, 83, 69, 70, 36, 111, 117, 4, 105, 71, 91, 92, 93, 94, 19, 14, 15, 13, 109, 106, 108, 52, 53, 59, 54, 60, 55, 61, 56, 62, 58, 38, 110, 73, 98, 40, 75, 42, 49, 12, 104, 99, 100, 101, 102, 103, 107, 120, 121, 122, 123, 124, 125, 127, 128, 126, 39, 16, 17, 84, 79, 85, 86, 87, 23, 88, 89, 90, 130, 29, 112, 113, 114, 115, 129, 32, 30, 81, 82, 118, 119)
OR
thread.postuserid = 1
) AND (
a.state <> 'moderation'
OR
a.userid = 1
OR
thread.forumid IN (0, 6, 50, 116, 5, 28, 21, 83, 69, 70, 36, 111, 117, 4, 105, 71, 91, 92, 93, 94, 19, 14, 15, 13, 109, 106, 108, 52, 53, 59, 54, 60, 55, 61, 56, 62, 58, 38, 110, 73, 98, 40, 75, 42, 49, 12, 104, 99, 100, 101, 102, 103, 107, 120, 121, 122, 123, 124, 125, 127, 128, 126, 39, 16, 17, 84, 79, 85, 86, 87, 23, 88, 89, 90, 130, 29, 112, 113, 114, 115, 129, 32, 30, 81, 82, 118, 119)
) AND (
(
post.visible = 1
AND
thread.visible = 1
)
OR
(
thread.forumid IN (0, 6, 50, 116, 5, 28, 21, 83, 69, 70, 36, 111, 117, 4, 105, 71, 91, 92, 93, 94, 19, 14, 15, 13, 109, 106, 108, 52, 53, 59, 54, 60, 55, 61, 56, 62, 58, 38, 110, 73, 98, 40, 75, 42, 49, 12, 104, 99, 100, 101, 102, 103, 107, 120, 121, 122, 123, 124, 125, 127, 128, 126, 39, 16, 17, 84, 79, 85, 86, 87, 23, 88, 89, 90, 130, 29, 112, 113, 114, 115, 129, 32, 30, 81, 82, 118, 119)
)
OR
(
thread.forumid IN (0, 6, 50, 116, 5, 28, 21, 83, 69, 70, 36, 111, 117, 4, 105, 71, 91, 92, 93, 94, 19, 14, 15, 13, 109, 106, 108, 52, 53, 59, 54, 60, 55, 61, 56, 62, 58, 38, 110, 73, 98, 40, 75, 42, 49, 12, 104, 99, 100, 101, 102, 103, 107, 120, 121, 122, 123, 124, 125, 127, 128, 126, 39, 16, 17, 84, 79, 85, 86, 87, 23, 88, 89, 90, 130, 29, 112, 113, 114, 115, 129, 32, 30, 81, 82, 118, 119)
AND
post.visible = 2
AND
thread.visible = 2
)
)
)
)
AND a.userid = 1
) UNION ALL (
SELECT
COUNT(*) AS count, SUM(fd.filesize) AS sum
FROM fnewattachment AS a
INNER JOIN fnewfiledata AS fd ON (a.filedataid = fd.filedataid)
LEFT JOIN fnewattachmenttype AS at ON (at.extension = fd.extension)
INNER JOIN fnewsocialgroupmember AS sgm ON (sgm.userid = a.userid AND sgm.groupid = a.contentid AND sgm.type = 'member')
INNER JOIN fnewsocialgroup AS sg ON (sg.groupid = a.contentid)
LEFT JOIN fnewuser AS user ON (a.userid = user.userid)
WHERE
a.contenttypeid = 7 AND
(
(
a.contentid = 0
AND
a.userid = 1
)
OR
(
sg.options & 8 AND (
a.state <> 'moderation'
OR
a.userid = 1
)
)
)
AND a.userid = 1
) UNION ALL (
SELECT
COUNT(*) AS count, SUM(fd.filesize) AS sum
FROM fnewattachment AS a
INNER JOIN fnewfiledata AS fd ON (a.filedataid = fd.filedataid)
LEFT JOIN fnewattachmenttype AS at ON (at.extension = fd.extension)
LEFT JOIN fnewblog AS blog ON (a.contentid = blog.blogid)
LEFT JOIN fnewblog_user AS bu ON (bu.bloguserid = blog.userid)
LEFT JOIN fnewuser AS user ON (user.userid = blog.userid)
LEFT JOIN fnewblog_groupmembership AS gm ON (blog.userid = gm.bloguserid AND gm.userid = 1)
WHERE
a.contenttypeid = 15 AND
(
(
a.contentid = 0
AND
a.userid = 1
)
OR
(
a.contentid <> 0 AND
(
(
blog.state <> 'draft'
AND
blog.pending = 0
)
OR
blog.userid IN (1)
)

)
)
AND a.userid = 1
) UNION ALL (
SELECT
COUNT(*) AS count, SUM(fd.filesize) AS sum
FROM fnewattachment AS a
INNER JOIN fnewfiledata AS fd ON (a.filedataid = fd.filedataid)
LEFT JOIN fnewattachmenttype AS at ON (at.extension = fd.extension)
LEFT JOIN fnewcms_node AS node ON (a.contentid = node.nodeid)
LEFT JOIN fnewuser AS user ON (user.userid = node.userid)
WHERE
a.contenttypeid = 18 AND
(
(
a.contentid = 0
AND
a.userid = 1
)
OR
(
a.contentid <> 0
)
)
AND a.userid = 1
);

MySQL Error : Table './canarybr_canary/fnewfiledata' is marked as crashed and last (automatic?) repair failed
Error Number : 144
Request Date : Thursday, October 13th 2011 @ 09:58:17 PM
Error Date : Thursday, October 13th 2011 @ 09:58:17 PM
Script : http://www.canarybreeder.net/up/forum/private.php
Referrer : http://www.canarybreeder.net/up/forum/forum.php
IP Address : 62.152.16.169
Username : admin
Classname : vB_Database
MySQL Version : 5.1.56


Please i need some help

Thanks
Reply With Quote
  #2  
Old 10-14-2011, 12:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I should start by saying I'm not a database admin or anything, and if you have access to someone who is through your host or something like that, you should contact them to help. That said, the error says that a table is crashed and the repair failed, so maybe you could close your forum and then try again to repair that table. If that fails I suppose you may need to restore a backup.

In searching the forum for a mention of this table, I found that you had problems before with attachments. Have you considered changing the option so that attachments are saved as files (as opposed to in the database)?
Reply With Quote
  #3  
Old 10-14-2011, 12:45 PM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Thanks so much for you reply,I have contacted this morning with my hosting provider who did help me to sort out the problem and fix it,

It seems that a member was trying to upoload something really big and his caused the problem. File was deleted an the problem was sorted. The i have changed the permisons for any kind of attachement so that i can avoid same kind of problem.

Please explain me what do you mean about the attachements saved as files , who they are saved now and was is the difference.

Thanking you in advance for your time.
Reply With Quote
  #4  
Old 10-14-2011, 06:27 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, to be honest I thought there was an option to move the attachment file data to the file system, but in version 4.1.5 it seems to be marked "don't touch this", so I don't know if I'm missing it or what (maybe someone else can help).
Reply With Quote
  #5  
Old 10-14-2011, 07:12 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In 417 the Attachment Manager dialog appears normal to me.
Quote:
Storage Type: Attachments Attachments are currently being stored in the filesystem at /home/shannond/forum_images Action:
Move Items from File System into Database
Move Items to a Different Directory
I agree that only for the smallest of forums would you ever want to store images in your database. Really Bad Idea.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03649 seconds
  • Memory Usage 2,208KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete