When logging in or out I often (not always) get this error being logged by the watchdog module:
index 137 Query INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (0, 'php', 'Can\'t cre
ate/write to file \'/tmp/#sql_6768_0.MYD\' (Errcode: 9)
query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid INNER JOIN users_roles ur ON ur.rid = r.rid WHERE ur.uid = 0 in /vol3/
www/htdocs/main/includes/database.mysql.inc on line 66.', 2, '', '/main/?q=forum/3&sort=asc&order=Created', '66.249.65.140', 1127535663)
137 Query UPDATE sessions SET uid = 0, hostname = '66.249.65.140', session = 'messages|a:0:{}', timestamp = 1127535663 WHERE sid
= '81910d13efc55a2406ba63be494cd10d'
137 Quit
I cannot find any corresponding MySQL error in my logs. The above is simply watchdog logging an error it is finding somewhere and recording it into the database.
Although the file exists and the permissions look fine:
# ls -alh /tmp
total 8
-rw-rw---- 1 _mysql wheel 0B Sep 24 00:23 #sql_6768_0.MYD
This problem is driving me crazy. I think it is causing another problem. Sometimes my frontpage (module) shows "Access denied" even though my Access Control is open for all visitors. Drupal seems to be losing track of who is logged in and so it has trouble assigning access control.