Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Résolu]Icecast sous Linux après changement du disque dur

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Forum Francophone
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sun Jan 06, 2008 12:02 pm    Post subject: [Résolu]Icecast sous Linux après changement du disque dur Reply with quote

Bonjour,

Il y a quelques semaines, je touchais au but : je pouvais accéder à l'interface d'administration
de icecast, j'avais réussi à installer ices et j'étudiais son fichier de configuration...

http://icecast.imux.net/viewtopic.php?t=4174

C'est à ce moment que des problèmes matériels eurent raison de mon serveur.
Après le changement du disque dur, je suis reparti de zéro et aujourd'hui voici mon problème :

Code:
$ icecast -c /etc/icecast.xml
WARNING: Cannot change server root unless running as root.
FATAL: could not open error logging (/var/log/icecast/error.log): Permission denied
FATAL: could not open access logging (/var/log/icecast/access.log): Permission denied
FATAL: Could not start logging


Du coup, j'essaye en root :

Code:
# icecast -c /etc/icecast.xml
Changed root successfully to "/share/icecast".
Changed groupid to 102.
Changed userid to 1001.
FATAL: could not open error logging (/var/log/icecast/error.log): No such file or directory
FATAL: could not open access logging (/var/log/icecast/access.log): No such file or directory
FATAL: Could not start logging


icecast ne se lance pas malgré ces opérations précédemment effectuées :

Code:
# mkdir /var/log/icecast
# chmod 775 /var/log/icecast
# useradd icecast
# groupadd icecast
# chown icecast:icecast /var/log/icecast


Quelques extraits de icecast.xml :

Code:
<basedir>/share/icecast</basedir>

<logdir>/var/log/icecast</logdir>
<webroot>/share/icecast/web</webroot>
<adminroot>/share/icecast/admin</adminroot>

<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>

<chroot>1</chroot>
<changeowner>
<user>icecast</user>
<group>icecast</group>
</changeowner>


Je ne vois pas d'où peut venir le problème.
Merci d'avance pour votre aide


Last edited by Anonymous on Fri Feb 01, 2008 1:43 pm; edited 1 time in total
Back to top
Anonymous
Guest





PostPosted: Sun Jan 06, 2008 9:15 pm    Post subject: Reply with quote

En y regardant de plus près, je me suis aperçu que la version téléchargée ne correspond pas à celle que j'avais eu le plaisir de voir fonctionner fin 2007.
Icecast ne figurant (entre autre) dans aucun répertoire /share, je viens de le désinstaller...
Voici à présent icecast2 et ices2 sur un autre ordinateur du réseau Ubuntu-Lite (mini-dapper).
Je vais voir ce que ça donne Rolling Eyes
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Sun Jan 06, 2008 10:47 pm    Post subject: Reply with quote

normalement, sur le Debian et Ubuntu, un simple apt-get install icecast2 devrait tout t'installer correctement, et avec les bons droits.
Ensuite, il suffit d ele lancer via /etc/init.d/icecast2 start pour que tout fonctionne sans bidouiller dans tous les coins.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Anonymous
Guest





PostPosted: Sun Jan 06, 2008 11:04 pm    Post subject: Reply with quote

Bonsoir jcr

Merci pour ta réponse, j'ai tout de même modifié l'identifiant dans 'icecast.xml' : j'ai mis 'icecast2' au lieu de 'icecast'.
Le groupe, quant-à-lui, reste 'icecast'

Ensuite, j'ai tenté un

Code:
# /etc/init.d/icecast2 start


... Et ça a marché Very Happy
Il ne me reste plus qu'à essayer en simple utilisateur (avant de m'attaquer à la configuration d'ices).
Back to top
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Mon Jan 07, 2008 7:56 am    Post subject: Reply with quote

Le serveur icecast est toujours démarré, comme tous les daemons, sous root, le script se charge su suid.

en simple utilisateur un sudo fera l'affaire
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Forum Francophone All times are GMT
Page 1 of 1

 
Jump to:  
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