Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Starting server on CentOS 5.5

For all your hosting needs.

Starting server on CentOS 5.5

Postby rotacak » Mon Jan 09, 2012 1:54 pm

Hi, I compiled server on CentOS 5.5, but when I run server, this happen:
Code: Select all
[advgoon@vm1122 feature_server]$ python run.py
('from' command disabled - missing pygeoip)
Connecting to IRC server...
2012-01-09 13:48:24+0100 [-] Log opened.
2012-01-09 13:48:24+0100 [-] Traceback (most recent call last):
2012-01-09 13:48:24+0100 [-]   File "run.py", line 977, in <module>
2012-01-09 13:48:24+0100 [-]     protocol_instance = protocol_class(interface, config)
2012-01-09 13:48:24+0100 [-]   File "/home/advgoon/ace_of_spades/pyspades/feature_server/scripts/savemap.py", line 11, in __init__
2012-01-09 13:48:24+0100 [-]     protocol.__init__(self, *arg, **kw)
2012-01-09 13:48:24+0100 [-]   File "/home/advgoon/ace_of_spades/pyspades/feature_server/scripts/disco.py", line 33, in __init__
2012-01-09 13:48:24+0100 [-]     protocol.__init__(self, *arg, **kw)
2012-01-09 13:48:24+0100 [-]   File "run.py", line 606, in __init__
2012-01-09 13:48:24+0100 [-]     if not self.set_map_rotation(config['maps']):
2012-01-09 13:48:24+0100 [-]   File "run.py", line 673, in set_map_rotation
2012-01-09 13:48:24+0100 [-]     self.advance_rotation()
2012-01-09 13:48:24+0100 [-]   File "run.py", line 644, in advance_rotation
2012-01-09 13:48:24+0100 [-]     self.set_map_name(map)
2012-01-09 13:48:24+0100 [-]   File "run.py", line 660, in set_map_name
2012-01-09 13:48:24+0100 [-]     self.update_format()
2012-01-09 13:48:24+0100 [-]   File "run.py", line 696, in update_format
2012-01-09 13:48:24+0100 [-]     self.motd = self.format_lines(config.get('motd', None))
2012-01-09 13:48:24+0100 [-]   File "run.py", line 717, in format_lines
2012-01-09 13:48:24+0100 [-]     lines.append(encode(self.format(line, extra)))
2012-01-09 13:48:24+0100 [-]   File "run.py", line 709, in format
2012-01-09 13:48:24+0100 [-]     return value % format_dict
2012-01-09 13:48:24+0100 [-] ValueError: incomplete format

Any ideas what is wrong?
Last edited by rotacak on Thu Jan 26, 2012 2:37 pm, edited 1 time in total.
rotacak
Member
 
Posts: 7
Joined: Mon Jan 09, 2012 1:27 pm

Re: Startung server on CentOS 5.5

Postby Szuwar » Mon Jan 09, 2012 4:38 pm

You do not compile python scripts.

To solve this problem we might need your python version (python --version) and pyspades revision you're using.
User avatar
Szuwar
Member
 
Posts: 31
Joined: Thu Dec 29, 2011 6:20 pm

Re: Startung server on CentOS 5.5

Postby rotacak » Mon Jan 09, 2012 6:47 pm

I compiled everything (after many hours, finally without errors). How do I recieve revision number? I downloaded it three days ago. And python version is 2.7.1.

How do I recompile everything again? Something like "make clean" in C?
rotacak
Member
 
Posts: 7
Joined: Mon Jan 09, 2012 1:27 pm

Re: Startung server on CentOS 5.5

Postby Szuwar » Mon Jan 09, 2012 10:25 pm

There is nothing like make clean with pyspades. The best choice here is to download again latest revision via
Code: Select all
hg clone https://code.google.com/p/pyspades/
(You need mercurial to do so).


Did you make any changes to run.py?
User avatar
Szuwar
Member
 
Posts: 31
Joined: Thu Dec 29, 2011 6:20 pm

Re: Startung server on CentOS 5.5

Postby rotacak » Tue Jan 10, 2012 6:33 pm

I downloaded it again, compiled again and it works now! But problem was in config.txt, not sure where, but when I used old config.txt, same error appeared. Maybe some bad characters in MOTD or somewhere else.

Anyway, thanx for help.
rotacak
Member
 
Posts: 7
Joined: Mon Jan 09, 2012 1:27 pm


Return to Server



Who is online

Users browsing this forum: No registered users and 3 guests

cron