Spads can take up to 2-3 hours on inital load

Spads can take up to 2-3 hours on inital load

SpringRTS Perl Autohost for Dedicated Server

Moderators: Moderators, Lobby Developers, SPADS AutoHost

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Spads can take up to 2-3 hours on inital load

Post by Beherith »

Is it normal for spads to take 2-3 hours for first load when there are about 60 maps present and just a single game.
Do I somehow have to clear out pr-downloader versions of old games versions?
User avatar
bibim
Lobby Developer
Posts: 953
Joined: 06 Dec 2007, 11:12

Re: Spads can take up to 2-3 hours on inital load

Post by bibim »

No it's not normal.
Can you find which step exactly is taking that long by taking a look at SPADS log file (spads.log) ?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Spads can take up to 2-3 hours on inital load

Post by Beherith »

Also, what should loglevel be set to? my spads.log files are getting very large :D


lobbyInterfaceLogLevel:5
autoHostInterfaceLogLevel:5
updaterLogLevel:5
spadsLogLevel:5
simpleEventLogLevel:5
logChanChat:0
logChanJoinLeave:0
logBattleChat:1
logBattleJoinLeave:1
logGameChat:1
logGameJoinLeave:1
logGameServerMsg:1
logPvChat:1


20201104093129 - NOTICE - [SPADS] Initializing SPADS 0.12.7a
20201104093129 - DEBUG - [SpadsUpdater] Downloading file from "http://planetspads.free.fr/spads/reposi ... ckages.txt" to "packages.txt"...
20201104093129 - DEBUG - [SpadsUpdater] File downloaded from "http://planetspads.free.fr/spads/reposi ... ckages.txt" to "packages.txt" (HTTP status: 200)
20201104093129 - NOTICE - [SPADS] Loading Spring archives using unitsync library version 104.0.1-1553-gd3c0012 maintenance ...
20201104093426 - NOTICE - [SPADS] Caching Spring map info... 0/68 (0%)
20201104093445 - NOTICE - [SPADS] Caching Spring map info... 68/68 (100%)
20201104095336 - NOTICE - [SPADS] Initializing SPADS 0.12.7a
20201104095336 - DEBUG - [SpadsUpdater] Downloading file from "http://planetspads.free.fr/spads/reposi ... ckages.txt" to "packages.txt"...
20201104095336 - DEBUG - [SpadsUpdater] File downloaded from "http://planetspads.free.fr/spads/reposi ... ckages.txt" to "packages.txt" (HTTP status: 200)
20201104095337 - NOTICE - [SPADS] Loading Spring archives using unitsync library version 104.0.1-1553-gd3c0012 maintenance ...
20201104095604 - NOTICE - [SPADS] Caching Spring map info... 0/68 (0%)
20201104095623 - NOTICE - [SPADS] Caching Spring map info... 68/68 (100%)
20201104104817 - NOTICE - [SPADS] Initializing SPADS 0.12.7a
20201104104817 - DEBUG - [SpadsUpdater] Downloading file from "http://planetspads.free.fr/spads/reposi ... ckages.txt" to "packages.txt"...
20201104104817 - DEBUG - [SpadsUpdater] File downloaded from "http://planetspads.free.fr/spads/reposi ... ckages.txt" to "packages.txt" (HTTP status: 200)
20201104104818 - NOTICE - [SPADS] Loading Spring archives using unitsync library version 104.0.1-1637-g4b087ca BAR ...
20201104105057 - NOTICE - [SPADS] Caching Spring map info... 0/68 (0%)
20201104105116 - NOTICE - [SPADS] Caching Spring map info... 68/68 (100%)
20201104130937 - WARNING - [SPADS] Spring archives loading process took 2 hours, 21 minutes and 19 seconds
20201104130937 - NOTICE - [SPADS] Spring server mode: dedicated
User avatar
bibim
Lobby Developer
Posts: 953
Joined: 06 Dec 2007, 11:12

Re: Spads can take up to 2-3 hours on inital load

Post by bibim »

Beherith wrote: 04 Nov 2020, 18:29 Also, what should loglevel be set to? my spads.log files are getting very large :D
For normal operation, you can keep the default log level which is 4 (information).
Beherith wrote: 04 Nov 2020, 18:29lobbyInterfaceLogLevel:5
autoHostInterfaceLogLevel:5
updaterLogLevel:5
spadsLogLevel:5
simpleEventLogLevel:5
Here you are using the log level 5 (debug), which is ok if you want to investigate temporarily a problem, but not really good for long term usage in production as it produces very verbose outputs as you noticed.

According to the following line from your log, the culprit here is the unitsync library:

Code: Select all

20201104130937 - WARNING  - [SPADS] Spring archives loading process took 2 hours, 21 minutes and 19 seconds
The archives loading process only consists in unitsync library calls, so I guess something in your Spring archives directories makes unitsync run very very slow on first scan. You can try to take a look at the unitsync.log file which might contain more info, but I see nothing wrong at SPADS side for now.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Spads can take up to 2-3 hours on inital load

Post by Beherith »

Thanks bibim, ill take a look!
Post Reply

Return to “SPADS AutoHost”