Repository navigation
[BUG] "chmod: changing permissions of '/XXX': Bad address" error message (QNAP) #514
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingupstream issuework-in-progressStale exemptStale exempt
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
During swag container start, several chmod error message appear in the log. I've checked all related file and folder permission and find them all correct for the user.
However, SWAG proxy seems to be working fine and proxied container are reachable as expected
Not really sure when the issue started as I saw it few days ago only, but can confirm the issue was not there few months ago, with the same config.
Expected Behavior
start without error message.
Steps To Reproduce
Happens at every start.
Environment
- OS: QNAP Server
- How docker service was installed: docker composeCPU architecture
x86-64
Docker creation
services:
# Swag proxy installation
swag:
container_name: swag
image: linuxserver/swag:latest
ports:
- 35443:443
- 35080:80
- 35082:81 # Dashboard
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- URL=xxxxx
- SUBDOMAINS=wildcard
- VALIDATION=dns
- DNSPLUGIN=xxxxx
- EMAIL=xxxxx
- WATCHLIST=/config/nginx/maxmind.conf
- NGINX_LOG_PATH=/config/log/nginx/access.log
## Docker Mods
- DOCKER_MODS=linuxserver/mods:universal-docker|linuxserver/mods:swag-geoip2influx|linuxserver/mods:swag-maxmind|linuxserver/mods:swag-dashboard|linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-cloudflare-real-ip|linuxserver/mods:swag-crowdsec
- DOCKER_MODS_DEBUG=false
- DOCKER_MODS_DEBUG_CURL=false
## Geo2IP
- INFLUX_HOST=${INFLUX_HOST}
- INFLUX_HOST_PORT=8086
- INFLUX_DATABASE=${INFLUX_DATABASE}
- INFLUX_USER=${INFLUX_USER}
- INFLUX_PASS=${INFLUX_PASS}
- INFLUXDB_DATA_MAX_SERIES_PER_DATABASE=100000
- INFLUXDB_DATA_MAX_VALUES_PER_TAG=0
- INFLUX_RETENTION=90d
- INFLUX_SHARD=2d
- GEOIP2INFLUX_LOG_PATH=/config/log/geoip2influx/geoip2influx.log
- GEOIP2INFLUX_LOG_LEVEL=info
- GEOIP_DB_PATH=/config/geoip2db/GeoLite2-City.mmdb
- MAXMINDDB_LICENSE_KEY=${MAXMINDDB_LICENSE_KEY}
- MAXMINDDB_USER_ID=${MAXMINDDB_USER_ID}
## Crowdsec
- CROWDSEC_API_KEY=${CROWDSEC_API_KEY}
- CROWDSEC_LAPI_URL=http://${CROWDSEC_HOST}:8080
- CROWDSEC_F2B_DISABLE=true
- CROWDSEC_MODE=live
volumes:
- /xxxxx/Container/swag/config:/config
- /xxxxx/Container/swag/config/logrotate:/root/etc/logrotate.d
- /xxxxx/Container/swag/secrets:/secrets
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
- com.centurylinklabs.watchtower.enable=true
security_opt:
- no-new-privileges=true
cap_add:
- NET_ADMIN`Container logs
`[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] linuxserver/mods:universal-docker at sha256:830ed079c9dc0b6ba0ffa7046135e0b10d175f658dd207692208851f2bcce392 has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-geoip2influx to container
[mod-init] linuxserver/mods:swag-geoip2influx at sha256:1161809ed4c90db6fb051f9ff09b7a40ab9cc780d59ccb97826d6c4170741a26 has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-maxmind to container
[mod-init] linuxserver/mods:swag-maxmind at sha256:4f920f4949af13674bd0fdcb6010af441b51577e4096a28887e3fce10915415c has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-dashboard to container
[mod-init] linuxserver/mods:swag-dashboard at sha256:7923509263d7e4a92b693ed23c60d8d35e8e24a97bf06ea549be910c99256d7d has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-auto-reload to container
[mod-init] linuxserver/mods:swag-auto-reload at sha256:9dbae5d11b0dab3c5825a700ea1933a606a81df6312186da0f167e6ed8b6039e has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-cloudflare-real-ip to container
[mod-init] linuxserver/mods:swag-cloudflare-real-ip at sha256:21aa292df04e2eddad2acfe90c81ec0e3254d4cf87535c72ef7b517be5428cef has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-crowdsec to container
[mod-init] linuxserver/mods:swag-crowdsec at sha256:f81f99add5c5de7ff505f71a8fe96f93407df1943f77c0d785aa9cee06641e4a has been previously applied skipping
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
Linuxserver.io version: 2.11.0-ls330
Build-date: 2024-10-19T03:29:55+00:00
───────────────────────────────────────
using keys found in /config/keys
chmod: changing permissions of '/config/nginx/site-confs': Bad address
chmod: changing permissions of '/config/nginx/site-confs/default.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/site-confs/default.conf': Bad address
chmod: changing permissions of '/config/nginx/nginx.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/.editorconfig': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/README.md': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/adguard.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/syncrify.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/xeams.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/homarr.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/komga.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/stalwart.subdomain.conf.bkp': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/vscode.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/paperless.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/xeams_mta-sys.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/authelia.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/dashboard.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/emby.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/vaultwarden.subdomain': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/bitwarden.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/Geneweb.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/immich.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/gaseous.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/pydio-cells.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/bitwarden.subdomain.conf.bkp': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/emulatorjs.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy-confs/portainer.subdomain.conf': Bad address
chmod: changing permissions of '/config/nginx/nginx.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/ssl.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/authelia-server.conf': Bad address
chmod: changing permissions of '/config/nginx/authelia-location.conf': Bad address
chmod: changing permissions of '/config/nginx/authelia-location.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/authelia-server.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/authentik-location.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/authentik-server.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/ldap-location.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/ldap-server.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/proxy.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/ssl.conf': Bad address
chmod: changing permissions of '/config/nginx/dhparams.pem': Bad address
chmod: changing permissions of '/config/nginx/resolver.conf': Bad address
chmod: changing permissions of '/config/nginx/worker_processes.conf': Bad address
chmod: changing permissions of '/config/nginx/proxy.conf': Bad address
chmod: changing permissions of '/config/nginx/ldap-location.conf': Bad address
chmod: changing permissions of '/config/nginx/ldap-server.conf': Bad address
chmod: changing permissions of '/config/nginx/cf_real-ip.conf': Bad address
chmod: changing permissions of '/config/nginx/maxmind.conf': Bad address
chmod: changing permissions of '/config/nginx/ssl_bos.conf': Bad address
chmod: changing permissions of '/config/nginx/ssl_geneweb.conf': Bad address
chmod: changing permissions of '/config/nginx/resolver.conf.bkp': Bad address
chmod: changing permissions of '/config/nginx/authentik-location.conf': Bad address
chmod: changing permissions of '/config/nginx/authentik-server.conf': Bad address
chmod: changing permissions of '/config/nginx/authenticated-origin-pull-ca.pem': Bad address
chmod: changing permissions of '/etc/logrotate.d/acpid': Bad address
chmod: changing permissions of '/etc/logrotate.d/geoip2influx': Bad address
chmod: changing permissions of '/etc/logrotate.d/lerotate': Bad address
chmod: changing permissions of '/etc/logrotate.d/nginx': Bad address
chmod: changing permissions of '/etc/logrotate.d/php-fpm': Bad address
chmod: changing permissions of '/etc/logrotate.d/php-fpm83': Bad address
Variables set:
PUID=1000
PGID=1000
TZ=Europe/Paris
URL=xxxxx
SUBDOMAINS=wildcard
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
DNSPLUGIN=xxxxx
EMAIL=xxxxx
STAGING=
chmod: changing permissions of '/defaults/etc/letsencrypt/renewal-hooks/deploy': Bad address
chmod: changing permissions of '/defaults/etc/letsencrypt/renewal-hooks/deploy/10-default': Bad address
chmod: changing permissions of '/defaults/etc/letsencrypt/renewal-hooks/post': Bad address
chmod: changing permissions of '/defaults/etc/letsencrypt/renewal-hooks/post/10-nginx': Bad address
chmod: changing permissions of '/defaults/etc/letsencrypt/renewal-hooks/pre': Bad address
chmod: changing permissions of '/defaults/etc/letsencrypt/renewal-hooks/pre/10-nginx': Bad address
Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
Wildcard cert for xxxxx will be requested
E-mail address entered: xxxxx
dns validation via xxxxx plugin is selected
Certificate exists; parameters unchanged; starting nginx
chmod: changing permissions of '/etc/logrotate.d/acpid': Bad address
chmod: changing permissions of '/etc/logrotate.d/geoip2influx': Bad address
chmod: changing permissions of '/etc/logrotate.d/lerotate': Bad address
chmod: changing permissions of '/etc/logrotate.d/nginx': Bad address
chmod: changing permissions of '/etc/logrotate.d/php-fpm': Bad address
chmod: changing permissions of '/etc/logrotate.d/php-fpm83': Bad address
chmod: changing permissions of '/config/log/nginx': Bad address
chmod: changing permissions of '/config/log/nginx/error.log': Bad address
chmod: changing permissions of '/config/log/nginx/access.log': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.2.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.2.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.3.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.2.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.3.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.3.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.4.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.4.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.5.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.4.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.5.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.5.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.6.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.6.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.7.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.6.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.7.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.7.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.8.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.8.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.9.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.8.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.9.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.9.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.10.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.10.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.11.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.10.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.11.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.11.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.12.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.12.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.13.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.12.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.13.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.13.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.14.gz': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.14.gz': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.1': Bad address
chmod: changing permissions of '/config/log/nginx/access.log.14.gz': Bad address
chmod: changing permissions of '/config/log/nginx/error.log.1': Bad address
chmod: changing permissions of '/config/log/nginx/unauthorized.log.1': Bad address
chmod: changing permissions of '/config/log/php': Bad address
chmod: changing permissions of '/config/log/php/error.log': Bad address
chmod: changing permissions of '/config/log/php/error.log.1': Bad address
chmod: changing permissions of '/config/log/php/error.log.2.gz': Bad address
chmod: changing permissions of '/config/log/php/error.log.3.gz': Bad address
chmod: changing permissions of '/config/log/php/error.log.4.gz': Bad address
chmod: changing permissions of '/config/log/php/error.log.5.gz': Bad address
chmod: changing permissions of '/config/log/php/error.log.6.gz': Bad address
chmod: changing permissions of '/config/log/php/error.log.7.gz': Bad address
chmod: changing permissions of '/config/log/fail2ban': Bad address
chmod: changing permissions of '/config/log/fail2ban/fail2ban.log': Bad address
chmod: changing permissions of '/config/log/letsencrypt': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.2.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.3.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.4.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.5.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.6.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.7.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.8.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.9.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.1': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.10.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.11.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.12.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.13.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.14.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.15.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.16.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.17.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.18.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.19.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.20.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.21.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.22.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.23.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.24.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.25.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.26.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.27.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.28.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.29.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.30.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.31.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.32.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.33.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.34.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.35.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.36.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.37.gz': Bad address
chmod: changing permissions of '/config/log/letsencrypt/letsencrypt.log.38.gz': Bad address
chmod: changing permissions of '/config/log/geoip2influx': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-14': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-15': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.1': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-17': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-18': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-19': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-13': Bad address
chmod: changing permissions of '/config/log/geoip2influx/geoip2influx.log.2024-10-16': Bad address
chmod: changing permissions of '/config/log/logrotate.status': Bad address
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
[init-geoip2influx-setup] Starting
**** installing docker and docker compose ****
**** docker and docker-compose already installed, skipping ****
**** Applying the SWAG dashboard mod... ****
libmaxminddb
**** goaccess already installed, skipping ****
**** swag-auto-reload deps already installed, skipping ****
**** libmaxminddb already installed, skipping ****
**** libmaxminddb already installed, skipping ****
**** Applied the SWAG dashboard mod ****
[init-geoip2influx-setup] Variables set:
INFLUX_HOST=xxxxx
INFLUX_HOST_PORT=8086
INFLUX_DATABASE=geoip2influx
INFLUX_USER=xxxxx
INFLUX_PASS=xxxxx
INFLUX_RETENTION=90d
INFLUX_SHARD=2d
INFLUXDB_V2_TOKEN=
INFLUXDB_V2_URL=
INFLUXDB_V2_ORG=
INFLUXDB_V2_BUCKET=
INFLUXDB_V2_RETENTION=
INFLUXDB_V2_DEBUG=
INFLUXDB_V2_BATCHING=
INFLUXDB_V2_BATCH_SIZE=
INFLUXDB_V2_FLUSH_INTERVAL=
GEO_MEASUREMENT=
LOG_MEASUREMENT=
NGINX_LOG_PATH=/config/log/nginx/access.log
SEND_NGINX_LOGS=
GEOIP2INFLUX_LOG_LEVEL=info
GEOIP2INFLUX_LOG_PATH=/config/log/geoip2influx/geoip2influx.log
GEOIP_DB_PATH=/config/geoip2db/GeoLite2-City.mmdb
USE_INFLUXDB_V2=
MAXMINDDB_USER_ID=xxxxxx
MAXMINDDB_LICENSE_KEY=xxxxxx
[init-geoip2influx-setup] Finished
Applying the maxmind mod...
Applied the maxmind mod
[custom-init] No custom files found, skipping...
MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
/config/nginx
/config/nginx/maxmind.conf
[ls.io-init] done.
**** Disabling fail2ban Service ****
nginx: [error] [lua] crowdsec.lua:62: init(): error loading captcha plugin: no recaptcha site key provided, can't use recaptcha
nginx: [alert] [lua] crowdsec_nginx.conf:4):8: [Crowdsec] Initialisation done
20/10/2024 12:37:20 | MainThread | root | INFO | (logger.configure_logging|line:119) | Operating system: Linux-5.10.60-qnap-x86_64-with |
20/10/2024 12:37:20 | MainThread | root | INFO | (logger.configure_logging|line:120) | Python version: 3.12.7 |
20/10/2024 12:37:20 | MainThread | g2i | INFO | (run.<module>|line:26) | Starting GeoIP2Influx. |
20/10/2024 12:37:20 | MainThread | InfluxClient | INFO | (influx.validate|line:186) | InfluxDB client validated. |
20/10/2024 12:37:20 | MainThread | InfluxClient | SUCCESS | (influx.setup|line:85) | InfluxDB client setup complete. |
20/10/2024 12:37:20 | MainThread | LogParser | INFO | (logparser.log_file_exists|line:120) | Log file /config/log/nginx/access.log exists. |
20/10/2024 12:37:20 | MainThread | LogParser | INFO | (logparser.geoip_file_exists|line:131) | GeoIP file /config/geoip2db/GeoLite2-City.mmdb exists. |
20/10/2024 12:37:20 | MainThread | LogParser | SUCCESS | (logparser.validate_log_format|line:108) | Log file format is valid! |
20/10/2024 12:37:20 | MainThread | LogParser | INFO | (logparser.tail_logs|line:153) | Tailing log file. |`Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstream issuework-in-progressStale exemptStale exempt
Type
Projects
- StatusShow more project fieldsIssues
Activity
ttraxxrepo commentedon Oct 20, 2024
Same issue with streamlined compose
additional details in discord thread:
https://discord.com/channels/354974912613449730/1293559623999033395
aptalca commentedon Oct 20, 2024
I can't reproduce. Are you on qnap as well?
Flyingfufu commentedon Oct 20, 2024
Yes, with latest firmware and container station versions.
svein commentedon Oct 23, 2024
I see the same chmod errors with a lot of my containers including swag. It seems to have messed up permission on nextcloud container. Also qnap Docker version 27.1.2-qnap2, build d46fd47.
thespad commentedon Oct 23, 2024
Can you provice the output of
uname -aanddocker infoon the hostAlso what filesystem is your QNAP storage using? ext4? btrfs? etc.
svein commentedon Oct 23, 2024
Docker was recently upgraded, but system hasn't been updated in a while. I have not seen this errors before, though I don't look at the logs unless I expect problems with an docker container upgrade for instance.
Filesystem is zfs
Flyingfufu commentedon Oct 25, 2024
Sorry for the delay, was away for few days. Here the outputs :
uname -a :
Linux MyHomeNAS 5.10.60-qnap #1 SMP Sat Aug 17 00:59:46 CST 2024 x86_64 GNU/Linuxand
docker info :
Client: Version: 27.1.2-qnap2 Context: default Debug Mode: false Plugins: compose: Docker Compose (Docker Inc.) Version: v2.29.1-qnap1 Path: /usr/local/lib/docker/cli-plugins/docker-composeServer: Containers: 49 Running: 40 Paused: 0 Stopped: 9 Images: 50 Server Version: 27.1.2-qnap2 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: true Native Overlay Diff: false userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay qnet Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 kata-runtime nvidia-runtime runc Default Runtime: runc Init Binary: docker-init containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353 runc version: v1.1.13-0-g58aa920 init version: de40ad0 Security Options: apparmor seccomp Profile: builtin Kernel Version: 5.10.60-qnap Operating System: QTS 5.2.0 (20240817) OSType: linux Architecture: x86_64 CPUs: 6 Total Memory: 31.26GiB Name: Redacted ID: Redacted Docker Root Dir: /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker Debug Mode: true File Descriptors: 3199 Goroutines: 304 System Time: 2024-10-25T12:44:22.48574818+02:00 EventsListeners: 1 Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false Product License: Community Engine Default Address Pools: Base: 172.29.0.0/16, Size: 22toshmop commentedon Oct 27, 2024
Hello, same thing for me in Storage Driver: overlay2
[~] # docker info
Client:
Version: 27.1.2-qnap2
Context: default
Debug Mode: false
Plugins:
compose: Docker Compose (Docker Inc.)
Version: v2.29.1-qnap1
Path: /usr/local/lib/docker/cli-plugins/docker-compose
Server:
Containers: 15
Running: 9
Paused: 0
Stopped: 6
Images: 18
Server Version: 27.1.2-qnap2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay qnet
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 kata-runtime nvidia-runtime runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
runc version: v1.1.13-0-g58aa920
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
Kernel Version: 5.10.60-qnap
Operating System: QTS 5.2.0 (20240817)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 15.53GiB
Name: XXXXXX
ID: XXXXXX
Docker Root Dir: /share/CACHEDEV2_DATA/SRV/container-station-data/lib/docker
Debug Mode: true
File Descriptors: 122
Goroutines: 103
System Time: 2024-10-27T11:16:19.902918904+01:00
EventsListeners: 1
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Default Address Pools:
Base: 172.29.0.0/16, Size: 22
Flyingfufu commentedon Oct 27, 2024
Hello,
Just realized that the same issue exist with the following image:
linuxserver/speedtest-tracker:latestthespad commentedon Oct 27, 2024
My guess is it'll affect any image that performs a chmod on init. Can you post the relevant logs from the
speedtest-trackercontainer please.Flyingfufu commentedon Oct 27, 2024
here you go :
`[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
───────────────────────────────────────
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
speedtest-tracker: https://github.com/sponsors/alexjustesen
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
Linuxserver.io version: v0.21.4-ls51
Build-date: 2024-10-26T21:22:13+00:00
───────────────────────────────────────
using keys found in /config/keys
chmod: changing permissions of '/config/nginx/site-confs': Bad address
chmod: changing permissions of '/config/nginx/site-confs/default.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/site-confs/default.conf': Bad address
chmod: changing permissions of '/config/nginx/nginx.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/ssl.conf.sample': Bad address
chmod: changing permissions of '/config/nginx/nginx.conf': Bad address
chmod: changing permissions of '/config/nginx/ssl.conf': Bad address
chmod: changing permissions of '/config/nginx/dhparams.pem': Bad address
chmod: changing permissions of '/config/nginx/resolver.conf': Bad address
chmod: changing permissions of '/config/nginx/worker_processes.conf': Bad address
chmod: changing permissions of '/etc/logrotate.d/acpid': Bad address
chmod: changing permissions of '/etc/logrotate.d/nginx': Bad address
chmod: changing permissions of '/etc/logrotate.d/php-fpm': Bad address
chmod: changing permissions of '/etc/logrotate.d/php-fpm83': Bad address
Waiting for DB to be available
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│ old date │ new date │ path │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2023-04-13 │ 2024-05-27 │ /config/nginx/nginx.conf │
│ 2023-04-13 │ 2024-07-16 │ /config/nginx/site-confs/default.conf │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
[custom-init] No custom files found, skipping...
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:7
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:8
[ls.io-init] done.
`
aptalca commentedon Oct 27, 2024
This is definitely an issue that affects chmod in docker on qnap specifically. Something to do with the docker install there or the kernel, or an incompatibility between the two.
I don't believe there is anything we can do. It likely needs to be updated/fixed by qnap.
Iirc we had similar issues reported with chmod some time ago (maybe more than a couple of years ago) and the issue was later resolved by updates.
In this case the container still goes through the rest of the init and the services seem to start.
thespad commentedon Oct 27, 2024
It's almost impossible to usefully troubleshoot because 99% of search results for "Bad Address" are DNS related; I've even gone through the coreutils source and it doesn't seem to be a native error message, which suggests it's being returned by the OS/kernel.
I did find this: alpinelinux/docker-alpine#342 but it seems to be specific to 32bit arm.
The gitlab tracking issue is https://gitlab.alpinelinux.org/alpine/aports/-/issues/15167
53 remaining items
jantari commentedon Jan 20, 2025
I have since switched to caddy which works, but I have come back to test the new version
3.1.0-ls358and it gets past the "Bad address" errors just like3.0.1-ls347did.However I am now facing the same problem I had when I tried
3.0.1-ls347, which is that the container apparently can't even reach the internet ... which is baffling because every other container on this host with the same config can.The `/config/log/letsencrypt/letsencrypt.log` file:
I realize this is a different issue, but I'm both willing to help fix this project up and curious why this container is being so problematic - what special things do you need to do? Why even chmod anything on startup? Why can every container I ever started get network access on this system but yours cannot? Perhaps it's time to go back to basics, use less custom stuff .... ?
I've done some additional troubleshooting on this and it seems that the problem is that this container takes 30 seconds to get its networking up and functional. I've tested this like this:
for comparison, here is the output from running the same test against my caddy container:
It, like every other container, has network connectivity instantly.
Bugs like this just make this project hard to use when its promise is supposed to make everything easier...
EVOTk commentedon Mar 5, 2025
Hello,
FYI : https://www.qnap.com/en/how-to/faq/article/why-do-certain-images-encounter-permission-errors-when-executing-commands-in-lxd-or-docker
thespad commentedon Mar 5, 2025
That's extremely funny.
Flyingfufu commentedon Mar 5, 2025
Thanks @EVOTk
Interestingly, I never received feedback on my ticket, not even a mention or link to this FAQ article...
EVOTk commentedon Mar 5, 2025
Can you share with me your qnap support ticket number?
Flyingfufu commentedon Mar 5, 2025
sure : Q-202501-37185
EVOTk commentedon Mar 6, 2025
Thx. The ticket is currently being studied by R&D. You'll receive feedback when R&D indicates that the problem has been fixed.
[-][BUG] "chmod: changing permissions of '/XXX': Bad address" error message[/-][+][BUG] "chmod: changing permissions of '/XXX': Bad address" error message (QNAP)[/+]svein commentedon Jun 3, 2025
Anyone know the status of the Qnap support ticket? Has the problem been resolved in latest Container Station 3.1.1.1451?
Flyingfufu commentedon Jun 3, 2025
No feedback received to date. As far I know, the issue is still not fixed (at least in the stable versions of the firmware).
zhenju84-debug commentedon Nov 25, 2025
Still pending this issue, chmod bad address for QNAP,
dever23b commentedon Feb 1, 2026
I hope this message helps someone prior to their purchase of a QNAP. If you're considering a QNAP NAS with the intention of running Docker services, look forward to a never ending myriad of issues just like this. I think the solution to this ticket is to just not use QNAP devices, unfortunately.
Also. Stuck at a standstill with this issue. In my case, swag is completely unusable because for some reason /var/lib/nginx gets assigned u+rwx,g+rx - 100(klogd):65534 as its permissions and the QNAP kernel apparently has religious objections to allowing me to change anything about that. Consequently, nginx starts up into a panic because it cant access its modules and subsequently crashes repeatedly.
I'm sure anyone reading this has already made the mistake. But, in case I can catch someone and save them the headache: don't buy QNAP if you want your NAS to do anything besides the very literal task of simply storing files. Their software is garbage.
EVOTk commentedon Feb 3, 2026
This problem has been solved in QuTS hero 6.0.0 beta, but we'll have to wait for QTS 6 to solve it in QTS.
Flyingfufu commentedon Aug 13, 2026
Experiencing issues chmod issue during a recent update on my roon server (see https://community.roonlabs.com/t/roon-server-on-nas-synology-qnap-others-not-updating-to-2-71-build-1683-ref-cvs9ty-ticket-in/323518/62), a fix was found by the roon dev team (see RoonLabs/roon-docker#31).
Im wondering if it could be of any help for this topic...