Emoncms docker container not starting dies continously

Hi there, was wondering when running emoncms docker container. do you require other software to be running on the host such as Apache2 with php ., because when i start the container it get nothing at 8080 port. when i run home assistant from container it works fine just trying to figure out the difference… why one container works and the other one does not

when I look through the docker logs it repeating as it tries to restart the the container continuously…

[2022-11-23 02:33:04] container start Container ID: 9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d Container Name: emoncms
[2022-11-23 02:33:04] container die Container ID: 9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d Container Name: emoncms
[2022-11-23 02:33:04] network disconnect Container ID: 9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d Network Name: host Network type: host

I added apache2 same difference unless I need php installed as well for apache

If this is the Docker on the OEM GitHub, I don’t think it is maintained. @glyn.hudson

There was a thread about Docker instance recently, you might like to search it out.

Docker isn’t something I use at all, so cannot help. Personally, I use PVE & LXC and install EmonCMS using the scripts.

thank you for the reply . docker not something I used particularly much. and just something I was experimenting with lately . in my effort of build small contained devices within the openwrt opensource router format

okay I think perhaps I know why it does not work - emoncms is not particularly build for my architecture. arm7 —wondering if they are willing to add in different architectures when building docker container. as it removing alot of different devices the docker container will work with.
example output from openwrt docker “inspector” it reports using arm7 build

{
  "Path": "\/init",
  "ProcessLabel": "",
  "ResolvConfPath": "\/opt\/docker\/containers\/2d9be9e4dcd02bd0296763d95c99034f15d85857932ef44ef70e2a54500b0a8b\/resolv.conf",
  "NetworkSettings": {
    "LinkLocalIPv6Address": "",
    "SandboxID": "bda184456e831dd415f296832e173175814d084f54081510145ca21a39515d4a",
    "HairpinMode": false,
    "Networks": {
      "host": {
        "NetworkID": "a4350309e9511c3e1d234667c898a54bc02d9bbf4029f1d76686b60978b8d07d",
        "IPAddress": "",
        "MacAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "Gateway": "",
        "GlobalIPv6PrefixLen": 0,
        "EndpointID": "",
        "GlobalIPv6Address": ""
      }
    },
    "Ports": [
    ],
    "Bridge": "",
    "MacAddress": "",
    "IPv6Gateway": "",
    "IPPrefixLen": 0,
    "IPAddress": "",
    "EndpointID": "",
    "SandboxKey": "\/var\/run\/docker\/netns\/default",
    "Gateway": "",
    "GlobalIPv6PrefixLen": 0,
    "LinkLocalIPv6PrefixLen": 0,
    "GlobalIPv6Address": ""
  },
  "MountLabel": "",
  "HostsPath": "\/opt\/docker\/containers\/2d9be9e4dcd02bd0296763d95c99034f15d85857932ef44ef70e2a54500b0a8b\/hosts",
  "LogPath": "\/opt\/docker\/containers\/2d9be9e4dcd02bd0296763d95c99034f15d85857932ef44ef70e2a54500b0a8b\/2d9be9e4dcd02bd0296763d95c99034f15d85857932ef44ef70e2a54500b0a8b-json.log",
  "RestartCount": 0,
  "Config": {
    "Tty": false,
    "Entrypoint": [
      "\/init"
    ],
    "Labels": {
      "org.opencontainers.image.url": "https:\/\/www.home-assistant.io\/",
      "org.opencontainers.image.version": "2022.11.4",
      "org.opencontainers.image.title": "Home Assistant",
      "io.hass.base.version": "2022.09.0",
      "org.opencontainers.image.licenses": "Apache License 2.0",
      "org.opencontainers.image.description": "Open-source home automation platform running on Python 3",
      "org.opencontainers.image.documentation": "https:\/\/www.home-assistant.io\/docs\/",
      "org.opencontainers.image.authors": "The Home Assistant Authors",
      "org.opencontainers.image.source": "https:\/\/github.com\/home-assistant\/core",
      "io.hass.base.image": "homeassistant\/armv7-base:3.16",
      "io.hass.version": "2022.11.4",
      "io.hass.type": "core",
      "io.hass.base.name": "python",
      "io.hass.arch": "armv7",
      "org.opencontainers.image.created": "2022-11-21 01:15:07+00:00",
      "io.hass.base.arch": "armv7"
    },
    "AttachStdin": false,
    "User": "",
    "WorkingDir": "\/config",
    "AttachStderr": false,
    "OpenStdin": false,
    "Image": "homeassistant\/home-assistant:latest",
    "Hostname": "OpenWrt",
    "Env": [
      "TZ=America\/Winnipeg",
      "PATH=\/usr\/local\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
      "LANG=C.UTF-8",
      "S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
      "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
      "S6_CMD_WAIT_FOR_SERVICES=1",
      "WHEELS_LINKS=https:\/\/wheels.home-assistant.io\/musllinux\/",
      "S6_SERVICES_GRACETIME=220000"
    ],
    "Domainname": "",
    "AttachStdout": false,
    "StdinOnce": false
  },
  "Mounts": [
    {
      "Type": "bind",
      "Source": "\/root\/hassio",
      "Mode": "",
      "Destination": "\/config",
      "RW": true,
      "Propagation": "rprivate"
    }
  ],
  "Id": "2d9be9e4dcd02bd0296763d95c99034f15d85857932ef44ef70e2a54500b0a8b",
  "Platform": "linux",
  "HostConfig": {
    "CgroupParent": "",
    "MemorySwap": 0,
    "ConsoleSize": [
      0,
      0
    ],
    "IOMaximumIOps": 0,
    "KernelMemoryTCP": 0,
    "CpuPeriod": 0,
    "OomScoreAdj": 0,
    "BlkioWeight": 0,
    "CgroupnsMode": "private",
    "Privileged": false,
    "MaskedPaths": [
      "\/proc\/asound",
      "\/proc\/acpi",
      "\/proc\/kcore",
      "\/proc\/keys",
      "\/proc\/latency_stats",
      "\/proc\/timer_list",
      "\/proc\/timer_stats",
      "\/proc\/sched_debug",
      "\/proc\/scsi",
      "\/sys\/firmware"
    ],
    "CpuShares": 0,
    "NetworkMode": "host",
    "CpuQuota": 0,
    "NanoCpus": 0,
    "CpuCount": 0,
    "Isolation": "",
    "Cgroup": "",
    "ContainerIDFile": "",
    "AutoRemove": false,
    "UTSMode": "",
    "VolumeDriver": "",
    "ReadonlyPaths": [
      "\/proc\/bus",
      "\/proc\/fs",
      "\/proc\/irq",
      "\/proc\/sys",
      "\/proc\/sysrq-trigger"
    ],
    "IOMaximumBandwidth": 0,
    "CpuRealtimePeriod": 0,
    "CpuPercent": 0,
    "KernelMemory": 0,
    "Binds": [
      "\/root\/hassio:\/config"
    ],
    "MemoryReservation": 0,
    "RestartPolicy": {
      "Name": "unless-stopped",
      "MaximumRetryCount": 0
    },
    "PublishAllPorts": false,
    "Runtime": "runc",
    "CpusetMems": "",
    "IpcMode": "private",
    "ReadonlyRootfs": false,
    "UsernsMode": "",
    "Memory": 0,
    "CpusetCpus": "",
    "ShmSize": 67108864,
    "CpuRealtimeRuntime": 0,
    "PidMode": "",
    "LogConfig": {
      "Config": [
      ],
      "Type": "json-file"
    }
  },
  "GraphDriver": {
    "Data": {
      "MergedDir": "\/opt\/docker\/overlay2\/1ccf432a33a51b680bea9326383cfb0643c5eb7772ece422498611152311abde\/merged",
      "WorkDir": "\/opt\/docker\/overlay2\/1ccf432a33a51b680bea9326383cfb0643c5eb7772ece422498611152311abde\/work",
      "UpperDir": "\/opt\/docker\/overlay2\/1ccf432a33a51b680bea9326383cfb0643c5eb7772ece422498611152311abde\/diff",
      "LowerDir": "\/opt\/docker\/overlay2\/1ccf432a33a51b680bea9326383cfb0643c5eb7772ece422498611152311abde-init\/diff:\/opt\/docker\/overlay2\/cf08ce1a08ccbba7d54275c69a33492db650c2a7855944f42ab896be8d8e2786\/diff:\/opt\/docker\/overlay2\/2ddd28bbe94fe33df50462c585101aa40ef2a5196183e3b094530c93eef3d7d9\/diff:\/opt\/docker\/overlay2\/7c37305eea62052146074089dddbefeba56e1f1049254929c540a9d0566992b7\/diff:\/opt\/docker\/overlay2\/74b6232d0b3fe9a9bc14a627a620b75f8eca6ff2154793f64913afb874d094c1\/diff:\/opt\/docker\/overlay2\/d5f20241f1ac9292d8dd8199e9a91780446846908ba49fd280f3a8212569e413\/diff:\/opt\/docker\/overlay2\/3af8507fb899cca966d5b6ba7bed9c4575c6737e856d0814538915eb5c77877d\/diff:\/opt\/docker\/overlay2\/372765ed956963e4abb2b6806b9875b7554575f749f39f584ab35f0a42adaefc\/diff:\/opt\/docker\/overlay2\/39995e64ebc9b6120411648496f4e6a44ee3d083fa623cd2f22b16b850c89f04\/diff:\/opt\/docker\/overlay2\/79879d43f9d81856524c9ca71c062c8627a88661df90272d0100c62b705d8aa1\/diff:\/opt\/docker\/overlay2\/317fd9653a6de0d445a94f751e6b16e487aa97a064b9756b2293cd427acddea2\/diff:\/opt\/docker\/overlay2\/df29812666a9afe0f7448942d032c0577caaef17ac444c4b0a69dad631635c84\/diff:\/opt\/docker\/overlay2\/38928191a4e7da1bf952614fdad9d8abd203469f56e0a67553784821dc58ab9e\/diff:\/opt\/docker\/overlay2\/7c226a2d639a932ed4f2ad57ba7e90ee75105ccc47758b30b3e7de82e7a11a0a\/diff:\/opt\/docker\/overlay2\/9489a54b6f7867e07cf603c5fc9b7807c69c4b1507d0019e45eecf4fc4abb004\/diff:\/opt\/docker\/overlay2\/591080ea9bbf489d3c79d40174db3358455dc1fada8a28bfb018b0b5f46ee385\/diff:\/opt\/docker\/overlay2\/c614941554490f3b9fcac1c6bff611b31929703f0de098fdf84c9c6a48427c47\/diff:\/opt\/docker\/overlay2\/e7078fb96c69037a19f7fc066fd2c6ffdce3cb1951ed689c6b5d08cf0f4e625b\/diff:\/opt\/docker\/overlay2\/8afe162b6b42ec5a41621ebd3fccfccdd8865f9a38258f176286a1e639781593\/diff:\/opt\/docker\/overlay2\/524160da2dd389a9a9ea7888a884b221fcbe8d2f1b4d15b9cb46c7522ddddb4a\/diff:\/opt\/docker\/overlay2\/16bd07d5ca273c91ce19beb93beba340e8ba1f3b95333480e0a444ad9cce1080\/diff:\/opt\/docker\/overlay2\/0ecfa269f30dbb261984d49c64be55bf794811ec28eb646db09fe92cee755913\/diff:\/opt\/docker\/overlay2\/c9913c8dc1190fd5ba61d8453ea33209a8471ea3b7481762043d8f00355d7f57\/diff:\/opt\/docker\/overlay2\/a1c5f8c5dd4f583384b95a662a50917726a97db3b1f0e9de9abfa8c8a7ba396f\/diff:\/opt\/docker\/overlay2\/60e29b0d2ca5bc1fcb72ae4a29591ba7919fe8f93c09637282e43d9ff6d1c069\/diff:\/opt\/docker\/overlay2\/bbdd0853ecf6d0ced8fcca112d397390addaf4455636b22cce5adbd2324be110\/diff:\/opt\/docker\/overlay2\/7e95fddedf7de5a7bb42f2ac0cb53c8d9d5d2f1df6fb70fdf84460b5a61a555d\/diff:\/opt\/docker\/overlay2\/739dd7f7a2cb0decc629a7ee864fe599389782896eddd98342d2931fd7afbda9\/diff:\/opt\/docker\/overlay2\/1a2b95b07d486fbe4894dd9c033caa38ebc2f0d077d76ac2cc733f0d316d2c10\/diff:\/opt\/docker\/overlay2\/9742f37dd462d59ed20fe968ca7b0fec529f06c8852a4a54601897b0ee188234\/diff"
    },
    "Name": "overlay2"
  },
  "State": {
    "Pid": 0,
    "FinishedAt": "2022-11-23T11:08:35.014517474Z",
    "StartedAt": "2022-11-23T00:56:40.753336314Z",
    "Error": "",
    "Running": false,
    "Paused": false,
    "OOMKilled": false,
    "Status": "exited",
    "ExitCode": 137,
    "Restarting": false,
    "Dead": false
  },
  "Driver": "overlay2",
  "Name": "\/home-assistant",
  "Args": [
  ],
  "HostnamePath": "\/opt\/docker\/containers\/2d9be9e4dcd02bd0296763d95c99034f15d85857932ef44ef70e2a54500b0a8b\/hostname",
  "Created": "2022-11-23T00:48:07.562187405Z",
  "AppArmorProfile": "",
  "Image": "sha256:ee2cb87b59d3243f20e0233736f258f893e11a4ae0cc1c8a6b1658654ccb14ef"
}

and from the emoncms container it does not specify an arch

{
  "Path": "docker-php-entrypoint",
  "ProcessLabel": "",
  "ResolvConfPath": "\/opt\/docker\/containers\/9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d\/resolv.conf",
  "NetworkSettings": {
    "LinkLocalIPv6Address": "",
    "SandboxID": "981783c4f3a0dd2e1b427e15b44a13293b62c141e2aace273ee7eb5f3ac03e62",
    "HairpinMode": false,
    "Networks": {
      "host": {
        "NetworkID": "a4350309e9511c3e1d234667c898a54bc02d9bbf4029f1d76686b60978b8d07d",
        "IPAddress": "",
        "MacAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "Gateway": "",
        "GlobalIPv6PrefixLen": 0,
        "EndpointID": "",
        "GlobalIPv6Address": ""
      }
    },
    "Ports": [
    ],
    "Bridge": "",
    "MacAddress": "",
    "IPv6Gateway": "",
    "IPPrefixLen": 0,
    "IPAddress": "",
    "EndpointID": "",
    "SandboxKey": "\/var\/run\/docker\/netns\/default",
    "Gateway": "",
    "GlobalIPv6PrefixLen": 0,
    "LinkLocalIPv6PrefixLen": 0,
    "GlobalIPv6Address": ""
  },
  "MountLabel": "",
  "HostsPath": "\/opt\/docker\/containers\/9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d\/hosts",
  "LogPath": "\/opt\/docker\/containers\/9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d\/9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d-json.log",
  "RestartCount": 508,
  "Config": {
    "AttachStdout": false,
    "AttachStdin": false,
    "AttachStderr": false,
    "Cmd": [
      "apache2-foreground"
    ],
    "Image": "openenergymonitor\/emoncms:latest",
    "Hostname": "OpenWrt",
    "ExposedPorts": {
      "80\/tcp": [
      ]
    },
    "Domainname": "",
    "StdinOnce": false,
    "Tty": false,
    "Entrypoint": [
      "docker-php-entrypoint"
    ],
    "User": "",
    "OpenStdin": false,
    "Env": [
      "TZ=America\/Winnipeg",
      "PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
      "PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c",
      "PHP_INI_DIR=\/usr\/local\/etc\/php",
      "APACHE_CONFDIR=\/etc\/apache2",
      "APACHE_ENVVARS=\/etc\/apache2\/envvars",
      "PHP_EXTRA_BUILD_DEPS=apache2-dev",
      "PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi",
      "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
      "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
      "PHP_LDFLAGS=-Wl,-O1 -pie",
      "GPG_KEYS=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312",
      "PHP_VERSION=7.4.21",
      "PHP_URL=https:\/\/www.php.net\/distributions\/php-7.4.21.tar.xz",
      "PHP_ASC_URL=https:\/\/www.php.net\/distributions\/php-7.4.21.tar.xz.asc",
      "PHP_SHA256=cf43384a7806241bc2ff22022619baa4abb9710f12ec1656d0173de992e32a90"
    ],
    "StopSignal": "SIGWINCH",
    "WorkingDir": "\/var\/www\/html",
    "Labels": [
    ]
  },
  "Mounts": [
    {
      "Type": "bind",
      "Source": "\/root\/emoncms",
      "Mode": "",
      "Destination": "\/config",
      "RW": true,
      "Propagation": "rprivate"
    }
  ],
  "Id": "9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d",
  "Platform": "linux",
  "HostConfig": {
    "CgroupParent": "",
    "MemorySwap": 0,
    "ConsoleSize": [
      0,
      0
    ],
    "IOMaximumIOps": 0,
    "KernelMemoryTCP": 0,
    "CpuPeriod": 0,
    "OomScoreAdj": 0,
    "BlkioWeight": 0,
    "CgroupnsMode": "private",
    "Privileged": false,
    "MaskedPaths": [
      "\/proc\/asound",
      "\/proc\/acpi",
      "\/proc\/kcore",
      "\/proc\/keys",
      "\/proc\/latency_stats",
      "\/proc\/timer_list",
      "\/proc\/timer_stats",
      "\/proc\/sched_debug",
      "\/proc\/scsi",
      "\/sys\/firmware"
    ],
    "CpuShares": 0,
    "NetworkMode": "host",
    "CpuQuota": 0,
    "NanoCpus": 0,
    "CpuCount": 0,
    "Isolation": "",
    "Cgroup": "",
    "ContainerIDFile": "",
    "AutoRemove": false,
    "UTSMode": "",
    "VolumeDriver": "",
    "ReadonlyPaths": [
      "\/proc\/bus",
      "\/proc\/fs",
      "\/proc\/irq",
      "\/proc\/sys",
      "\/proc\/sysrq-trigger"
    ],
    "IOMaximumBandwidth": 0,
    "CpuRealtimePeriod": 0,
    "CpuPercent": 0,
    "KernelMemory": 0,
    "Binds": [
      "\/root\/emoncms:\/config"
    ],
    "MemoryReservation": 0,
    "RestartPolicy": {
      "Name": "unless-stopped",
      "MaximumRetryCount": 0
    },
    "PublishAllPorts": false,
    "Runtime": "runc",
    "CpusetMems": "",
    "IpcMode": "private",
    "ReadonlyRootfs": false,
    "UsernsMode": "",
    "Memory": 0,
    "CpusetCpus": "",
    "ShmSize": 67108864,
    "CpuRealtimeRuntime": 0,
    "PidMode": "",
    "LogConfig": {
      "Config": [
      ],
      "Type": "json-file"
    }
  },
  "GraphDriver": {
    "Data": {
      "MergedDir": "\/opt\/docker\/overlay2\/2493dcbe4faef9233582468df7fe4be3b4eccf62dbd7c90865bdfdf9fd9c40ed\/merged",
      "WorkDir": "\/opt\/docker\/overlay2\/2493dcbe4faef9233582468df7fe4be3b4eccf62dbd7c90865bdfdf9fd9c40ed\/work",
      "UpperDir": "\/opt\/docker\/overlay2\/2493dcbe4faef9233582468df7fe4be3b4eccf62dbd7c90865bdfdf9fd9c40ed\/diff",
      "LowerDir": "\/opt\/docker\/overlay2\/2493dcbe4faef9233582468df7fe4be3b4eccf62dbd7c90865bdfdf9fd9c40ed-init\/diff:\/opt\/docker\/overlay2\/009f435f41d9544b050bff3ccbcc7ac997c78a0907e06e44525818eb1aeab210\/diff:\/opt\/docker\/overlay2\/f599f9f3d5d8add7dc6b3ec2c201757bf50e25c25657d1df54ed36a39a4b3e16\/diff:\/opt\/docker\/overlay2\/12e2d7589e988b2bf0e44ba763c1b1b9f825e8d8e1ea558eb6312256ee1b8df8\/diff:\/opt\/docker\/overlay2\/4cad95163fa5878fa53b89e5bbec7e5f66e67ffa2e75fc0e62fabb1b9cf56804\/diff:\/opt\/docker\/overlay2\/b3cfd345b13ccd1e3d4d6bc3318d4d5444edc7de21f55cc83b0045bece0a73b2\/diff:\/opt\/docker\/overlay2\/0d6749bb73d5349792ffe1bd7dd1bac7e7af5b413ad098294fc4e806cf49cbe8\/diff:\/opt\/docker\/overlay2\/f181cf229e4bcce80447ca9243f77c5e963314820cc1e64aa61c9b2cf39cc959\/diff:\/opt\/docker\/overlay2\/103d7c4e15aecb670e2378ce45640d665744ca2be3eb5e6fee2a68b039fc3c6b\/diff:\/opt\/docker\/overlay2\/e5b6343e8e35ed73e71ba27d479bded57761cbfd00f90e2ce9bedf72d3d4fc2c\/diff:\/opt\/docker\/overlay2\/a61706bbfd93ac85c4a0660dfdd4114f7943aa8dc1aee184e13f73eaae1db6db\/diff:\/opt\/docker\/overlay2\/46e333601bb504b68a6b5ea32dccdad008a548a69bf98915d8df437747dfd627\/diff:\/opt\/docker\/overlay2\/bd7f63e531c68c7cdb8da384f7a37c45ce7de5fd609fd857348145e988d7a4f3\/diff:\/opt\/docker\/overlay2\/213bf37c89866299e246634fcd4b119ccd0b1803cf25cb631ead26afa56d0f8c\/diff:\/opt\/docker\/overlay2\/a11267060d6a0bbc13bb36a7bd3e124fe95f3fc7081aafa859c8547fabab6a67\/diff:\/opt\/docker\/overlay2\/eb2794a913eeb839cb51e4f2f66b7c72f6af7dc29ccabbffcab478fa6d66bd15\/diff:\/opt\/docker\/overlay2\/fbaccc13f9bfd72d9a68f8c634d2a3b2d0206395ec35da7886c434e800ce7bfd\/diff:\/opt\/docker\/overlay2\/f552265fd9913777fedf3c678a18a0f5478a0481ed50eaa4318a185457440238\/diff:\/opt\/docker\/overlay2\/fccf08dab67cc5a3a71f7ce9764b09c472809efb69522ed3a87468e8da8a6d6a\/diff:\/opt\/docker\/overlay2\/78e937b0ad762509c3047040f39003b601a9f005c27ae992ec36d8786d406ef9\/diff:\/opt\/docker\/overlay2\/de30419f17810f5be084e3eeaa6d011c505704bbf488903588721a74a02f25a5\/diff:\/opt\/docker\/overlay2\/a6b4ab51c6d16c36cbac74a4c49379cc42863d8aac7897117b544361ecdd1b7c\/diff:\/opt\/docker\/overlay2\/0dcfebe6d776f1b777eecfa8e7357a32f35b53598048da3871605a75c5767aac\/diff:\/opt\/docker\/overlay2\/47916d0f515e0c58456ccf4cf74705c35c7b7143d49da9ac4fd30f6213efeb0f\/diff:\/opt\/docker\/overlay2\/cd0a3ad9a9f2a56ca6d7a4caf737ea2f3a9fb56a47b6121617be16415f7f07aa\/diff:\/opt\/docker\/overlay2\/d1af4a2f1d470f3107ab972f85ceaaee5071b9cc6797472f9b7196612e494741\/diff:\/opt\/docker\/overlay2\/b5319aeda8afd06e0873455d8cac0e1c559886ab041fd6d0654bc2f65f75d498\/diff:\/opt\/docker\/overlay2\/2bcca864ded9037d409ac5812a9a86f92727ef7dbe4bb59d9b6b23cd41b2eb61\/diff:\/opt\/docker\/overlay2\/9e9706351871967f4361f9c17103db4b4d804b3463c92fd1cbbc73194a29673f\/diff:\/opt\/docker\/overlay2\/2c7bc14099384245acfd1bfeeeec8183247cba444dd89cce38ef50793a8b4691\/diff:\/opt\/docker\/overlay2\/2dc7074ffce22dcbb072ee07b645bc745f7f9cb40fcddaee15636bf2aa04a1c6\/diff:\/opt\/docker\/overlay2\/3dded4646e11a4b314fc532449989a3b4c9a7d7e2828441d9483b5ad9f5af7ee\/diff:\/opt\/docker\/overlay2\/3d5fffc702b8a6bc3c374f7a0c9b834f8e8f64b7f11fa7821893aad2bdd6d5fe\/diff:\/opt\/docker\/overlay2\/f85de47ee293645240ba544479b2f800ae0c4e70745ed647e97532d083a33f61\/diff:\/opt\/docker\/overlay2\/ce7c2b94602531cb8331e0756d6bd6c514f59dd32dc803a431708add13f6e17a\/diff:\/opt\/docker\/overlay2\/0836adaaea4ca7d85f5212c8c8e8880acba6fbf28c65ca54a309cbd03ea4071c\/diff:\/opt\/docker\/overlay2\/f5541d9bad3847ee042f6a9261323939c938a09bfb54a31a9ae45b8b99a11ca0\/diff:\/opt\/docker\/overlay2\/1aa663b01a71a681be046428b43a9794b1c28fa1b32cedfa272bccb572f6546a\/diff"
    },
    "Name": "overlay2"
  },
  "State": {
    "Pid": 0,
    "FinishedAt": "2022-11-23T11:25:37.650658245Z",
    "StartedAt": "2022-11-23T11:25:36.56867716Z",
    "Error": "",
    "Running": true,
    "Paused": false,
    "OOMKilled": false,
    "Status": "restarting",
    "ExitCode": 1,
    "Restarting": true,
    "Dead": false
  },
  "Driver": "overlay2",
  "Name": "\/emoncms",
  "Args": [
    "apache2-foreground"
  ],
  "HostnamePath": "\/opt\/docker\/containers\/9ea49c5a4f4338f2df368d14df6591977dc5a823c55899bab6db3638cdd3006d\/hostname",
  "Created": "2022-11-23T01:53:53.007731323Z",
  "AppArmorProfile": "",
  "Image": "sha256:b9c531103e2c8e1c2ba60bc2123fb624fdd70dfc634fefb3e31a97bd1b214f9d"

home assistant is using – “io.hass.arch”: “armv7”,

while emoncms specifies no platform difference and when you visit docker hub tags it only list linux/amd64

the solution to the problem is simple apparently on @glyn.hudson side .

it seams that to build a multiarch just needs to be specified

`docker buildx build \ --push \ --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ --tag your-username/multiarch-example:buildx-latest .`*emphasized text*

perhaps if @glyn.hudson does up load different archs he could follow home assistants build policy that way people can load to different architectures easily and be able to interface with home assistant if they want

I don’t think there is any intention to support Docker installs.

to bad , if true, they do have a fairly big download base as a docker base over million pulls … no worries maybe if I feel energetic maybe I will build a docker container for oem. I just have to figure out how. giving opensource router bases out there that run across 1000’s of different devices and the newer multi core risc-v 8 core 2 ghz opensource router bases that starting to appear

1 Like

Just been looking to see if the docker version was still OK - as Stephen noted it isn’t.

BUT!!! It’s still on the Docker website with instructions - which don’t work.

It might be an idea to have it removed from the hub, so don’t think Emoncms is a crock of…

Simon

if you want to try the one I made a couple months ago though i do not use emoncms. it seams to work and does not crash you have to create a maria database for it locally outside the docker
https://hub.docker.com/r/sash999/emoncms_localdb/tags
just follow the same directions as it is in openwrt

Thanks Stephen, I think I’ve about exhausted my patience with Docker, so I’ll keep plugging away with the emoncms scripts.

Simon

@glyn.hudson did you do this originally?

I’m with you on that.

Is that an issue for you? I’m pushing a few updates to tidy things up so if there is an issue, let me know (GitHub or new thread). I used them recently to create a new LXC container and all was fine.

no worries . i moved away from docker myself and now use basic chroot. I find it better, simpler lighter and more compatible for what I do…

1 Like

A post was split to a new topic: Issues with EmonScipts

You’ve just added another level of ignorance I didn’t know I had!!! Sounds like another rabbit hole…

I’m hoping that basic isn’t Basic as we learnt along time ago. Not sure I can go back to line numbers and GoTos :slight_smile:

Simon

well chroot, not basic. it allow you to install another linux os software layers on top of another one of any flavour even incompatible software version ie: in my case openwrt host but running debian software on top of it . if you mess up, simply delete the chroot folder and start again . does not interfere with your other os. you are able to run the two different flavours software as if was part of the same system… also unlike docker, it only runs when ever you call on the software and nothing is loaded into memory until then and then the only thing loaded into memory is the software itself (ie say I run VLC or mplayer which openwrt does not support to play internet radio stations ( part of my AI function ) … it can have easy connection to your /dev folder and have direct access to all your devices or even folders but general it does not, it fully independent of the host computer . you can easily rebuild the chroot in 5 minutes . as currently, my openwrt router is now also AI and whisper ASR speech to text server and translator ( i really squish alot into my little 5w openwrt routers might have to start looking for a openwrt router that has CUDA GPU lol so I can get speech to text translations down to a second or less instead of the current 10 seconds ) basically it how all android phones run the os under neath and chroot for the user interface on top- that is what jailbreaking about on android phones breaking out of chroot to get to the OS underneath

A bit more info on chroot:

Thanks @stephen and @Bill.Thomson but I’ll give chroot a miss - got enough on just setting everything up in the new house, without having to wrestle with something new.

Simon

no worries - good luck in the new house
heck if you or someone feel energetic one day here’s a basic setup for chroot that installs vlc, git, vim, nano, curl and build essentials

#!/bin/sh
## your build directory
THIS_CHROOT="/root/bullseye"

#chroot is not there, build it  change the arch to match yours ie armh amd64 arm64 etc....
if [ ! -d "$THIS_CHROOT" ]; then
  debootstrap --arch amd64 bullseye "$THIS_CHROOT"

  chroot "$THIS_CHROOT" /bin/bash -c "apt install -y curl  build-essential git vim nano vlc"
fi


chroot "$THIS_CHROOT" /bin/bash -c "mount -t proc proc /proc && \
mount -t sysfs sys /sys && \
apt-get install -y vlc "

there use to be a Debian build script for emoncms, but I can not find it. I would’ve adjusted the above for you to build if you wanted chroot to have direct access to your /dev directory.

mount -o bind /dev /chroot_build_dir/dev

similar if you want access to local, you could link a directory in local.rc
you initialize it with:

chroot /root/your-build_dir bash /root/run.sh

then inside your_build_dir you have something like this

#!/bin/bash

function cleanup {
	echo "Inside: cleaning up 🧹"
	umount /proc
	umount /sys
}
trap cleanup EXIT INT

mount -t proc proc /proc
mount -t sysfs sys /sys

execute some_prorgam/sevices  || exit 1


exit 0

or even simpler if it’s just a program

chroot /your_build_dir  /bin/bash  the_program

Hello @stephen just a quick note to say that the emoncms docker has now been updated. There’s more information in the release here: https://github.com/emoncms/emoncms-docker/releases/tag/11.3.17. Not sure if it helps with the trouble that you had above, but might be useful.