canonical / canonical/microceph

Startup of snap.microceph.daemon.service fails with " listen tcp <ip>:7443: bind: cannot assign requested address"

Open
#613 3 comments 0 reactions 0 assignees View on GitHub
question stale
Dominant language
Go
Stars
396
Forks
74
Avg merge
2d 20h
Merged PRs (30d)
7

Description

Startup of snap.microceph.daemon.service fails with the following error message:
```
microceph.daemon[1128]: Error: Daemon stopped with error: Daemon failed to start: Failed to listen on https socket: listen tcp x.x.x.x:7443: bind: cannot assign requested address
```

Error is caused by the network (using DHCP as assignment method of IP address to LAN network interface) not being ready when daemon and other microceph services start.

According to /etc/systemd/system/snap.microceph.daemon.service the service startup is done after network.target:
```
[Unit]
# Auto-generated, DO NOT EDIT
Description=Service for snap application microceph.daemon
Requires=snap-microceph-1395.mount
Wants=network.target
After=snap-microceph-1395.mount network.target snapd.apparmor.service
X-Snappy=yes
```

A simply manual restart of the service after the system is booted brings the service up (now that a DHCP address is assigned to the network interface).

Would it be possible to require startup microceph services after "network-online.target" instead of "network.target" ?

Version:
```
# Raspberry PI 5
# uname -a
Linux raspi5-1 6.12.34+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26) aarch64 GNU/Linux
# snap --version
snap 2.61.4ubuntu0.16.04.1+esm1
snapd 2.61.4ubuntu0.16.04.1+esm1
series 16
debian 12
kernel 6.12.34+rpt-rpi-2712
n# snap list
Name Version Rev Tracking Publisher Notes
core 16-2.61.4-20250508 17215 latest/stable canonical✓ core
core20 20250526 2603 latest/stable canonical✓ base
core24 20250618 1059 latest/stable canonical✓ base
microceph 19.2.0+snapab139d4a1f 1395 squid/stable canonical✓ held
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.