Jump to content
SubSpace Forum Network

Recommended Posts

Posted (edited)

According to Snrrrub, his never crashed. So I don't know. I enabled logging on ds1.hlrse.net this time.

 

EDIT: I suppose you could turn it back on? :? Your call.

Edited by L.C.
  • Replies 96
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

According to Snrrrub, his never crashed. So I don't know. I enabled logging on ds1.hlrse.net this time.

 

EDIT: I suppose you could turn it back on? :? Your call.

 

ok its back online at http://ssdir.playsubspace.com/centralonline.pl

let me know if it crashes again, if it does i'll remove it.

I use your auto-restart script for ds.hlrse.net. ;o Here it is incase anyone needs it:

 

#!/bin/sh
cd ~/subdomains/ds
for (( ; ; ))
do
 ./dirserver > logall.txt
done

 

Different ways to execute it:

1) sh dirserver.sh&

2) nohup sh dirserver.sh&

 

If you need to kill it, then do:

ps aux | grep dirserver

Then kill the one with dirserver.sh before killing dirserver

 

It logs any console information to logall.txt -- otherwise remove the " > logall.txt" bit from dirserver.sh.

You need to change Line 2 to match the location on the server to where the binary dirserver and config.txt sit.

Posted (edited)

Nice script, doc flabby.

 

Are there any perl requirements though? I've tryed to run the script on my server and it just gives an 500 Internal Server Error with the following in the error.log;

[Wed Mar 03 00:32:26 2010] [error] [client 145.50.39.12] Premature end of script headers: directoryserversonline.pl

 

Nevermind; I need to install the CGI/Cache.pm module

Edited by Maverick
Posted

Just shows raw text to me....

Could be because I'm on my phone.... idk.... maybe android can't run perl...

Has nothing to do with your phone being able to execute Perl. In fact, the one machine executing Perl is the server itself. The server executes and processes the file before sending it to you.

 

Maybe your phone doesn't have proper support for XML files. :)

Posted (edited)

Maybe your phone doesn't have proper support for XML files. :)

 

That would be my guess too. Chrome just displays the text from the XML if it only displays a XML file.

The XML that is returned by Doc Flabby's script points to a XSL that should be used to make the XML readable. Your phone most likely doesn't format the XML using the XSL file.

Edited by Maverick
Posted

ds1.hlrse.net gives me a bunch of yellow '[?]' things with SSC zones...

 

I'd add that script in the topic, but I don't really know how, to be honest.

Posted (edited)

ds1.hlrse.net gives me a bunch of yellow '[?]' things with SSC zones...

 

I'd add that script in the topic, but I don't really know how, to be honest.

The Perl script is missing a "prioritization function" and should keep the copy and paste line in a fixed order. Ultimately, it should base that order on the directory server with the best recorded uptime, but with non-clustered directory servers like ds1.hlrse.net placed last.

 

@Samapico

Remove everything in your list entirely, then click OK, then click on ZONES (again). Download the list again. The list should be rather small.

 

The [?], in this scenario, simply means that ds1.hlrse.net has no idea and does not recognize those zones as zones (because they do not broadcast to ds1.hlrse.net). This will only happen if you already have zones in your list that do not broadcast to the directory server you are downloading, because the directory server (aside from ss://) will tell you whether a zone has a description, IP, port, name or status update when you download a list (it compares the list you download to the list you already have).

Edited by L.C.
Posted

Stop polluting the topic, Xog.

 

The Perl script is missing a "prioritization function" and should keep the copy and paste line in a fixed order. Ultimately, it should base that order on the directory server with the best recorded uptime, but with non-clustered directory servers like ds1.hlrse.net placed last.

That's way too advanced (and probably unnecessary) for such a simple script as this blum.gif

The order is already specified in the configuration of the Perl script so you can make your own order if necessary.

Posted

Stop polluting the topic, Xog.

 

The Perl script is missing a "prioritization function" and should keep the copy and paste line in a fixed order. Ultimately, it should base that order on the directory server with the best recorded uptime, but with non-clustered directory servers like ds1.hlrse.net placed last.

That's way too advanced (and probably unnecessary) for such a simple script as this blum.gif

The order is already specified in the configuration of the Perl script so you can make your own order if necessary.

Actually the order appears to change for every execution of the script. Anyway, ds1.hlrse.net should not be the first one, but at least the last. Otherwise that kind of defeats the purpose of that copy-and-paste line (ds1.hlrse.net has a very very small list compared to all the others).
Posted (edited)

Stop polluting the topic, Xog.

 

The Perl script is missing a "prioritization function" and should keep the copy and paste line in a fixed order. Ultimately, it should base that order on the directory server with the best recorded uptime, but with non-clustered directory servers like ds1.hlrse.net placed last.

That's way too advanced (and probably unnecessary) for such a simple script as this blum.gif

The order is already specified in the configuration of the Perl script so you can make your own order if necessary.

Actually the order appears to change for every execution of the script. Anyway, ds1.hlrse.net should not be the first one, but at least the last. Otherwise that kind of defeats the purpose of that copy-and-paste line (ds1.hlrse.net has a very very small list compared to all the others).

 

It does acctually randomise the order, you can removed this "feature" by commenting out the line

fisher_yates_shuffle(\@ssdirs);

Edited by doc flabby
Posted

Would be better (imo) to just have the active ones appear in whatever order they are defined; keep the most used ones at the beginning

 

 

And I split the topic... whatever Xog was rambling about, he can now do it in the spam lounge

Posted
Does anyone have any idea why SSCV Dragonball Z keeps going back and forth between its correct zone name and description to a zone name of "Unknown" and a description of "None"? ds1.hlrse.net isn't doing this..
Posted (edited)

Would be better (imo) to just have the active ones appear in whatever order they are defined; keep the most used ones at the beginning

Yes, the directory servers that most zones have configured should be first. SSCentral.sscuservers.net is most likely the most used one, unfortunately it's down for quite some time now.

 

 

This is my list;

my @ssdirs = 
   (   'sscentral.sscuservers.net',
 'sscentral.com',
       'ssdir.playsubspace.com',
       'nanavati.net',
       'ds1.hlrse.net',
       'ds1.krslynx.com',
       'ds.hlrse.net',
       'dirserver.ssnecentral.net'
       );

 

 

Samapico, to add the output of the script into the Directory Servers topic, you need to add an HTML iframe into it somehow. On the TW Forums, I've used a custom BBCode for this purpose. This is the HTML code I've used on the TW forums:

<iframe src="http://directoryservers.sshq.net/" title="Online Directory Servers" width="100%" height="400px" frameborder="0"></iframe>

If Invision Board allows posting HTML in a single topic while dissallowing it in the rest of the forum, you probably won't need a custom tag.

 

 

PS.: I've installed the script at stats.sshq.net so I can modify it later to use the population statistics to determine if a directory server is online or not.

Edited by Maverick
Posted (edited)

sscentral.com ds.hlrse.net ds1.krslynx.com nanavati.net ssdir.playsubspace.com ds1.hlrse.net

 

I checked each one individually by trying one of them, hitting cancel or OK, then clicking on Zones, then trying the next one. I am looking at SSCV Dragonball Z zone here:

 

sscentral.com = Unknown (note: using Snrrrub's directory server v1.1)

ds.hlrse.net = Unknown (note: using Snrrrub's directory server v1.1)

ds1.krslynx.com = Unknown (note: unknown if using v1.0 or v1.1 of Snrrrub's directory server)

nanavati.net = SSCV Dragonball Z (note: using Snrrrub's directory server v1.1)

ssdir.playsubspace.com = SSCV Dragonball Z (note: uses doc flabby's directory server Central)

ds1.hlrse.net = SSCV Dragonball Z (note: has UpstreamServers disabled via ZoneRefreshSeconds set to -1; the only win32 server in this list; using Snrrrub's directory server v1.1)

 

Not sure what to make of it. ;)

 

[Directory]
IP=sscentral.com,sscentral.sscuservers.net,ssdir.playsubspace.com,nanavati.net,ds1.krslynx.com,ds.hlrse.net,ds1.hlrse.net
Description=ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.
Port=4991

Edited by L.C.
Posted (edited)

Hey L.C.,

 

I've tryed the same directoryservers to query for SSCV Dragonball Z using my own directory client;

 

IP		PORT	POP	SCORING	VERSION	TIMESTAMP	NAME			DESCRIPTION
============================================================================================================================================
sscentral.com
74.86.4.98	21000	4	257	134	1267777114146	SSCV Dragonball Z	ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.

ds.hlrse.net
74.86.4.98	21000	4	257	134	1267777234557	SSCV Dragonball Z	ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.

nanavati.net
74.86.4.98	21000	1	257	134	1267777328487	SSCV Dragonball Z	ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.

ds1.krslynx.com
74.86.4.98	21000	4	1	134	1267777278111	SSCV Dragonball Z	ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.

ssdir.playsubspace.com
74.86.4.98	21000	1	1	134	1267777418076	SSCV Dragonball Z	ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.

ds1.hlrse.net
74.86.4.98	21000	1	1	134	1267777461621	SSCV Dragonball Z	ss://ds1.hlrse.net Fast pace action with intense battles in a multitude of carefully constructed bases. Fight with your team to capture the seven dragonballs and defend your base to the death with your friends.

 

I see no problem with the zone's directory entries. (My directory client seems to have problem interpreting the scoring boolean though.)

 

It's possible that the Continuum client doesn't receive the zone because the description contains "ss://ds1.hlrse.net" . The client will try to resolve the IP of the zone by resolving the DNS name after "ss://" . More information here, here and here

Edited by Maverick

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...