[solved]armagetronad dedicated 0.2.8 is trying to open a ...

Post here if you need help setting up your server, etc.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

[solved]armagetronad dedicated 0.2.8 is trying to open a ...

Post by epsy »

hi

running 0.2.8.2.1 on gentoo linux 2006.1(without ebuild)

when i launch armagetronad using

Code: Select all

/etc/init.d/armagetronad-dedicated-0.2.8.2.1 start
he is trying to open a display...but he cant

why and how to solve it?

form the log

Code: Select all

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Terminated
Stopping server, it is restarting too quickly.
rm: ne peut enlever `/var/run/armagetronad-dedicated-starter.pid': Permission no
n accordée
rm: ne peut enlever `/var/run/armagetronad-dedicated.pid': Permission non accord
ée
Last edited by epsy on Thu Nov 09, 2006 10:31 pm, edited 2 times in total.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

How did you build and install? Did you start from a binary or the source? On first glance, it seems like it is a client pretending to be a server; a yet unknown build error could cause that.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

so i recompiled it with

Code: Select all

./configure --disable-glout --enable-games --prefix=/usr/local --enable-multiver --without-x
also showed me that the

Code: Select all

Options selected are:
     Build Regular Game Client: false
     Build Dedicated Server: true
     Build Master Server: false

Installation options:
     Prefix: /usr/local

     Build with Krawall authentication support (server): no
     Init scripts will be installed in  : /etc/init.d
     Dynamic data will be kept in       : /var/games/armagetronad-dedicated
     PID files will be kept in          : /var/run
     Log files will be kept in          : /var/log
     Add user to run server             : yes

     Binaries will be installed in      : ${prefix}/bin
     Static data will be installed in   : ${prefix}/share/games/armagetronad-ded
icated
     Configuration will be installed in : ${prefix}/etc/games/armagetronad-dedic
ated
     Documentation will be installed in : ${datadir}/doc/games/armagetronad-dedi
cated
     Link to configuration will go to   : /etc/armagetronad-dedicated
     Music support: no
     Build with Krawall authentication support: no
     Use dirty SDL initialization: no
     Call sysinstall: yes
     Generate uninstall: yes
     Allow multiple versions: yes (slot "0.2.8.2.1")
     Use custom memory manager: no
     Debug level: 0
     Code level: 0
and then in log :

Code: Select all

cat /var/log/armagetronad.log
/var/games/armagetronad-dedicated /home/epsy/armagetronad-0.2.8.2.1
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
:roll: :?
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Just out of interest, what happens if you start the server manually?

Code: Select all

DISPLAY= armagetronad-dedicated
There's no place like ::1
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

o damn
it open me...hm a window with armagetronad...even with --without-x and -disable-glout at ./configure time ...
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Not sure, I never knew about the --enable-multiver switch, it could be that it broke over time and noone noticed.
Could you try without it and just use --prefix if you need multiple versions?
There's no place like ::1
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

And please post the contents of the file config.h in your build directory. Something very strange is happening for you. I tested your exact configure command line and nothing unusual happened.

Another thing to try: in your server build directory, do

Code: Select all

make run
To eliminate the possibility that the executable that is installed on your system comes from somewhere else.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

config.h:

Code: Select all

/* config.h.  Generated by configure.  */
/* config.h.in.  Generated from configure.ac by autoheader.  */

/* #undef AIX */

/* #undef BEOS */

#define BR_PTHREAD 1

/* #undef CAUTION_WALL */

#define DEDICATED 

/* #undef DIRTY */

#define DONTUSEMEMMANAGER 1

#define ENABLE_BINRELOC 

#define HAVE_ATAN2F 1

#define HAVE_COSF 1

#define HAVE_EXPF 1

#define HAVE_FABSF 1

#define HAVE_FLOORF 1

/* #undef HAVE_INTTYPES_H */

/* #undef HAVE_LIBJPEG */

/* #undef HAVE_LIBPNG */

#define HAVE_LIBPTHREAD 1

/* #undef HAVE_LIBSDL */

/* #undef HAVE_LIBSDL_IMAGE */

/* #undef HAVE_LIBSDL_MIXER */

/* #undef HAVE_LIBWSOCK32 */

/* #undef HAVE_LIBX11 */

#define HAVE_LIBXML2 1

/* #undef HAVE_LIBXML2_WO_PIBCREATE */

/* #undef HAVE_LIBZ */

#define HAVE_LOGF 1

/* #undef HAVE_MEMORY_H */

/* #undef HAVE_SDL_IMAGE_H */

/* #undef HAVE_SDL_SDL_IMAGE_H */

#define HAVE_SELECT 1

#define HAVE_SINF 1

#define HAVE_SOCKLEN_T 1

#define HAVE_SQRTF 1

/* eeehhhh???? ->  */

/* #undef HAVE_STDINT_H */

/* #undef HAVE_STDLIB_H */

/* #undef HAVE_STRINGS_H */

/* #undef HAVE_STRING_H */

/* #undef HAVE_SYS_STAT_H */

/* #undef HAVE_SYS_TYPES_H */

#define HAVE_TANF 1

#define HAVE_UNISTD_H 1

#define HAVE_WMEMSET 1

/* #undef KRAWALL */

/* #undef KRAWALL_SERVER */

#define LINUX 1

/* #undef MACOSX */

#define PACKAGE "armagetronad"

#define PACKAGE_BUGREPORT ""

#define PACKAGE_NAME "Armagetronad"

#define PACKAGE_STRING "Armagetronad 0.2.8.2.1"

#define PACKAGE_TARNAME "armagetronad"

#define PACKAGE_VERSION "0.2.8.2.1"

#define PREFIX "/usr/local"

#define PROGDIR_SUFFIX "-0.2.8.2.1"

#define PROGNAME "armagetronad-dedicated"

#define PROGNAMEBASE "armagetronad"

/* #undef SOLARIS */

/* #undef STDC_HEADERS */

#define TOP_SOURCE_DIR "."

#define VERSION "0.2.8.2.1"

/* #undef WIN32 */

/* Define to 1 if the X Window System is missing or not being used. */
#define X_DISPLAY_MISSING 1

/* #undef const */
with make run i have a window too

@wrtlprnft: will try that
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Ok, the important line there is the "#define DEDICATED", that should disable the graphics. Unless for some reason another config.h is included instead. Could you, in the build directory, do

Code: Select all

locate config.h
touch src/gArmagetron.cpp
make
and give the output of that?

I wonder where the /* eeehhhh???? -> */ comes from. It's not in the 0.2.8 sources I've got.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

Code: Select all

locate config.h  | grep /home/epsy/armagetronad-0.2.8.2.1
/home/epsy/armagetronad-0.2.8.2.1/src/doc/config.html
/home/epsy/armagetronad-0.2.8.2.1/src/doc/config.html.dep
/home/epsy/armagetronad-0.2.8.2.1/src/doc/config.html.m4
/home/epsy/armagetronad-0.2.8.2.1/src/win32/config.h
/home/epsy/armagetronad-0.2.8.2.1/src/win32_ded/config.h
/home/epsy/armagetronad-0.2.8.2.1/src/macosx/dedicated/config.h
/home/epsy/armagetronad-0.2.8.2.1/src/macosx/client/config.h
/home/epsy/armagetronad-0.2.8.2.1/config.h
/home/epsy/armagetronad-0.2.8.2.1/config.h.in
output from mak without making all clean:

Code: Select all

make
make  all-recursive
make[1]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1'
Making all in src
make[2]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src'
Making all in first
make[3]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src/first'
make[3]: Rien à faire pour « all ».
make[3]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src/first'
Making all in doc
make[3]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src/doc'
Making all in net
make[4]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src/doc/net'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src/doc/net'
make[4]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src/doc'
make[4]: Rien à faire pour « all-am ».
make[4]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src/doc'
make[3]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src/doc'
Making all in thirdparty
make[3]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src/thirdparty'
make[4]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src/thirdparty'
make[4]: Rien à faire pour « all-am ».
make[4]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src/thirdparty'
make[3]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src/thirdparty'
make[3]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/src'
make[3]: Rien à faire pour « all-am ».
make[3]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src'
make[2]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/src'
Making all in resource
make[2]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/resource'
make[2]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/resource'
Making all in batch
make[2]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/batch'
make[2]: Rien à faire pour « all ».
make[2]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/batch'
Making all in config
make[2]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/config'
make[2]: Rien à faire pour « all ».
make[2]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/config'
Making all in desktop
make[2]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1/desktop'
make[2]: Rien à faire pour « all ».
make[2]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1/desktop'
make[2]: Entering directory `/home/epsy/armagetronad-0.2.8.2.1'
make[2]: Rien à faire pour « all-am ».
make[2]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1'
make[1]: Leaving directory `/home/epsy/armagetronad-0.2.8.2.1'
or you want that i make clean before?
I wonder where the /* eeehhhh???? -> */ comes from. It's not in the 0.2.8 sources I've got.
i was just surprised because it's saying i dont have the standart libs...
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

did you enter the touch command? The intent of the make invocation would have been to get the actual compilation flags so we can see where files are included from. If touching doesn't help, yes, please do a make clean.

And the purpose of the locate command was to get a list of all config.h files that may have been included. I didn't realize the list could get that long :) Since you obviously know what you're doing, could you do the check yourself? Look for the -I compiler flags in the make output and look for config.h files there.

Another thing to try: look for a random #ifndef DEDICATED block in the sources and add an error in there. Check whether it compiles. In a working setup, it should; for you, if everything we think we know actually is true, it should fail.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

i just found a little problem :lol:

gArmagetron.cpp is empty
so all values are to default i suppose...sounds like a download corruption...i will try with a new download...
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Err, no, that's the main program. If it's empty, nothing should work at all.

Ah, my bad :) The path to touch should have been src/tron/gArmagetron.cpp . src/gArmagetron.cpp shouldn't exist, you only created it just now.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

it seems to work now :)

i've just a problem...
in the log

Code: Select all

[0] sn_SetNetState: can't setup listening sockets. Reason given:
[0] Permanent network error: Unable to bind to 82.227.65.72:4534 because that is not an address of the local machine.
you can try to connect to it...it works... but he shjows me that warning
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Ah, starting from scratch fixed it? I just remembered that the 0.2.8.1 tarball doesn't ship with dependency tracking by default, so if you configure your build directory first for the client, then build, then reconfigure for the server, it won't get done properly.

To the problem at hand, you can either ignore it, or look for appearances of SERVER_IP in your config files. Remove them, they are only required if your server can listen to multiple IPs and you want to select a specific one.

Another possible reason, although I don't think AA is affected by it any more, could be a strange name configuration. At least in the past, AA would try to bind to whatever IP $HOSTNAME resolved to. So $HOSTNAME should resolve to your server's IP.
Post Reply