Ok, I gave docker a go but it's just too foreign for me, not amenable to my "frantic hammering" IT methods.
Ultimately, I followed the github issues clues to ualex73's fork of motioneye for python3: https://github.com/ualex73/motioneye/tree/python3
Although I ran python setup.py build and sudo python setup.py install, I was still getting an error from sudo systemctl status motioneye about meyectl.py in /usr/local/lib/python3.8/site-packages/motioneye/ I copied the newly built meyectl.py over there but that gave an error from a different file in status. Since all the files in the build directory had the same name but differed in size/time from those in the system directory, I copied everything over: sudo cp -r ./* /usr/local/lib/python3.8/site-packages/motioneye/
Next, CRITICAL: please install tornado version 4.5.3 or earlier
(required by python3) and a similar process was followed with
sources from https://github.com/tornadoweb/tornado/tree/branch4.5
Possibly, the files went to the /usr/local/lib64 python area but I
didn't slow down to look, see above.
Along the way, I also followed your instructions over here
https://github.com/ccrisan/motioneye/issues/2117#issuecomment-830866604
to get pip2 installed but I ran it against ccrisan's sources,
which didn't work, of course.
Finally, some details forgotten, motioneye has started on my 64-bit MGA8 Z170I PRO GAMING. I exported the settings from an installation on MGA7 on a 10-year old hp gt7725 thin client and imported them into the Skylake machine. So far, two 5V Amcrest wifi cameras and three Amcrest POE cameras are displaying fine with little lag. I've had one of the Amcrest 5V cameras running reliably for over a year remotely with a Netgear Unite 770S 4G LTE mifi on Mint Mobile, pass-through power bank backup, motioneyeos on Pi3b booting usb-ssd. When I started moving on from pi cameras to multiple Amcrest around the house is when I figured I needed a more powerful machine to avoid the lags. The thin client looks like just about enough for the current lash-up, initial lags seem to resolve over time. It's all a mystery to me.
One thing I always have to do with a fresh install of motioneye is to change the configuration files for motion and motioneye to disable the localhost setting, else I can't see the cameras on the webpage. I dug that detail out from ccrisan's howtos somewhere in the beginning but I don't see any mention of it, otherwise, for some reason.
[rolf@HP-Kodi ~]$ cd /etc/
[rolf@HP-Kodi etc]$ grep localhost motion/motion.conf
# Restrict webcontrol connections to the localhost.
webcontrol_localhost off
# Restrict stream connections to the localhost.
stream_localhost off
[rolf@HP-Kodi etc]$ grep localhost motioneye/motioneye.conf
# (0.0.0.0 for all interfaces, 127.0.0.1 for localhost)
# localhost or on all interfaces
motion_control_localhost false
[rolf@HP-Kodi etc]$
These values are always 'on' or 'true' on a new install for me and one of the first things I do is to flip them to get going.
Thanks,
Rolf
--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/61ef08e6-60d8-4428-903c-9b0938d4b1e4n%40googlegroups.com.
The celebration was short-lived. After a reboot, the webpage
comes up with spinning wait emblems that don't resolve.
A stack trace from systemctl status included: ERROR: failed to
list mounted disks: 'dict_values' object has no attribute...
Oh, well.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/198d59d7-a13f-07f5-af92-6aaa828f0db8%40gmail.com.
Howdy,
This particular personal motioneye saga, guided
by Kevin Shumaker's tutelage, has had a significant
development, IMO, so I'll add something of a description to this
most complete record of it I can find in this group, for the
record and FWIW. Some low-hanging bullet points salvaged from
increasingly porous memory:

I've got it functional, for this boot, anyway, thanks. Some points:
- The Mageia docker implementation, apparently, gives an IP not on my LAN to it:
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
... whereas:
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.116 netmask 255.255.255.0 broadcast 192.168.1.255
...
I found this got the server "exposed" on the LAN: $ docker run --network=host ccrisan/motioneye:master-amd64
and I'm now able to access the webpage, import saved settings, set up camera views on separate monitors, as is my design.
- The missing cgroup mount error returned, I'm guessing because systemd removed my mount point as crafted, below, and mounted its own cgroup2. I re-made the directory and mounted in order to get docker run to work. I can probably figure out a way to make this survive a reboot.
[rolf@z170i ~]$ mount | grep cgroup
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,relatime,name=systemd)
- I searched and learned how to get into the docker filesystem in order to, for one thing, correct the displayed time to my liking:
docker exec 4b2c9284890c ln -sf /usr/share/zoneinfo/Etc/GMT+7 /etc/localtimeLooks like I can make some progress from here, if you want to take a break on your Mageia learning curve. ;)
Until I have to pull the fire alarm, thanks, again!
Rolf
On 5/11/21 11:53 AM, Kevin Shumaker wrote:
motionEye should be found at the IP of the docker server thus:http:[ip_address]:8765
The docker runs like it was installed on another OS (which it is in comparison to motioneyeos.You aren't forwarding 8081 (first camera) so you wouldn't be able to see the camera directly.-p 8081:8081
On Tue, May 11, 2021 at 2:46 PM Rolf Pedersen <rol...@gmail.com> wrote:
Howdy,
Let me try to give you an idea of what I tried. First, I installed docker from Magiea8 repos. Then, I followed instructions revealed by a google search on docker motioneye terms, maybe you will recognize them, below. Searching on one error led me to create a mount point for cgroup, mount it, and add an entry to fstab. That cleared whatever error but I don't recall at what point, exactly, I did that. History might be relevant:
[rolf@z170i docker]$ history | grep cgroup
750 rpm -qa | grep cgroup
751 cgroup --version
752 rpm -qa cgroup
753 rpm -ql cgroup
754 less /usr/share/doc/cgroup/README.Mageia
770 ls /sys/fs/cgroup/docker/
771 ls /sys/fs/cgroup/
772 sudo mkdir /sys/fs/cgroup/systemd
773 sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
844 sudo mkdir /sys/fs/cgroup/systemd
845 sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
849 sudo umount cgroup
851 sudo mount cgroup
1015 mount | grep cgroup
1016 history | grep cgroup
[rolf@z170i docker]$
After many failed attempts at CLI starting docker, ps showed it running but web browser could not connect. I made sure the firewalls on the involved machines on the LAN were turned off. Finally, thinking it was a configuration problem, I attempted to copy known good configurations from the filesystem to the docker. The following history ought to give a rough idea of commands tried in chronological order. Finally, I seem to have the motioneye docker installed but can't figure out how to start it and access the server on the LAN. (Box IP is 192.168.1.116)
Thanks
[rolf@z170i docker]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> e951096aa9b1 46 hours ago 77.9MB
<none> <none> 914678ae9436 46 hours ago 77.9MB
<none> <none> ff1adba15305 46 hours ago 77.9MB
<none> <none> 87cd33aeb70c 46 hours ago 77.9MB
debian buster-slim 48e774d3c4f5 4 weeks ago 69.3MB
ccrisan/motioneye master-amd64 692eccfe45a6 17 months ago 411MB
[rolf@z170i docker]$ history | grep docker
731 rpm -q docker
732 sudo urpmi docker
733 docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-amd64
734 docker run --help
740 ps aux | grep docker
741 docker --help
742 docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-amd64
743 sudo systemctl enable docker
744 sudo systemctl start docker
745 ps aux | grep docker
746 docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-amd64
747 sudo docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-amd64
749 rpm -q docker
757 mkdir docker
758 cd docker/
761 sudo usermod -aG docker $(whoami)
764 cat /etc/group | grep docker
766 cd docker/
769 docker build --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t ccrisan/motioneye:master-amd64 -f extra/Dockerfile .
770 ls /sys/fs/cgroup/docker/
774 docker build --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t ccrisan/motioneye:master-amd64 -f extra/Dockerfile .
787 docker build --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t ccrisan/motioneye:master-amd64 -f extra/Dockerfile .
789 docker build --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t ccrisan/motioneye:master-amd64 -f extra/Dockerfile .
791 docker
792 docker images
794 ps aux | grep docker
795 docker run --help
796 docker run --name="motioneye" -p 8765:8765 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart="always" --detach=true ccrisan/motioneye:master-amd64
797 docker run /motioneye
798 docker run ccrisan/motioneye
799 docker images
800 docker run ccrisan/motioneye:master-amd64
827 docker --help
828 docker images
829 docker cp
830 docker stop ccrisan/motioneye:master-amd64
831 docker images
832 docker stop 692eccfe45a6
833 docker stop ccrisan/motioneye
834 docker container
835 docker container ls
836 docker container diff ccrisan/motioneye:master-amd64
838 docker list
839 docker --help
840 docker images
842 docker start ccrisan/motioneye:master-amd64
843 docker run ccrisan/motioneye:master-amd64
847 docker run ccrisan/motioneye:master-amd64
854 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:master-amd64
855 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:master-amd64/etc/motioneye
856 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:/etc/motioneye
857 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye/etc/motioneye
859 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye/etc/motioneye
860 docker container
861 docker container cp --help
862 docker cp /etc/motioneye/motioneye.conf|- ccrisan/motioneye/etc/motioneye
863 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:/etc/motioneye
864 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:etc/motioneye
865 docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:
866 sudo docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:etc/motioneye
867 sudo docker cp /etc/motioneye/motioneye.conf ccrisan/motioneye:/etc/motioneye
868 docker ps
869 docker cp /etc/motioneye/motioneye.conf b6c2cba6d493:/etc/motioneye/motioneye.conf
872 docker cp /etc/motion/motion.conf b6c2cba6d493:/etc/motion/motion.conf
874 docker cp -f /etc/motion/motion.conf b6c2cba6d493:/etc/motion/motion.conf
876 docker cp --force /etc/motion/motion.conf b6c2cba6d493:/etc/motion/motion.conf
1007 cd Downloads/motioneye/docker/
1009 history | grep docker
[rolf@z170i docker]$
Hi,
My solution for timezone looked like this:
docker exec 7aceec5f209f ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
Looks like you might be showing a way to streamline, a little,
getting docker running after a reboot. However, for now, I'm
planning to stick with a fully functional native setup on the Pi,
as detailed in my previous message.
Thanks,
Rolf
--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/2e6b79c1-ee88-4f5d-ba08-bc1b4c37316en%40googlegroups.com.