# StartOS 0.4.0.1 - Nextcloud 31.0.13:1 fails with "get-ssl-certificate: unknown hostname" despite hostname being registered

**URL:** https://community.start9.com/t/startos-0-4-0-1-nextcloud-31-0-13-1-fails-with-get-ssl-certificate-unknown-hostname-despite-hostname-being-registered/5472
**Category:** StartOS Support
**Created:** [July 30, 2026, 12:18pm UTC](https://community.start9.com/t/startos-0-4-0-1-nextcloud-31-0-13-1-fails-with-get-ssl-certificate-unknown-hostname-despite-hostname-being-registered/5472 "2026-07-30T12:18:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dmageetx](https://community.start9.com/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@dmageetx](https://community.start9.com/u/dmageetx)
#### Post date: [July 30, 2026, 12:18pm UTC](https://community.start9.com/t/startos-0-4-0-1-nextcloud-31-0-13-1-fails-with-get-ssl-certificate-unknown-hostname-despite-hostname-being-registered/5472/1 "2026-07-30T12:18:50Z")

</div>

**Title:**

**Nextcloud 31.0.13:1 fails with “get-ssl-certificate: unknown hostname” although hostname is registered**

Hello,

I’m hoping someone from engineering can help diagnose what appears to be an inconsistency between the SSL subsystem and the package binding database.

### Environment

- StartOS 0.4.0.1

- Nextcloud 31.0.13:1 (Legacy)

- ~1.5 TB of production data stored in Nextcloud

Because of the amount of data, I’m trying to avoid uninstalling the package.

### Problem

Nextcloud will not start.

The server logs consistently report:

```auto

```

```auto
get-ssl-certificate

unknown hostname: 153.66.101.236

```

The failure occurs before Nextcloud finishes starting.

### What I’ve verified

**WAN IP is detected correctly**

The server reports:

```auto

```

```auto
153.66.101.236

```

**Manual certificate generation succeeds**

```auto

```

```auto
start-cli net ssl generate-certificate 153.66.101.236

```

This succeeds.

**The package host is registered**

```auto

```

```auto
start-cli package host nextcloud address main list --format json

```

returns:

```auto

```

```auto
[
  {
    "address":"nextcloud.twitchy-toga.local",
    "public":null,
    "private":["enp2s0"]
  }
]

```

**The HTTPS binding contains the public IP**

Running:

```auto

```

```auto
start-cli package host nextcloud binding main list --format json

```

shows that the UI binding includes:

- nextcloud.twitchy-toga.local

- twitchy-toga.local

- LAN addresses

- Tor address

- **153.66.101.236** (ssl=true, public=true)

### Why I’m confused

The binding database clearly contains the public IP, but during startup `get-ssl-certificate` reports:

```auto

```

```auto
unknown hostname: 153.66.101.236

```

It appears the binding database recognizes the hostname while the SSL lookup rejects it.

### Additional information

I also verified:

- `start-cli net ssl generate-certificate 153.66.101.236` succeeds.

- `start-cli net vhost dump-table` contains the Nextcloud virtual host.

- The package script references interface `"main"` for the network pointers.

### Questions

1. Is this a known issue with StartOS 0.4.0.1 or the legacy Nextcloud package (31.0.13:1)?

2. Is there a safe way to repair the package registration or SSL host database?

3. Is `start-cli package rebuild nextcloud` a non-destructive operation that preserves the existing data volume?

I’m trying to avoid risking approximately 1.5 TB of Nextcloud data.

Thank you.

* * *

I also recommend **attaching** (rather than pasting) these outputs if the forum allows files:

- `start-cli server logs` (showing the `unknown hostname` error)

- `start-cli package host nextcloud address main list --format json`

- `start-cli package host nextcloud binding main list --format json`

- `start-cli net vhost dump-table`

This keeps the post concise while still giving the engineers the detailed diagnostics if they need them.

---

<div class="post-metadata">

### Author: ![dmageetx](https://community.start9.com/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@dmageetx](https://community.start9.com/u/dmageetx)
#### Post date: [July 31, 2026, 3:58am UTC](https://community.start9.com/t/startos-0-4-0-1-nextcloud-31-0-13-1-fails-with-get-ssl-certificate-unknown-hostname-despite-hostname-being-registered/5472/2 "2026-07-31T03:58:02Z")

</div>

I gathered additional diagnostics. The Nextcloud logs show that `get-ssl-certificate` requests a certificate for `153.66.101.236`, and the StartOS core (`shared-libs/crates/start-core/src/service/effects/net/ssl.rs:50`) returns `unknown hostname: 153.66.101.236`. However, `start-cli package host nextcloud binding main list --format json` shows that the same IP is already registered as a public SSL hostname for the package. Could an engineer advise whether this is a known issue with the 0.3.5.1 → 0.4.0.1 migration or the legacy Nextcloud package?

---

<div class="post-metadata">

### Author: ![dmageetx](https://community.start9.com/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@dmageetx](https://community.start9.com/u/dmageetx)
#### Post date: [July 31, 2026, 4:06am UTC](https://community.start9.com/t/startos-0-4-0-1-nextcloud-31-0-13-1-fails-with-get-ssl-certificate-unknown-hostname-despite-hostname-being-registered/5472/3 "2026-07-31T04:06:16Z")

</div>

Additional detail: Nextcloud Legacy 31.0.13:1 now shows “Running,” but the Web Interface health check remains at “Nextcloud is initializing.” The health check reports `/dev/stdin: No such device or address` and `syntax error: operand expected`. The package logs also show `get-ssl-certificate` failing because StartOS reports `unknown hostname: 153.66.101.236`. Please advise before I rebuild or reinstall because the instance contains approximately 1.5 TB of data.

---

<div class="post-metadata">

### Author: ![system](https://community.start9.com/uploads/default/original/1X/2dcde8aa6ad3ce3d7873096ee4b3e5395e19a7b5.png) [@system](https://community.start9.com/u/system)
#### Post date: [August 2, 2026, 4:06am UTC](https://community.start9.com/t/startos-0-4-0-1-nextcloud-31-0-13-1-fails-with-get-ssl-certificate-unknown-hostname-despite-hostname-being-registered/5472/4 "2026-08-02T04:06:45Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
