Iâm getting the same error
in portainer > Stacks Iâve added a new one (named it vto2111)
in webeditor i pasted this (passwords changedâŚ):
version: '2'
services:
dahuavto2mqtt:
image: "eladbar/dahuavto2mqtt:latest"
container_name: "dahuavto2mqtt"
hostname: "dahuavto2mqtt"
restart: always
environment:
- DAHUA_VTO_HOST=192.168.39.12
- DAHUA_VTO_USERNAME=admin
- DAHUA_VTO_PASSWORD=passwordofthedevice
- MQTT_BROKER_HOST=localhost
- MQTT_BROKER_PORT=1883
- MQTT_BROKER_USERNAME=someuid
- MQTT_BROKER_PASSWORD=somepwd
- MQTT_BROKER_TOPIC=DahuaVTO/Events
after waiting a few minutes itâs deployed, when going to Containers > dahuavto2mqtt
logs says:
standard_init_linux.go:211: exec user process caused âexec format errorâ
standard_init_linux.go:211: exec user process caused âexec format errorâ
(above message repeated multiple times, and growing)
Inspect is telling me this
7dc3a8aae066f6cde8345ff886bfb29d58cc1071226156bf31810f9ca0f4dde2
AppArmorProfile docker-default
Args [ /bin/sh, -c, php -f /app/DahuaVTO.php ]
Config { AttachStderr: false, AttachStdin: false, AttachStdout: false, Cmd: /bin/sh,-c,php -f /app/DahuaVTO.php, Domainname: , Entrypoint: docker-php-entrypoint, Env: DAHUA_VTO_HOST=192.168.39.12,DAHUA_VTO_USERNAME=admin,DAHUA_VTO_PASSWORD=deblau55,MQTT_BROKER_HOST=localhost,MQTT_BROKER_PORT=1883,MQTT_BROKER_USERNAME=mqttuid,MQTT_BROKER_PASSWORD=mqttpwd,MQTT_BROKER_TOPIC=DahuaVTO/Events,PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c,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,PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2,PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2,PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie,GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F,PHP_VERSION=7.2.2,PHP_URL=https://secure.php.net/get/php-7.2.2.tar.xz/from/this/mirror,PHP_ASC_URL=https://secure.php.net/get/php-7.2.2.tar.xz.asc/from/this/mirror,PHP_SHA256=47d7607d38a1d565fc43ea942c92229a7cd165f156737f210937e375b243cb11,PHP_MD5=, ExposedPorts: [object Object], Hostname: dahuavto2mqtt, Image: eladbar/dahuavto2mqtt:latest, Labels: [object Object], OnBuild: null, OpenStdin: false, StdinOnce: false, Tty: false, User: , Volumes: null, WorkingDir: /app }
Created 2020-03-05T21:18:43.153984926Z
Driver overlay2
ExecIDs
GraphDriver { Data: [object Object], Name: overlay2 }
HostConfig { AutoRemove: false, Binds: , BlkioDeviceReadBps: null, BlkioDeviceReadIOps: null, BlkioDeviceWriteBps: null, BlkioDeviceWriteIOps: null, BlkioWeight: 0, BlkioWeightDevice: null, CapAdd: null, CapDrop: null, Capabilities: null, Cgroup: , CgroupParent: , ConsoleSize: 0,0, ContainerIDFile: , CpuCount: 0, CpuPercent: 0, CpuPeriod: 0, CpuQuota: 0, CpuRealtimePeriod: 0, CpuRealtimeRuntime: 0, CpuShares: 0, CpusetCpus: , CpusetMems: , DeviceCgroupRules: null, DeviceRequests: null, Devices: , Dns: null, DnsOptions: null, DnsSearch: null, ExtraHosts: null, GroupAdd: null, IOMaximumBandwidth: 0, IOMaximumIOps: 0, IpcMode: shareable, Isolation: , KernelMemory: 0, KernelMemoryTCP: 0, Links: null, LogConfig: [object Object], 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, Memory: 0, MemoryReservation: 0, MemorySwap: 0, MemorySwappiness: 0, NanoCpus: 0, NetworkMode: vto2111_default, OomKillDisable: false, OomScoreAdj: 0, PidMode: , PidsLimit: null, PortBindings: [object Object], Privileged: false, PublishAllPorts: false, ReadonlyPaths: /proc/bus,/proc/fs,/proc/irq,/proc/sys,/proc/sysrq-trigger, ReadonlyRootfs: false, RestartPolicy: [object Object], Runtime: runc, SecurityOpt: null, ShmSize: 67108864, UTSMode: , Ulimits: , UsernsMode: , VolumeDriver: , VolumesFrom: null }
HostnamePath /mnt/data/docker/containers/7dc3a8aae066f6cde8345ff886bfb29d58cc1071226156bf31810f9ca0f4dde2/hostname
HostsPath /mnt/data/docker/containers/7dc3a8aae066f6cde8345ff886bfb29d58cc1071226156bf31810f9ca0f4dde2/hosts
Id 7dc3a8aae066f6cde8345ff886bfb29d58cc1071226156bf31810f9ca0f4dde2
Image sha256:3f2212948cdc13c61931a593ecd8d108717be5948888efb11b99ed13213a849b
LogPath
MountLabel
Mounts [ ]
Name /dahuavto2mqtt
NetworkSettings { Bridge: , EndpointID: , Gateway: , GlobalIPv6Address: , GlobalIPv6PrefixLen: 0, HairpinMode: false, IPAddress: , IPPrefixLen: 0, IPv6Gateway: , LinkLocalIPv6Address: , LinkLocalIPv6PrefixLen: 0, MacAddress: , Networks: [object Object], Ports: [object Object], SandboxID: 4e28e351c0d5d8a625a3c39b55f1fefbb169a5cfe4969da57ae3ebb6cf657217, SandboxKey: /var/run/docker/netns/4e28e351c0d5, SecondaryIPAddresses: null, SecondaryIPv6Addresses: null }
Path docker-php-entrypoint
Platform linux
Portainer { ResourceControl: [object Object] }
ProcessLabel
ResolvConfPath /mnt/data/docker/containers/7dc3a8aae066f6cde8345ff886bfb29d58cc1071226156bf31810f9ca0f4dde2/resolv.conf
RestartCount 15
State
Dead false
Error
ExitCode 1
FinishedAt 2020-03-05T21:26:20.373584472Z
OOMKilled false
Paused false
Pid 0
Restarting true
Running true
StartedAt 2020-03-05T21:26:19.007468131Z
Status restarting
I see somewhere itâs build at a AMD64 system, can I assume you are not using a raspberrypi3/4 ?
could that be a problem somehow?