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

Home » FUDforum Development » Bug Reports » BROKEN lock/unlock files in 2.6.6
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon4.gif  BROKEN lock/unlock files in 2.6.6 [message #19911] Thu, 16 September 2004 11:46 Go to next message
StarLight{PL} is currently offline  StarLight{PL}   Poland
Messages: 22
Registered: March 2003
Karma: 0
Junior Member
I did a fresh install of 2.6.6 and when I try to use the either lock or unlock files mechanism it completely screws up forum permissions (ie. forum's no longer accessible because of permission denied). Moreover, strange thing is happening - the mechanism tries to go "out" of it's directory:

ERROR: couldn't chmod "/home/web/www/forum.pldg/../README"
ERROR: couldn't chmod "/home/web/www/forum.pldg/../pldg_forum.tar"
ERROR: couldn't chmod "/home/web/www/.includes/fudforum/../header_d.php"

and so on...


The behavior's completely erratic - sometimes when locking / unlocking files it will take away all permissions, sometimes only other & group permissions, but the effect is the same - screwed forum, no longer accessible.

Any ideas what may be the problem? I repeat, it was a clean install of fud 2.6.6, no upgrade and not tampered with.

greetz/StarLight



[Updated on: Thu, 16 September 2004 11:47]

Report message to a moderator

Re: BROKEN lock/unlock files in 2.6.6 [message #19932 is a reply to message #19911] Fri, 17 September 2004 01:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS.

FUDforum Core Developer
Bug from the past [message #22356 is a reply to message #19911] Sun, 30 January 2005 15:47 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
I got the same issue (I locked the files and now the forum is forbidden). I am still running 2.5.2, but I don't want to upgrade mostly because I'd lose all my special formatting, plus risks of more screw-ups.

I tried to chmod all files to 666 and all folders to 777. Didn't work. Should I do something else, should it have worked ?

Thanks a lot.
Re: Bug from the past [message #22373 is a reply to message #22356] Sun, 30 January 2005 18:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I suspect something has changed the owner/group of the files, so the user (web server user) the forum runs as no longer has permission to change the permissions of those files. So you need to change permissions via FTP/SSH client.

FUDforum Core Developer
Re: Bug from the past [message #22374 is a reply to message #22373] Sun, 30 January 2005 23:44 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
Thanks for you reply.

I did change the permission through FTP.
It still gave a 503 error, until I realized I changed the permission of everything except the root folder (/fudforum) itself.
Once I did that, however, I got error 500 Internal Server, and the permission for the folder was auto-reset to 700.

last error I got :
Quote:

[Sun Jan 30 8:19:26 GMT 2005] W0Vycm9yXSBFbnJlZ2lzdHJlbWVudCBk6XNhY3Rpduk8YnIgLz5bTWVzc2FnZSBTZW50IHRvIFV zZXJdIEwmIzM5O2FkbWluaXN0cmF0ZXVyIGEgZOlzYWN0aXbpIGwmIzM5O2VucmVnaXN0cmVtZW 50LCB2ZXVpbGxleiBy6WVzc2F5ZXIgcGx1cyB0YXJkPGJyIC8+W1VzZXIgSVBdIDIxMi4xOTUuM TA5LjE1MDxiciAvPltSZXF1ZXN0ZWQgVVJMXSBodHRwOi8vd3d3LnJvbGVuZXQub3JnL2Z1ZGZv cnVtL2luZGV4LnBocD90PXJlZ2lzdGVyJjxiciAvPltSZWZlcnJpbmcgUGFnZV0gaHR0cDovL3d 3dy5yb2xlbmV0Lm9yZy9mdWRmb3J1bS9pbmRleC5waHA/dD1sb2dpbjxiciAvPg==

[Updated on: Mon, 31 January 2005 00:37]

Report message to a moderator

Re: Bug from the past [message #22375 is a reply to message #22374] Sun, 30 January 2005 23:59 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The error that is being generated here is: "[Error] Enregistrement désactivé".

I am guessing that the registration is disabled?


FUDforum Core Developer
Re: Bug from the past [message #22376 is a reply to message #22375] Mon, 31 January 2005 00:40 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
That indeed means "registration disabled".

New user registration is indeed disabled on the forum.

But I guess this error message, then, is not very informative here.

Do you know why the root folder permissions get changed when I try to access the forum and if that may be linked to the fact that it gives a 500 error ?
Re: Bug from the past [message #22377 is a reply to message #22376] Mon, 31 January 2005 01:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It could be that your webhost is running a utility that periodically goes through your web dir and ensures that any files found there are owned by you user/group id.

FUDforum Core Developer
Re: BROKEN lock/unlock files in 2.6.6 [message #22382 is a reply to message #19911] Mon, 31 January 2005 14:44 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
Thanks.
(Actually, the permissions I was refering to were not the owner, but the user permissions. Besides, they were reset fast, within a second or so.)

Anyway, I have sorted out the issue (well, stumbled upon a repair...). For future information if there are any 2.5.2 users still here, it seems the GLOBALS.php in the root folder (not the /include) was mangled badly by the forum files lock operation. I replaced it with the other copy and voila !
Re: BROKEN lock/unlock files in 2.6.6 [message #22384 is a reply to message #22382] Mon, 31 January 2005 17:15 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The GLOBALS.php in the forum root and adm/ folders should actually be a symlink to the one inside the include/ directory.

FUDforum Core Developer
Re: BROKEN lock/unlock files in 2.6.6 [message #22427 is a reply to message #22384] Thu, 03 February 2005 02:16 Go to previous messageGo to next message
tecmes is currently offline  tecmes   Canada
Messages: 34
Registered: October 2002
Karma: 0
Member
Oh right NOW I remember that symlink thing from a previous issue long ago.

In fact I think the issue was not something with the GLOBALS, but the fact the permission for were not set incorrectly for some of the php files, not allowing execution. Makes sense ?

At least that's what cured the 500 error when trying to access the various admin pages.
Re: BROKEN lock/unlock files in 2.6.6 [message #22439 is a reply to message #22427] Thu, 03 February 2005 14:56 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Forum's php files need to be readable and modifyable by the server, but they do not require executable permission.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bug in search.php (PHP problem, solution inside)
Next Topic: Pager URLs don't work after theme optimization
Goto Forum:
  

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

Current Time: Sat Nov 30 12:46:40 GMT 2024

Total time taken to generate the page: 0.02487 seconds