Hi. I’m having issue with my Nextcloud server, hosted on a machine running Proxmox. Nextcloud was installed using the Turnkey-Nextcloud lxc template. My desktop (the client) is running EndeavourOS (6.1 lts kernel)
The issue happens randomly, after few minutes (sometime hours) of “intense” traffic. Nextcloud server became no longer accessible, I can’t no longer ssh it (default 22 port), but I can still ping it. Restarting the machine not always fix the issue. The issue goes away by itself after some time (even days). Note that I still can reach Nextcloud via other devices (even though I’ve never used Nextcloud so much on other devices…).
Thing is, I have no idea to how troubleshoot it. I disable firewall on my side, disabled fail2ban on the server (firewalld/ufw is not installed on the server), nothing changed. But I found a way to reestablish the connection.
On both desktop and server I have Tailscale installed (Wireguard vpn). If I try to access Nextcloud via the vpn it works, and immediately after, it starts to work again even without the vpn (ie using the 192.168.* local address).
I guess the problem is on the desktop client, because the server is running very few processes, and none of them look like they could cause issue (but I’m no expert, so I’ll list the processes down here)
root@NextCloud ~# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 165860 9876 ? Ss 15:42 0:00 /sbin/init
root 49 0.0 0.7 105748 32948 ? Ss 15:42 0:00 /lib/systemd/systemd-journald
systemd+ 66 0.0 0.1 16072 6960 ? Ss 15:42 0:00 /lib/systemd/systemd-networkd
root 154 0.0 0.0 6740 2616 ? Ss 15:42 0:00 /usr/sbin/cron -f
redis 160 0.0 0.2 67720 11736 ? Ssl 15:42 0:02 /usr/bin/redis-server 127.0.0.1:6379
root 162 0.0 0.0 151160 3584 ? Ssl 15:42 0:00 /usr/sbin/rsyslogd -n -iNONE
root 184 0.0 0.0 5476 2016 pts/0 Ss+ 15:42 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux
root 185 0.0 0.0 5476 2028 pts/2 Ss+ 15:42 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud tty2 115200,38400,9600 linux
root 208 0.0 0.1 13376 7516 ? Ss 15:42 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
stunnel4 216 0.0 0.0 86056 1320 ? Ssl 15:42 0:00 /usr/bin/stunnel4 /etc/stunnel/shellinabox.conf
stunnel4 233 0.0 0.0 86056 1328 ? Ssl 15:42 0:00 /usr/bin/stunnel4 /etc/stunnel/webmin.conf
mysql 316 0.0 3.3 1871748 140688 ? Ssl 15:42 0:01 /usr/sbin/mariadbd
root 318 0.0 0.9 269288 41568 ? Ss 15:42 0:00 /usr/sbin/apache2 -k start
www-data 322 0.0 0.0 3492 168 ? Ss 15:42 0:00 /usr/bin/htcacheclean -d 120 -p /var/cache/apache2/mod_cache_disk -l 300M -n
www-data 327 0.0 1.3 272852 57720 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 328 0.0 1.3 272716 56008 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 329 0.0 1.7 292764 75472 ? S 15:42 0:01 /usr/sbin/apache2 -k start
www-data 330 0.0 1.7 292888 74608 ? S 15:42 0:02 /usr/sbin/apache2 -k start
root 393 0.0 0.7 730908 33172 ? Ssl 15:42 0:02 /usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port=41641
shellin+ 448 0.0 0.0 7212 2616 ? Ss 15:42 0:00 /usr/bin/shellinaboxd -q --background=/var/run/shellinaboxd.pid -c /var/lib/shellinabox -p 12319 -u shellinabox -g shellinabox --user-css White On Black:+/etc/shellinabox/options-enabled/00+White On Black.css,Black
shellin+ 450 0.0 0.0 7212 664 ? S 15:42 0:00 /usr/bin/shellinaboxd -q --background=/var/run/shellinaboxd.pid -c /var/lib/shellinabox -p 12319 -u shellinabox -g shellinabox --user-css White On Black:+/etc/shellinabox/options-enabled/00+White On Black.css,Black
root 987 0.0 0.1 40052 4700 ? Ss 15:42 0:00 /usr/lib/postfix/sbin/master -w
postfix 988 0.0 0.1 40072 6352 ? S 15:42 0:00 pickup -l -t unix -u -c
postfix 989 0.0 0.1 40120 6292 ? S 15:42 0:00 qmgr -l -t unix -u
root 991 0.0 0.5 31880 24196 ? Ss 15:42 0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
www-data 1345 0.0 1.3 272508 55252 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 1346 0.0 1.7 292764 72140 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 1347 0.0 1.3 272704 54844 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 1348 0.0 1.2 272496 54508 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 1349 0.0 1.3 272512 54784 ? S 15:42 0:00 /usr/sbin/apache2 -k start
www-data 1350 0.0 1.4 273536 60380 ? S 15:42 0:00 /usr/sbin/apache2 -k start
root 1458 0.0 0.1 9440 4296 pts/1 Ss 15:50 0:00 /bin/login -p --
root 1477 0.0 0.1 5556 4408 pts/1 S 15:50 0:00 -bash
root 1614 0.0 0.1 14156 8312 ? Rs 15:56 1:05 sshd: root@notty