diff --git a/docs/getting-started.md b/docs/getting-started.md index cc5319c..7edaa53 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -301,6 +301,29 @@ apt update --allow-releaseinfo-change After that, `apt update` works normally and this prompt will not appear again for any future v3.x release. Both `v3` (Suite) and `error` (Codename) work in `sources.list` and point to the same packages. +### 6.9 `PUT /api/v2.0/iscsi/portal/id/` Returns "Extra inputs are not permitted" on SCALE 25.04+ + +TrueNAS SCALE 25.04 tightened the portal PUT schema. The `port` field is no longer accepted in PUT requests โ€” GET still returns it, but sending it back causes a validation error: + +```json +{"iscsi_portal_update.listen.0.port": [{"message": "Extra inputs are not permitted", "errno": 22}]} +``` + +This only affects admins who manually call the TrueNAS REST API (e.g., via curl or scripts). The plugin does not create or modify portals. + +**Fix:** Omit `port` from the `listen` array in PUT requests: + +```bash +# Correct โ€” SCALE 25.04+ +curl -sk -X PUT -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ + -d '{"listen": [{"ip": "0.0.0.0"}]}' \ + https:///api/v2.0/iscsi/portal/id/1 + +# Wrong โ€” causes error on SCALE 25.04+ +# -d '{"listen": [{"ip": "0.0.0.0", "port": 3260}]}' +``` + --- ## 7. Uninstalling diff --git a/ui/truenas-storage-help.html b/ui/truenas-storage-help.html index 5ed37c9..b1cad6a 100644 --- a/ui/truenas-storage-help.html +++ b/ui/truenas-storage-help.html @@ -209,6 +209,12 @@ the per-VM target is automatically removed.

SCALE 25.04+ may revoke keys on upgrade. Generate a new API key and update the storage config in Proxmox. + + Portal PUT returns "Extra inputs are not permitted" (SCALE 25.04+) + Omit the port field from listen in + PUT /api/v2.0/iscsi/portal/id/<n>. SCALE 25.04 no longer accepts + it. See ยง6.9 in getting-started.md. +

Checking Logs