View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-18-2020 , 06:10   Re: I need help with a fastdl error
Reply With Quote #3

Quote:
Originally Posted by Epstycky View Post
https://pastebin.com/jGbfZ2fj

Everything seems setup fine idk what else could cause these errors.
If you are looking at the error output, -

Code:
Downloading https://variedhub.com/UserArea/Begisha/csgo//maps/am_grass2.bsp.bz2.
Error downloading https://variedhub.com/UserArea/Begisha/csgo//maps/am_grass2.bsp.bz2
Downloading https://variedhub.com/UserArea/Begisha/csgo//maps/am_grass2.bsp.
Download finished!
It tries the "am_grass2.bsp.bz2" first, but since that one does not exist, it falls back to "am_grass2.bsp".

It finishes perfectly fine after it takes "am_grass2.bsp".

For a map name of "am_grass2", it will take the order as you see:

1. am_grass2.bsp.bz2
2. am_grass2.bsp

That is so you can bzip each individual files to save storage (and "bandwidth"), hopefully speeding up your downloads by having less data to download (e.g. over slow Internet connections).


With CS:GO files, you should however make sure that you are NOT BZIP compressing files that were originally over 150 MB in size.

Quote:
Originally Posted by Epstycky View Post
Code:
sv_allowupload 1
sv_allowdownload 1
sv_downloadurl "https://variedhub.com/UserArea/Begisha/csgo/"
You might want to make certain small adjustments, see below.

Quote:
Originally Posted by Epstycky View Post
Code:
[...]
fps_max 1000
sv_maxrate 40000
FPS 1000 with maxrate of 40000 seems a bit "underrated".

Quote:
Originally Posted by Epstycky View Post
I'm only getting these errors for certain files but other files seem to work fine for everyone else does anyone know how to fix it?
You will always see such errors when it tries to download files that does not exist in your sv_downloadurl destination.

However, CS:GO at least, is adding the beginning / automatically (e.g. adding "/maps/..." to your URL, rather than "maps/..."), so from your log, you ended up with multiple slashes "//", which can sometimes cause issues. I would therefore suggest you change to:

Code:
sv_allowupload 0
sv_allowdownload 0
sv_downloadurl "https://variedhub.com/UserArea/Begisha/csgo"

sv_allowupload and sv_allowdownload won't change a single thing, when you have set up your sv_downloadurl properly.

They only have effect when you are not using sv_downloadurl (e.g. sending/receiving files directly from the game server).


Web servers running on Linux/Unix operating systems are case-sensitive, -

Code:
$ curl -s -D - -o /dev/null https://variedhub.com/UserArea/Begisha/csgo/maps/am_must2.bsp | grep HTTP
HTTP/2 200

$ curl -s -D - -o /dev/null https://variedhub.com/UserArea/Begisha/csgo/maps/am_MUST2.bsp | grep HTTP
HTTP/1.1 404 Not Found
This means that if you change map, e.g. "sm_map am_MUST2", "sm_map Am_mUsT2", or so, that isn't all lowercase, then you might end into issues with downloading from your sv_downloadurl.

It can be "mitigated" in certain different ways, depending on the web server used. Apache mod_rewrite can for example with certain RewriteRule's be set up to make redirects to the lowercase variant of an URL.

I suggest keeping all map names (game server, sv_downloadurl location, map cycle files, et cetera, EVERYWHERE) 100% lowercase all the way along.


Quote:
Originally Posted by ThePwnt View Post
It doesn't work with "https" =)
If you look at the error log linked, you clearly see "Download finished!" for the ".bsp" variants, using the "https://" link.

It is however always funny to see people claim things like e.g. "https:// won't work"...

"https://" works perfectly fine for me, and have always done so.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 02-18-2020 at 06:16.
DarkDeviL is offline