CHROOTing Nexuiz 2.0

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

CHROOTing Nexuiz 2.0

Postby tli » Sun Jun 18, 2006 6:52 am

Hi Folks,

i´ve got some problems running Nexuiz 2.0 in CHROOT-environment. It seems to me, that Nexuiz can´t load libcurl.so.3, so I copied this file to different direcories (/lib, /usr/lib, /nexuiz) inside the CHROOT-environment, but the error still persists.

When i don´t use the CHROOT-environment, that error message doesn´t appaer.

Is there anybody out there running Nexuiz in CHROOT-jail?

Thanks in Advance, tli!
(...my native language is german, please forgive me :-))
tli
Newbie
 
Posts: 4
Joined: Sun Jun 18, 2006 6:42 am

Postby Qantourisc » Sun Jun 18, 2006 7:36 am

so you do : chroot /opt/games/Nexuiz /bin/bash ? or some other form please ? Also consider installing the correct libs inside the chroot. (If you are doing this for 64/32 bit issues, nexuiz compiles and runs fine in 64bit)
Qantourisc
Alien
 
Posts: 130
Joined: Fri Jun 16, 2006 5:44 am

Postby tli » Sun Jun 18, 2006 8:12 am

Qantourisc wrote:so you do : chroot /opt/games/Nexuiz /bin/bash ? or some other form please ? Also consider installing the correct libs inside the chroot. (If you are doing this for 64/32 bit issues, nexuiz compiles and runs fine in 64bit)


Hi Qantourisc,

in case i don´t understand your answer, here´s my setup:
- added user and group nexuiz to the linux-host
- created directory /home/nexuiz
- created directories bin, etc, home, lib, usr/lib inside /home/nexuiz
- copied resolv.cfg and passwd to /home/nexuiz/etc (stripped down passwd-file to one entry for user nexuiz)
- unzipped nexuiz-20.zip to /home/nexuiz.20 and created symlink to /home/nexuiz/nexuiz (data, Docs, sources, Nexuiz.app, ...)
- did ldd on 32-bit dedicated server binary-file and copied needed libs from host to /home/nexuiz/lib
- also copied some binarys (su, bash, cp) to /home/nexuiz/bin
- tried to start nexuiz ded. server
(error message: Trying to load library... "libcurl.so.3" "./libcurl.so.3" - failed.)
- copied libcurl.so.3 to /home/nexuiz/lib and /home/nexuiz/usr/lib
- also copied libcurl.so.3 to /home/nexuiz/nexuiz


BREAK - BREAK - BREAK

While posting i´ve figured out, that some files where still missing. The server seems to work now.

I´ll be back later to post my final answer "How to set up Nexuiz in CHROOT".

Thanks.
tli
Newbie
 
Posts: 4
Joined: Sun Jun 18, 2006 6:42 am

Postby tChr » Sun Jun 18, 2006 10:58 am

I am running the nexuiz server as a regular user and I have the same message :) alltyhough I'm not sure libcurl is installed though XD
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Postby tli » Sun Jun 18, 2006 12:09 pm

Sorry, i cannot edit my previous post: :sad:

tli wrote:- added user and group nexuiz to the linux-host
- created directory /home/nexuiz
- created directories bin, etc, home, lib, usr/lib inside /home/nexuiz
- copied resolv.cfg and passwd to /home/nexuiz/etc (stripped down passwd-file to one entry for user nexuiz)
- unzipped nexuiz-20.zip to /home/nexuiz/nexuiz.20 and created symlink to /home/nexuiz/nexuiz (data, Docs, sources, Nexuiz.app, ...)
- did ldd on 32-bit dedicated server binary-file and copied needed libs from host to /home/nexuiz/lib
- also copied some binarys (su, bash, cp) to /home/nexuiz/bin
- tried to start nexuiz ded. server
(error message: Trying to load library... "libcurl.so.3" "./libcurl.so.3" - failed.)
- copied libcurl.so.3 to /home/nexuiz/lib and /home/nexuiz/usr/lib
- also copied libcurl.so.3 to /home/nexuiz/nexuiz



:arrow: My setup is based on this guide setting up an dedicated server for Wolfenstein: Enemy Territory.

That error message concerning libcurl.so.3 still appears, but the server is running fine!

Does anybody (development team) know, where Nexuiz is looking for this lib?

:arrow: Please visit my server @ feierabendsoldiers.de:26000 (running in public mode from thursday 04:00 am till wednesday 04:00 am (all times GMT+1) and send me your comments @ ICQ 145656139.
tli
Newbie
 
Posts: 4
Joined: Sun Jun 18, 2006 6:42 am

Postby esteel » Sun Jun 18, 2006 12:23 pm

I think you do not really need this lib on the server. The client uses libcurl for the content download.. Suppose its an error that the server also needs this lib. After all from what i understand the server just tells the client a url were he can download the stuff.
Last edited by esteel on Thu Aug 31, 2006 8:39 pm, edited 1 time in total.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Qantourisc » Sun Jun 18, 2006 12:28 pm

You could ofcours safe yourself a lot of trouble and just do mount -o bind /lib /home/nexuiz/lib :)
Qantourisc
Alien
 
Posts: 130
Joined: Fri Jun 16, 2006 5:44 am

Postby KadaverJack » Sun Jun 18, 2006 5:28 pm

tli wrote:Does anybody (development team) know, where Nexuiz is looking for this lib?

Just like any other linux app it searches in the paths listed in /etc/ld.so.conf or LD_LIBRARY_PATH. Have you tried
Code: Select all
export  LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/nexuiz/lib"
?
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby tli » Mon Jun 19, 2006 2:53 pm

KadaverJack wrote:
tli wrote:Does anybody (development team) know, where Nexuiz is looking for this lib?

Just like any other linux app it searches in the paths listed in /etc/ld.so.conf or LD_LIBRARY_PATH. Have you tried
Code: Select all
export  LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/nexuiz/lib"
?


Well, i created the file /etc/ld.so.conf with only one line containing /lib and copied that missing file libcurl.so.3 to /lib of my CHROOT-jail, but the error still persist.

Cause NEXUIZ is running fine, i won´t spend more time on this error message.

Keep fragging!
tli
Newbie
 
Posts: 4
Joined: Sun Jun 18, 2006 6:42 am

Re: CHROOTing Nexuiz 2.0

Postby divVerent » Mon Jun 19, 2006 10:10 pm

tli wrote:Hi Folks,

i´ve got some problems running Nexuiz 2.0 in CHROOT-environment. It seems to me, that Nexuiz can´t load libcurl.so.3, so I copied this file to different direcories (/lib, /usr/lib, /nexuiz) inside the CHROOT-environment, but the error still persists.

When i don´t use the CHROOT-environment, that error message doesn´t appaer.


libcurl also loads other libraries. In my case:

Code: Select all
$ ldd /usr/local/lib/libcurl.so
/usr/local/lib/libcurl.so:
        libidn.so.16 => /usr/local/lib/libidn.so.16 (0x28169000)
        libssl.so.4 => /usr/lib/libssl.so.4 (0x28198000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x281c1000)
        libz.so.3 => /lib/libz.so.3 (0x282a2000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x282b1000)


But if you are talking about chrooting, you probably are referring to a dedicated server. On a dedicated server, the library is only needed for the "curl" console command to work. Content download information is sent by the server in any case, so it shouldn't matter.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Next

Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron