# Can't connect to wifi \[FAILED\] DietPi-Config | systemctl restart ifup@wlan0

**URL:** <https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995>\
**Category:** Troubleshooting\
**Tags:** wifi\
**Created:** [7 March 2025 19:43 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995 "2025-03-07T19:43:41Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [7 March 2025 19:43 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/1 "2025-03-07T19:43:41Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

#### Required Information

- DietPi version | 9.11.2
- Distro version | bookworm
- Kernel version | Linux RPi8 6.6.74+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
- Architecture | arm64
- SBC model | RPi 4 Model B (aarch64)
- Power supply used | 5V 1A
- SD card used | Samsung M2 SSD

#### Additional Information (if applicable)

- Bug report ID | fa62ff01-86b9-4f25-9060-4747b414f86e

#### Steps to reproduce

1. Trying to connect to WiFi through dietpi-config

#### Expected behaviour

- connect to WiFi

#### Actual behaviour

- Not connecting to WiFI

#### Extra details

I have wired connection from one network 192.168.0.0/24, I need to connect to another network 10.0.0.0/24. When I configure the WiFi, it fails to connect. I tried to disable and enable the adapter and purge the config, but it still fails on the same issue. Outputs here:

```auto
systemd[1]: Starting ifup@wlan0.service - ifup for wlan0...
wpa_supplicant[9759]: Successfully initialized wpa_supplicant
wpa_supplicant[9759]: nl80211: kernel reports: Registration to specific type not supported
wpa_supplicant[9763]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-52 retry=1
ifup[9770]: RTNETLINK answers: File exists
ifup[9745]: ifup: failed to bring up wlan0
systemd[1]: ifup@wlan0.service: Main process exited, code=exited, status=1/FAILURE
wpa_supplicant[9763]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
wpa_supplicant[9763]: p2p-dev-wlan0: CTRL-EVENT-TERMINATING
wpa_supplicant[9763]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Job for ifup@wlan0.service failed because the control process exited with error code.
See "systemctl status ifup@wlan0.service" and "journalctl -xeu ifup@wlan0.service" for details.
[FAILED] DietPi-Config | systemctl restart ifup@wlan0
[INFO] DietPi-Config | Reloading networking data, please wait...
[OK] DietPi-Config | Network restarted

systemctl status ifup@wlan0.service
× ifup@wlan0.service - ifup for wlan0
     Loaded: loaded (/etc/systemd/system/ifup@.service; static)
     Active: failed (Result: exit-code) since Fri 2025-03-07 20:31:59 CET; 6min ago
   Duration: 2min 10.561s
    Process: 9745 ExecStart=/sbin/ifup --allow=hotplug wlan0 (code=exited, status=1/FAILURE)
   Main PID: 9745 (code=exited, status=1/FAILURE)
        CPU: 104ms

wpa_supplicant[9763]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
wpa_supplicant[9763]: p2p-dev-wlan0: CTRL-EVENT-TERMINATING
wpa_supplicant[9763]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[9763]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wpa_supplicant[9763]: wlan0: CTRL-EVENT-TERMINATING
systemd[1]: ifup@wlan0.service: Failed with result 'exit-code'.
systemd[1]: Failed to start ifup@wlan0.service - ifup for wlan0.

```

What am I doing wrong? Thank you.

---

<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:** [8 March 2025 09:38 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/2 "2025-03-08T09:38:22Z")

</div>

you can try to bring down/up the interface manually

```auto
ifdown wlan0
ifup wlan0

```

or try rebooting

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 10:11 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/3 "2025-03-08T10:11:32Z")

</div>

I’ve tried rebooting before with no progress. But this experiment showed something:

```auto
ifdown wlan0
ifdown: interface wlan0 not configured

```

```auto
ifup wlan0
Error: ipv4: Address already assigned.
ifup: failed to bring up wlan0

```

Doesn’t make much sense. This device was never before in 10.0.0.0 network. And wifi adapter was never configured on it. This is the first time I’m trying to use it.

Is there a way to flush any settings from the adapter?

---

<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:** [8 March 2025 10:15 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/4 "2025-03-08T10:15:27Z")

</div>

can you check

```auto
cat /etc/network/interfaces

```

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 10:19 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/5 "2025-03-08T10:19:27Z")

</div>

I honestly don’t know what happened, but the WiFi is connected now.

Didn’t do anything since I wrote this post and until I’ve put the ifdown and ifup commands.

Did it just need good night sleep?

EDIT: Something is definitely funky. Tried to change IP Address to make sure all is clear, but it end up with no connection and:

```auto
[OK] DietPi-WiFiDB | mkdir -p /etc/wpa_supplicant
[OK] DietPi-WiFiDB | eval > /var/lib/dietpi/dietpi-wifi.db
[INFO] DietPi-WiFiDB | Applied WiFi DB slot 0 with SSID "RPi8"
[INFO] DietPi-WiFiDB | Applied WiFi DB slot 1 with SSID ""
[INFO] DietPi-WiFiDB | Applied WiFi DB slot 2 with SSID ""
[INFO] DietPi-WiFiDB | Applied WiFi DB slot 3 with SSID ""
[INFO] DietPi-WiFiDB | Applied WiFi DB slot 4 with SSID ""
[OK] DietPi-WiFiDB | chown root:root /var/lib/dietpi/dietpi-wifi.db /etc/wpa_supplicant/wpa_supplicant.conf
[OK] DietPi-WiFiDB | chmod 600 /var/lib/dietpi/dietpi-wifi.db /etc/wpa_supplicant/wpa_supplicant.conf
[SUB1] DietPi-Set_hardware > wifimodules (enable)
[INFO] DietPi-Set_hardware | Please wait, enabling WiFi modules...
[OK] DietPi-Set_hardware | modprobe cfg80211
[OK] DietPi-Set_hardware | modprobe brcmfmac
[OK] DietPi-Set_hardware | modprobe brcmutil
[INFO] DietPi-Set_hardware | Checking for required APT packages: iw wireless-tools wpasupplicant wireless-regdb
[OK] wifimodules enable | Completed
[INFO] DietPi-Config | Restarting network connections, please wait...
[OK] DietPi-Config | systemctl daemon-reload
[INFO] DietPi-Config | systemctl restart ifup@eth0, please wait...
Mar 08 11:21:37 RPi8 systemd[1]: Stopping ifup@eth0.service - ifup for eth0...
Mar 08 11:21:38 RPi8 systemd[1]: ifup@eth0.service: Deactivated successfully.
Mar 08 11:21:38 RPi8 systemd[1]: Stopped ifup@eth0.service - ifup for eth0.
Mar 08 11:21:38 RPi8 systemd[1]: Starting ifup@eth0.service - ifup for eth0...
Mar 08 11:21:38 RPi8 systemd[1]: Finished ifup@eth0.service - ifup for eth0.
[OK] DietPi-Config | systemctl restart ifup@eth0
[INFO] DietPi-Config | systemctl restart ifup@wlan0, please wait...
Mar 08 11:21:38 RPi8 systemd[1]: Starting ifup@wlan0.service - ifup for wlan0...
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: Successfully initialized wpa_supplicant
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: kernel reports: Match already configured
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: ctrl_iface exists and seems to be in use - cannot override it
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: Failed to initialize control interface 'DIR=/run/wpa_supplicant GROUP=netdev'.
                                            You may have another wpa_supplicant process already running or the file was
                                            left by an unclean termination of wpa_supplicant in which case you will need
                                            to manually remove this file before starting wpa_supplicant again.
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 08 11:21:38 RPi8 wpa_supplicant[24351]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Job for ifup@wlan0.service failed because the control process exited with error code.
See "systemctl status ifup@wlan0.service" and "journalctl -xeu ifup@wlan0.service" for details.
[FAILED] DietPi-Config | systemctl restart ifup@wlan0
[INFO] DietPi-Config | Reloading networking data, please wait...
[OK] DietPi-Config | Network restarted

```

---

<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:** [8 March 2025 10:23 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/6 "2025-03-08T10:23:55Z")

</div>

try to reboot and check if your settings survive. Maybe the manual `ifdown` clear stuff

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 10:30 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/7 "2025-03-08T10:30:14Z")

</div>

The connection works after ifdown and ifup. But doesn’t survive a reboot.

Even dietpi-config shows this weird change:

```auto
WiFi : Not Found | [On] | Disconnected
Onboard WiFi : [Off]

```

---

<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:** [8 March 2025 10:43 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/8 "2025-03-08T10:43:41Z")

</div>

> [@Niaz](#):
>
> `Onboard WiFi : [Off]`

can you try to toggle `onboard` WIFI to `on` and reboot

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 10:51 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/9 "2025-03-08T10:51:38Z")

</div>

It stayed on, but no connection.

---

<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:** [8 March 2025 11:03 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/10 "2025-03-08T11:03:49Z")

</div>

> [@Niaz](#):
>
> `WiFi : Not Found |`

does this changed after switching onboard WiFo on?

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 11:06 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/11 "2025-03-08T11:06:16Z")

</div>

Yes, it’s:

```auto
WiFi : Available | [On] | Disconnected

```

---

<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:** [8 March 2025 11:19 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/12 "2025-03-08T11:19:53Z")

</div>

and if you try to reconfigure again?

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 11:31 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/13 "2025-03-08T11:31:32Z")

</div>

Failed again:

```auto
Mar 08 12:29:27 RPi8 systemd[1]: Starting ifup@wlan0.service - ifup for wlan0...
Mar 08 12:29:27 RPi8 wpa_supplicant[2761]: Successfully initialized wpa_supplicant
Mar 08 12:29:27 RPi8 wpa_supplicant[2761]: nl80211: kernel reports: Registration to specific type not supported
Mar 08 12:29:27 RPi8 ifup[2768]: Error: ipv4: Address already assigned.
Mar 08 12:29:27 RPi8 ifup[2747]: ifup: failed to bring up wlan0
Mar 08 12:29:27 RPi8 systemd[1]: ifup@wlan0.service: Main process exited, code=exited, status=1/FAILURE
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: p2p-dev-wlan0: CTRL-EVENT-TERMINATING
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Mar 08 12:29:27 RPi8 wpa_supplicant[2765]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Job for ifup@wlan0.service failed because the control process exited with error code.
See "systemctl status ifup@wlan0.service" and "journalctl -xeu ifup@wlan0.service" for details.
[FAILED] DietPi-Config | systemctl restart ifup@wlan0
[INFO] DietPi-Config | Reloading networking data, please wait...
[OK] DietPi-Config | Network restarted

```

Once again it says Error: ipv4: Address already assigned. Weird.

---

<div class="post-metadata">

**Author:** ![Niaz](https://dietpi.com/forum/user_avatar/dietpi.com/niaz/32/2370_2.png) [@Niaz](https://dietpi.com/forum/u/Niaz)\
**Post date:** [8 March 2025 12:44 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/14 "2025-03-08T12:44:59Z")

</div>

I’ve changed my setting to DHCP and unhid my SSID to simplify things.

The setting through dietpi-config can load the DHCP setting for the adapter but still fails to bring connection live.

The error that’s common with the previous setting is this:

```auto
wpa_supplicant[4298]: nl80211: kernel reports: Registration to specific type not supported

```

So, I guess the problem is somewhere there, but google is no help to me.

---

<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:** [3 September 2025 00:45 UTC](https://dietpi.com/forum/t/cant-connect-to-wifi-failed-dietpi-config-systemctl-restart-ifup-wlan0/22995/15 "2025-09-03T00:45:37Z")

</div>

Closed on 3 September 2025 00:45 UTC

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