logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Some files not opening up Page 1, 2, 3  Next
Author
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Sun 08 Oct '06 17:42    Post subject: Some files not opening up Reply with quote

As I said in this topic http://www.apachelounge.com/viewtopic.php?t=850, MP3s did not open up. So now I have trouble with PDFs. It says that it is corrupted but it is not. I can open it up from my server. I have the mime types in. I tried apache on my home computer, and those files worked fine. I am using Apache 2.2 on Windows XP with PHP and Perl.
Back to top
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Sun 08 Oct '06 20:52    Post subject: Reply with quote

Are you sure you are not compressing the output?

This makes no sense. Try putting up a KNOWN GOOD MP3 or PDF, then post the link or privately email one of us to try it out. This simply makes no sense.

I read a few people going back to 2.0.x Apache, and I run my busiest web server on this older version, but I also run some others all on 2.2.x and run grrrrrreat! I use both FCGI and SAPI on same boxes, no problems what-so-ever so far. I had some help with FCGI though, it can be tricky.
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Sun 08 Oct '06 22:54    Post subject: Reply with quote

My Link: http://data-base-web.com/Kbit-Robotix.mp3
Artist Link: http://www.kyle-ward.com/kawmusic/music/Kbit//Kbit-Robotix.mp3

Mod code:

Code:
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
Location: Hilversum, NL, EU

PostPosted: Mon 09 Oct '06 1:00    Post subject: Reply with quote

Make no sense to drop your loaded modules here.

When I click the links, windows media player pops up and both are playing fine.

Looks you have no issue with your server.
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Mon 09 Oct '06 1:42    Post subject: Reply with quote

it skips!
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Mon 09 Oct '06 12:21    Post subject: Reply with quote

Maybe for streaming you can have a look at www.spartanicus.utvinternet.ie/streaming.htm , sepcial the link at the bottom "To embed, or not to embed - that is the question".

Please do not come too soon back here, first do some homework/study by yourself.
Back to top
azoapes



Joined: 26 Oct 2006
Posts: 14

PostPosted: Thu 26 Oct '06 16:11    Post subject: Reply with quote

Please don't patronize us, we have this problem and if you can help; please do so. I have the exactly same problem. I'm running Apache 2.2 on Windows XP Pro, and I have a web server for personal use.

When I put a file (a NON-corrupt, WORKING file) in my htdocs and downloads it via WAN, it BECOMES corrupt! If it's a zip-file, it becomes corrupt upon extraction, if it's an mp3-file it either skips or is corrupt.

This is really strange, hasn't anyone got a clue?

When I play the mp3 locally from my htdocs-folder it sounds great, BUT when I download it from my own server and listen to it, it skips!

When I extract the zip-archive locally from my htdocs-folder it workss great, BUT when I download it from my own server and extracts it, it's corrupt!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 26 Oct '06 17:16    Post subject: Reply with quote

Apache does not work good with QoS (as said in the docs) Is that enabled in the networkconnection? I don't have any other clue, because I'm running apache on Windows fine and friends have downloaded files up tp 1,5 GB.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 26 Oct '06 19:22    Post subject: Reply with quote

Very strange problem! When I go to http://data-base-web.com/Kbit-Robotix.mp3 and monitor the net packets - I see that:
    my browser starts a transfer (expected)
    my media player resumes the transfer after a few thousand bytes (expected)
    your Apache sends the correct headers for a byte-range resumed-transfer (expected)
    your Apache sends data from the beginning of the file (*unexpected!*)

It appears that your Apache server is not handling byte-range requests properly.

I cannot reproduce this myself using Apache 2.2.3 downloaded from Apache Lounge.
It works fine serving .mp3, .zip, and .pdf files for me.

As a test you can enable mod_headers and use some directives to disable byte-range processing:
Code:
LoadModule headers_module modules/mod_headers.so
...
<FilesMatch "\.(mp3|zip|pdf)$">
    Header unset Accept-Ranges
    RequestHeader unset Range
    RequestHeader unset Unless-Modified-Since
    RequestHeader unset If-Range
</FilesMatch>


Please post whether this helps your "corrupt-file" problem.

If so - it would show that the problem is indeed related to byte-range transfers, although this is more of a work-around than a fix.
Byte-range transfers should work correctly for you (like they do for me...)

-tom-
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
Location: Hilversum, NL, EU

PostPosted: Thu 26 Oct '06 22:23    Post subject: Reply with quote

Do you have mod_deflate on ?


Steffen
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Fri 27 Oct '06 2:01    Post subject: Reply with quote

I used the code that you put up and my transfer still does not work. It does that exact same thing. Is there something else that i could do?

EDIT: How do I remove EVERY file that contains settings and so on?
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Fri 27 Oct '06 3:07    Post subject: Reply with quote

Did you add the directives to the server which serves data-base-web.com?
I just checked, and it is still doing byte-ranges. Maybe you removed the directives after they didn't work.

I would like to reproduce this problem. Can you tell us the exact version of Apache (2.2.?) you are running and where you got it?
You mentioned Windows XP. I presume you are running on WinXP-SP2 (Pro? Home?)

If you have installed any non-standard (i.e. any 3rd-party) apache modules, have you tried it with these modules disabled.
For a test, it might be useful to disable *every* apache module which is not needed to serve mp3s and see if this problem still happens.
For example, if you are using mod_cache it might help to try with this module disabled.

re: "EDIT: How do I remove EVERY file that contains settings and so on?"
I don't understand the question.

-tom-
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Fri 27 Oct '06 20:11    Post subject: Reply with quote

Quote:
Did you add the directives to the server which serves data-base-web.com?
I just checked, and it is still doing byte-ranges. Maybe you removed the directives after they didn't work.

yea i did, but there are back on now.

Quote:

I would like to reproduce this problem. Can you tell us the exact version of Apache (2.2.?) you are running and where you got it?
You mentioned Windows XP. I presume you are running on WinXP-SP2 (Pro? Home?)

Apache2.2 from apachelounge.com on Windows XP-SP2 Home

Quote:
re: "EDIT: How do I remove EVERY file that contains settings and so on?"
I don't understand the question.

I mean does apache save anything in other folders (e.g. %systemroot%\system32\)?
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Fri 27 Oct '06 21:14    Post subject: Reply with quote

I'm stumped. I can see the problem when I go to your site, but I cannot reproduce it myself with a clean installation of Apache 2.2.3 from Apache Lounge on Windows XP.
I don't have a copy of XP Home edition - but I cannot imagine why Home vs. Pro would cause this problem.

I just checked - and your site is still doing byte-ranges. The "Accept-Ranges" header is not being unset by the mod_headers directives.
This is also a mystery, as these directives work for me on the same setup.

The exact behavior of your site is this:
    It sends the header "Accept-Ranges" to allow byte-range resumption of transfers
    (despite the fact that you have put in directives to unset this header)

    When the client (browser) requests a byte-range transfer starting at byte 4608, your site sends the correct headers
    - but it starts at the beginning of the mp3 file instead of starting at byte 4608.

When I try a HTTP 1.0 request, which doesn't support byte-range requests, the data I receive is not the whole file.
Every 65536 bytes the data resets to the beginning of the file.
That is why it sounds like "skipping". It is re-playing the first 65536 bytes over and over.

I see from your headers that your have PHP 5.1.6 and mod_aspdotnet 2.2 installed.
I installed both (downloaded from Apache Lounge) and still cannot reproduce the problem.

FYI - here is the exchange when IE first connects to your site:
Quote:
GET /Kbit-Robotix.mp3 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: data-base-web.com
Connection: Keep-Alive

HTTP/1.1 200 OK
Date: Fri, 27 Oct 2006 18:37:29 GMT
Server: Apache/2.2.3 (Win32) PHP/5.1.6 mod_aspdotnet/2.2
Last-Modified: Mon, 09 Oct 2006 16:23:09 GMT
ETag: "26b96-1bc800-3ccaf540"
Accept-Ranges: bytes
Content-Length: 1820672
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: audio/mpeg

ID3......JTRCK.......TENC....@..WXXX........TCOP.......TOPE.......TCOM.......COMM...........http://www.kawmusic.comTYER.. .....2005TALB.......KbitTPE1.......KbitTIT2.......RobotixTCON
...

and here is the point where Windows Media Player asks for the data to resume at byte 4608:
Quote:
GET /Kbit-Robotix.mp3 HTTP/1.1
Accept: */*
User-Agent: NSPlayer/9.0.0.2980 WMFSDK/9.0
Accept-Encoding: gzip, deflate
Range: bytes=4608-
Unless-Modified-Since: Mon, 09 Oct 2006 16:23:09 GMT
If-Range: "26b96-1bc800-3ccaf540"
Host: data-base-web.com
Connection: Keep-Alive

HTTP/1.1 206 Partial Content
Date: Fri, 27 Oct 2006 18:37:30 GMT
Server: Apache/2.2.3 (Win32) PHP/5.1.6 mod_aspdotnet/2.2
Last-Modified: Mon, 09 Oct 2006 16:23:09 GMT
ETag: "26b96-1bc800-3ccaf540"
Accept-Ranges: bytes
Content-Length: 1816064
Content-Range: bytes 4608-1820671/1820672
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: audio/mpeg

ID3......JTRCK.......TENC....@..WXXX........TCOP.......TOPE.......TCOM.......COMM...........http://www.kawmusic.comTYER... ....2005TALB.......KbitTPE1.......KbitTIT2.......RobotixTCON
...

Notice how the same data is sent - even when the response is supposed to be byte range 4608 through 1820671.

Maybe something between your server and me is caching this file. If so - it is not doing it correctly.

I don't know what to try next. Maybe you can try to find out what you and azoapes have in common which could be causing this?!?

re: "does apache save anything in other folders"
Not that I know of. Apache does create registry entries if you install it as a Windows Service, but you can remove them with httpd.exe -k uninstall

-tom-
Back to top
sb.net



Joined: 22 Sep 2006
Posts: 120
Location: USA

PostPosted: Fri 27 Oct '06 21:57    Post subject: Reply with quote

what can i disable?

Code:
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule aspdotnet_module modules/mod_aspdotnet.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
Loadodule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule headers_module modules/mod_headers.so


azoapes: i am running Apache2.2 from apachelounge.com on Windows XP-SP2 Home on an compaq computer. What are you running? if we find similarities in are machines it could be a problem with the computer.

Mod Note: Removed all outcommented modules. By the way. Please post only changes you made in the httpd.conf! Most ppl in forum own a httpd.conf
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Fri 27 Oct '06 23:48    Post subject: Reply with quote

sb.net: as Steffen pointed out, it makes no sense to post a list of your loaded modules here.

*We* don't know if you have any cgi programs, or any asp pages, or if you use imagemaps etc. That's something that *you* are supposed to know.

-tom-
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Sat 28 Oct '06 11:23    Post subject: Reply with quote

It can be other things aswel, Router, ISP, ... that messing it up.
Back to top
azoapes



Joined: 26 Oct 2006
Posts: 14

PostPosted: Sun 29 Oct '06 19:36    Post subject: Reply with quote

sb.net wrote:
azoapes: i am running Apache2.2 from apachelounge.com on Windows XP-SP2 Home on an compaq computer. What are you running? if we find similarities in are machines it could be a problem with the computer.


I'm running Apache 2.2.3 with PHP5.2.0 on WinXP Pro SP2.

I keep wondering how the server can produce complete HTML/php-pages with images and such, but not MP3 files... I can stream video from the server, but it behaves just like the MP3-files.

For me it doesn't skip the same way as for sb.net. For me, the server somehow creates flicker each X seconds. Try yourself with this:
http://azoapes.no-ip.com/files/Funky_Jazz.mp3

(It doesn't matter if you stream directly (with for example QuickTime) or download the file to your hard drive. It still flickers. It does not flicker in original when I play the MP3 from that folder.

Help is very appreciated!
Back to top
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Sun 29 Oct '06 20:34    Post subject: Reply with quote

Not having read all of the responses, I apologize if I am off base but is this an issue of bandwidth?

I tried to download this link and I was able to get it at about 11KB per second, not fast enough for streaming. More importantly, you could try a media server, which Apache is not, and that could be better. Try converting it to WMV or Flash and you could find that the media streams better.

If you don't have good upstream, and the remote connection client is seeing poor results, is this an issue of simply not enough upstream? But again, maybe I am missing the point.
Back to top
azoapes



Joined: 26 Oct 2006
Posts: 14

PostPosted: Sun 29 Oct '06 21:13    Post subject: Reply with quote

Brian wrote:
Not having read all of the responses, I apologize if I am off base but is this an issue of bandwidth?

I tried to download this link and I was able to get it at about 11KB per second, not fast enough for streaming. More importantly, you could try a media server, which Apache is not, and that could be better. Try converting it to WMV or Flash and you could find that the media streams better.

If you don't have good upstream, and the remote connection client is seeing poor results, is this an issue of simply not enough upstream? But again, maybe I am missing the point.



Yes, you are. Streaming includes retrieving data to a buffer and playing the buffer. I do not have a real streaming media server set up, so it is your software that streams the mp3 into its buffer and plays the media. That means the bandwidth doesn't have anything to do with this.

When the media is playing, it's not playing properly. Try downloading the file and listen, there are issues that are clearly heard.

By the way, sorry for the poor upload, I'm under heavy traffic right now and unfortunately half duplex. Anyway, try again a little later.

EDIT: NOTE: that this problem is not only with mp3 files, it's with all files! For example, zip-files get corrupt and pdf-files gets corrupt
Back to top


Reply to topic   Topic: Some files not opening up View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page 1, 2, 3  Next