[Seaside] 500 - Internal Server Error
dtrussardi at tiscali.it
dtrussardi at tiscali.it
Fri Nov 18 13:36:57 UTC 2016
Ciao Johan,
the MacBook lighttpd.conf is :
> # Debian lighttpd configuration file
> #
>
> ############ Options you really have to take care of ####################
>
> ## modules to load
> # mod_access, mod_accesslog and mod_alias are loaded by default
> # all other module should only be loaded if neccesary
> # - saves some time
> # - saves memory
>
> server.modules = (
> "mod_access",
> "mod_alias",
> "mod_accesslog",
> "mod_compress",
> "mod_rewrite",
> "mod_redirect",
> "mod_fastcgi",
> "mod_proxy",
> # "mod_evhost",
> # "mod_usertrack",
> # "mod_rrdtool",
> # "mod_webdav",
> # "mod_expire",
> # "mod_flv_streaming",
> # "mod_evasive"
> )
>
> ## a static document-root, for virtual-hosting take look at the
> ## server.virtual-* options
> server.document-root = "/var/www/"
> #
> # GESTIONE FILES DI RIFERIMENTO
> #
> # Begin
> #
> ####### Monticello ######
> $HTTP["url"] =~ "^/Album" {
> server.document-root = "/Users/dtr/"
> }
> #
> # **** End file riferimento ****
> #
> #############################################################
> #
> # GESTIONE MENU ON LINE
> include "/DTRConfig/lighttpd/menuonline2200.conf"
Where menuonline2200.conf is:
> ##### /DTRConfig/lighttpd/menuonline/menuonline2200.conf #####
> ### GESTIONE MENU ON LINE
> #
> $HTTP["host"] =~ "menuonline.com$" {
> url.redirect = (
> "^/$" => "http://www.menuonline.com/management"
> )
> #
> $HTTP["url"] !~ "^/[A-Z]" {
> proxy.server = (
> "" =>
> (
> ("host" => "127.0.0.1","port" => 8888)
> )
> )
> }
> #**** Gestione files di riferimento
> $HTTP["url"] =~ "^/[A-Z]" {
> server.document-root = "/mnt/DTRDataBase/DTRdbMenuonline"
> }
> }
------------------------------------------------------------------------------------------------------------------
On the Ubuntu server with Gemstone the lighttpd.conf is:
>
> server.modules = (
> "mod_access",
> "mod_alias",
> "mod_compress",
> "mod_redirect",
> "mod_rewrite",
> "mod_fastcgi",
> "mod_proxy",
> "mod_cgi",
> )
>
> server.document-root = "/var/www/"
> server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
> server.errorlog = "/var/log/lighttpd/error.log"
> server.pid-file = "/var/run/lighttpd.pid"
> #server.username = "www-data"
> #server.groupname = "www-data"
> server.port = 80
>
> # esecuzione *cgi APC UPS
> cgi.execute-x-only = "enable"
> cgi.assign += ( ".cgi" => "" )
>
> index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
> url.access-deny = ( "~", ".inc" )
> static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
>
> compress.cache-dir = "/var/cache/lighttpd/compress/"
> compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
>
> # default listening port for IPv6 falls back to the IPv4 port
> ## Use ipv6 if available
> #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
> include_shell "/usr/share/lighttpd/create-mime.assign.pl"
> include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
> include "/etc/lighttpd/gestionale9060.conf"
Where gestionale9060.conf is:
> ### gestionale9060.conf ###
> ### ###
> $HTTP["host"] =~ "gestionale.com$" {
> url.redirect = (
> "^/$" => "http://www.gestionale.com/management"
> )
> $HTTP["url"] !~ "^/[A-Z]" {
> fastcgi.server = (
> "" =>
> (
> ("host" => "127.0.0.1","port" => 9060,"check-local" => "disable","mode" => "responder" ),
> ("host" => "127.0.0.1","port" => 9061,"check-local" => "disable","mode" => "responder" ),
> ("host" => "127.0.0.1","port" => 9062,"check-local" => "disable","mode" => "responder" ),
> ("host" => "127.0.0.1","port" => 9063,"check-local" => "disable","mode" => "responder" ),
> ("host" => "127.0.0.1","port" => 9064,"check-local" => "disable","mode" => "responder" ),
> ("host" => "127.0.0.1","port" => 9065,"check-local" => "disable","mode" => "responder" )
> )
> )
> }
> $HTTP["url"] =~ "^/[A-Z]" {
> server.document-root = "/DTRDataBase/DTRdbMenuonline"
> }
> }
Thanks,
Dario
> Dario,
>
> Seems like you are trying to communicate to the zinc http backend using the lighttpd fastcgi moduleā¦
>
> Can you share your lighttpd configuration to verify?
>
> cheers
> Johan
>
>> On 18 Nov 2016, at 12:22, dtrussardi at tiscali.it wrote:
>>
>> Ciao,
>>
>> ( I try to report my problematic on this wiki, but I'm not sure )
>>
>> i'm development Seaside 3.1.4.2 application into
>>
>> Pharo4.0 image
>> Latest update: #40625
>>
>>
>> Into Pharo i configurate the Server with:
>>
>> Type: ZnZincServerAdaptor
>> Port: 8888
>> Encoding: utf-8
>> zinc on port 8888 [running]
>>
>> On the system ( MacBook OS X 10.7.5 ) i configured the Lighttpd web server for redirect the web request to the Pharo server.
>>
>> All works fine but sometimes, when i submit request from the web browser,
>>
>> the system answer:
>> 500 - Internal Server Error
>>
>> When this error happens the lighttpd error.log file report at the same time :
>>
>>
>> 2016-11-18 11:13:53: (network_writev.c.115) writev failed: Socket is not connected 9
>> 2016-11-18 11:13:53: (mod_proxy.c.853) write failed: Socket is not connected 57
>> 2016-11-18 11:13:53: (mod_proxy.c.939) proxy-server disabled: 127.0.0.1 8888 9
>> 2016-11-18 11:13:53: (mod_proxy.c.1316) no proxy-handler found for: /management
>> 2016-11-18 11:13:58: (mod_proxy.c.1361) proxy - re-enabled: 127.0.0.1 8888
>>
>> Some considerations?
>>
>>
>>
>>
>> The same problematic, but with less frequently, is on Ubuntu server with Gemstone 3.1.0.6 and Seaside 3.0.1.3
>>
>> On this system the lighttpd error.log file report at the error time:
>>
>> 2016-11-16 18:41:32: (mod_fastcgi.c.2540) unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:9061
>> 2016-11-16 18:41:32: (mod_fastcgi.c.3326) response not received, request sent: 1185 on socket: tcp:127.0.0.1:9061 for /management?_s=dHAnR5J1xJNZPC-0&_k=0zNcd6_tcDCkQySv,
>> closing connection
>>
>> The gemstone_status on the server report:
>>
>> Status Version Owner Pid Port Started Type Name
>> ------- --------- --------- ----- ----- ------------ ------ ----
>> OK 3.1.0.6 scandella 2030 48678 mar 09 23:14 Stone gestionale
>> OK 3.1.0.6 scandella 2032 51188 mar 09 23:14 cache gestionale~9af495ccd1149d82
>> OK 3.1.0.6 scandella 1041 55320 lug 27 16:42 Netldi gs64ldi
>>
>> /etc/service/gs_maintenance: up (pid 2096) 21900151 seconds
>> /etc/service/gs_seaside-9060: up (pid 2098) 21900151 seconds
>> /etc/service/gs_seaside-9061: up (pid 2100) 21900151 seconds
>> /etc/service/gs_seaside-9062: up (pid 2107) 21900151 seconds
>> /etc/service/gs_seaside-9063: up (pid 25194) 12810073 seconds
>> /etc/service/gs_seaside-9064: up (pid 2111) 21900151 seconds
>> /etc/service/gs_seaside-9065: up (pid 2113) 21900151 seconds
>> /etc/service/gs_statmon-1: up (pid 2069) 21900151 seconds
>> /etc/service/gs_statmon-60: up (pid 2071) 21900151 seconds
>>
>>
>> Thanks for considerations.
>>
>>
>> Dario
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20161118/b1a027cd/attachment-0001.html>
More information about the seaside
mailing list