# Icecast2.service error before install from dietpi-software

**URL:** <https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175>\
**Category:** Troubleshooting\
**Created:** [19 September 2025 13:24 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175 "2025-09-19T13:24:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)\
**Post date:** [19 September 2025 13:24 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/1 "2025-09-19T13:24:30Z")

</div>

```auto
1]: Started icecast2.service - Icecast (DietPi).
Sep 19 11:36:55 DietPi (icecast2)[674]: icecast2.service: Failed to determine user credentials: No such process
Sep 19 11:36:55 DietPi (icecast2)[674]: icecast2.service: Failed at step USER spawning /usr/bin/icecast2: No such process
Sep 19 11:36:55 DietPi systemd[1]: icecast2.service: Main process exited, code=exited, status=217/USER
Sep 19 11:36:55 DietPi systemd[1]: icecast2.service: Failed with result 'exit-code'.
Sep 19 14:30:27 DietPi systemd[1]: Started icecast2.service - Icecast (DietPi).
Sep 19 14:30:27 DietPi systemd[1]: icecast2.service: Main process exited, code=exited, status=217/USER
Sep 19 14:30:27 DietPi systemd[1]: icecast2.service: Failed with result 'exit-code'.
Sep 19 15:03:51 DietPi systemd[1]: Started icecast2.service - Icecast (DietPi).
Sep 19 15:03:52 DietPi icecast2[17581]: /etc/icecast2/icecast.xml:37: parser error : EntityRef: expecting ';'
Sep 19 15:03:52 DietPi icecast2[17581]: <source-password> ******** bjT_</source-password>
Sep 19 15:03:52 DietPi icecast2[17581]: ^
Sep 19 15:03:52 DietPi icecast2[17581]: /etc/icecast2/icecast.xml:39: parser error : EntityRef: expecting ';'
Sep 19 15:03:52 DietPi icecast2[17581]: <relay-password> ******** bjT_</relay-password>
Sep 19 15:03:52 DietPi icecast2[17581]: ^
Sep 19 15:03:52 DietPi icecast2[17581]: /etc/icecast2/icecast.xml:43: parser error : EntityRef: expecting ';'
Sep 19 15:03:52 DietPi icecast2[17581]: <admin-password> ******** bjT_</admin-password>
Sep 19 15:03:52 DietPi icecast2[17581]: ^
Sep 19 15:03:52 DietPi icecast2[17581]: FATAL: error parsing config file (/etc/icecast2/icecast.xml)
Sep 19 15:03:52 DietPi icecast2[17581]: XML config parsing error
Sep 19 15:03:52 DietPi systemd[1]: icecast2.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 15:03:52 DietPi systemd[1]: icecast2.service: Failed with result 'exit-code'.

```

Any ideas for a solution ?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 September 2025 13:35 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/2 "2025-09-19T13:35:51Z")

</div>

I guess your password contains some special characters which are not compatible with the Icecast XML config file.

> <https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents/1091953#1091953>

According to that at least `&` and `<` won’t work. Would be interesting to know whether escaping them with their HTML code replacement works, or whether Icecast takes these codes literal instead.

EDIT: It works. Looks like we can replace `&` with `&amp;` and `<` with `&lt;` automatically, to prevent this issue.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 September 2025 13:50 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/3 "2025-09-19T13:50:25Z")

</div>

Fixed with: [dietpi-software: Icecast: allow special (XML) characters in password · MichaIng/DietPi@2586c50 · GitHub](https://github.com/MichaIng/DietPi/commit/2586c50)

Would be great if you could test this with a reinstall of Icecast. Let me push a new beta for that.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 September 2025 14:03 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/4 "2025-09-19T14:03:36Z")

</div>

Okay done. Would be great if you could test with the beta:

```sh
G_DEV_BRANCH beta
dietpi-software reinstall 135
G_SUDO G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=master' /boot/dietpi.txt

```

Next DietPi release is scheduled for tomorrow, hence switching only the target branch back to `master` (stable) is okay, tomorrow you will be offered a DietPi update to stable v9.17.

---

<div class="post-metadata">

**Author:** ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)\
**Post date:** [19 September 2025 14:21 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/5 "2025-09-19T14:21:22Z")

</div>

I think that in my case the problem is the underscore character “\_” and “&”

---

<div class="post-metadata">

**Author:** ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)\
**Post date:** [19 September 2025 14:40 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/6 "2025-09-19T14:40:16Z")

</div>

```auto
 19 16:35:22 DietPi icecast2[29140]: FATAL: error parsing config file (/etc/icecast2/icecast.xml)
Sep 19 16:35:22 DietPi icecast2[29140]: XML config parsing error
Sep 19 16:35:22 DietPi systemd[1]: icecast2.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 16:35:22 DietPi systemd[1]: icecast2.service: Failed with result 'exit-code'.
Sep 19 16:38:03 DietPi systemd[1]: Started icecast2.service - Icecast (DietPi).
Sep 19 16:38:03 DietPi icecast2[29830]: /etc/icecast2/icecast.xml:37: parser error : EntityRef: expecting ';'
Sep 19 16:38:03 DietPi icecast2[29830]: <source-password> ******** bjT_</source-password>
Sep 19 16:38:03 DietPi icecast2[29830]: ^
Sep 19 16:38:03 DietPi icecast2[29830]: /etc/icecast2/icecast.xml:39: parser error : EntityRef: expecting ';'
Sep 19 16:38:03 DietPi icecast2[29830]: <relay-password> ******** bjT_</relay-password>
Sep 19 16:38:03 DietPi icecast2[29830]: ^
Sep 19 16:38:03 DietPi icecast2[29830]: /etc/icecast2/icecast.xml:43: parser error : EntityRef: expecting ';'
Sep 19 16:38:03 DietPi icecast2[29830]: <admin-password> ******** bjT_</admin-password>
Sep 19 16:38:03 DietPi icecast2[29830]: ^
Sep 19 16:38:03 DietPi icecast2[29830]: FATAL: error parsing config file (/etc/icecast2/icecast.xml)
Sep 19 16:38:03 DietPi icecast2[29830]: XML config parsing error
Sep 19 16:38:03 DietPi systemd[1]: icecast2.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 16:38:03 DietPi systemd[1]: icecast2.service: Failed with result 'exit-code'.
root@DietPi:/etc/icecast2#

```

The beta test did not fix the underscore “\_” issue.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 September 2025 14:56 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/7 "2025-09-19T14:56:59Z")

</div>

Hmm, at least the underscore has no special meaning in XML, so there seem to be also no replacement code available. Must be something at the application level then, which we might not be able to workaround. So if you remove that underscores from the config file, a restart works?

```sh
systemctl restart icecast2

```

---

<div class="post-metadata">

**Author:** ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)\
**Post date:** [19 September 2025 15:02 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/8 "2025-09-19T15:02:22Z")

</div>

Yes, you’re right, it was indeed the “&.” I replaced it directly in /etc/icecast2/icecast2.xml with `&amp;` and now the server launches.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 September 2025 15:04 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/9 "2025-09-19T15:04:10Z")

</div>

And the beta + reinstall did not fix this?

---

<div class="post-metadata">

**Author:** ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)\
**Post date:** [19 September 2025 15:08 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/10 "2025-09-19T15:08:03Z")

</div>

No, I had to make the change directly in the configuration file.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 September 2025 15:15 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/11 "2025-09-19T15:15:44Z")

</div>

Ah now I see why: we replace the password only if the default `hackme` is still applied. So reinstalling it won’t touch it. And I was just about to think about how to skip that on reinstall, not realizing that it is the case already 😅.

But all good for fresh installs now. Tested with `&` and `<` and they get both replaced and login works as expected.

---

<div class="post-metadata">

**Author:** ![gilou](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gilou](https://dietpi.com/forum/u/gilou)\
**Post date:** [19 September 2025 15:21 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/12 "2025-09-19T15:21:18Z")

</div>

Thank you very much for your help, dietpi is really a great server!

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [18 December 2025 15:21 UTC](https://dietpi.com/forum/t/icecast2-service-error-before-install-from-dietpi-software/24175/13 "2025-12-18T15:21:42Z")

</div>

Closed on 18 December 2025 15:21 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
