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

Error 305 on build pages - help!

Quote Reply
Error 305 on build pages - help!
Hi,

Can anyone help.

I've just installed links on my hypermart server - the permissions are OK, I've added the . to the list of allowable characters, and I've published using frontpage so the files were transmitted in ascii.

The admin/index.html page looks OK (although I needed to remove the comments about copyright in order to make them work - I'll add them back in once I've got it up and running. I can't see why they didn't work - has anyone else had this problem? If so, maybe G-T ought to look into it?).

When I click on any of the links under the 'Links' or 'Categories' headings, I get a 503 error (premature end of script headers).

From what I can gather, I might need to build pages first. When I do this, I get the following from my ISP proxy server:

------------------------------------------
While trying to retrieve the URL: http://www.nlpresources.com/cgi-bin/links/admin/nph-build.cgi

The following error was encountered:

ERROR 305 -- The server stopped sending data.
This means that:

The network or remote site is down. Please try again later.
------------------------------------------

Can anyone help - please!!!

Thanks,
Andy Peacock
P.S. Links page is:

http://www.nlpresources.com/cgi-bin/links/index.html



------------------
---------------------------
Andrew Peacock
NLP Resources
http://www.nlpresources.com
---------------------------
Quote Reply
Re: Error 305 on build pages - help! In reply to
Mark,

I appreciate your reply, but...

permissions are definitely correct.
path to perl is definitely correct
server is OK (it's serving other cgi programs fine)

I've copied the cfg file to the URL below.

One thing I'm not sure about - is the build_path variable used correctly in the way I've set it up?

I've set the path to a directory off my root, rather than in the cgi-bin.

However, it's looking for add.cgi, jump.cgi etc to be in that directory.... (if I am right). But, I changed the build_path to equal the same path where the add.cgi program is, and still got the same error.

Regards,
Andy
http://www.nlpresources.com/cgi-bin/links/admin/linkcfg.txt

------------------
---------------------------
Andrew Peacock
NLP Resources
http://www.nlpresources.com
---------------------------
Quote Reply
Re: Error 305 on build pages - help! In reply to
right, the two locations are diffent.

See my reply in the thread called Links Installation (do an archive search for it) for help on how to move them, and create a new variable to point to it.

--Mark

------------------
You can reach me by ICQ at UIN #8602162


Quote Reply
Re: Error 305 on build pages - help! In reply to
  
Quote:
This means that: The network or remote site is down. Please try again later.

sounds rather obvious to me....

Smile

However, I went to your admin section. I found error 500's meaning you either didn't upload in ascii, your permissions are wrong, or your configs are off.

--Mark

------------------
You can reach me by ICQ at UIN #8602162




[This message has been edited by Mark Badolato (edited December 21, 1998).]
Quote Reply
Re: Error 305 on build pages - help! In reply to
Mark,

Still no joy. I've also downloaded admin.cgi again, to check that that was OK.

Re: Hypermart, is there anything specific to their server that you (or anyone else who might be reading this) knows of that I need to do, apart from adding the dot in the allowable characters? I'm thinking of things like turning on full-headers, modifying .htaccess (I'm still unclear on what .htaccess does).

I'm going to start from scratch and re-install Links tonight, but I've installed other programs OK on a number of sites (all on Hypermart) and they've worked OK, so I think the general procedure I'm using to download them is OK (ie, it's not a frontpage or ASCII/binary problem).

Many thanks for your help,

Andy

------------------
---------------------------
Andrew Peacock
NLP Resources
http://www.nlpresources.com
---------------------------
Quote Reply
Re: Error 305 on build pages - help! In reply to
Hi all,

Just a further thought: can someone who does have Links working on Hypermart make a text copy of the links.cfg available for me to look at? I'm sure that it's something stupid that I'm doing, and I'd like a working example to look at....


Thanks,
Andy

------------------
---------------------------
Andrew Peacock
NLP Resources
http://www.nlpresources.com
---------------------------
Quote Reply
Re: Error 305 on build pages - help! In reply to
My first guess would be back where you said you used FrontPage to upload your content. The fact of the matter is that FrontPage and CGI do not get along with each other. There are executables for FrontPage (bots) that disrupt many different Perl programs.

Also, FrontPage, regardless of what anyone has ever told me, doesn't "know" which mode to upload files in. There is no way to specify that certain files are ASCII or binary and FrontPage just makes an assumption when it uploads if it doesn't know the file type.
Quote Reply
Re: Error 305 on build pages - help! In reply to
Andrew,

I use hypermart quite a bit, and it uses what I would call strange server paths. SInce I am not sure which hypermart server you are on, you will need to find out what your server path is on your own.. however, its not too hard to do.

Since you are using Frontpage, you may in fact have the following problems:

1) Permissions are bad. All uploads to Hypermart are 744, not 755 or 777 or 666 as recommended by the install document.
2) Your absolute file path is probably something like "/data1/hypermart.net/username/cgi-bin/links/admin" This will vary depending on how Hypermart setup your account and where you installed the scripts. Replace "username" with your hypermart username. As you will note, this differs greatly from your URL.
3) Hypermart does not have LWP modules loaded, you will not be able to use the URL checking features because of this.
4) FP may not have uploaded your files as text. FP does its best to guess the file format depending on associations built into your system. Also, if you have edited ANY of the files in Notepad, you most likely have embedded MS-DOS CR/LF's into everything. UNIX will not run such a file. You will need to strip out the CR's. I suggest TxEdit for this, and save the files in UNIX format. You only need to do this for any files you modified on the Windows side.

Feel free to email me questions,



The reason it needs the absolute path is that, unlike many CGI's, links actually stores and writes information to the server, and thus needs to have the path the server uses to write this info.

If you continue to get errors, check your error log from the members section, cut and paste that info into a email message to myself or even post it here, and we'll figure out what is going on.

------------------
Fred Hirsch
Web Consultant & Programmer
Quote Reply
Re: Error 305 on build pages - help! In reply to
Hi,

Got it working at last! Thanks for the help guys - much appreciated.

There were a couple of things I did that might be of use to other people using FP98 on Hypermart. I'll write them up with specific when I have more time!

Great program, by the way,

Regards,
Andy

------------------
---------------------------
Andrew Peacock
NLP Resources
http://www.nlpresources.com
---------------------------