Gossamer Forum
Home : Products : Links 2.0 : Customization :

Help me! (No record locks available?)

Quote Reply
Help me! (No record locks available?)
I have used links 2.0 for a long time...But a serious problem suddenly occured!
I can't build anything and links are not operated properly.. I can't build, add, modify...all of work. Main menu is appeared, all links are not operated...
Here is an example of my error code.

Building Pages
Pages built on 19-Aug-1999 at 00:07:10
--------------------------------------------------------

Backing up database . . .
Backing up links, category and email database (File::Copy) ...
Done.

Building URL Index . . .

CGI ERROR
==========================================
Error Message : unable to get exclusive lock. Reason: No record locks available
Script Location : /user8/kor3/taedol/web-home/links/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
DOCUMENT_ROOT : /WWW/httpd_1.5.2-export/docs
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: ko
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : soback.kornet.net
HTTP_REFERER : http://soback.kornet.net/~taedol/links/cgi-bin/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
PATH : /opt/SUNWspro/bin:/usr/sbin:/usr/bin:/usr/ucb:/usr/ccs/bin:/sbin:/etc:/usr/openwin/bin:/usr/local:/usr/local/bin:/usr/local/lib:/opt/SUNWcon n/x25/bin:/usr/ucb:.
QUERY_STRING :
REMOTE_ADDR : 210.207.28.150
REMOTE_HOST : 210.207.28.150
REMOTE_USER : taedol
REQUEST_METHOD : GET
SCRIPT_NAME : /~taedol/links/cgi-bin/admin/nph-build.cgi
SERVER_ADMIN : root@soback.kornet.nm.kr
SERVER_NAME : soback.kornet21.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP
SERVER_SOFTWARE : NCSA/1.5.2
TZ : ROK


Also visitors should view below message when they click a link.

"Error: Can't find link id: 92"

Help me!
Quote Reply
Re: Help me! (No record locks available?) In reply to
Did you change your server operating system? Or did your ISP?

Looks like you may be on SunOS or Solaris.

I know Solaris 2.7 has a problem with flock, on my system sometimes I can get it to work, sometimes it refuses to run.
Quote Reply
Re: Help me! (No record locks available?) In reply to
ISP operating system is SunOS 5.6....
How can I fix the problem?
My website is seriously troubled with the problem...
Quote Reply
Re: Help me! (No record locks available?) In reply to
Ask your ISP about flock. I belive there were patches for that for 5.4-5.6. Some systems do ok. If that's not the problem, maybe you changed something in the scripts.

There are work-arounds for flock, but they are somewhat implementation specific, so your ISP is the best place to start. See what they do.

I don't have a consistent answer. I have links 2.0 working, but I have problems with a lot of mods. That's one of the reasons I moved to the SQL version -- avoiding flat-file file locking problems.
Quote Reply
Re: Help me! (No record locks available?) In reply to
My ISP says "No problem in cgi.."
I don't know how I cope with this problem.
Please tell me any solution about it...
Quote Reply
Re: Help me! (No record locks available?) In reply to
If your ISP says that flock works, then the problem must lie elsewhere.

Did the program stop working all of a sudden, or after you made a change, or moved to a different ISP? What was the order of the problem?

Quote Reply
Re: Help me! (No record locks available?) In reply to
The program stop working suddenly.
(of course I didn't change or move anything..)
I don't know the reason.
After the accident, I found the data of links.db and url.db was empty.
So I restitute links.db from backup directory, rewrite url.db manually. But my links is not still working.

Help me....!

Quote Reply
Re: Help me! (No record locks available?) In reply to
I solved this problem!
I changed $db_use_flock = 1 into $db_use_flock = 1 in links.cfg...
Then the program works normally.

By the way, I had used flock function for a long time. My ISP says nothing have changed.
I think they change flock works by mistake and don't know what's wrong. It's terrible thing...
Anyway I fix the problem. Thanks for your effors.

But I wonder what are the difference to use and not to use flock function?

Quote Reply
Re: Help me! (No record locks available?) In reply to
Sorry.. I modify upper article.
I changed $db_use_flock = 1 into $db_use_flock = 0 in links.cfg...

Quote Reply
Re: Help me! (No record locks available?) In reply to
your still not getting a lock on your files, its just disabled.
chmod