# Auto setup for headless installation fails to start

**URL:** <https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740>\
**Category:** Troubleshooting\
**Created:** [1 July 2025 10:58 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740 "2025-07-01T10:58:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezpc98](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@ezpc98](https://dietpi.com/forum/u/ezpc98)\
**Post date:** [1 July 2025 10:58 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/1 "2025-07-01T10:58:56Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

#### Required Information

- Architecture | AARM64
- SBC model | Radxa Rock 4C Plus
- Power supply used | 5V 3A
- SD card used | Sandisk

#### Steps to reproduce

1. Burn dietpi Debian Bookwarm/Trixie image on SD card
2. Edit dietpi.txt and dietpi-wifi.txt
3. Insert SD card on SBC, power up
4. After few mins, attempt to ssh over wifi

#### Expected behaviour

- Dietpi installation and updates etc should complete automatically and able to ssh successfully.

#### Actual behaviour

- On ssh connection over wifi with root user and dietpi password, getting an error ‘access denied’.
- When checking progress by connecting a monitor to HDMI port, there is window saying first run has failed and asking to start manual steps.  
 ![first run failure](https://dietpi.com/forum/uploads/default/original/2X/d/d95e873499695431bed2668b7055d75ea3df6a61.jpeg)

#### Extra details

Image name: DietPi\_ROCK4CPlus-ARMv8-Bookworm.img.xz

In dietpi.txt, alongside usual config, I have below setup:  
AUTO\_SETUP\_GLOBAL\_PASSWORD=dietpi  
AUTO\_SETUP\_LOCALE=en\_GB.UTF-8  
AUTO\_SETUP\_KEYBOARD\_LAYOUT=gb  
AUTO\_SETUP\_TIMEZONE=Europe/London  
AUTO\_SETUP\_NET\_ETHERNET\_ENABLED=0  
AUTO\_SETUP\_NET\_WIFI\_ENABLED=1  
AUTO\_SETUP\_NET\_WIFI\_COUNTRY\_CODE=GB  
AUTO\_SETUP\_AUTOSTART\_TARGET\_INDEX=7  
AUTO\_SETUP\_AUTOMATED=1  
AUTO\_SETUP\_INSTALL\_SOFTWARE\_ID=105

So I have AUTO\_SETUP\_AUTOMATED=1 and board connect to WiFi OK but not progressing to auto install from there on.

What am I missing or doing wrong here?

---

<div class="post-metadata">

**Author:** ![ezpc98](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@ezpc98](https://dietpi.com/forum/u/ezpc98)\
**Post date:** [1 July 2025 12:17 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/2 "2025-07-01T12:17:05Z")

</div>

Complete dietpi.txt file in attached.  
[dietpi.txt](https://dietpi.com/forum/uploads/short-url/nP6McLAbQgsY4faYRASPtxAVVMd.txt) (17.9 KB)

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [1 July 2025 13:13 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/3 "2025-07-01T13:13:01Z")

</div>

Hello ezpc98,  
can you also share the installation log please (open a second tty when the installation fails and run following command):

```auto
cat /var/tmp/dietpi/logs/dietpi-firstrun-setup.log

```

---

<div class="post-metadata">

**Author:** ![ezpc98](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@ezpc98](https://dietpi.com/forum/u/ezpc98)\
**Post date:** [1 July 2025 16:28 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/4 "2025-07-01T16:28:05Z")

</div>

It is not letting me to open a new SSH connection for second tty. Tried with both root & dietpi users (and dietpi password) but getting ‘access denied’ error.

On tty with HDMI connection, clicked OK to continue with manual installation but it gets stuck at network connection stage with weird ping error suggesting unable to ping to 9.9.9.9 DNS. See the screenshot.

 ![dietpi auto start error](https://dietpi.com/forum/uploads/default/original/2X/1/1e26b154fd1cc206704fc3450151cfd5b01e2f99.jpeg)

I flashed it one more time and tried changing DNS checks to 8.8.8.8 and [dns.google.com](http://dns.google.com) but failed again at the same stage.

I checked on router and can see it connected OK but strangely hostname as DietPi and not with hostname set in dietpi.txt. See screenshot.

 ![dietpi auto start error - network connection](https://dietpi.com/forum/uploads/default/original/2X/c/ccf5676c1356ceac6ac95af113ee57e0a0b8b0fc.jpeg)

So it seems crux of problem is auto setup not able to get past network connection checks.

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [1 July 2025 16:40 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/5 "2025-07-01T16:40:24Z")

</div>

> [@ezpc98](#):
>
> It is not letting me to open a new SSH connection for second tty. Tried with both root & dietpi users (and dietpi password) but getting ‘access denied’ error.

When you are connected via HDMI you can open a second tty by pressing `CTRL` + `ALT` + `F2`.  
maybe you can copy the log from there.

But when I look at the screenshot, I see

```auto
ping: 9.9.9.9^M

```

which is not a valid IP nor hostname

So I guess you edited `dietpi.txt` in a windows environment, which handles new lines differently than under linux, which causes this weird `^M` character in linux.

So you would need to edit it in some Linux environment  
OR  
some editors have options to save it in unix format. Like Notepad++ has this functionality

```auto
Edit → EOL Conversion → Unix (LF)

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [1 July 2025 16:42 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/6 "2025-07-01T16:42:20Z")

</div>

> [@Jappe](#):
>
> So I guess you edited `dietpi.txt` in a windows environment, which handles new lines differently than under linux, which causes this weird `^M` character in linux.

yes probably

> [@ezpc98](#):
>
> tried with both root & dietpi users (and dietpi password) but getting ‘access denied’ error.

Probably same reason why you are not able to login because password has been changed including the hidden character

> [@Jappe](#):
>
> So you would need to edit it in some Linux environment

usually not needed

> [@Jappe](#):
>
> some editors have options to save it in unix format. Like Notepad++ has this functionality

would be an option to use N++

However it should work using regular Windows Notepad/Editor. At least I don’t have an issue doing so.

---

<div class="post-metadata">

**Author:** ![ezpc98](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@ezpc98](https://dietpi.com/forum/u/ezpc98)\
**Post date:** [1 July 2025 19:32 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/7 "2025-07-01T19:32:23Z")

</div>

> [@Jappe](#):
>
> So I guess you edited `dietpi.txt` in a windows environment, which handles new lines differently than under linux, which causes this weird `^M` character in linux.

Well spotted and terrific detective work! I have been used to Notepad on Windows, didn’t have issues in the past but perhaps after lot of copy paste and edits it may have gone really bad with line breaks.

> [@Jappe](#):
>
> some editors have options to save it in unix format. Like Notepad++ has this functionality
> 
> ```auto
> Edit → EOL Conversion → Unix (LF)
> 
> ```

This is million dollar tip! Thanks.

I switched to Notepad++, saved dietpi.txt as suggested. The cleaned up file indeed worked on fresh install and auto setup completed flawlessly!

Problem solved!! Credits to @Jappe / @Joulinar for expert help.

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [2 July 2025 08:48 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/8 "2025-07-02T08:48:31Z")

</div>

I’m not an expert, I just made a lot of mistakes in the past 😬

---

<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:** [30 September 2025 08:48 UTC](https://dietpi.com/forum/t/auto-setup-for-headless-installation-fails-to-start/23740/9 "2025-09-30T08:48:57Z")

</div>

Closed on 30 September 2025 08:48 UTC

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