Hi,
i have installed the latest version of Icecast that is available
here.
I have edited the configuration file.
That configuration used to work. I tried to make some changes to the config file and now Icecast refuses to start. Some details to my config. I have enabled chroot in icecast xml, so the server should run as "user".
Configuration for the paths is
Code:
<basedir>/usr/share/icecast</basedir>
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot
I have explicitely given the write permission to the "user" under which the program should run after starting. The upper directory looks like that
Code:
root@localhost:/var/log# ls -la | grep icecast
drwxr-xrwx 2 root root 4096 Jan 4 15:56 icecast/
The log files have the following rights
Code:
root@localhost:/var/log/icecast# ls -larth
total 408K
drwxr-xrwx 2 root root 4.0K Jan 4 15:56 ./
-rw-r--r-- 1 user users 265K Feb 4 12:12 error.log
-rw-r--r-- 1 user users 129K Feb 4 12:12 access.log
drwxr-xr-x 17 root root 4.0K Feb 4 19:34 ../
I repeat that configuration used to work. I do not know what have i changed in the config file, but it does not say it can not parse the configuration. When i start Icecast, i get
Code:
root@localhost:/usr/share/icecast/web# icecast -c /etc/icecast.xml
[2017-02-04 12:39:39] WARN CONFIG/_parse_root Warning, <hostname> not configured, using default value "localhost". This will cause problems, e.g. with YP directory listings.
Changed root successfully to "/usr/share/icecast".
Changed groupid to 100.
Changed supplementary groups based on user: user.
Changed userid to 1000.
[2017-02-04 11:39:39] WARN fserve/fserve_recheck_mime_types Cannot open mime types file /etc/mime.types
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
Although i have set the log level to debug, i do no see any messages in the files, because it somehow cannot find them.
Any idea how to get out of that situation?