Gossamer Forum
Home : Products : Links 2.0 : Discussions :

ERROR: unable to get exclusive lock

Quote Reply
ERROR: unable to get exclusive lock
The links manager was working without problems on my (virtual) server untill a few days ago. Suddenly when building the pages it gives the following error:

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .

CGI ERROR
==========================================
Error Message : unable to get exclusive lock. Reason: Operation not supported
Script Location : /usr/local/WWW/www.servername.com/cgi-bin/prensa/admin/nph-build.cgi
Perl Version : 5.00503



The whole database seems to be messed up ... when clicking a link it gives the following error:

Error: Can't find link id: 143

I did not change anything on my server, my ISP might have changed something???

Please ... help me out :-))
Quote Reply
Re: ERROR: unable to get exclusive lock In reply to
turn file lock off then..

it should be in links.cfg

jerry
Quote Reply
Re: ERROR: unable to get exclusive lock In reply to
Jerry ... i have tried that! If i put off the file lock (in links.cfg) it still gives the same error(s).

I just found out the url.db was 0 bytes. After rebuilding it (manually) BUILDING stuill gives the SAME error. When clicking a link from the database it now gives the following error:

Error: Can't get file lock. Reason: Operation not supported

Joost
Quote Reply
Re: ERROR: unable to get exclusive lock In reply to
$db_use_flock = 0;

that's all i have to say..

jerry
Quote Reply
Re: ERROR: unable to get exclusive lock In reply to
Jerry ... at the end, you were right!!!

$db_use_flock = 0; in the links.cfg file solved the problem.

Won´t i have problems in future ... the comments in the CGI are a bit freightening ;-)) What kind of problems can i expect not
using flock???

The comments in the cgi say:
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!

Jerry ... thanks again, the important thing the database workd again :-)))
Quote Reply
Re: ERROR: unable to get exclusive lock In reply to
you can experience things like one Link in DB.. Smile

that means that 2 people were writing at the same time..

you need to get your host to support flock.. or change hosts..

jerry
Quote Reply
Re: ERROR: unable to get exclusive lock In reply to
hi,

uhh! i have the same error. i didnt changed anything in the last days. now i turned flock off in in links.cfg and it works, but why? and why do i realy need flock?

greetings kuuger