| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sun Dec 17, 2006 5:00 pm Post subject: Server startup failed. Exiting |
|
|
Hi,
I'm trying to generate a stream with Xmms+liveice plugin+icecast2server on a Kubuntu 6.06, but when I try to run it:
user@computer:~$ icecast2 -b -c /etc/icecast2/icecast.xml
Starting icecast2
Detaching from the console
Could not create listener socket on port 8000
Server startup failed. Exiting
There is someone that could help me explaining what's wrong!?!?!...
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Dec 17, 2006 10:40 pm Post subject: |
|
|
The message is clear, your icecast is configured to run on port 8000 but it cannot listen for any connections because the system is preventing it. This is typically because something is already listening on that port.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Dec 18, 2006 12:25 am Post subject: |
|
|
hi karlH, thanks for the answer!
...I know that the "message is clear"......but I typed in a shell "netstat -a" and nothing displayed for port 8000.
Sorry for the rendondance of the question, but what can I do, casue I'm not finding a solution
thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Dec 18, 2006 3:26 am Post subject: |
|
|
you are better off with netstat -tnlp | grep 8000
I'm not sure on what other cases a bind would fail on besides something already listening.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Dec 18, 2006 3:56 pm Post subject: |
|
|
Hi Karl,
This is the result:
root@computer:~# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:42027 0.0.0.0:* LISTEN 4229/hpiod
tcp 0 0 127.0.0.1:44469 0.0.0.0:* LISTEN 4232/python
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 5202/cupsd
root@computer:~# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:42027 localhost:57114 ESTABLISHED
tcp 0 0 localhost:57114 localhost:42027 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 6739 @/org/kernel/udev/udevd
unix 2 [ ] DGRAM 13590 @/org/freedesktop/hal/udev_event
unix 3 [ ] DGRAM 16809 /dev/log
unix 3 [ ] STREAM CONNECTED 18305 /tmp/ksocket-user/klauncherNbPSnc.slave-socket
etc......................
typing "netstat -tnlp | grep 8000"... no result:
root@computer:~# netstat -tnlp | grep 8000
root@computer:~#
still off-line
 |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Dec 18, 2006 7:39 pm Post subject: |
|
|
you could try to strace the icecast process (strace icecast2 -c /etc/icecast2/icecast.xml) and see what is returned on the bind syscall. It will be towards the end. Not sure what else could prevent that from happening as it looks like other server apps like cupsd are running ok.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Dec 19, 2006 12:46 am Post subject: |
|
|
hi karl,
I did the command "strace icecast2 -c /etc/icecast2/icecast.xml" and this is the result:
execve("/usr/bin/icecast2", ["icecast2", "-c", "/etc/icecast2/icecast.xml"], [/*
33 vars */]) = 0
uname({sys="Linux", node="computer", ...}) = 0
brk(0) = 0x8070000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7f0d000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
old_mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7f0b000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54399, ...}) = 0
old_mmap(NULL, 54399, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efd000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcurl-gnutls.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2608\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=187688, ...}) = 0
old_mmap(NULL, 187004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7ecf000
old_mmap(0xb7efc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x2d000) = 0xb7efc000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000@\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=109672, ...}) = 0
old_mmap(NULL, 112600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7eb3000
old_mmap(0xb7ece000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x1a000) = 0xb7ece000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\364"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=496092, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7eb2000
old_mmap(NULL, 494980, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7e39000
old_mmap(0xb7eb0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x77000) = 0xb7eb0000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0205\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=142980, ...}) = 0
old_mmap(NULL, 142560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7e16000
old_mmap(0xb7e38000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x22000) = 0xb7e38000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\n\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=14164, ...}) = 0
old_mmap(NULL, 17160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7e11000
old_mmap(0xb7e15000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x3000) = 0xb7e15000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libcom_err.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\10"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=5524, ...}) = 0
old_mmap(NULL, 8580, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb
7e0e000
old_mmap(0xb7e10000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x1000) = 0xb7e10000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000$\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=68804, ...}) = 0
old_mmap(NULL, 77384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7dfb000
old_mmap(0xb7e0b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x10000) = 0xb7e0b000
old_mmap(0xb7e0c000, 7752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY
MOUS, -1, 0) = 0xb7e0c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgnutls.so.12", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\37\1\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=426680, ...}) = 0
old_mmap(NULL, 429580, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7d92000
old_mmap(0xb7df5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY
WRITE, 3, 0x62000) = 0xb7df5000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libtasn1.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\37\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=63656, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7d91000
old_mmap(NULL, 62980, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7d81000
old_mmap(0xb7d90000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0xf000) = 0xb7d90000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgcrypt.so.11", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340>\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=310348, ...}) = 0
old_mmap(NULL, 309868, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7d35000
old_mmap(0xb7d7c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY
WRITE, 3, 0x47000) = 0xb7d7c000
mprotect(0xbfa1f000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0005\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=77176, ...}) = 0
old_mmap(NULL, 84384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7d20000
old_mmap(0xb7d32000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x12000) = 0xb7d32000
old_mmap(0xb7d33000, 6560, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY
MOUS, -1, 0) = 0xb7d33000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgpg-error.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\5\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=10292, ...}) = 0
old_mmap(NULL, 13304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7d1c000
old_mmap(0xb7d1f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x2000) = 0xb7d1f000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libidn.so.11", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\34"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=193380, ...}) = 0
old_mmap(NULL, 192240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7ced000
old_mmap(0xb7d1b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x2e000) = 0xb7d1b000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libspeex.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2601\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=118572, ...}) = 0
old_mmap(NULL, 117436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7cd0000
old_mmap(0xb7cec000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x1c000) = 0xb7cec000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libtheora.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \16\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=233868, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7ccf000
old_mmap(NULL, 232672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7c96000
old_mmap(0xb7cce000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x38000) = 0xb7cce000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libvorbis.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340)\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=163980, ...}) = 0
old_mmap(NULL, 162900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7c6e000
old_mmap(0xb7c87000, 61440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY
WRITE, 3, 0x19000) = 0xb7c87000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libogg.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\22\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=15632, ...}) = 0
old_mmap(NULL, 18644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7c69000
old_mmap(0xb7c6d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x3000) = 0xb7c6d000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libxslt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`p\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=193452, ...}) = 0
old_mmap(NULL, 196552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7c39000
old_mmap(0xb7c68000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x2e000) = 0xb7c68000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\243"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1103284, ...}) = 0
old_mmap(NULL, 1109972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7b2a000
old_mmap(0xb7c33000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY
WRITE, 3, 0x108000) = 0xb7c33000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\v\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=8204, ...}) = 0
old_mmap(NULL, 11016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7b27000
old_mmap(0xb7b29000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x1000) = 0xb7b29000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\26\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=77368, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7b26000
old_mmap(NULL, 80324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7b12000
old_mmap(0xb7b25000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x12000) = 0xb7b25000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@3\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=136368, ...}) = 0
old_mmap(NULL, 138800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0
xb7af0000
old_mmap(0xb7b11000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x20000) = 0xb7b11000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`H\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=86580, ...}) = 0
old_mmap(NULL, 71064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b7ade000
old_mmap(0xb7aed000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0xe000) = 0xb7aed000
old_mmap(0xb7aee000, 5528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY
MOUS, -1, 0) = 0xb7aee000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1232784, ...}) = 0
old_mmap(NULL, 1238972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb79af000
old_mmap(0xb7ad4000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY
WRITE, 3, 0x125000) = 0xb7ad4000
old_mmap(0xb7adb000, 10172, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0xb7adb000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb79ae000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb79ad000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb79ad8e0, limit:1048575, seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, usea
ble:1}) = 0
munmap(0xb7efd000, 54399) = 0
set_tid_address(0xb79ad928) = 5155
rt_sigaction(SIGRTMIN, {0xb7ae23b0, [], SA_SIGINFO}, NULL, = 0
rt_sigaction(SIGRT_1, {0xb7ae2430, [], SA_RESTART|SA_SIGINFO}, NULL, = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION, 0, 20bb1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 2, 0xbfa1f61c, 38, (nil), 0}) =
0
brk(0) = 0x8070000
brk(0x8091000) = 0x8091000
time(NULL) = 1166487833
rt_sigprocmask(SIG_UNBLOCK, [HUP INT PIPE TERM CHLD], NULL, = 0
gettimeofday({1166487833, 324587}, NULL) = 0
open("/etc/resolv.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
f0a000
read(3, "nameserver 192.168.1.1\n", 4096) = 23
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f0a000, 4096) = 0
uname({sys="Linux", node="computer", ...}) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=470, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
f0a000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 470
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f0a000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54399, ...}) = 0
old_mmap(NULL, 54399, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efd000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\33\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=37432, ...}) = 0
old_mmap(NULL, 40680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x
b79a3000
old_mmap(0xb79ac000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x8000) = 0xb79ac000
close(3) = 0
munmap(0xb7efd000, 54399) = 0
open("/etc/hosts", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=246, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
f0a000
_llseek(3, 0, [0], SEEK_CUR) = 0
futex(0xb7c38e3c, FUTEX_WAKE, 2147483647) = 0
stat64("/etc/icecast2/icecast.xml", {st_mode=S_IFREG|0660, st_size=6806, ...}) =
0
stat64("/etc/icecast2/icecast.xml", {st_mode=S_IFREG|0660, st_size=6806, ...}) =
0
stat64("/etc/icecast2/icecast.xml", {st_mode=S_IFREG|0660, st_size=6806, ...}) =
0
open("/etc/icecast2/icecast.xml", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0660, st_size=6806, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
f09000
read(4, "<icecast>\n <limits>\n <"..., 16384) = 6806
read(4, "", 8192) = 0
_llseek(4, 0, [6806], SEEK_CUR) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "<icecast>\n <limits>\n <"..., 4096) = 4096
read(4, "nect>\n </mount>\n\n <mount>\n"..., 4096) = 2710
read(4, "", 4096) = 0
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7f09000, 4096) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(8000), sin_addr=inet_addr("192.168.1.
5")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
f09000
write(1, "Could not create listener socket"..., 46Could not create listener sock
et on port 8000
) = 46
write(1, "Server startup failed. Exiting\n", 31Server startup failed. Exiting
) = 31
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
open("/etc/resolv.conf", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
f08000
read(5, "nameserver 192.168.1.1\n", 4096) = 23
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7f08000, 4096) = 0
uname({sys="Linux", node="computer", ...}) = 0
close(3) = 0
munmap(0xb7f0a000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54399, ...}) = 0
old_mmap(NULL, 54399, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7995000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libnss_dns.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=14744, ...}) = 0
old_mmap(NULL, 17520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x b7f04000
old_mmap(0xb7f08000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW RITE, 3, 0x3000) = 0xb7f08000
close(3) = 0
munmap(0xb7995000, 54399) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54399, ...}) = 0
old_mmap(NULL, 54399, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7995000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libnss_mdns.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\354\26"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=24032, ...}) = 0
old_mmap(NULL, 26988, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x b798e000
old_mmap(0xb7994000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW RITE, 3, 0x5000) = 0xb7994000
close(3) = 0
munmap(0xb7995000, 54399) = 0
munmap(0xb7f09000, 4096) = 0
exit_group(1) = ?
user@computer:~$
...now I'll try to read and understand it...any suggestions will be appreciated  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Dec 19, 2006 12:52 am Post subject: |
|
|
I asked for the bind syscall, which if you did a search you would of seen the following
bind(4, {sa_family=AF_INET, sin_port=htons(8000), in_addr=inet_addr("192.168.1.5")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
which is saying you are trying to bind on not only a port number but an IP address as well. I'm guessing that IP is not valid for your system.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Dec 19, 2006 1:33 am Post subject: |
|
|
sorry man, I'm a dummie and I was not sure about it ...so I resolved post all
Ok, so the problem could be the settings in icecast.xml....
<hostname>localhost</hostname>
<!-- You can use these two if you only want a single listener -->
<!-- <port>8000</port> -->
<!-- <bind-address>192.168.1.5</bind-address> -->
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<bind-address>192.168.1.5</bind-address>
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->
but 192.168.1.5 is the right IP assigned for this computer!?!?!?
thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Dec 19, 2006 12:53 pm Post subject: |
|
|
Your system is preventing it for some reason, if that IP is shown in your ifconfig listing as active then I'm not sure what to suggest.
karl.
Last edited by karlH on Wed Dec 20, 2006 1:44 am; edited 1 time in total |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 20, 2006 12:23 am Post subject: |
|
|
Hi Karl,
...so I resolved to restart everything: reinstalled Kubuntu6.06 + update request + icecast2.3.1-2 from apt-get.
... sudo vi /etc/icecast2/icecast.xml and setup only the tree password: source-pass, relay-pass, admin and pass. and write and quite.
...chown user:group -R /etc/icecast2/
...chown user:group -R /var/log/icecast2/
...chmod u+r -R /etc/icecast2/
...chmod u+rw -R /var/log/icecast2/
and so
user@computer:~$ icecast2 -b -c /etc/icecast2/icecast.xml
Starting icecast2
Detaching from the console
Could not create listener socket on port 8000
Server startup failed. Exiting
but now:
sudo netstat -tnlp
Password:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 13846/icecast2
tcp 0 0 127.0.0.1:34633 0.0.0.0:* LISTEN 4234/hpiod
tcp 0 0 127.0.0.1:59373 0.0.0.0:* LISTEN 4237/python
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4293/cupsd
somethings apeared on port 8000
my icecast.xml config:
<hostname>localhost</hostname>
<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->
strace icecast
bind(4, {sa_family=AF_INET, sin_port=htons(8000), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef9000
write(1, "Could not create listener socket"..., 46Could not create listener socket on port 8000
) = 46
write(1, "Server startup failed. Exiting\n", 31Server startup failed. Exiting
) = 31
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
open("/etc/resolv.conf", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef8000
read(5, "nameserver 192.168.1.1\n", 4096) = 23
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7ef8000, 4096) = 0
any help would be apreciated !!
thanks  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Dec 20, 2006 1:53 am Post subject: |
|
|
the netstat is telling you that icecast2 is running and listening on port 8000 and has a pid of 13846. When you try to run a second icecast the system fails the bind call with
bind(4, {sa_family=AF_INET, sin_port=htons(8000), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use).
You'll notice a couple of things. The error is different, this time it's "Address already in use" whereas before it was "cannot assign requested address". You'll also notice that the 192.168.1.5 IP that was there before is not there now.
The only conclusion is that the IP for your machine/NIC was not 192.168.1.5 and so your system rejected the request to listen on that IP, now it's looking for any IP on port 8000, and now works.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 20, 2006 4:30 am Post subject: |
|
|
work
but explain me please:
-I do icecast2 -c /etc/icecast2/icecast.xml but nothing is showed...nothing neider the user@computer:~$....why?? and I can know that it is running only doing "netstat", but it not show me clients listening the icecast server, how can I do??
-what is "pid 13846"??
...but my ip is 192.168.1.5 and no dhcp is running, however with another pc if I tape http://192.168.1.5:8000 show me the running server.
...now I try to setup xmms+xmms liveice plug:
configure liveice plugin/server:
server address: localhost
port: 8000
encoder pass: the source pass
than enable plugin
ok and play start music
but
with another cpu open the address http://192.168.1.5:8000 and:
-with i-browser, display the admin html page
-with media player/open Url...impossible reproduce file
....but maybe I'm going OT....  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Dec 20, 2006 2:18 pm Post subject: |
|
|
You need the -b or something else to place icecast in the background. The netstat was just a quick way to determine what was listening on the port, you can still read the log files if you wish. pid is short for process identification.
The xmms liveice plugin will only connect to icecast as a shoutcast source client, as that plugin is not being maintained by anyone. The link you posted is only for a web page, you need to specify a mountpoint as well to get a stream.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Dec 20, 2006 5:09 pm Post subject: It's X-mass time, adopt a dummie to open a stream :) |
|
|
so I type:
user@computer:~$ icecast2 -c /etc/icecast2/icecast.xml
Starting icecast2
Detaching from the console
user@computer:~$
and for monitorize the clients listening my icecast server only by the log file(/var/log/icecast2/access.log)
...sorry if I abuse of your patience and knowledge but about xmms and liveice plug...I setuped like:
-encoder: lame 3.21 and above
server/server location
-server address: localhost
-port: 8000
-encoder psw: the icecast source psw
extra icecast only features:
-use X-audiocast header: disable (cause if i able it, give me this error = Gdk ERROR **: X connection to :0.0 broken (explicit kill or server shutdown))
-enable Icecast Title data: disable
-stream mountpoint: stream
-remote dumpfile: empty
apply & ok
select enable plugin
apply & ok
...the music is playing, the icecast is running
with another cpu, open Url by media player...http://192.168.1.5:8000/stream....but give me error to open that stream.....
thank!! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|