Network problems

Kernels & Hardware, configuring network, installing services

Network problems

Postby p3t3rp1Lz » 2017-06-20 18:14

Hello,

I´ve set up a new Debian Server:
Gigabyte B150M-D2V DDR3 Intel
Intel Core i5 7400 4x 3.00GHz
8GB Kingston ValueRAM DDR3-1333

Including 3 Harddrives from my old server containing the data.

I had some kernel/firmware troubles because I´m a noob but with the help of some guys, I managed to clear all obvious problems(at least I hope so)
~$ uname -r
4.9.0-0.bpo.2-amd64

Now to my still existing problem:
The server has no monitor as it is located in the basement. So I log in from either my laptop (via ssh) or I access the samba-shared folder from my PI.
When I log in via ssh the first login takes about 10 seconds until the server asks for password. When logged in, every now and then (ca. ~3-5min) the server doesn´t respond, it looks like it hang up, but then, all keyboard strokes show up and the connection is back again.
When starting multimedia from my PI every now and then (~3-5min) the video or music stops and hangs and needs up to 5seconds to be play on. I most recently noticed another strange behaviour: when I log in via ssh and start "sudo tcptrack -i eth0" the connection from my PI is WAY better, not a single stutter (dunno if this is the right english word, sorry, cannot translate "ruckeln" to english) in 1 1/2h.

With my previous server I had none of these issues so I ruled out network(cable, router, lan) problems. As nothing changed (PI, laptop, network, locations, ...) the problem must be found on the server-set up. Please help me find this nasty problem.
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Re: Network problems

Postby arochester » 2017-06-21 08:53

"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1030
Joined: 2010-12-07 19:55

Re: Network problems

Postby orythem27 » 2017-06-21 11:18

Maybe an uncommon model of ethernet card with not-so-good driver? Post the output of the following command.
Code: Select all
lspci -knn | grep -iA2 net
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Network problems

Postby p3t3rp1Lz » 2017-06-21 17:01

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
Subsystem: Gigabyte Technology Co., Ltd Motherboard [1458:e000]
Kernel driver in use: r8169
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Re: Network problems

Postby v&n » 2017-06-21 18:45

If you can (that is, if this package is available or can be made available in your repositories), I would recommend to try r8168-dkms driver before trying anything else.

The problem you described is quite commonly reported with the device/driver combination that you currently have. The fix is usually the above suggested nonfree driver, blacklisting the native one (which the package does automatically during its installation).
v&n
 
Posts: 594
Joined: 2015-02-04 02:57

Re: Network problems

Postby p3t3rp1Lz » 2017-06-24 11:54

Thanks v&n, unfortunately this package is not available.

My source.list:

#

# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main

#deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ jessie/updates main contrib
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ jessie-updates main contrib
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib

deb http://deb.debian.org/debian jessie main non-free contrib
deb-src http://deb.debian.org/debian jessie main

deb http://deb.debian.org/debian jessie-updates main non-free contrib
deb-src http://deb.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main non-free contrib
deb-src http://security.debian.org/ jessie/updates main

deb http://ftp.debian.org/debian jessie-backports main non-free contrib

---------------------

And with my noobi knowledge I´m not able to install dmks..
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Re: Network problems

Postby GarryRicketson » 2017-06-24 12:10

You need to show / tell us exactly how you tried to install,..
Please use code boxes, and post the command you used, exactly
like you wrote it, including exactly how the package name is written.
Nobody can guess why it can not be installed, when you do not tell any one
how you tried to install it. Have you read any documentation on installing packages ?
https://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html

Also include exactly what any error messages say.


Did you run 'apt-get update' after you edited your sources.list file ?
User avatar
GarryRicketson
 
Posts: 4216
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Network problems

Postby dasein » 2017-06-24 12:58

p3t3rp1Lz wrote:Thanks v&n, unfortunately this package is not available.

That's because it's in the non-free repo, which you do not have enabled.

More detailed explanation here: https://wiki.debian.org/SourcesList#Component (though reading the whole page is strongly recommended)

Also, you do not need the deb-src lines.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Network problems

Postby p3t3rp1Lz » 2017-06-24 18:14

Code: Select all
xxx@xxx:~$ sudo apt-get update
OK   http://ftp.debian.org jessie-backports InRelease
OK   http://security.debian.org jessie/updates InRelease
Holen: 1 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27,8 kB]
OK   http://security.debian.org jessie/updates/main amd64 Packages
OK   http://security.debian.org jessie/updates/contrib amd64 Packages
OK   http://security.debian.org jessie/updates/non-free amd64 Packages
OK   http://security.debian.org jessie/updates/contrib Translation-en
Holen: 2 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24,3 kB]
OK   http://security.debian.org jessie/updates/main Translation-en
Holen: 3 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [20,9 kB]
OK   http://security.debian.org jessie/updates/non-free Translation-en
Holen: 4 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6.976 B]
Holen: 5 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27,8 kB]
Holen: 6 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16,2 kB]
Ign http://deb.debian.org jessie InRelease
OK   http://deb.debian.org jessie-updates InRelease
OK   http://deb.debian.org jessie Release.gpg
Holen: 7 http://deb.debian.org jessie-updates/main amd64 Packages/DiffIndex [8.392 B]
OK   http://deb.debian.org jessie-updates/contrib amd64 Packages
Holen: 8 http://deb.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
OK   http://deb.debian.org jessie-updates/contrib Translation-en
Holen: 9 http://deb.debian.org jessie-updates/main Translation-en/DiffIndex [3.196 B]
Holen: 10 http://deb.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
OK   http://deb.debian.org jessie Release
OK   http://deb.debian.org jessie/main amd64 Packages
OK   http://deb.debian.org jessie/contrib amd64 Packages
OK   http://deb.debian.org jessie/non-free amd64 Packages
OK   http://deb.debian.org jessie/contrib Translation-en
OK   http://deb.debian.org jessie/main Translation-de_DE
OK   http://deb.debian.org jessie/main Translation-de
OK   http://deb.debian.org jessie/main Translation-en
OK   http://deb.debian.org jessie/non-free Translation-en
Es wurden 137 kB in 4 s geholt (27,4 kB/s).
Paketlisten werden gelesen... Fertig


Code: Select all
xxx@xxx:~$ sudo apt-cache search r8168
xxx@xxx:~$ sudo apt-cache search 8168
firmware-realtek - Binary firmware for Realtek wired/wifi/BT adapters


Code: Select all
xxx@xxx:~$ sudo apt-cache search dkms
virtualbox - x86 virtualization solution - base binaries
virtualbox-dkms - x86 virtualization solution - kernel module sources for dkms
virtualbox-guest-dkms - x86 virtualization solution - guest addition module source for dkms
bbswitch-dkms - Schnittstelle zum Umschalten der Stromversorgung von NVIDIA-Optimus-Grafikkarten
dkms - Unterstützungsrahmen für dynamische Kernelmodule
acpi-call-dkms - Kernel module that enables you to call ACPI methods
asic0x-dkms - iBurst USB modem driver in DKMS format
blktap-dkms - Xen API blktap kernel component DKMS package
flashcache-dkms - write-back block device cache for Linux (DKMS version)
flashcache-utils - write-back block device cache for Linux (user space utilities)
iscsitarget-dkms - iSCSI Enterprise Target kernel module source - dkms version
langford-dkms - Kernel drivers for the Per Vices Noctar IQ demodulator board
lime-forensics-dkms - kernel module to memory dump (DKMS)
lttng-modules-dkms - Linux Trace Toolkit (LTTng) kernel modules (DKMS)
nat-rtsp-dkms - Connection tracking and NAT support for RTSP
ndiswrapper-dkms - Source for the ndiswrapper Linux kernel module (DKMS)
open-vm-tools-dkms - Open VMware Tools for virtual machines hosted on VMware (DKMS)
openafs-modules-dkms - AFS distributed filesystem kernel module DKMS source
oss4-dkms - Open Sound System - DKMS module sources
backfire-dkms - kernel module for signal benchmarking (DKMS)
sysdig-dkms - system-level exploration and troubleshooting tool - kernel source
tp-smapi-dkms - ThinkPad hardware/firmware access modules source - dkms version
v4l2loopback-dkms - Source for the v4l2loopback driver (DKMS)
west-chamber-dkms - iptable extension for bypassing content filtering firewall (dkms)
xtables-addons-common - Extensions targets and matches for iptables [tools, libs]
xtables-addons-dkms - Extensions targets and matches for iptables
broadcom-sta-dkms - dkms source for the Broadcom STA Wireless driver
fglrx-driver - non-free ATI/AMD RadeonHD display driver
fglrx-modules-dkms - dkms module source for the non-free ATI/AMD RadeonHD display driver
libcuda1 - NVIDIA CUDA Driver Library
nvidia-driver - NVIDIA metapackage
nvidia-kernel-dkms - NVIDIA binary kernel module DKMS source
nvidia-kernel-source - NVIDIA binary kernel module source
nvidia-vdpau-driver - Video Decode and Presentation API for Unix - NVIDIA driver
xserver-xorg-video-nvidia - NVIDIA binary Xorg driver
nvidia-legacy-304xx-driver - NVIDIA metapackage (304xx legacy version)
nvidia-legacy-304xx-kernel-dkms - NVIDIA binary kernel module DKMS source (304xx legacy version)
nvidia-legacy-304xx-kernel-source - NVIDIA binary kernel module source (304xx legacy version)
xserver-xorg-video-nvidia-legacy-304xx - NVIDIA binary Xorg driver (304xx legacy version)
sl-modem-dkms - SmartLink software modem driver - module building source
sl-modem-source - SmartLink software modem driver (dummy transitional package)
zfs-dkms - OpenZFS filesystem kernel modules for Linux
dpdk-igb-uio-dkms - Data Plane Development Kit (igb uio dkms)
dpdk-rte-kni-dkms - Data Plane Development Kit (rte kni dkms)
spl-dkms - Solaris Porting Layer kernel modules for Linux
libnvidia-legacy-304xx-cuda1 - NVIDIA CUDA Driver Library (304xx legacy version)
nvidia-legacy-304xx-vdpau-driver - Video Decode and Presentation API for Unix - NVIDIA driver (304xx legacy)
libnvidia-legacy-340xx-cuda1 - NVIDIA CUDA Driver Library (340xx legacy version)
nvidia-legacy-340xx-driver - NVIDIA metapackage (340xx legacy version)
nvidia-legacy-340xx-kernel-dkms - NVIDIA binary kernel module DKMS source (340xx legacy version)
nvidia-legacy-340xx-kernel-source - NVIDIA binary kernel module source (340xx legacy version)
nvidia-legacy-340xx-vdpau-driver - Video Decode and Presentation API for Unix - NVIDIA driver (340xx legacy)
xserver-xorg-video-nvidia-legacy-340xx - NVIDIA binary Xorg driver (340xx legacy version)


Code: Select all
xxx@xxx:~$ sudo apt-get install r8168-dkms
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
E: Paket r8168-dkms kann nicht gefunden werden.
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Re: Network problems

Postby orythem27 » 2017-06-25 01:00

p3t3rp1Lz wrote:OK http://deb.debian.org jessie/non-free amd64 Packages
E: Paket r8168-dkms kann nicht gefunden werden.

Try the usual practices first.
1. Switch to another mirror;
2. Clear existing package lists in /var/lib/apt/lists/ and /var/lib/apt/lists/partial/
3. `apt-get update`

Or:

0. Install the package apt-transport-https;
1. Switch to another mirror supporting https and replace all "http://" with "https://" in /etc/apt/sources.list;
2. Clear existing package lists in /var/lib/apt/lists/ and /var/lib/apt/lists/partial/
3. `apt-get update`
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Network problems

Postby v&n » 2017-06-26 09:38

The package is available only in the stretch (stable) repositories while you seem to have a jessie (oldstable) system, which is why I was suspecting a problem in its availability.

However, it seems to depend only on dkms (version >= 2.1.0.0), and the version of dkms available for jessie is 2.2.0.3-2. So I wonder if installing just the latest version of dkms, then manually installing the r8168-dkms package (with dpkg -i) should work. We can even try manually extracting and compiling the source, but installing the package itself would not only be much easier, but would also save you the trouble of recompiling with each kernel update.
v&n
 
Posts: 594
Joined: 2015-02-04 02:57

Re: Network problems

Postby p3t3rp1Lz » 2017-06-27 17:09

I just noticed, that my output is in German. Guys I´m sorry for that! I hope from context you get the information needed.

Here ist how I installed dkms:
xxx@xxxx:~$ sudo apt-get -t jessie-backports install dkms
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
fakeroot gcc libfakeroot linux-headers-4.9.0-0.bpo.3-amd64 linux-headers-4.9.0-0.bpo.3-common
linux-headers-amd64 make
Vorgeschlagene Pakete:
python3-apport menu gcc-multilib autoconf automake libtool flex bison gdb gcc-doc make-doc
Die folgenden NEUEN Pakete werden installiert:
dkms fakeroot gcc libfakeroot linux-headers-4.9.0-0.bpo.3-amd64 linux-headers-4.9.0-0.bpo.3-common
linux-headers-amd64 make
0 aktualisiert, 8 neu installiert, 0 zu entfernen und 160 nicht aktualisiert.
Es müssen 8.503 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 47,1 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen: 1 http://ftp.debian.org/debian/ jessie-backports/main dkms all 2.3-2~bpo8+1 [75,4 kB]
Holen: 2 http://ftp.debian.org/debian/ jessie-backports/main linux-headers-4.9.0-0.bpo.3-common all 4.9.30-2~bpo8+1 [7.474 kB]
Holen: 3 http://deb.debian.org/debian/ jessie/main gcc amd64 4:4.9.2-2 [5.136 B]
Holen: 4 http://deb.debian.org/debian/ jessie/main make amd64 4.0-8.1 [349 kB]
Holen: 5 http://deb.debian.org/debian/ jessie/main libfakeroot amd64 1.20.2-1 [44,7 kB]
Holen: 6 http://deb.debian.org/debian/ jessie/main fakeroot amd64 1.20.2-1 [84,7 kB]
Holen: 7 http://ftp.debian.org/debian/ jessie-backports/main linux-headers-4.9.0-0.bpo.3-amd64 amd64 4.9.30-2~bpo8+1 [464 kB]
Holen: 8 http://ftp.debian.org/debian/ jessie-backports/main linux-headers-amd64 amd64 4.9+80~bpo8+1 [6.058 B]
Es wurden 8.503 kB in 3 s geholt (2.639 kB/s).
Vormals nicht ausgewähltes Paket gcc wird gewählt.
(Lese Datenbank ... 163015 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../gcc_4%3a4.9.2-2_amd64.deb ...
Entpacken von gcc (4:4.9.2-2) ...
Vormals nicht ausgewähltes Paket make wird gewählt.
Vorbereitung zum Entpacken von .../make_4.0-8.1_amd64.deb ...
Entpacken von make (4.0-8.1) ...
Vormals nicht ausgewähltes Paket dkms wird gewählt.
Vorbereitung zum Entpacken von .../dkms_2.3-2~bpo8+1_all.deb ...
Entpacken von dkms (2.3-2~bpo8+1) ...
Vormals nicht ausgewähltes Paket libfakeroot:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../libfakeroot_1.20.2-1_amd64.deb ...
Entpacken von libfakeroot:amd64 (1.20.2-1) ...
Vormals nicht ausgewähltes Paket fakeroot wird gewählt.
Vorbereitung zum Entpacken von .../fakeroot_1.20.2-1_amd64.deb ...
Entpacken von fakeroot (1.20.2-1) ...
Vormals nicht ausgewähltes Paket linux-headers-4.9.0-0.bpo.3-common wird gewählt.
Vorbereitung zum Entpacken von .../linux-headers-4.9.0-0.bpo.3-common_4.9.30-2~bpo8+1_all.deb ...
Entpacken von linux-headers-4.9.0-0.bpo.3-common (4.9.30-2~bpo8+1) ...
Vormals nicht ausgewähltes Paket linux-headers-4.9.0-0.bpo.3-amd64 wird gewählt.
Vorbereitung zum Entpacken von .../linux-headers-4.9.0-0.bpo.3-amd64_4.9.30-2~bpo8+1_amd64.deb ...
Entpacken von linux-headers-4.9.0-0.bpo.3-amd64 (4.9.30-2~bpo8+1) ...
Vormals nicht ausgewähltes Paket linux-headers-amd64 wird gewählt.
Vorbereitung zum Entpacken von .../linux-headers-amd64_4.9+80~bpo8+1_amd64.deb ...
Entpacken von linux-headers-amd64 (4.9+80~bpo8+1) ...
Trigger für man-db (2.7.0.2-5) werden verarbeitet ...
gcc (4:4.9.2-2) wird eingerichtet ...
make (4.0-8.1) wird eingerichtet ...
dkms (2.3-2~bpo8+1) wird eingerichtet ...
libfakeroot:amd64 (1.20.2-1) wird eingerichtet ...
fakeroot (1.20.2-1) wird eingerichtet ...
update-alternatives: /usr/bin/fakeroot-sysv wird verwendet, um /usr/bin/fakeroot (fakeroot) im automatischen Modus bereitzustellen
linux-headers-4.9.0-0.bpo.3-common (4.9.30-2~bpo8+1) wird eingerichtet ...
linux-headers-4.9.0-0.bpo.3-amd64 (4.9.30-2~bpo8+1) wird eingerichtet ...
linux-headers-amd64 (4.9+80~bpo8+1) wird eingerichtet ...


Afterwards I manually installed driver:
xxx@xxx:~$ sudo dpkg -i /home/xxx/r8168-dkms_8.044.02-1_all.deb
Vormals nicht ausgewähltes Paket r8168-dkms wird gewählt.
(Lese Datenbank ... 178959 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../r8168-dkms_8.044.02-1_all.deb ...
Entpacken von r8168-dkms (8.044.02-1) ...
r8168-dkms (8.044.02-1) wird eingerichtet ...
Loading new r8168-8.044.02 DKMS files...
Building for 4.9.0-0.bpo.2-amd64
Building initial module for 4.9.0-0.bpo.2-amd64
Done.

r8168:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-0.bpo.2-amd64/updates/dkms/

depmod...

Backing up initrd.img-4.9.0-0.bpo.2-amd64 to /boot/initrd.img-4.9.0-0.bpo.2-amd64.old-dkms
Making new initrd.img-4.9.0-0.bpo.2-amd64
(If next boot fails, revert to initrd.img-4.9.0-0.bpo.2-amd64.old-dkms image)
update-initramfs....

DKMS: install completed.


Well the next boot didn´t fail so I will test the issue and let you know.

Thanks so far.
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Re: Network problems

Postby p3t3rp1Lz » 2017-07-02 16:58

Hi guys,

I had some time to test now. Unfortunately the problem still occurs. It feels like the problem has been smoothen a little. But with such sort of temporary occoruring problem it is hard to say.

Bottom line: problem still exists.
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Re: Network problems

Postby v&n » 2017-07-03 17:33

When it does fail, our only help could be any clues from logs (e.g. dmesg or syslog) immediately after the failure. Since we don't have the same hardware to test and find out any possible reasons/solutions by ourselves, we rely entirely on logs and any and all the related details that you may provide.

I am assuming that you do have the r8168 driver in play now, the native one having been blacklisted.
v&n
 
Posts: 594
Joined: 2015-02-04 02:57

Re: Network problems

Postby p3t3rp1Lz » 2017-07-06 18:39

Well I´m pretty sure I installed it, but blacklisting? Even cannot google a good description for how to do that. I´m sorry.
p3t3rp1Lz
 
Posts: 7
Joined: 2017-06-20 18:00

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable