Koozali.org: home of the SME Server

Internal Server Error

jason_78

Internal Server Error
« on: January 05, 2005, 02:42:41 AM »
I am running SME6 and when i try to save a login script it comes up with the the following message

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

If someone can help it would be greatly appreciated

Offline irian

  • *
  • 184
  • +0/-0
Internal Server Error
« Reply #1 on: January 05, 2005, 02:09:05 PM »
Quote

More information about this error may be available in the server error log.


Can you give the information from that log please?
What does your loginscript look like and from where exactly is the script stored?

cydonia

Internal Server Error
« Reply #2 on: January 05, 2005, 02:32:40 PM »
Are you trying to run the script from the cgi-bin?

If so, then this is a probably a few people have experienced, there are heaps of fixes around for this, do a search of the forums.


Tristan

jason_78

Internal Server Error
« Reply #3 on: January 06, 2005, 05:55:07 AM »
where do i get the log from?

cydonia

Internal Server Error
« Reply #4 on: January 06, 2005, 08:11:23 AM »
server.ip.address/server-manager

un: admin
pw: what ever you set when you setup your server.


Then, you will see a menu on the left, click on "View Log Files"

Look at the httpd error log file.



Tristan

jason_78

Internal Server Error
« Reply #5 on: January 06, 2005, 10:39:57 PM »
Thanks
This is the log message

Fri Jan  7 07:46:46 2005] loginscript: esmith::showInitial() called too early to check prototype at /etc/e-smith/web/panels/manager/cgi-bin/loginscript line 46.
[Fri Jan  7 07:46:46 2005] loginscript: esmith::performAndShowResult() called too early to check prototype at /etc/e-smith/web/panels/manager/cgi-bin/loginscript line 51.
[Fri Jan  7 07:46:47 2005] loginscript: esmith::showInitial() called too early to check prototype at /etc/e-smith/web/panels/manager/cgi-bin/loginscript line 46.
[Fri Jan  7 07:46:47 2005] loginscript: esmith::performAndShowResult() called too early to check prototype at /etc/e-smith/web/panels/manager/cgi-bin/loginscript line 51.
[Fri Jan  7 07:46:47 2005] loginscript: Couldn't open /home/netlogon/netlogon.template file! at /etc/e-smith/web/panels/manager/cgi-bin/loginscript line 229.
[Fri Jan  7 07:46:47 2005] [error] [client 127.0.0.1] malformed header from script. Bad header=<pre>Couldn't open /home/netlo: /etc/e-smith/web/panels/manager/cgi-bin/loginscript
get_languages: Browser asked for missing languages en-au
get_languages: Browser asked for missing languages en-au
get_languages: Browser asked for missing languages en-au
print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
get_languages: Browser asked for missing languages en-au
get_languages: Browser asked for missing languages en-au
get_languages: Browser asked for missing languages en-au
get_languages: Browser asked for missing languages en-au
print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
get_languages: Browser asked for missing languages en-au

cydonia

Internal Server Error
« Reply #6 on: January 07, 2005, 03:36:05 AM »
I would say this is to do with permissions, I just posted a thread about this:

http://forums.contribs.org/index.php?topic=25475.0


I still havn't worked out all the files needed, but I managed to get a step closer to working it out.

Specific lines that I would look at are:

Quote from: "jason_78"


[Fri Jan  7 07:46:47 2005] loginscript: Couldn't open /home/netlogon/netlogon.template file! at /etc/e-smith/web/panels/manager/cgi-bin/loginscript line 229.

[Fri Jan  7 07:46:47 2005] [error] [client 127.0.0.1] malformed header from script. Bad header=<pre>Couldn't open /home/netlo: /etc/e-smith/web/panels/manager/cgi-bin/loginscript



They look like they may be permission related.  Do a search for "Internal Server Error" on the forums, there was a similar sort of fix discussed recently.

DISCLAIMER:  These are suggestions only, I havn't tried any of these, fiddling with permissions can sometimes wreck things.  Make sure you take note of any of the original permissions if you start changing things.


Tristan