Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Build all not working

Quote Reply
Build all not working
It worked at first, now nothing happens. Why
Quote Reply
Re: Build all not working In reply to
In order for anyone to answer that question, you are going to need to provide a lot more information than what you did. We are not psychics here.
Quote Reply
Re: Build all not working In reply to
Like:

1. What did you change between the time it was working and it stopped working if anything?

2. Is this from the web or from telnet?

3. If from the web, did you try it from telnet to see if you get an error message?

4. Does it say Document Done in the browser status line, or does the browser indicate that it is still processing?

Anything and everything you can think of that relates to the problem. Otherwise, we would just be guessing.
Quote Reply
Re: Build all not working In reply to
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /data1/hypermart.net/finn/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404

This is the message I get when I try to build all.
I set Backup dir & files permissions at 777 but still can't write.
Where's the mistake?
Thanxx Smile
Quote Reply
Re: Build all not working In reply to
Mark444,

Check the permissions on links.db and make sure it is 666. Make sure the backup directory is under admin, not under data.

I hope this helps.
Quote Reply
Re: Build all not working In reply to
Dear Bobsie,

I am not getting any error messages. Build worked at first but now it just does nothing.

What other info do you need?



Quote Reply
Re: Build all not working In reply to
Thanks Bobsie but didn't work Frown
I had to change data folder name to "datax" cause of the hypermart server policies..I modified links.cfg with the right paths ...maybe any other cgi file still searches for DATA folder?

The error is still:
CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /data1/hypermart.net/fin/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404


Maybe is nph-build.cgi 's fault?
Thanks for being always so gentle and helpful Smile

Quote Reply
Re: Build all not working In reply to
All of the following need to be changed in links.cfg:

Quote:
$db_links_name = "$db_script_path/data/links.db"; # PATH to links database.
$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.

In nph-build.cgi, you need to change the following lines:

sub build_backup:

Quote:
&File::Copy::copy ("$db_script_path/data/links.db", "$db_script_path/backup/$date.links.db") or &cgierr ("Unable to copy links backup. Reason: $!");
&File::Copy::copy ("$db_script_path/data/categories.db", "$db_script_path/backup/$date.category.db") or &cgierr ("Unable to copy category backup. Reason: $!");
&File::Copy::copy ("$db_script_path/data/email.db", "$db_script_path/backup/$date.email.db") or &cgierr ("Unable to copy email backup. Reason: $!");
open (TMP, "$db_script_path/data/$_.db") or &cgierr ("Unable to open $db_script_path/data/$_.db. Reason: $!");

I hope this helps.

[This message has been edited by Bobsie (edited April 20, 1999).]
Quote Reply
Re: Build all not working In reply to
B I N G O Bobsie!!!! Smile Smile Smile
I was searching through several source files b4 reading ur answer but...the problem was this.
Thanxxxx ...you're a genius Smile
Quote Reply
Re: Build all not working In reply to
Thanks folks, it's all sorted out and working now.

It's a wonderful program!

g/
Quote Reply
Re: Build all not working In reply to
Hey guys;
I tried everything but but but "IT IS NOT WORKING!"
I did the following:
1. I changed my data folder name to datax and also the changes in nph_build.pl and ...
2. I added the permission problem mod (Bobsie mentioned that).
3. I changed the chmods 100 times with different configurations.
And I am still getting the following error:
Please Help;
Thanks in advance




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

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 20 hits

CGI ERROR
==========================================
Error Message : unable to open temp links database: /usr/home/wallstre/public_html/cgi-bin/links/admin/datax/links.db.bak. Reason: Permission denied
Script Location : /usr/home/wallstre/public_html/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502

Quote Reply
Re: Build all not working In reply to
1. Is your data directory chmod 777?

2. Is your links.db chmod 666?

If either is no, chmod it and try again. If both are yes, then look at the following thread: http://www.gossamer-threads.com/...um2/HTML/000730.html

I hope this helps.
Quote Reply
Re: Build all not working In reply to
B I N G O !
Thank You very much Bobsie YOU ARE GREAT!
I just changed the CHMOD and it worked!

Regards;
Peyman

P.S. By the way did you do anything about the script that we were discussing in the other boards? I am talking about the one that users can vote for the site as "The most beautiful site" or "the most boaring site" and ... and then each one will be saved into a separate page! You might want to take a look at this site www.planetclick.com this is a great example of what I have in mind.
Thanks Again