Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Router firmware update causes unraid to lose network connection

Featured Replies

I observed a wired issue. After my Fritzbox (router) OS update my unraid server loses its network connection and can't be accessed anymore.

It's still up and running (I have my zigbee lights working fine) but I can't access the UI and the router does not show the server as connected device.

This happened to me before at the last router update, but I only realized right now it was due to the router firmware update.

One of my friends observed the same issue.

 

And suggesting how to access the server without hard rebooting it?

Solved by Mainfrezzer

  • Community Expert

Do you use powertop with the "--auto-tune" by any chance?

  • Author

Yeah I did, does this affect the network?

  • Community Expert
  • Solution

the auto tune is too aggresive and turns off the NIC when theres absolutely nothing going on on the network and never turns it back on again. Had that happen to me aswell. 

 

# -------------------------------------------------
# Set power-efficient CPU governor
# -------------------------------------------------
#/etc/rc.d/rc.cpufreq powersave

# -------------------------------------------------
# Enable power-efficient ethernet
# -------------------------------------------------

# enable IEEE 802.3az (Energy Efficient Ethernet): Could be incompatible to LACP bonds!
#for i in /sys/class/net/eth?; do dev=$(basename $i); [[ $(echo $(ethtool --show-eee $dev 2> /dev/null) | grep -c "Supported EEE link modes: 1") -eq 1 ]] && ethtool --set-eee $dev eee on; done

# Disable wake on lan
#for i in /sys/class/net/eth?; do ethtool -s  $(basename $i) wol d; done

# -------------------------------------------------
# powertop tweaks
# -------------------------------------------------

# Enable SATA link power management
echo med_power_with_dipm | tee /sys/class/scsi_host/host*/link_power_management_policy

# Runtime PM for I2C Adapter (i915 gmbus dpb)
#echo auto | tee /sys/bus/i2c/devices/i2c-*/device/power/control

# Autosuspend for USB device
echo auto | tee /sys/bus/usb/devices/*/power/control

# Runtime PM for disk
echo auto | tee /sys/block/sd*/device/power/control

# Runtime PM for PCI devices
#echo auto | tee /sys/bus/pci/devices/????:??:??.?/power/control

# Runtime PM for ATA devices
echo auto | tee /sys/bus/pci/devices/????:??:??.?/ata*/power/control



This is my setting. the cpu govenor is disabled because i franky dont need it and the effient ethernet bit is the problematic one, that also why its disabled. auto tune just turns that one on.

so you can basically remove the auto tune line and replace it with just this

 

# -------------------------------------------------
# powertop tweaks
# -------------------------------------------------

# Enable SATA link power management
echo med_power_with_dipm | tee /sys/class/scsi_host/host*/link_power_management_policy

# Runtime PM for I2C Adapter (i915 gmbus dpb)
#echo auto | tee /sys/bus/i2c/devices/i2c-*/device/power/control

# Autosuspend for USB device
echo auto | tee /sys/bus/usb/devices/*/power/control

# Runtime PM for disk
echo auto | tee /sys/block/sd*/device/power/control

# Runtime PM for PCI devices
#echo auto | tee /sys/bus/pci/devices/????:??:??.?/power/control

# Runtime PM for ATA devices
echo auto | tee /sys/bus/pci/devices/????:??:??.?/ata*/power/control



For you current problem, not being able to access the server, you can only get it done by hooking up a keyboard to it and running cmds to try to bring the nic back up or shutdown to the server to make the modifications on the usb drive so that never happens again.


Edit:

or also the (Runtime PM for I2C Adapter (i915 gmbus dpb) i cant remember why i turned it off, i know it had a reason but honestly i have no clue why now xD

Edit #2:

I did see that the PCI Devices is disabled/commented out, thats was on my end the important second line because my NIC is treated as PCI device. But you would have to check how it works in your setup.

So to sum it up, once again

 

# -------------------------------------------------
# powertop tweaks
# -------------------------------------------------

# Enable SATA link power management
echo med_power_with_dipm | tee /sys/class/scsi_host/host*/link_power_management_policy

# Autosuspend for USB device
echo auto | tee /sys/bus/usb/devices/*/power/control

# Runtime PM for disk
echo auto | tee /sys/block/sd*/device/power/control

# Runtime PM for ATA devices
echo auto | tee /sys/bus/pci/devices/????:??:??.?/ata*/power/control

Should work out but it depends on what you have as a system. 
Thats a link for a bit more information on it
https://forums.unraid.net/topic/98070-reduce-power-consumption-with-powertop/

Edited by Mainfrezzer

  • Author

@Mainfrezzer
Thank you very much for your helpfull information and the link!

 

I disabled the auto-tune and changed it to your suggestions (my Ethernet adapter is also connected via PCI).

 

For everyone interested, I was able to reboot my server by connecting a keyboard (without a monitor) and type the following commands blind

1) Login name

root
<ENTER>

2) Password

password
<ENTER>

3) Reboot

powerdown -r
<ENTER>

Wait for ~120 sec

  • Community Expert

Make sure to let your friend know aswell :D

  • 2 months later...

hey @Mainfrezzer can u please tell me where to edit autoune ? sorry i am a  newbee but have maybee the same Problem.. my NIC is getting disconnected.. i have powerwertop with autotune, but dont know where to edit to turn off EEE 

 

Gues i have to #commendout the EEE line..

 

 

Quote

# ------------------------------------------------- # Enable power-efficient ethernet # ------------------------------------------------- # enable IEEE 802.3az (Energy Efficient Ethernet): Could be incompatible to LACP bonds! #for i in /sys/class/net/eth?; do dev=$(basename $i); [[ $(echo $(ethtool --show-eee $dev 2> /dev/null) | grep -c "Supported EEE link modes: 1") -eq 1 ]] && ethtool --set-eee $dev eee on; done

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.