Hello!
Using imagebuilder I made an openwrt image for x86 and converted it with Starwind to VMDK. I uploaded image to my ESXi server and created VM. Everything worked fine. Then I tried to get letsencrypt certificate (luci-app-acme)
I got following error in logread:
Tue Apr 21 12:16:29 2020 daemon.info acme: Running ACME for host.domain.tld
Tue Apr 21 12:16:29 2020 daemon.err run-acme[4930]: acme: Running ACME for host.domain.tld
Tue Apr 21 12:16:29 2020 daemon.info acme: Using dns mode
Tue Apr 21 12:16:29 2020 daemon.err run-acme[4930]: acme: Using dns mode
Tue Apr 21 12:16:29 2020 daemon.err run-acme[4930]: /usr/lib/acme/run-acme: eval: line 60: /usr/lib/acme/acme.sh: Permission denied
Tue Apr 21 12:16:29 2020 daemon.err acme: Issuing cert for host.domain.tld failed. Moving state to /etc/acme/host.domain.tld.failed-1587471389
Tue Apr 21 12:16:29 2020 daemon.err run-acme[4930]: acme: Issuing cert for host.domain.tld failed. Moving state to /etc/acme/host.domain.tld.failed-1587471389
/etc/acme is empty
There are also some similar errors in log:
Tue Apr 21 12:15:51 2020 daemon.err dnsmasq[4471]: failed to send packet: Permission denied
...
Tue Apr 21 12:16:30 2020 daemon.err dnsmasq[4471]: failed to send packet: Permission denied
Tue Apr 21 12:16:31 2020 daemon.err dnsmasq[4471]: failed to send packet: Permission denied
Following command was used to create image
make image PROFILE=Generic PACKAGES="-dropbear -uhttpd -dnsmasq luci-ssl-nginx dnsmasq-full v2ray-core luci-app-v2ray openssh-client openssh-server openssh-sftp-server openssh-sftp-client wget ddns-scripts ddns-scripts_cloudflare.com-v4 luci-app-ddns zerotier jshn luci-mod-admin-full luci-mod-status socat luci-app-opkg luci-app-upnp luci-app-acme acme-dnsapi mc bash open-vm-tools" FILES=files/
I also tried ext4 and squashfs images with the same result
Same command was used to create image for ubnt-erx (except open-vm-tools) and that image works fine.
Any ideas how to fix this permission problem?