You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zoe Ballz <zo...@zoeballz.tv> on 2004/05/29 01:04:07 UTC

[users@httpd] Http failing for 5-20 mins and recovering by itself

Hiya People

Here's a poser for you. Only any good to those running on windows though (I
think)

I run Apache 1.3.31 on win2000pro. No special mods - just basic setup apart
from vhosts and logs and a few directory aliases. I run Apache as an
application rather than a service as I heard that as a service (without
running the server version of windows) had limited capacity (10 connections
at once so I was told) but an app has no such limitations (Q1 Please correct
me if I am wrong) !!

Anyway - I get a problem - I run a windows app on another machine called
Sitemonak - it tests to make sure any given http server is accessible. Every
so often it says that server is not accessible and it sets alarms ringing
(metalica at full volume as it happens!!!!!)

Sure enough the sites are not accessible

I get the following error messages in the logs:

[Fri May 28 02:35:08 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 03:45:27 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 04:20:36 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 07:11:20 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 08:51:46 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 12:11:03 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 12:47:46 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 14:53:17 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg
[Fri May 28 15:23:25 2004] [error] [client 82.34.88.178] (13)Permission
denied: file permissions deny server access:
d:/web/xxxxxxxx/test/cams/image.jpg

Now I should point out that the directory CAMS is an alias for another
directory as follows:

Alias /testcam/ "D:/web/xxxxxxxx/test/cams/"
<Directory "D:/web/xxxxxxxx/test/cams/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

Now the file "image.jpg" is updated every 10 seconds by another process on
another machine using FTP running win98.

Are the errors occurring at times when the file is being updated and
therefore "in use"?
If so - how can I avoid this? is there a way to allow read access while the
file is being written to?  or to make apache wait until the file is
available?

Or

Is this still a problem with the limitations on the number of connections
even though apache is running as an app?

Or

Am I being thick and missing the point completely?

Any help would be appreciated

All the best to all the brainboxes !!!!!

Zoe


http://zoeballz.net - Website Hosting for the Transgendered Community


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Http failing for 5-20 mins and recovering by itself

Posted by Brent 'Dax' Royal-Gordon <br...@brentdax.com>.
Zoe Ballz wrote:
> I run Apache as an
> application rather than a service as I heard that as a service (without
> running the server version of windows) had limited capacity (10 connections
> at once so I was told) but an app has no such limitations (Q1 Please correct
> me if I am wrong) !!

On Windows 2000 Pro, the Microsoft IIS web server is crippled--it's 
limited to ten connections.  Apache is a separate web server, so it's 
not affected by this.

> Are the errors occurring at times when the file is being updated and
> therefore "in use"?

This is quite likely.

> If so - how can I avoid this? is there a way to allow read access while the
> file is being written to?  or to make apache wait until the file is
> available?

As someone else said, the usual trick on Unix is to upload the file 
under a different name, then rename it into place once the upload's 
complete.  In other words:

   * connect to FTP server
   * upload temp.jpg
   * rename temp.jpg to image.jpg
   * disconnect

(The connect and disconnect steps, of course, are optional--you could 
connect at the beginning and hold the connection open.)

File locking is a little more complicated on Windows (most Windows file 
locks are mandatory, and produce errors when you try to open a locked 
file; Unix file locks are usually advisory, and block until the file has 
been unlocked), but I would imagine this trick would still work.

HTH,
-- 
Brent "Dax" Royal-Gordon <br...@brentdax.com>
Perl and Parrot hacker

Oceania has always been at war with Eastasia.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Http failing for 5-20 mins and recovering by itself

Posted by Norman Peelman <np...@cfl.rr.com>.
----- Original Message ----- 
From: "Zoe Ballz" <zo...@zoeballz.tv>
To: <us...@httpd.apache.org>
Sent: Friday, May 28, 2004 7:04 PM
Subject: [users@httpd] Http failing for 5-20 mins and recovering by itself


> Hiya People
>
> Here's a poser for you. Only any good to those running on windows though
(I
> think)
>
> I run Apache 1.3.31 on win2000pro. No special mods - just basic setup
apart
> from vhosts and logs and a few directory aliases. I run Apache as an
> application rather than a service as I heard that as a service (without
> running the server version of windows) had limited capacity (10
connections
> at once so I was told) but an app has no such limitations (Q1 Please
correct
> me if I am wrong) !!
>

  This applies to IIS only... not Apache...

Norm


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Http failing for 5-20 mins and recovering by itself

Posted by Joshua Slive <jo...@slive.ca>.
On Sat, 29 May 2004, Zoe Ballz wrote:
> Now the file "image.jpg" is updated every 10 seconds by another process on
> another machine using FTP running win98.
>
> Are the errors occurring at times when the file is being updated and
> therefore "in use"?
> If so - how can I avoid this? is there a way to allow read access while the
> file is being written to?  or to make apache wait until the file is
> available?

The traditional way to do this on unix is to upload the file using a
different filename, and then move it on the server onto the live version.
I imagine something similar would work on windows.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org