Error running compactor for private messages in 2.7.1 [message #27250] |
Thu, 01 September 2005 01:51 |
boosty
Messages: 16 Registered: April 2005 Location: Germany
Karma: 0
|
Junior Member |
|
|
I get the following error when using "Compact messages" in FUDforum 2.7.1 but I am sure that I have enough webspace left.
All fine until...
Quote: | ETA: 0,111111111111 seconds
100% done
ETA: 0 seconds
100% Done
Compacting private messages...
Warning: fopen(/path/to/forum/messages/private): failed to open stream: Datei oder Verzeichnis nicht gefunden in /path/to/forum/include/theme/default/private.inc on line 197
Warning: fseek(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 198
Warning: fread(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 199
Warning: fclose(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 200
FATAL ERROR: system has ran out of disk space
|
Any ideas/suggestions?
Thanks in advance.
Sebastian
|
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27265 is a reply to message #27264] |
Thu, 01 September 2005 19:06 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I'd recommend doing it from backup, it is possible to recover them without a backup, but the process would be far more complex.
One thing I should definately mention is that this problem was caused by permissions. The compact script did not have permissions to open the "private" file inside the messages directory and failed in a rather spectacular manner. Make sure that this file is writable by the web server.
FUDforum Core Developer
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27395 is a reply to message #27250] |
Tue, 06 September 2005 21:49 |
bneu
Messages: 6 Registered: September 2005
Karma: 0
|
Junior Member |
|
|
limes:/var/www/FUDforum2/data/messages# ls -la
insgesamt 20
drwxrwxrwx 2 www-data www-data 4096 2005-09-06 19:01 .
drwxrwxrwx 13 www-data www-data 4096 2004-06-02 11:03 ..
-rw-rw-rw- 1 www-data www-data 14 2004-06-02 11:03 .htaccess
-rw-r--r-- 1 www-data www-data 4 2005-09-06 19:01 msg_150000
-rw-r--r-- 1 www-data www-data 92 2005-09-06 16:51 msg_80000
-rw-r--r-- 1 www-data www-data 0 2005-09-06 16:03 private_tmp
the files msg_150000 and msg_80000 contain each one posting which took place after the update
[Updated on: Tue, 06 September 2005 21:51] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27435 is a reply to message #27250] |
Wed, 07 September 2005 22:40 |
boosty
Messages: 16 Registered: April 2005 Location: Germany
Karma: 0
|
Junior Member |
|
|
I get the same error as described in my first post I opened this thread with (message #27250).
While the private messages created after the last compactor run work, I was not able to recreate the old ones. I end up with a missing private file and an empty private_tmp file on each attempt to run the compactor.
Sebastian
|
|
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27468 is a reply to message #27250] |
Fri, 09 September 2005 07:07 |
boosty
Messages: 16 Registered: April 2005 Location: Germany
Karma: 0
|
Junior Member |
|
|
I have updated my forum to FUDforum 2.7.2.
Unfortunately the compactor is still not working here, with or without the patch applied.
I start with a messages directory containing the following files (all writeable by the webserver):
msg_100000
msg_110000
msg_120000
msg_130000
msg_140000
msg_20000
msg_30000
msg_40000
msg_50000
msg_60000
msg_70000
msg_80000
msg_90000
private
private_tmp
Running the compactor without the patch:
Quote: | Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /path/to/forum/include/theme/default/db.inc on line 128
100% Done
Compacting private messages...
Warning: fopen(/path/to/forum/messages/private): failed to open stream: Datei oder Verzeichnis nicht gefunden in /path/to/forum/include/theme/default/private.inc on line 197
Warning: fseek(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 198
Warning: fread(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 199
Warning: fclose(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 200
FATAL ERROR: system has ran out of disk space
|
After that, the only file left is private_tmp!
Running the compactor on the same messages directory with the patch applied:
Quote: | Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /path/to/forum/include/theme/default/db.inc on line 128
100% Done
Compacting private messages...
10% done
ETA: 0 seconds
20% done
ETA: 0 seconds
30% done
ETA: 0 seconds
40% done
ETA: 0 seconds
50% done
ETA: 0 seconds
100% Done
Done in 0,00 minutes
|
After that, the only file left is private!
Could it be that all this annoying errors come from any previous updates? Has the message storage format or the like changed in the past?
Sebastian
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27490 is a reply to message #27468] |
Fri, 09 September 2005 14:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
With the latest patch the compact code works just fine on my test system.
You can try adding debug code before every unlink() function to see if you can trackdown for the "private" file removal.
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27613 is a reply to message #27560] |
Thu, 15 September 2005 13:05 |
boosty
Messages: 16 Registered: April 2005 Location: Germany
Karma: 0
|
Junior Member |
|
|
Here it is. I run it on 2.7.2.
With patch:
Compacting normal messages...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /path/to/forum/include/theme/default/db.inc on line 128
/path/to/forum/messages/msg_100000
/path/to/forum/messages/msg_110000
/path/to/forum/messages/msg_120000
/path/to/forum/messages/msg_130000
/path/to/forum/messages/msg_140000
/path/to/forum/messages/msg_20000
/path/to/forum/messages/msg_30000
/path/to/forum/messages/msg_40000
/path/to/forum/messages/msg_50000
/path/to/forum/messages/msg_60000
/path/to/forum/messages/msg_70000
/path/to/forum/messages/msg_80000
/path/to/forum/messages/msg_90000
100% Done
Compacting private messages...
10% done
ETA: 0 seconds
20% done
ETA: 0 seconds
30% done
ETA: 0 seconds
40% done
ETA: 0 seconds
50% done
ETA: 0 seconds
100% Done
Done in 0,00 minutes
Without patch:
Compacting normal messages...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /path/to/forum/include/theme/default/db.inc on line 128
/path/to/forum/messages/msg_100000
/path/to/forum/messages/msg_110000
/path/to/forum/messages/msg_120000
/path/to/forum/messages/msg_130000
/path/to/forum/messages/msg_140000
/path/to/forum/messages/msg_20000
/path/to/forum/messages/msg_30000
/path/to/forum/messages/msg_40000
/path/to/forum/messages/msg_50000
/path/to/forum/messages/msg_60000
/path/to/forum/messages/msg_70000
/path/to/forum/messages/msg_80000
/path/to/forum/messages/msg_90000
/path/to/forum/messages/private
/path/to/forum/messages/private_tmp
100% Done
Compacting private messages...
Warning: fopen(/path/to/forum/messages/private): failed to open stream: Datei oder Verzeichnis nicht gefunden in /path/to/forum/include/theme/default/private.inc on line 197
Warning: fseek(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 198
Warning: fread(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 199
Warning: fclose(): supplied argument is not a valid stream resource in /path/to/forum/include/theme/default/private.inc on line 200
FATAL ERROR: system has ran out of disk space
Sebastian
|
|
|
|
|
|
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27695 is a reply to message #27686] |
Tue, 20 September 2005 14:35 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Can't really say with just this error. You can put var_dump(debug_backtrace()) into the fetch code which generates the warning and maybe you'll see the error. I don't see anything of this sort of my system here...
FUDforum Core Developer
|
|
|
|
|
Re: Error running compactor for private messages in 2.7.1 [message #27974 is a reply to message #27779] |
Mon, 03 October 2005 22:21 |
Juanisan
Messages: 24 Registered: July 2002 Location: Conshohocken, PA
Karma: 0
|
Junior Member |
|
|
I am still getting this behaviour exactly as stated by the others in 2.7.3RC1
right down to the window in firefox snapping back up making it hard to see the error.
Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
100% Done
Compacting private messages...
FATAL ERROR: system has ran out of disk space
Powered by: FUDforum 2.7.3RC1.
Never ask a geek why, just nod your head and slowly back away.
[Updated on: Mon, 03 October 2005 22:23] Report message to a moderator
|
|
|