V6 setup in Synology

I am trying to move to v6. I use Portainer on Synology NAS. I had no issue with v5.
Would appreciate any pointers on what I am doing wrong here:

services:
  pihole:
    image: pihole/pihole:development-v6
    container_name: Pi-Hole
    mem_limit: 2g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:false
    restart: on-failure:5
    network_mode: host
    volumes:
      - /volume2/docker/pihole/dnsmasq.d:/etc/dnsmasq.d:rw
      - /volume2/docker/pihole/pihole:/etc/pihole:rw
    environment:
      TZ: US/Eastern
      FTLCONF_webserver_api_password: test
      PIHOLE_UID: 1026
      PIHOLE_GID: 100
      DNSMASQ_USER: root
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "8080:80/tcp"
      - "443:443/tcp"

Logs:

  [i] Starting docker specific checks & setup for docker pihole/pihole
  [i] Changing ID for user: pihole (100 => 1026)
  [i] Changing ID for group: pihole (101 => 100)
  [i] Ensuring basic configuration by re-running select functions from basic-install.sh
  [i] Assigning password defined by Environment Variable
  [i] Docker start setup complete
  [i] pihole-FTL (no-daemon) will be started as root
  [i] Setting capabilities on pihole-FTL where possible
  [i] Applying the following caps to pihole-FTL:
        * CAP_CHOWN
        * CAP_NET_BIND_SERVICE
        * CAP_NET_RAW
2024-08-29 14:39:10.262 EDT [152M] INFO: ########## FTL started on Cloud! ##########
2024-08-29 14:39:10.262 EDT [152M] INFO: FTL branch: development-v6
2024-08-29 14:39:10.262 EDT [152M] INFO: FTL version: vDev-ee9ca39
2024-08-29 14:39:10.262 EDT [152M] INFO: FTL commit: ee9ca391
2024-08-29 14:39:10.262 EDT [152M] INFO: FTL date: 2024-08-27 06:32:56 +0200
2024-08-29 14:39:10.262 EDT [152M] INFO: FTL user: root
2024-08-29 14:39:10.262 EDT [152M] INFO: Compiled for linux/amd64 (compiled on CI) using cc (Alpine 13.2.1_git20240309) 13.2.1 20240309
2024-08-29 14:39:10.380 EDT [152M] INFO: 1 FTLCONF environment variable found (1 used, 0 invalid, 0 ignored)
2024-08-29 14:39:10.380 EDT [152M] INFO:    [✓] FTLCONF_webserver_api_password is used
2024-08-29 14:39:10.382 EDT [152M] INFO: Wrote config file:
2024-08-29 14:39:10.382 EDT [152M] INFO:  - 149 total entries
2024-08-29 14:39:10.382 EDT [152M] INFO:  - 146 entries are default
2024-08-29 14:39:10.382 EDT [152M] INFO:  - 3 entries are modified
2024-08-29 14:39:10.382 EDT [152M] INFO:  - 0 entries are forced through environment
2024-08-29 14:39:10.383 EDT [152M] INFO: Parsed config file /etc/pihole/pihole.toml successfully
2024-08-29 14:39:10.383 EDT [152M] WARNING: Insufficient permissions to set process priority to -10 (CAP_SYS_NICE required), process priority remains at 0
2024-08-29 14:39:10.384 EDT [152M] WARNING: Starting pihole-FTL as user root is not recommended
2024-08-29 14:39:10.385 EDT [152M] INFO: PID of FTL process: 152
2024-08-29 14:39:10.385 EDT [152M] INFO: listening on 0.0.0.0 port 53
2024-08-29 14:39:10.385 EDT [152M] INFO: listening on :: port 53
2024-08-29 14:39:10.386 EDT [152M] INFO: PID of FTL process: 152
2024-08-29 14:39:10.387 EDT [152M] ERROR: SQLite3: recovered 73 frames from WAL file /etc/pihole/pihole-FTL.db-wal (283)
2024-08-29 14:39:10.387 EDT [152M] INFO: Database version is 19
2024-08-29 14:39:10.692 EDT [152M] INFO: Database successfully initialized
2024-08-29 14:39:10.714 EDT [152M] INFO: Imported 1303 queries from the on-disk database (it has 1303 rows)
2024-08-29 14:39:10.714 EDT [152M] INFO: Parsing queries in database
2024-08-29 14:39:10.725 EDT [152M] INFO: Imported 1303 queries from the long-term database
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Total DNS queries: 1303
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Cached DNS queries: 533
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Forwarded DNS queries: 684
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Blocked DNS queries: 0
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Unknown DNS queries: 0
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Unique domains: 226
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Unique clients: 4
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> DNS cache records: 481
2024-08-29 14:39:10.725 EDT [152M] INFO:  -> Known forward destinations: 2
2024-08-29 14:39:10.870 EDT [152M] WARNING: Insufficient permissions to set system time (CAP_SYS_TIME required), NTP client not available
2024-08-29 14:39:10.870 EDT [152/T153] ERROR: Error NTP server: Cannot bind to IPv4 address 0.0.0.0:123 (Address in use), IPv4 NTP server not available
2024-08-29 14:39:10.870 EDT [152/T154] ERROR: Error NTP server: Cannot bind to IPv6 address :::123 (Address in use), IPv6 NTP server not available
2024-08-29 14:39:10.871 EDT [152M] INFO: FTL is running as root
2024-08-29 14:39:10.871 EDT [152M] INFO: Reading certificate from /etc/pihole/tls.pem ...
2024-08-29 14:39:10.871 EDT [152M] INFO: Using SSL/TLS certificate file /etc/pihole/tls.pem
2024-08-29 14:39:10.872 EDT [152M] ERROR: Start of webserver failed!. Web interface will not be available!
2024-08-29 14:39:10.872 EDT [152M] ERROR:        Error: Failed to setup server ports (error code 10.0)
2024-08-29 14:39:10.872 EDT [152M] ERROR:        Hint: Check the webserver log at /var/log/pihole/webserver.log
2024-08-29 14:39:10.873 EDT [152M] INFO: Blocking status is enabled
2024-08-29 14:39:10.975 EDT [152/T155] INFO: Compiled 0 allow and 0 deny regex for 4 clients in 0.2 msec
2024-08-29 14:39:10.975 EDT [152/T155] WARNING: List with ID 1 (https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) was inaccessible during last gravity run
2024-08-29 14:39:40.472 EDT [152M] WARNING: WARNING in dnsmasq core: ignoring query from non-local network 24.47.208.34 (logged only once)

webserver.log

[2024-08-29 14:39:10.871 EDT 152] Initializing HTTP server on port 80,[::]:80,443s,[::]:443s
[2024-08-29 14:39:10.872 EDT 152] cannot listen to 80: 98 (Address in use)
[2024-08-29 14:39:10.872 EDT 152] cannot listen to [::]:80: 98 (Address in use)
[2024-08-29 14:39:10.872 EDT 152] cannot listen to 443s: 98 (Address in use)
[2024-08-29 14:39:10.872 EDT 152] cannot listen to [::]:443s: 98 (Address in use)
[2024-08-29 14:39:10.872 EDT 152] Failed to setup server ports

I guess that's your problem. This way you cannot map the ports around. It's quite understandable that ports 80 and 443 are already taken on Synology devices.

1 Like