Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Error Message : unable to open what's new page:

Quote Reply
Error Message : unable to open what's new page:
After running Links for 5 years, I have run into a problem that has me baffled.

I do my build via crontab every morning. Yesterday I received the following error:

CGI ERROR
==========================================
Error Message : unable to open what's new page: /hsphere/local/home/willdeb/fishhoo.com/New/index.html. Reason: Permission denied
Script Location : /hsphere/local/home/willdeb/fishhoo.com/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.006001

Yet, the build works properly when I run nph-build.cgi via a direct ssh session.

After searching this board yesterday, I set the permissions of the New directory to 777 and the index.html to 666. They did not change overnight and I am still getting the permissions error.

The only changes I have made recently is editing the home.html and category.html templates.

Any ideas out there? Thanks!

---
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: [willdeb] Error Message : unable to open what's new page: In reply to
Try CHMODing;

/hsphere/local/home/willdeb/fishhoo.com/New/index.html

... and any other files in that folder. You may have to do it on the category pages too (have you done anything that would change the permissions on these files? something like moving servers, and such).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error Message : unable to open what's new page: In reply to
As I said in the above message, the directory is 777 and the index.html is 666.

No, I have been on the same server for 3 years. The only thing I did was modify home.html and category.html in the templates.
---
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: [willdeb] Error Message : unable to open what's new page: In reply to
Could be the ownerships then. In FTP, what does the ownership come up as? (the "group" would be handy too, if available).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error Message : unable to open what's new page: In reply to
drwxrwxrwx 2 willdeb willdeb 16384 Aug 25 13:23 New
---
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: [willdeb] Error Message : unable to open what's new page: In reply to
Mmm.. sometimes, the folders have to be 775, or 755. Can you try both these permissions, and see if it makes a difference?

Just trouble shooting here really... as it a bit of a weird one :/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error Message : unable to open what's new page: In reply to
I can try that but I will have to wait until 4:30 AM unless I change the cron command. I tend to think it may have more to do with ownership. When I run nph-build.cgi via ssh, I am logged in as root. When it runs via crontab, it is running as willdeb.

Thanks for your troubleshooting.
---
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: [willdeb] Error Message : unable to open what's new page: In reply to
Have you tried deleting all files/directories created BY links, then rebuilding? This seems to cure the problem sometimes...


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Error Message : unable to open what's new page: In reply to
No I haven't. Do you think it would be OK to delete just the New directory and see what happens?
---
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: [willdeb] Error Message : unable to open what's new page: In reply to
Yes, that should be fine. Links will re-create any missing directories/pages.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Error Message : unable to open what's new page: In reply to
I renamed the New directory before I went to bed. Something interesting happened during this morning's build. The New directory was created with no problem, then the build started updating the category pages until it reached the last category that I created via the web gui, a couple of days ago. It hung with a permission error at that directory.

I now suspect the problem occured the day I made the new category. In 5 years that has never happened to me before and as far as I know, nothing was changed on the server in the last few days.

For general information, the new New directory permissions are 777 and the new index.html permissions are 644. Those permissions were created by Links.

Tonight I will rename that new category and see if the morning build will run all the way.

Thanks for everyone's help.
---
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/