Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2005, 12:36 PM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default can someone help me out with this mySQL error?

Code:
Database error in vBulletin 3.0.7:

Invalid SQL: 
			SELECT IF(votenum >= 1, votenum, 0) AS votenum, IF(votenum >= 1 AND votenum != 0, votetotal / votenum, 0) AS voteavg,
			thread.threadid, thread.title, replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, IF(views<=replycount, replycount+1, views) AS views, forumid, post.postid, pagetext, allowsmilie
			, showsignature, usertextfield.signature
  		,thread.iconid AS threadiconid, iconpath AS threadiconpath 
  		, avatarpath, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline AS avatardateline, avatarrevision 
  		 
  		, attachment.filename, attachment.filesize, attachment.visible, attachmentid, counter, thumbnail, LENGTH(thumbnail) AS thumbnailsize
			FROM anarchystar_thread AS thread
			LEFT JOIN anarchystar_post AS post ON (post.postid = thread.firstpostid) 
  		LEFT JOIN anarchystar_icon USING (iconid) 
  		LEFT JOIN anarchystar_attachment AS attachment ON (post.postid = attachment.postid) 
			LEFT JOIN anarchystar_user AS user ON (user.userid = post.userid)
			
			LEFT JOIN anarchystar_usertextfield AS usertextfield ON (post.userid = usertextfield.userid)
  		
				LEFT JOIN anarchystar_avatar as avatar ON (avatar.avatarid = user.avatarid)
				LEFT JOIN anarchystar_customavatar as customavatar ON (customavatar.userid = user.userid)
			 
  		 
			LEFT JOIN anarchystar_deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
			WHERE forumid IN(28) AND thread.visible = 1 AND thread.open != 10 AND deletionlog.primaryid IS NULL
			GROUP BY post.postid
			ORDER BY  postdateline DESC
			LIMIT 7
mysql error: Can't create/write to file '/tmp/#sql5cc7_413_1.MYI' (Errcode: 13)

mysql error number: 1
Reply With Quote
  #2  
Old 05-15-2005, 12:47 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks like a temp table problem - have you run out of disk space ?
Reply With Quote
  #3  
Old 05-15-2005, 12:52 PM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I should'nt have, I have about 60gigs of total server space ... could it be that one folder it is referenceing? '/tmp/#sql5cc7_413_1.MYI' ?

I also get this error when I try to modify settings in the admincp

Code:
Database error in vBulletin 3.0.7:

Invalid SQL: 
		SELECT setting.*, settinggroup.grouptitle
		FROM anarchystar_settinggroup AS settinggroup
		LEFT JOIN anarchystar_setting AS setting USING(grouptitle)
		WHERE settinggroup.displayorder <> 0
		ORDER BY settinggroup.displayorder, setting.displayorder
	
mysql error: Can't create/write to file '/tmp/#sql5cc7_52a_0.MYI' (Errcode: 13)

mysql error number: 1

Date: Sunday 15th of May 2005 09:49:30 AM
Script: http://forums.anarchystar.com/anarchycp/options.php?null=0
Referer: http://forums.anarchystar.com/anarchycp/index.php?do=nav
Reply With Quote
  #4  
Old 05-15-2005, 01:29 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error code 13: Permission denied

You are getting a permission denied when MySQL is trying to write to a temp table used to sort the query.
Reply With Quote
  #5  
Old 05-15-2005, 01:32 PM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you know why I would be getting this error, and is it fixable?

Or am I going to have to restore my entire database?
Reply With Quote
  #6  
Old 05-15-2005, 01:41 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No you should check the permissions on your /tmp directory and check it still have enough free space.
Reply With Quote
  #7  
Old 05-15-2005, 02:02 PM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disk space should'nt be an issue, I have plenty. When I checked earlier the permissions were set at 600 ... I don't know if that is the correct setting or not.

Of course all was working a.o.k 10 hours ago, and I have no idea what could of changed between the time I went to bed and now.
Reply With Quote
  #8  
Old 05-15-2005, 02:15 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

600 don't sound correct for /tmp to me. Think it should be 666 or 777 even.
Reply With Quote
  #9  
Old 05-15-2005, 03:23 PM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I emailed my webhost, they fixed whatever the problem was. Thanks for all your responses!
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 07:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04626 seconds
  • Memory Usage 2,236KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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