Error file browser web page

My file browser gives this error when accessing the web page http://<your.IP>:8084
(dietpi-software install 198)

Application Exception

# System.ArgumentOutOfRangeException

## startIndex cannot be larger than length of string. Parameter name: startIndex

**Description:** HTTP 400.Error processing request.

**Details:** Non-web exception. Exception origin (name of application or object): mscorlib.

**Exception stack trace:**

at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0001d] in <de882a77e7c14f8ba5d298093dde82b2>:0 at System.String.Substring (System.Int32 startIndex) [0x00008] in <de882a77e7c14f8ba5d298093dde82b2>:0 at Mono.WebServer.MonoWorkerRequest.AssertFileAccessible () [0x0003b] in <cb67e34e0d12485694dd7ff80bee019d>:0 at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x0000b] in <cb67e34e0d12485694dd7ff80bee019d>:0

**Version Information:** 6.12.0.182 (tarball Tue Jun 14 22:39:59 UTC 2022); ASP.NET Version: 4.0.30319.42000

LOG>>>

journalctl -u filebrowser

-- Journal begins at Wed 2022-07-06 06:31:36 -03, ends at Sun 2022-07-17 22:41:38 -03. --

Jul 17 22:23:32 DietPi systemd[1]: Started File Browser (DietPi).
Jul 17 22:23:32 DietPi filebrowser[33878]: 2022/07/17 22:23:32 No config file used
Jul 17 22:23:32 DietPi filebrowser[33878]: 2022/07/17 22:23:32 listen tcp 0.0.0.0:8084: bind: address already in use
Jul 17 22:23:32 DietPi systemd[1]: **filebrowser.service: Main process exited, code=exited, status=1/FAILURE**
Jul 17 22:23:32 DietPi systemd[1]: **filebrowser.service: Failed with result 'exit-code'.**
Jul 17 22:30:46 DietPi systemd[1]: Started File Browser (DietPi).
Jul 17 22:30:47 DietPi filebrowser[40182]: 2022/07/17 22:30:47 No config file used
Jul 17 22:30:47 DietPi filebrowser[40182]: 2022/07/17 22:30:47 listen tcp 0.0.0.0:8084: bind: address already in use
Jul 17 22:30:47 DietPi systemd[1]: **filebrowser.service: Main process exited, code=exited, status=1/FAILURE**
Jul 17 22:30:47 DietPi systemd[1]: **filebrowser.service: Failed with result 'exit-code'.**

The port seems to be in use by another application already. Can you share following

ss -tulpn | grep LISTEN

What else you have installed?

sorry, command returned this

ss -tulpn | grep LISTEN
tcp   LISTEN 0      500               0.0.0.0:8084       0.0.0.0:*    users:(("mono",pid=456,fd=5))                                                                                                       
tcp   LISTEN 0      5                 0.0.0.0:8181       0.0.0.0:*    users:(("python3",pid=40080,fd=8))                                                                                                  
tcp   LISTEN 0      32                0.0.0.0:53         0.0.0.0:*    users:(("pihole-FTL",pid=734,fd=5))                                                                                                 
tcp   LISTEN 0      1000              0.0.0.0:22         0.0.0.0:*    users:(("dropbear",pid=453,fd=4))                                                                                                   
tcp   LISTEN 0      5      172.17.0.1%docker0:42551      0.0.0.0:*    users:(("deluged",pid=40070,fd=22))                                                                                                 
tcp   LISTEN 0      5            10.6.0.1%wg0:42551      0.0.0.0:*    users:(("deluged",pid=40070,fd=15))                                                                                                 
tcp   LISTEN 0      5      192.168.0.216%eth0:42551      0.0.0.0:*    users:(("deluged",pid=40070,fd=13))                                                                                                 
tcp   LISTEN 0      5            127.0.0.1%lo:42551      0.0.0.0:*    users:(("deluged",pid=40070,fd=11))                                                                                                 
tcp   LISTEN 0      256             127.0.0.1:5335       0.0.0.0:*    users:(("unbound",pid=672,fd=4))                                                                                                    
tcp   LISTEN 0      128             127.0.0.1:32600      0.0.0.0:*    users:(("Plex Tuner Serv",pid=42312,fd=10))                                                                                         
tcp   LISTEN 0      256             127.0.0.1:8953       0.0.0.0:*    users:(("unbound",pid=672,fd=6))                                                                                                    
tcp   LISTEN 0      511               0.0.0.0:443        0.0.0.0:*    users:(("nginx",pid=40963,fd=6),("nginx",pid=40962,fd=6),("nginx",pid=40961,fd=6),("nginx",pid=40960,fd=6),("nginx",pid=40958,fd=6))
tcp   LISTEN 0      4096              0.0.0.0:3579       0.0.0.0:*    users:(("docker-proxy",pid=40718,fd=4))                                                                                             
tcp   LISTEN 0      500               0.0.0.0:8989       0.0.0.0:*    users:(("mono",pid=40144,fd=8))                                                                                                     
tcp   LISTEN 0      4096              0.0.0.0:8765       0.0.0.0:*    users:(("docker-proxy",pid=40764,fd=4))                                                                                             
tcp   LISTEN 0      50                0.0.0.0:445        0.0.0.0:*    users:(("smbd",pid=39906,fd=44))                                                                                                    
tcp   LISTEN 0      50                0.0.0.0:58846      0.0.0.0:*    users:(("deluged",pid=40070,fd=18))                                                                                                 
tcp   LISTEN 0      512               0.0.0.0:8097       0.0.0.0:*    users:(("jellyfin",pid=40112,fd=318))                                                                                               
tcp   LISTEN 0      4096              0.0.0.0:7202       0.0.0.0:*    users:(("docker-proxy",pid=165957,fd=4))                                                                                            
tcp   LISTEN 0      4096              0.0.0.0:17442      0.0.0.0:*    users:(("docker-proxy",pid=40811,fd=4))                                                                                             
tcp   LISTEN 0      4096              0.0.0.0:7203       0.0.0.0:*    users:(("docker-proxy",pid=165935,fd=4))                                                                                            
tcp   LISTEN 0      4096              0.0.0.0:6595       0.0.0.0:*    users:(("docker-proxy",pid=40475,fd=4))                                                                                             
tcp   LISTEN 0      512         192.168.0.216:7878       0.0.0.0:*    users:(("Radarr",pid=40157,fd=217))                                                                                                 
tcp   LISTEN 0      5               127.0.0.1:4711       0.0.0.0:*    users:(("pihole-FTL",pid=734,fd=10))                                                                                                
tcp   LISTEN 0      4096              0.0.0.0:5001       0.0.0.0:*    users:(("docker-proxy",pid=40609,fd=4))                                                                                             
tcp   LISTEN 0      4096              0.0.0.0:9002       0.0.0.0:*    users:(("docker-proxy",pid=40553,fd=4))                                                                                             
tcp   LISTEN 0      80              127.0.0.1:3306       0.0.0.0:*    users:(("mariadbd",pid=39980,fd=24))                                                                                                
tcp   LISTEN 0      511             127.0.0.1:6379       0.0.0.0:*    users:(("redis-server",pid=39917,fd=7))                                                                                             
tcp   LISTEN 0      50                0.0.0.0:139        0.0.0.0:*    users:(("smbd",pid=39906,fd=45))                                                                                                    
tcp   LISTEN 0      128             127.0.0.1:41261      0.0.0.0:*    users:(("Plex Script Hos",pid=40215,fd=8))                                                                                          
tcp   LISTEN 0      511               0.0.0.0:80         0.0.0.0:*    users:(("nginx",pid=40963,fd=7),("nginx",pid=40962,fd=7),("nginx",pid=40961,fd=7),("nginx",pid=40960,fd=7),("nginx",pid=40958,fd=7))
tcp   LISTEN 0      50                0.0.0.0:8112       0.0.0.0:*    users:(("deluge-web",pid=40170,fd=7))                                                                                               
tcp   LISTEN 0      4096              0.0.0.0:10000      0.0.0.0:*    users:(("miniserv.pl",pid=40249,fd=5))                                                                                              
tcp   LISTEN 0      1024            127.0.0.1:32401      0.0.0.0:*    users:(("Plex Media Serv",pid=40093,fd=57))                                                                                         
tcp   LISTEN 0      32                   [::]:53            [::]:*    users:(("pihole-FTL",pid=734,fd=7))                                                                                                 
tcp   LISTEN 0      1000                 [::]:22            [::]:*    users:(("dropbear",pid=453,fd=5))                                                                                                   
tcp   LISTEN 0      256                 [::1]:8953          [::]:*    users:(("unbound",pid=672,fd=5))                                                                                                    
tcp   LISTEN 0      511                  [::]:443           [::]:*    users:(("nginx",pid=40963,fd=5),("nginx",pid=40962,fd=5),("nginx",pid=40961,fd=5),("nginx",pid=40960,fd=5),("nginx",pid=40958,fd=5))
tcp   LISTEN 0      4096                 [::]:3579          [::]:*    users:(("docker-proxy",pid=40728,fd=4))                                                                                             
tcp   LISTEN 0      512                     *:9117             *:*    users:(("jackett",pid=171028,fd=206))                                                                                               
tcp   LISTEN 0      4096                 [::]:8765          [::]:*    users:(("docker-proxy",pid=40770,fd=4))                                                                                             
tcp   LISTEN 0      50                   [::]:445           [::]:*    users:(("smbd",pid=39906,fd=42))                                                                                                    
tcp   LISTEN 0      4096                 [::]:7202          [::]:*    users:(("docker-proxy",pid=165963,fd=4))                                                                                            
tcp   LISTEN 0      4096                 [::]:17442         [::]:*    users:(("docker-proxy",pid=40830,fd=4))                                                                                             
tcp   LISTEN 0      4096                 [::]:7203          [::]:*    users:(("docker-proxy",pid=165942,fd=4))                                                                                            
tcp   LISTEN 0      4096                 [::]:6595          [::]:*    users:(("docker-proxy",pid=40485,fd=4))                                                                                             
tcp   LISTEN 0      5                   [::1]:4711          [::]:*    users:(("pihole-FTL",pid=734,fd=11))                                                                                                
tcp   LISTEN 0      4096                 [::]:5001          [::]:*    users:(("docker-proxy",pid=40616,fd=4))                                                                                             
tcp   LISTEN 0      4096                 [::]:9002          [::]:*    users:(("docker-proxy",pid=40561,fd=4))                                                                                             
tcp   LISTEN 0      511                 [::1]:6379          [::]:*    users:(("redis-server",pid=39917,fd=8))                                                                                             
tcp   LISTEN 0      50                   [::]:139           [::]:*    users:(("smbd",pid=39906,fd=43))                                                                                                    
tcp   LISTEN 0      511                  [::]:80            [::]:*    users:(("nginx",pid=40963,fd=8),("nginx",pid=40962,fd=8),("nginx",pid=40961,fd=8),("nginx",pid=40960,fd=8),("nginx",pid=40958,fd=8))
tcp   LISTEN 0      1024                    *:32400            *:*    users:(("Plex Media Serv",pid=40093,fd=56)) 

let’s try to check the process ID

ps -ef | grep 456
ps -ef | grep 456
www-data     456       1  0 Jul17 ?        00:00:02 /usr/bin/mono /usr/lib/mono/4.5/xsp4.exe --port 8084 --address 0.0.0.0 --appconfigdir /etc/xsp4 --nonstop
root      292823  292565  0 20:11 pts/0    00:00:00 grep 456

Did you installed something like mono-xsp4 web server? At least it is configuration to ran on port 8084

I think at least with older Mono versions this xsp4 server is started automatically.

@caio1007
Which hardware/SBC do you use? If it’s not an RPi 1 or Zero, all but Sonarr can run without Mono nowadays, even Sonarr without this xsp4. Reinstalling/Updating Radarr should allow you to uninstall Mono.

I use sonarr and radarr.
I use raspberry pi 4 4 gb, which command do I use to uninstall mono? if i uninstall my sonarr will it stop working?

could you share following?

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a

@MichaIng
Sonarr still requires Mono, isn’t it?

cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=6
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
G_LIVE_PATCH_STATUS[1]='not applied'
echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0

uname -a
Linux DietPi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

Found it, an enhancement we did with DietPi v8.0, skipping mono-complete and installing only mono-devel which leaves out XSP4:

apt install mono-devel
apt purge --autoremove mono-complete

Related issue: Dietpi-Software File browser won't start · Issue #5093 · MichaIng/DietPi · GitHub

1 Like

Thanks, working perfectly

1 Like