# dietpi-software gets stuck

**URL:** https://dietpi.com/forum/t/dietpi-software-gets-stuck/2875
**Category:** Troubleshooting
**Created:** [27 January 2019 11:37 UTC](https://dietpi.com/forum/t/dietpi-software-gets-stuck/2875 "2019-01-27T11:37:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Flololol](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/c77e96/32.png) [@Flololol](https://dietpi.com/forum/u/Flololol)
#### Post date: [27 January 2019 11:37 UTC](https://dietpi.com/forum/t/dietpi-software-gets-stuck/2875/1 "2019-01-27T11:37:58Z")

</div>

Hello,

I have problems with installing software with dietpi-software.  
The Installer gets stuck at different points.(depends on software).

For example I just now tried installing deluge.

DietPi-Software  
─────────────────────────────────────────────────────  
Mode: Configuring Deluge: bittorrent server with web interface (python)

[OK] DietPi-Software | Connection test: [https://raw.githubusercontent.com/Fo](https://raw.githubusercontent.com/Fo) urdee/DietPi/master/.conf/dps\_45/deluge.conf  
[OK] DietPi-Software | wget [https://raw.githubusercontent.com/Fourdee/DietPi](https://raw.githubusercontent.com/Fourdee/DietPi) /master/.conf/dps\_45/deluge.conf -O 45.deluge.conf  
[OK] DietPi-Software | cp -f 45.deluge.conf /mnt/dietpi\_userdata/deluge/.con fig/deluge/core.conf  
[OK] DietPi-Software | Cleaning download directory  
[OK] DietPi-Software | Connection test: [https://raw.githubusercontent.com/Fo](https://raw.githubusercontent.com/Fo) urdee/DietPi/master/.conf/dps\_45/deluge\_web.conf  
[OK] DietPi-Software | wget [https://raw.githubusercontent.com/Fourdee/DietPi](https://raw.githubusercontent.com/Fourdee/DietPi) /master/.conf/dps\_45/deluge\_web.conf -O 45.deluge\_web.conf  
[OK] DietPi-Software | cp -f 45.deluge\_web.conf /mnt/dietpi\_userdata/deluge/ .config/deluge/web.conf  
[OK] DietPi-Software | Cleaning download directory  
[OK] DietPi-Software | Setting in /etc/default/deluged adjusted: ENABLE\_DELUGED=1  
  
  
  
  
And this is how far it goes. I already waited 30min.

The same happened with transmission and sonarr. They also got stuck at writing something in the config. After a while I aborted the installation but the software works. It doesn’t show up as installed in dietpi-software though.

---

<div class="post-metadata">

### Author: ![Flololol](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/c77e96/32.png) [@Flololol](https://dietpi.com/forum/u/Flololol)
#### Post date: [27 January 2019 13:34 UTC](https://dietpi.com/forum/t/dietpi-software-gets-stuck/2875/2 "2019-01-27T13:34:44Z")

</div>

Update: I tried installing deluge again and I just left it for around 2 hours.When I came back it was finished.

---

<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: [27 January 2019 15:16 UTC](https://dietpi.com/forum/t/dietpi-software-gets-stuck/2875/3 "2019-01-27T15:16:37Z")

</div>

Which device are you running DietPi on?

I just checked the following install steps:

- After Setting in /etc/default/deluged adjusted: ENABLE\_DELUGED=1 output, the G\_CONFIG\_INJECT function just closes the if-statement and ends, so no chance to hang there.
- The next steps are silent config adjustments, where only bc calculator is used that is not anyway very regularly used before: [https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-software#L9076-L9089](https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-software#L9076-L9089)
- The next step is setting permissions: [https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-software#L14658-L14660](https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-software#L14658-L14660)

Jep that must be it. The output from setting permissions is hidden. If you have lots of files in your dietpi\_userdata this can take a lot of time without any output. I am also not very happy with this, e.g. having Terabytes of cloud data there, getting chown/chmod again on every software install.

You can verify that it is indeed what takes so long:  
/DietPi/dietpi/func/dietpi-software setpermissions  
This will produce some output that is hidden during software install, so you should be able to see progress there.  
You can safely interrupt the script to now wait for 2h again 😉.

I think we need to optimize that function a bid, at least produce output (inform about things can take a while) and processing animation, so users know the machine is still working and not crashed.

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [28 January 2019 04:29 UTC](https://dietpi.com/forum/t/dietpi-software-gets-stuck/2875/4 "2019-01-28T04:29:36Z")

</div>

screen is also a nice option

Start screen, start an application, detatch from screen, logout SSH terminal and the application in screen will keep going

[https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/](https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/)
