FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » compact failed, now message bodies out of sync with topics
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
compact failed, now message bodies out of sync with topics [message #39981] Mon, 31 December 2007 21:00 Go to next message
batman61 is currently offline  batman61   United States
Messages: 6
Registered: April 2005
Karma: 0
Junior Member
I have a bit of a mess with my FUDforum.

I was running the "Compact Messages" option, which appears to have crashed before completing.

After this ran the "Forum Consistency" option a couple of times.

I now get the following message:

Warning: fopen(<root_path>/messages/msg_-40000): failed to open stream: No such file or directory in <root_path>/theme/default/msg.php on line 557

Notice the name of the message file has a "-" minus sign. Also, in the fud26_msg table, the file_id also has the minus sign.

I tried tricking it by making soft links to the message file names so that msg_-40000 points the real message file msg_40000. That gets rid of the error message, but the message bodies seem to be all out of sync with the wrong message body appearing under a given topic.

Can anyone help with this one?
Re: compact failed, now message bodies out of sync with topics [message #39987 is a reply to message #39981] Mon, 31 December 2007 21:26 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Do you have any other files inside the messages folder?

FUDforum Core Developer
Re: compact failed, now message bodies out of sync with topics [message #39988 is a reply to message #39981] Mon, 31 December 2007 21:40 Go to previous messageGo to next message
batman61 is currently offline  batman61   United States
Messages: 6
Registered: April 2005
Karma: 0
Junior Member
Currently, this is the contents of the message folder:

msg_10000
msg_30000
msg_40000
msg_50000
private
Re: compact failed, now message bodies out of sync with topics [message #39995 is a reply to message #39988] Tue, 01 January 2008 18:14 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
can you do ls -lia inside the folder? Also check the forum's tmp folder

FUDforum Core Developer

[Updated on: Tue, 01 January 2008 18:14]

Report message to a moderator

Re: compact failed, now message bodies out of sync with topics [message #40002 is a reply to message #39981] Tue, 01 January 2008 23:24 Go to previous messageGo to next message
batman61 is currently offline  batman61   United States
Messages: 6
Registered: April 2005
Karma: 0
Junior Member
Hello Ilia,

I had to give up and delete all of the messages and clear out all of the DB tables related to the messages so I could get the Forum back on-line.

Here is what the message directory looked like prior to being renamed (I kept a backup):
total 41068
508518 drwxrwxr-x   2 bv126922 bv126922     4096 Jan  1 07:40 .
507908 drwxrwxrwx  14 bv126922 bv126922     4096 Jan  1 07:13 ..
510454 -rw-rw-r--   1 bv126922 bv126922       14 Jan 13  2004 .htaccess
510354 -rw-rw-rw-   1 bv126922 bv126922 41489294 Dec 31 08:55 msg_-10000
515212 -rw-rw-rw-   1 bv126922 bv126922   210011 Dec 19 06:44 msg_30000
515210 -rw-rw-rw-   1 bv126922 bv126922   275081 Dec 25 14:49 msg_40000
515211 -rw-rw-rw-   1 bv126922 bv126922     2849 Dec 19 06:46 msg_50000



In the msg table, it looked like the foff field values were all wrong for the messages in msg_10000.

The tmp directory only has a .htaccess file.

[Updated on: Tue, 01 January 2008 23:25]

Report message to a moderator

Re: compact failed, now message bodies out of sync with topics [message #40007 is a reply to message #40002] Wed, 02 January 2008 18:50 Go to previous message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The forum was writing a new file msg_-10000 and when done would use rename to move it to msg_10000. The offsets for the file would be correct there.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: deleting files in errors directory (.mlist and .backup) ?
Next Topic: problem when display in chinese version
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 09 03:18:03 GMT 2024

Total time taken to generate the page: 0.03430 seconds