Troubleshooting

Calin Crisan edited this page Nov 15, 2016 · 8 revisions

System Continuously Rebooting

The system will reboot whenever something goes wrong (i.e. disconnected from network, software hangs or kernel crashes). This is accomplished using the hardware watchdog as well as software watch scripts. It is therefore possible that the system enter an indefinite reboot loop if, for example, the network is misconfigured. You can disable the various software watching mechanism in the Expert Settings section.

Most of the reboot loops are caused by a WiFi configuration that is not working. If a wireless connection has been enabled and configured, motionEyeOS will refuse to successfully boot if it fails to connect to it. If you don't (or no longer) need a WiFi connection, disable it. See also Wireless Connection Problems.

System Won't Boot

Make sure that:

  • you have used the OS image that is suitable for your board
  • you have extracted the gzipped OS image before writing it to the card
  • you use an SD card that is compatible with your board
  • the system is indeed not booting by connecting a monitor and observing the output

Before reporting an issue, you should:

  • try using another SD card (preferably a different model)
  • try "burning" images of other OSes that normally work on your device and see if that works

System Crashes

Try:

  • disabling all overclocking settings
  • replacing your power supply unit with a more powerful one
  • removing (or replacing) any USB devices (network adapters, cameras), as some buggy drivers may cause instability
  • rewriting the OS image from scratch or replacing your SD card as it might have become corrupt or defective

In addition to these pointers, you could also connect a monitor to your board and try to identify any suspicious output at the moment of the crash. If there's simply nothing you can do about the crash, you should collect the logs and report an issue.

Date & Time

A HTTP request is normally used to synchronize the system time, so make sure the Internet connection is working and allows direct connections on port 80. Initial date is set upon each boot and is updated every 15 minutes. The local time is established by the time zone setting in the web UI. You can tweak some date-related options in the Expert Settings section.

Shell Access

If you connect a monitor and a keyboard to your board, you'll be prompted to login in the text console. Use root for the username and the administrator's password that you had configured in the UI, as password. If you haven't configured it (i.e. you left it empty), you won't be asked for a password. For your convenience, you can use admin as an alias for the root user.

You can also log into your motionEyeOS using ssh or putty. It listens on the standard 22 port, unless you tweaked the system otherwise.

Wireless Connection Problems

Make sure that:

  • you have a WPA/WPA2-enabled wireless network; other security/encryption methods won't work with motionEyeOS
  • the WiFI channel used by your AP is between 1 and 12; other channels may not be supported by your adapter/country
  • both the network name (aka SSID) and the passworkd (aka PSK) are correctly spelled; mind you that both are case-sensitive
  • you don't have extra spaces or tabs around the configured network name and key
  • the WiFi signal strength is good
  • the PSU can supply enough current for the board as well as for all the peripherals

Network Shares

Wrong values for the network share settings will stop the camera from working at all. You need to know exactly what your share parameters are and to carefully input them in the UI. The easiest way to tell the various parameters is by understanding an example. Consider the following share path (as it appears in Windows Explorer's location bar):

\\192.168.0.1\myshare1\some\path
  • 192.168.0.1 is obviously the IP address of the network server and goes in the field named Network Server; you may also use the server's NetBIOS name (usually the hostname) instead of the IP address;
  • myshare1 is the name of the share and goes in the field named Share Name
  • \some\path is the path relative to the share; it goes in the field named Root Directory, after changing backslashes to forward slashes (i.e. /some/path)
  • needless to say, your credentials (not visible in the example) go in the Share Username and Share Password fields

Avoid using spaces or special characters in your share names, credentials and any directories that make up the relative path.

Streaming Hangs When Using ZoneMinder

When motionEyeOS is used as a network camera for ZoneMinder or any other application that deals with network cameras, the MJPEG video streaming may occasionally hang. The reason is that the motion daemon itself hangs (due to buggy V4L2 drivers?).

When you use the motionEye web UI to check out your cameras, there's a builtin mechanism that detects stalled streams and restarts motion. Now, when you use ZoneMinder you probably don't even open the motionEye web UI and therefore the mechanism never kicks in.

motionEyeOS has a simple workaround for this precise issue: there's a Motion Keep-alive option under the Expert Settings section in the settings panel. Simply enable this option and the motion hanging detection mechanism will be permanently on. This option is not enabled by default due to a small performance penalty.