this is the docker-compose.yml:Assuming you restarted (reconfigured?) the NUT container correctly it appears that the NUT container cannot access the original file only the symlink, as your output would indicate:
I googled a bit on the subject & it would appear others have had similar issues with containers (though in docker) only being able to access the symlink & not the original file.
Lets try & see if a workaround helps.
What does the following show (on the PVE host):
readlink /dev/ups0
Code:
version: '2.2'
services:
nut-upsd:
container_name: nut-upsd
image: upshift/nut-upsd
devices:
- /dev/ups0
environment:
- UPS_NAME=APC
- UPS_DRIVER=usbhid-ups
- API_USER=master
- API_PASSWORD=mypasswd
network_mode: host
restart: unless-stopped
when the usb path changes I modify only the line: - /dev/ups0