Forum

Windows XP and Server 2003 Crash

Carlos Garcia A
2 May 2009, 03:45
Hello my name is Carlos Garcia From Colombia South America, y try to use your server with Windows XP or Windows 2003 Server but some times it crashes. There is no reportte in the system log, Some times the server stop with no signal and sometimes it says something like ; " 22693 uknow, 0xAB0 ? 3616 cygtls handle exceptions STATUS ACCESS VIOLATION
Exception STATUS ACCESS VIOLATION at eip 6109FB35 .... and lots of more info..... error while dumping state probably corrupted stack.

I have a jpg image, with the complet error maybe i can send to your mail box.

One PC is running windows 2003 Server and the other is runnin Windows XP Service Pack 3, both with PHP fast cgi Version 5.2.9-1.

Is there another way I can use your super server in a production Server but with more stability. I know this server is for Linux Box, but i have to use it with Windows, Sorry for My english.

Can the server manage expires Headers. ?

Best Regards , and keep the good work..

Thanks.

Carlos Garcia.


Hugo Leisink
2 May 2009, 10:48
I made Hiawatha available for Windows via Cygwin [www.cygwin.com]. According to the 'cygtls handle exceptions' message, it looks like something goes wrong in the Cygwin part of Hiawatha for Windows. Is it true that Hiawatha crashes when you access the webserver via HTTPS? Do you use a special version of Windows?


Can the server manage expires Headers?

The 'Expires' HTTP header line is something a browser should support, not a webserver. It's created by a CGI application and read by the browser.
Carlos Garcia
2 May 2009, 18:59
Is it true that Hiawatha crashes when you access the webserver via HTTPS?


No, only the server dont show my page, but not crashes. or show any error log.

Do you use a special version of Windows?


No is the Authentic Windows XP profesional with service pack 3, with comodo Firewall, Avira antivirus, nothing special.

Just Hiawatha sever, with PHP fast CGI, Mysql. I can reproduce the exact moment when error, some times is only wheni first run hiawatha link, but after 2 o 3 times the error go away abd hiawatha START with no problems, sometimes it crahes after 8 to 10 hours of use, and sometimes about 1 hour of use.

I was using LiGHTD, Nginx or Apache for windows, and was running OK for days, y asume my PC box is OK and is not a hardware Fault.

Thanks for your time and response.

Im want to use your server in a production enviroment, is very secure and light.

Carlos Garcia A

Hugo Leisink
3 May 2009, 03:50
Can you tell me exactly what it is you do to reproduce the error. I'm trying to get the error here myself, but everything seems to work oke here.
Carlos Garcia A
3 May 2009, 06:39
Well, after a lot of START, STOP, Changes ...... I think the problem is solved.

FIRST I install CYGWIN

SECOND Hiawatha daemon is runnjing as a Windows Service with this command I Found in your forum

cygrunsrv.exe -I hiawatha -d "Hiawatha webserver" -p "C:\Program Files\Hiawatha\bin\hiawatha.exe" -a "-d"

I see in the CYGWIN directory C:\cygwin\var\log a Hiawatha log Thats contain this

hiawatha.log

"Press Ctrl-C to shutdown the Hiawatha webserver.
Warning: can't write PID file /cygdrive/c/Program Files/Hiawatha/log/hiawatha.pid."

But I can see hiawatha.pid in the directory Program Files/Hiawatha/log/hiawatha.pid, maybe is something abaout paths in cygwin.

So my gues is that Hiawatha Needs CYGWIN to be instaled.

Now Error Gone Away, and every time I SART and STOP Hiawatha service everything is OK.

Thanks for your Help I continue testing and if i have another problem, i post again.
Carlos Garcia A
3 May 2009, 06:55
You can see Hiawatha Server in windows XP streaming Video in my Home Server http://carlos.homeunix..com, just for 02/05/2009, just for testing. Thanks.
Hugo Leisink
3 May 2009, 11:47
Hmm, I thought that all the necessary Cygwin files where included with the Hiawatha zipfile. But apparently not. Thanks for the information. I'll look into it.
deseven
4 May 2009, 19:36
i have nearly the same problem sometimes
but i didn't try to install cygwin yet
Carlos Garcia A
4 May 2009, 20:08
Well, when load in the server is low (10 clients) is OK, But when 40 to 50 clients the server crash and only give this error . in events Logs.

CYGWIN
segmentation fault!.
HIAWATHA
Hiawatha: PID 2056: `hiawatha' service stopped, exit status: 1.
Hugo Leisink
5 May 2009, 02:51
A segmentation fault. Weird, I've had Hiawatha running on serveral servers for years. Without a single crash. I beginning to wonder whether this Cygwin is stable enough to build 'production software'. I'll do some Cygwin testing.
Carlos Garcia A
10 May 2009, 04:26
Version 6.13 No errors on START or STOP, NO crash after 12 Hours of use ( thats is high version 6.12 only run for 1 Hour or Two) I think your going Well.

Only a little error in the system Log "|Sat 09 May 2009 19:11:47 +0000|pthread init error" I dont know wath it is but the server iguess is running Ok.

One question I have a page with 10 Pics (jpg abot 10 K each) when I access the page some Pics are Show and others Not, I have to reload the page a few times and then show all pics. I see in this in the access log...


186.83.181.207|Sat 09 May 2009 19:11:47 +0000|304|0||GET /imagen/productos/523.jpg HTTP/1.1|Host: 186.83.181.207|User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10|Accept: image/png,image/*;q=0.8,*/*;q=0.5|Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3|Accept-Encoding: gzip,deflate|Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7|Keep-Alive: 300|Connection: keep-alive|Referer: http://186.83.181.207:12000/index.php?var=CategoriaEquipos|If-Modified-Since: Fri, 05 Dec 2008 19:35:00 GMT|Cache-Control: max-age=0
186.83.181.207|Sat 09 May 2009 19:11:47 +0000|404|0||GET /imagen/productos/560.jpg HTTP/1.1|Host: 186.83.181.207|User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10|Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3|Accept-Encoding: gzip,deflate|Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7|Keep-Alive: 300|Connection: keep-alive
186.83.181.207|Sat 09 May 2009 19:11:47 +0000|200|3820||GET /imagen/productos/64.jpg HTTP/1.1|Host: 186.83.181.207|User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10|Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3|Accept-Encoding: gzip,deflate|Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7|Keep-Alive: 300|Connection: keep-alive

Thanks and again keep the good work. And Happy mothers Day ( almost here in Colombia)
Hugo Leisink
11 May 2009, 02:30
Hmm, the pthread init error tells me that Cygwin is not as stable as I hoped it would be. I guess using the Windows version of Hiawatha for production servers is therefor not adviceable.
deseven
14 May 2009, 18:37
Version 6.13 No errors on START or STOP, NO crash after 12 Hours of use ( thats is high version 6.12 only run for 1 Hour or Two) I think your going Well.

yep, that's true
thank you, Hugo
Carlos Garcia A
6 June 2009, 15:31
Testing Version 6.14 with PHP 5.2.9 Fast CGI, and MYSQL, No errors on Start and Stop, No errors on system log. The "pthread init error" go away in this version. CGI is not installed in my pc this time.

Well I think now is all Ok under Windows,. I only can LOAD test with 50 Clients, but everything is OK, No errors. vey fast.

I will try to use it in my production server. in a windows 2003 server enviroment. I post later about it.

Thanks and again keep the good work. If you need I make some test under windows , please advice me.

Carlos



Hugo Leisink
6 June 2009, 23:48
Yes, I made some changes that I thought would fix the Cygwin issues. Good to hear that everything works ineed fine know.
Carlos Garcia A
16 June 2009, 16:28
Ok Hiawatha tested in a production server Hiawatha is solid like a rock but... php-cgi.exe (fastcgi) crash without notice, no log no error menssage. (in windows 2003 server) I know this is not a hiawatha server behavior but maybe you can help me with this situation.

When php.-cgi.exe crash, hiawatha still runnjing OK with html files.

Thanks

Carlos
Hugo Leisink
16 June 2009, 17:34
I think that the problem is that you only have one php-cgi.exe running. By default, php-cgi.exe dies after it handled a certain amount of requests. What you should do is run PHP in a way that one php-cgi.exe spawns several children and respawn children that die.

There are two environment variables needed to run PHP correctly as a FastCGI daemon:
PHP_FCGI_CHILDREN: this sets the number of children spawned by PHP. Set to 5.
PHP_FCGI_MAX_REQUESTS: number of requests a child will handle before dying. Set to 100.

What you can try is adding those variables to your Windows environment and restart PHP. Right click on 'My Computer', 'Advanced' tab, 'Environment Variables' button at the bottom. Please let me know if that solves your problem.

I realize now that my PHP5 FastCGI shortcut doesn't supply those variables. I will fix this for the next release.
Hugo Leisink
16 June 2009, 17:47
Hmm, I did some testing and saw that those environment variables don't have any affect in Windows. There is still one php-fcgi process while there should have been 6: one parent and 5 children. Maybe those environment variables only work under Unix.

Maybe you should ask for help at the PHP website...... or switch to Linux
Carlos Garcia A.
17 June 2009, 02:42
Well Today i going to swith to Linux

Centos Version 5.3,

The server is running Apache, but in the next days im going to install HIAWATHA, but I dont know exactly how to run php as Fast CGI in Linux. Any howto to help me ??? And thanks again.

I will continue using Hiawtha in my test server, in windows Server 2003.


Hugo Leisink
17 June 2009, 11:43
Everything you need to know is described in the HOWTO pages.
This topic has been closed.