Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria2 web interface not accesible as lighttpd is disabled by systemctl. (related to pihole v6 changes?) #7437

Open
1 task done
N7-BADA opened this issue Feb 27, 2025 · 4 comments

Comments

@N7-BADA
Copy link

N7-BADA commented Feb 27, 2025

Creating a bug report/issue

  • I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=11 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version | bookworm 0
  • Kernel version | Linux TOM50 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux
  • SBC model | Native PC (x86_64)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | Aria2

  • Was the software title installed freshly or updated/migrated?
    REINSTALLED > UNINSTALLED > INSTALLED

  • Can this issue be replicated on a fresh installation of DietPi?
    Not sure as this might be due to pihole upgrade from v5 > v6

  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. as this issue didn't happen in a single event but might be related to previous application update

Expected behaviour

  • web interface accessible

Actual behaviour

  • web interface inaccessible

Extra details

i didn't notice at first that aria2 wasn't accessible on the web anymore as i dont use it that often.
but today i noticed it wasn't working and figured ill just reinstall it as it seems like the easy way to me.
after dietpi-software reinstall 132 didnt work i figured to uninstall and install again with dietpi-software reinstall 132 it to make sure all the configuration files get wiped to. then at the bottom of the terminal i noticed

Step: Install completed

[  OK  ] DietPi-Survey | Purging survey data
[ SUB1 ] DietPi-Services > restart 
[  OK  ] DietPi-Services | restart : php8.2-fpm
[ INFO ] DietPi-Services | skip : lighttpd (disabled)
[  OK  ] DietPi-Services | restart : transmission-daemon
[  OK  ] DietPi-Services | restart : qbittorrent
[  OK  ] DietPi-Services | restart : aria2
[  OK  ] DietPi-Services | restart : plexmediaserver
[  OK  ] DietPi-Services | restart : cron

and figured that might be the issue as lighttpd is disabled. As im 100% i didnt disable this i think it might have happened when i did the pihole update from v5 to v6 yet i can not 100% confirm.

session log below

Session log
Linux TOM50 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
 ─────────────────────────────────────────────────────
 DietPi v9.11.2 : 16:27 - Thu 02/27/25
 ───────────────────────────────────────────────────── the extent
 - Device model : Native PC (x86_64)
 - Uptime : up 0 minutes
 - CPU temp : 56 °C / 132 °F : Running warm, but safe
 - RAM usage : 804 of 15768 MiB (5%)
 - Disk usage (RootFS) : 18G of 470G (4%)
 - Disk usage (userdata) : 18G of 470G (4%)
 - MOTD : DietPi v9.11 has been released. Check out all changes:
          https://dietpi.com/docs/releases/v9_11/
 ─────────────────────────────────────────────────────

 DietPi Team     : https://github.com/MichaIng/DietPi#the-dietpi-project-team
 Patreon Legends : Chris Gelatt, ADSB.im
 Website         : https://dietpi.com/ | https://x.com/DietPi_ | Bsky: @dietpi.com
 Contribute      : https://dietpi.com/contribute.html
 Web Hosting by  : https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place
 dietpi-config   : Feature rich configuration tool for your device
 dietpi-software : Select optimised software for installation
 htop            : Resource monitor
 cpu             : Shows CPU information and stats

root@TOM50:~# dietpi-software uninstall 132
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated uninstall

[  OK  ] DietPi-Software | Uninstalling Aria2: Download manager with web interface

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Uninstalling Aria2: Download manager with web interface

[  OK  ] DietPi-Software | rm -R /var/www/aria2
[  OK  ] DietPi-Software | systemctl --no-reload disable --now aria2
[  OK  ] DietPi-Software | rm /etc/systemd/system/aria2.service
[  OK  ] DietPi-Software | userdel aria2
[ INFO ] DietPi-Software | APT purge aria2, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  aria2* libaria2-0* libc-ares2*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00After this operation, 6250 kB disk space will be freed.
(Reading database ... 39288 files and directories currently installed.)\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00(Reading database ... 
Removing aria2 (1.36.0-1) ...
Removing libaria2-0:amd64 (1.36.0-1) ...
Removing libc-ares2:amd64 (1.18.1-3) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
[  OK  ] DietPi-Software | APT purge aria2
[  OK  ] DietPi-Software | rm -R /mnt/dietpi_userdata/aria2
[  OK  ] DietPi-Software | rm /mnt/dietpi_userdata/downloads/aria2.session

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Finalising uninstall

[ INFO ] DietPi-Software | APT autopurge, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT autopurge
[  OK  ] DietPi-Software | systemctl daemon-reload

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Uninstall completed

root@TOM50:~# dietpi-software install 132
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated install

[  OK  ] DietPi-Software | Installing Aria2: Download manager with web interface
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for conflicts and missing inputs


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software

[ INFO ] DietPi-Software | SQLite will be reinstalled
[ INFO ] DietPi-Software | PHP will be reinstalled
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : plexmediaserver
[  OK  ] DietPi-Services | stop : qbittorrent
[  OK  ] DietPi-Services | stop : transmission-daemon
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php8.2-fpm
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm-updates InRelease
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://downloads.plex.tv/repo/deb public InRelease
Hit:6 https://dietpi.com/apt bookworm InRelease
Get:7 https://pkgs.tailscale.com/stable/debian bookworm InRelease
Fetched 6581 B in 1s (7677 B/s)
Reading package lists...
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing SQLite: Persistent single-file database system

[ INFO ] DietPi-Software | APT install sqlite3, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
sqlite3 is already the newest version (3.40.1-2+deb12u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install sqlite3

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing PHP: Hypertext Preprocessor for dynamic web content

[ INFO ] DietPi-Software | APT install php8.2-fpm php8.2-apcu php8.2-curl php8.2-gd php8.2-mbstring php8.2-xml php8.2-zip php8.2-sqlite3, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
php8.2-fpm is already the newest version (8.2.26-1~deb12u1).
php8.2-apcu is already the newest version (5.1.22+4.0.11-2).
php8.2-curl is already the newest version (8.2.26-1~deb12u1).
php8.2-gd is already the newest version (8.2.26-1~deb12u1).
php8.2-mbstring is already the newest version (8.2.26-1~deb12u1).
php8.2-xml is already the newest version (8.2.26-1~deb12u1).
php8.2-zip is already the newest version (8.2.26-1~deb12u1).
php8.2-sqlite3 is already the newest version (8.2.26-1~deb12u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install php8.2-fpm php8.2-apcu php8.2-curl php8.2-gd php8.2-mbstring php8.2-xml php8.2-zip php8.2-sqlite3
[ INFO ] DietPi-Software | APT purge libapache2-mod-php*, please wait...
[ INFO ] DietPi-Software | None of the packages are currently installed. Aborting...
[  OK  ] DietPi-Software | APT purge libapache2-mod-php*
[  OK  ] DietPi-Software | rm -Rf /etc/php/*/apache2 /var/lib/php/modules/*/apache2
[  OK  ] DietPi-Software | Desired setting in /etc/php/8.2/fpm/pool.d/www.conf was already set: pm.max_children = 12
[  OK  ] DietPi-Software | Desired setting in /etc/php/8.2/fpm/pool.d/www.conf was already set: pm.start_servers = 4
[  OK  ] DietPi-Software | Desired setting in /etc/php/8.2/fpm/pool.d/www.conf was already set: pm.min_spare_servers = 4
[  OK  ] DietPi-Software | Desired setting in /etc/php/8.2/fpm/pool.d/www.conf was already set: pm.max_spare_servers = 4
[  OK  ] DietPi-Software | Desired setting in /etc/php/8.2/fpm/pool.d/www.conf was already set: env[PATH] = /usr/local/bin:/usr/bin:/bin
[  OK  ] DietPi-Software | mkdir -p /etc/systemd/system/php8.2-fpm.service.d
[  OK  ] DietPi-Software | eval echo -e '[Unit]\nAfter=redis-server.service mariadb.service postgresql.service' > '/etc/systemd/system/php8.2-fpm.service.d/dietpi.conf'
[  OK  ] DietPi-Software | mkdir -p /run/php_sessions
[  OK  ] DietPi-Software | chmod 1733 /run/php_sessions
[  OK  ] DietPi-Software | Added setting session.save_path="/run/php_sessions" to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting upload_tmp_dir="/tmp" to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting upload_max_filesize=512M to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting post_max_size=512M to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting opcache.memory_consumption=525 to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting opcache.revalidate_freq=60 to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting apc.shm_size=262M to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | Added setting apc.ttl=259200 to end of file /etc/php/8.2/mods-available/dietpi.ini
[  OK  ] DietPi-Software | phpenmod dietpi sysvshm gettext mbstring sockets shmop xml sysvmsg intl xmlreader zip gd calendar posix exif pdo_sqlite ftp iconv phar xmlwriter apcu tokenizer sysvsem sqlite3 readline xsl fileinfo pdo curl ctype opcache simplexml ffi dom

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Aria2: Download manager with web interface

[ INFO ] DietPi-Software | APT install aria2, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libaria2-0 libc-ares2
The following NEW packages will be installed:
  aria2 libaria2-0 libc-ares2
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1574 kB of archives.
After this operation, 6250 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bookworm/main amd64 libc-ares2 amd64 1.18.1-3 [102 kB]
Get:2 https://deb.debian.org/debian bookworm/main amd64 libaria2-0 amd64 1.36.0-1 [1109 kB]
Get:3 https://deb.debian.org/debian bookworm/main amd64 aria2 amd64 1.36.0-1 [362 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1574 kB in 0s (10.7 MB/s)
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Selecting previously unselected package libc-ares2:amd64.
(Reading database ... 39211 files and directories currently installed.)
Preparing to unpack .../libc-ares2_1.18.1-3_amd64.deb ...
Unpacking libc-ares2:amd64 (1.18.1-3) ...
Selecting previously unselected package libaria2-0:amd64.
Preparing to unpack .../libaria2-0_1.36.0-1_amd64.deb ...
Unpacking libaria2-0:amd64 (1.36.0-1) ...
Selecting previously unselected package aria2.
Preparing to unpack .../aria2_1.36.0-1_amd64.deb ...
Unpacking aria2 (1.36.0-1) ...
Setting up libc-ares2:amd64 (1.18.1-3) ...
Setting up libaria2-0:amd64 (1.36.0-1) ...
Setting up aria2 (1.36.0-1) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
[  OK  ] DietPi-Software | APT install aria2
[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | curl -sSfL https://github.com/ziahamza/webui-aria2/archive/master.tar.gz -o master.tar.gz
[  OK  ] DietPi-Software | tar xf master.tar.gz
[  OK  ] DietPi-Software | rm master.tar.gz
[  OK  ] DietPi-Software | mv webui-aria2-master /var/www/aria2
[  OK  ] DietPi-Software | useradd -rMN -g dietpi -d /mnt/dietpi_userdata/aria2 -s /usr/sbin/nologin aria2
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/aria2
[  OK  ] DietPi-Software | chown -R aria2:root /mnt/dietpi_userdata/aria2 /mnt/dietpi_userdata/downloads/aria2.session
[  OK  ] DietPi-Software | chown aria2:dietpi /var/log/aria2.log
[  OK  ] DietPi-Software | chmod 600 /mnt/dietpi_userdata/aria2/aria2.conf

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Finalising install

[ INFO ] DietPi-Software | Enabling installed services
[  OK  ] DietPi-Software | systemctl --no-reload enable php8.2-fpm
[  OK  ] DietPi-Software | systemctl --no-reload enable aria2
[  OK  ] DietPi-Software | systemctl daemon-reload
2025-02-27 16:28:52 [ INFO ] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store...
2025-02-27 16:28:52 [  OK  ] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store.

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Install completed

[  OK  ] DietPi-Survey | Purging survey data
[ SUB1 ] DietPi-Services > restart 
[  OK  ] DietPi-Services | restart : php8.2-fpm
[ INFO ] DietPi-Services | skip : lighttpd (disabled)
[  OK  ] DietPi-Services | restart : transmission-daemon
[  OK  ] DietPi-Services | restart : qbittorrent
[  OK  ] DietPi-Services | restart : aria2
[  OK  ] DietPi-Services | restart : plexmediaserver
[  OK  ] DietPi-Services | restart : cron
root@TOM50:~# systemctl start lighttpd
root@TOM50:~# systemctl stop lighttpd
root@TOM50:~# systemctl start lighttpd
root@TOM50:~# 
@N7-BADA N7-BADA changed the title Aria2 web interface not accesible as lighttpd is disabled bij systemctl. (related to pihole v6 changes?) Aria2 web interface not accesible as lighttpd is disabled by systemctl. (related to pihole v6 changes?) Feb 27, 2025
@Joulinar
Copy link
Collaborator

well it depends if you selected to disable lighttpd during PiHole v6 update. At least there is a question about this. Simply enable lighttpd again and you are fine.

@N7-BADA
Copy link
Author

N7-BADA commented Feb 27, 2025

well it depends if you selected to disable lighttpd during PiHole v6 update. At least there is a question about this. Simply enable lighttpd again and you are fine.

yes i know this and have done it already, but isn't this still a bug as aria2 has been completely uninstalled and freshly installed, shouldn't that enable lighttpd again by itself? how about other applications that rely on lighttpd installed in the future?

@Joulinar
Copy link
Collaborator

if you disable lighttpd manually, it will stay disabled. Where should we know the purpose for having it disabled?

@MichaIng
Copy link
Owner

but isn't this still a bug as aria2 has been completely uninstalled and freshly installed

Webservers are currently not reinstalled as dependencies, if their dependents (like Aria2) are reinstalled. This is because their installs override configs a little intrusively, at least it was like that. It is different if you completely uninstall the webserver via dietpi-software, and then reinstall Aria2.

However, we can actually change this. Only the Nginx install code would need to be adjusted, as far as I can see, to use a drop-in config instead of overwriting /etc/nginx/nginx.conf and /etc/nginx/sites-available/default completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants