Author Topic: Downloads not working/stop half way  (Read 3202 times)

0 Members and 1 Guest are viewing this topic.

Offline eklem2009

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Downloads not working/stop half way
« on: September 12, 2011, 03:09:02 AM »
Hello,

First of all I'd like to say I have scoured the internet for instructions on how to setup the downloads correctly and found very little that works, after a few days of tinkering I managed to get SOME files working. I originally had 2 servers running and the downloads were sort-of-working-but-not-very-well, but now have a brand new server with only bare basics running (ULX/Wire).

The trouble is as it's a fresh install and I no longer have the previous files from the other servers, I simply can not get the downloads to work.
I've tried all sorts of suggestions, I've tried different files (for example the only thing that should have downloaded was a custom sound file to begin with) however nothing is working. I still haven't been able to find a clear guide so I was probably just lucky before with it working.

The files were correctly hosted on one of my websites (the directories were correct from what I read), but all that would happen is as you connected to the server it would download half the files then connect you. If there were 100 files to download, it would get to around 40 and then connect you to the server without downloading the rest.

The most frustrating thing is I'm not a muppet, I'm a web developer by day and a gamer by night.

Any help would be appreciated as it's becoming a real problem as we are branching out our servers again.

// Edit
Just to confirm, am I right in thinking the addons files for example are set out as below:

Default extracted files: garrysmod/garrysmod/addons/addonname/materials/addonfile.file
On FastDL web server: garrysmod/garrysmod/materials/addonfile.file

I believe this is what we used before with resource.addDir, or some combination of download settings. Still haven't found a clear guide for this.
« Last Edit: September 12, 2011, 04:58:26 AM by eklem2009 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Downloads not working/stop half way
« Reply #1 on: September 12, 2011, 04:00:58 AM »
I'd check the apache server logs to see if there's some kind of error going on.
Experiencing God's grace one day at a time.

Offline strategos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 2
  • I wanna be the guy
    • Community
Re: Downloads not working/stop half way
« Reply #2 on: September 12, 2011, 08:22:18 AM »
I don't know if this is what you're asking, but I assume you mean that you can't get your server to forced files. You must extract the addon to /garrysmod. The materials folder in adding goes to the materials folder in /garrysmod. And etc. You are correct on the forced dir. A file in lua/autorun/server. You have to resource.addfile() the models and materials but leave out the root /garrysmod

To clarify: Instead of /addons being the directory the files dl from, extract the folders to /garrysmod, merging the folders.
« Last Edit: September 12, 2011, 08:27:57 AM by strategos »

Offline eklem2009

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Downloads not working/stop half way
« Reply #3 on: September 13, 2011, 01:08:23 AM »
Hello,

Thank you for your posts. I figured this out from surfing the net, however, I still have the problem as stated below;

Lets say there are 100 files to download when you connect to the server. After you've downloaded about 40-50 of them, it skips the rest and connects you to the server. This happened to everybody who tried to connect yesterday.

No errors on my web logs either, the files that transfer show up on the logs.

I had this problem before with only certain files sending. For instance, Gcombat would transfer yesterday but some custom sounds, other addons and files wouldn't.

// Edit
Also just to clarify do the addons only need to be merged on the FastDL server or both the FastDL server AND game server?
This is how the files are now
Game server files: garrysmod/addons/addonname/materials/addonfile.file
FastDL web server: garrysmod/materials/addonfile.file

There needs to be a much more simple method for the downloads x_x
« Last Edit: September 13, 2011, 03:02:44 AM by eklem2009 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Downloads not working/stop half way
« Reply #4 on: September 13, 2011, 07:23:45 AM »
You are doing it right as far as structure.

Are you also putting your lua cache on the fast download server?


Default extracted files: garrysmod/garrysmod/cache/dua/file.dua
On FastDL web server: garrysmod/garrysmod/cache/dua/file.dua

also when you point your server at the FastDL server using sv_downloadurl make sure it is pointed at http://yourdomain.com/garrysmod/garrysmod   and not   http://yourdomain.com/garrysmod


Likely you have it set up wrong. If this is the case, it will appear to try and download files but not actually finish at which point it'll connect you to the server and you will not have any of the files.

Send me a copy of your settings configuration and I will look at it.
« Last Edit: September 13, 2011, 07:26:47 AM by MrPresident »

Offline eklem2009

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Downloads not working/stop half way
« Reply #5 on: September 13, 2011, 07:40:14 AM »
The lua cache is on the FastDL server and the domain + config file are both set to http://www.domain.com/garrysmod, which is working fine - logs confirm this.

I can't understand why it is pulling some files and not others, when the majority of them are based in the same folder. I'm not getting any errors from my website, the logs are all clean transfers.

After formatting the server and setting up a fresh GMod/ULX install it appears to be working a little better; 188 files to download and it now connects within the last 30-40 files. For now I'll just have to remove the other remaining files and make do.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Downloads not working/stop half way
« Reply #6 on: September 13, 2011, 12:31:28 PM »
If you want... and I don't normally offer this to people, but I can temporarily give you a folder on my server that you can use as FastDL just to test. I'd hate to imagine that it could be your host that is the problem, but I'd like to explore all options.

If you want to do this, send me a PM and I will send you details back via PM. It would just be temporary to see if it works with a different host as the FastDL provider.