Motion Eye Zeigt kein Bild an - Motion startet nicht

  • Hallo,

    Ich hoffe, ihr könnt mir helfen. Ich habe Motion Eye installiert. Über die Weboberfläche ist sie erreichbar.

    Ich bekomm jedoch folgenden Fehler:

    sudo systemctl status motioneye
    ● motioneye.service - motionEye Server
        Loaded: loaded (/etc/systemd/system/motioneye.service; enabled; vendor preset: enabled)
        Active: active (running) since Wed 2024-10-23 17:41:50 CEST; 2h 26min ago
      Main PID: 2882 (meyectl)
         Tasks: 5 (limit: 4915)
           CPU: 2min 13.220s
        CGroup: /system.slice/motioneye.service
                ├─2882 /usr/bin/python3 /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
                └─2891 /usr/bin/python3 /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf

    Oct 23 20:08:26 iobroker-pi meyectl[2882]:     raise Exception('motion executable could not be found')
    Oct 23 20:08:26 iobroker-pi meyectl[2882]: Exception: motion executable could not be found
    Oct 23 20:08:36 iobroker-pi meyectl[2882]:    ERROR: motion not running, starting it
    Oct 23 20:08:36 iobroker-pi meyectl[2882]:    ERROR: failed to start motion: motion executable could not be found
    Oct 23 20:08:36 iobroker-pi meyectl[2882]: Traceback (most recent call last):
    Oct 23 20:08:36 iobroker-pi meyectl[2882]:   File "/usr/local/lib/python3.9/dist-packages/motioneye/server.py", line 374, in checker
    Oct 23 20:08:36 iobroker-pi meyectl[2882]:     motionctl.start()
    Oct 23 20:08:36 iobroker-pi meyectl[2882]:   File "/usr/local/lib/python3.9/dist-packages/motioneye/motionctl.py", line 96, in start
    Oct 23 20:08:36 iobroker-pi meyectl[2882]:     raise Exception('motion executable could not be found')
    Oct 23 20:08:36 iobroker-pi meyectl[2882]: Exception: motion executable could not be found

    Der Status von Motion:

    sudo systemctl status motion
    ● motion.service
        Loaded: masked (Reason: Unit motion.service is masked.)
        Active: inactive (dead)


    Ich kann der Service nicht starten

    sudo systemctl start motion
    Failed to start motion.service: Unit motion.service is masked.

    Die Weboberfläche ist jedoch erreichbar. Jedoch sagt es hier unter Motion Version: none
    Ich weiß nicht mehr weiter.

    Edited once, last by line (October 23, 2024 at 9:38 PM).

  • Motion Eye Zeigt kein Bild an - Motion startet nicht? Schau mal ob du hier fündig wirst!

  • Danke dir!

    Bei Befehl sudo systemctl enable motion.service kommt:


    motion.service is not a native service, redirecting to systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable motion


    Nach dem Reload vom Daemon sieht der Status vom motion schon besser aus

    sudo systemctl status motion
    ● motion.service - LSB: Start Motion detection
        Loaded: loaded (/etc/init.d/motion; generated)
        Active: active (exited) since Thu 2024-10-24 06:17:07 CEST; 23min ago
          Docs: man:systemd-sysv-generator(8)
         Tasks: 0 (limit: 4915)
           CPU: 0
        CGroup: /system.slice/motion.service

    Oct 24 06:17:07 iobroker-pi systemd[1]: Starting LSB: Start Motion detection...
    Oct 24 06:17:07 iobroker-pi systemd[1]: Started LSB: Start Motion detection.


    Der Status im motion eye ist unverändert. Der Service lässt sich nicht auf enable setzten

    Edited once, last by line (October 24, 2024 at 6:43 AM).

  • journalctl -u motio*
    -- Journal begins at Fri 2023-01-13 02:53:50 CET, ends at Thu 2024-10-24 07:48:09 CEST. --
    Oct 13 12:57:31 iobroker-pi systemd[1]: Starting LSB: Start Motion detection...
    Oct 13 12:57:31 iobroker-pi motion[6900]: Not starting motion daemon, disabled via /etc/default/motion ...
    Oct 13 12:57:31 iobroker-pi motion[6903]:  (warning).
    Oct 13 12:57:31 iobroker-pi systemd[1]: Started LSB: Start Motion detection.
    Oct 13 12:58:39 iobroker-pi systemd[1]: Stopping LSB: Start Motion detection...
    Oct 13 12:58:39 iobroker-pi motion[6998]: Stopping motion detection daemon: motion
    Oct 13 12:58:39 iobroker-pi motion[7001]: No /usr/bin/motion found running; none killed.
    Oct 13 12:58:39 iobroker-pi motion[6998]: .
    Oct 13 12:58:39 iobroker-pi systemd[1]: motion.service: Succeeded.
    Oct 13 12:58:39 iobroker-pi systemd[1]: Stopped LSB: Start Motion detection.
    Oct 13 13:06:20 iobroker-pi systemd[1]: Started motionEye Server.
    Oct 13 13:06:20 iobroker-pi meyectl[8222]:     INFO: hello! this is motionEye server 0.42.1
    Oct 13 13:06:22 iobroker-pi meyectl[8222]:     INFO: main config file /etc/motioneye/motion.conf does not exist, using default values
    Oct 13 13:06:22 iobroker-pi meyectl[8222]:     INFO: cleanup started
    Oct 13 13:06:22 iobroker-pi meyectl[8222]:     INFO: wsswitch started
    Oct 13 13:06:22 iobroker-pi meyectl[8222]:     INFO: tasks started
    Oct 13 13:06:22 iobroker-pi meyectl[8222]:     INFO: mjpg client garbage collector started
    Oct 13 13:06:22 iobroker-pi meyectl[8222]:     INFO: server started
    Oct 13 13:06:48 iobroker-pi meyectl[8222]:     INFO: interrupt signal received, shutting down...
    Oct 13 13:06:48 iobroker-pi meyectl[8222]:     INFO: server stopped
    Oct 13 13:06:48 iobroker-pi meyectl[8222]:     INFO: tasks stopped
    Oct 13 13:06:48 iobroker-pi meyectl[8222]:     INFO: bye!
    Oct 13 13:06:48 iobroker-pi systemd[1]: Stopping motionEye Server...
    Oct 13 13:06:48 iobroker-pi systemd[1]: motioneye.service: Succeeded.


    Wenn ich ins file schau:

     ls /etc/default/motion
    ls: cannot access '/etc/default/motion': No such file or directory

    Edited once, last by line (October 24, 2024 at 7:58 AM).

  • Dann probiere mal nano /etc/default/motion und trage dort ein:

    start_motion_daemon=yes

    Die motion.conf findest du hier:

    motioneyeos/board/common/overlay/etc/motioneye.conf at master · motioneye-project/motioneyeos
    A Video Surveillance OS For Single-board Computers - motioneye-project/motioneyeos
    github.com

    Anpassen musst du sie nach deinen Wünschen.

    Display Spoiler

    conf_path /data/etc
    run_path /tmp
    log_path /var/log
    media_path /data/output
    motion_binary /usr/bin/motion
    log_level info
    listen 0.0.0.0
    port 80
    mount_check_interval 300
    motion_check_interval 10
    cleanup_interval 3600
    remote_request_timeout 10
    mjpg_client_timeout 10
    mjpg_client_idle_timeout 10
    smb_shares true
    smb_mount_root /data/media
    wpa_supplicant_conf /data/etc/wpa_supplicant.conf
    local_time_file /data/etc/localtime
    enable_reboot true
    enable_update true
    smtp_timeout 60
    zip_timeout 500
    add_remove_cameras true
    password_hook /usr/libexec/meyepasswd

  • Also der start_motion_daemon=yes ist eingestellt.

    Die Motion.config habe ich nun so angepasst:


    conf_path /data/etc
    run_path /tmp
    log_path /var/log
    media_path /data/output
    motion_binary /usr/bin/motion
    log_level info
    listen 0.0.0.0
    port 8765
    mount_check_interval 300
    motion_check_interval 10
    cleanup_interval 3600
    remote_request_timeout 10
    mjpg_client_timeout 10
    mjpg_client_idle_timeout 10
    smb_shares true
    smb_mount_root /data/media
    wpa_supplicant_conf /data/etc/wpa_supplicant.conf
    local_time_file /data/etc/localtime
    enable_reboot true
    enable_update true
    smtp_timeout 60
    zip_timeout 500
    add_remove_cameras true
    password_hook /usr/libexec/meyepasswd

    Also nur den Port auf den Webserver Port 8765 umgetragen

  • sudo systemctl enable motion.service
    motion.service is not a native service, redirecting to systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable motion

  • Code
    sudo systemctl enable motion.service
    motion.service is not a native service, redirecting to systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable motion

    Ich versteh es nicht. Motion lässt sich starten, aber immer kommt der Fehler wie oben

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!