Puerto duplicado al acceder por https

Buenas.. tengo nextcloud instalado en truenas scale. andaba todo bien hasta qeu cambie el disco y volvi a cargar todo al nuevo disco.
Cuando quiero acceder por https me pone:

Ocurrió un error al conectarse a 192.168.0.199:30027:30027. SSL recibió un registro que excedió la longitud máxima permitida.

Código de error: SSL_ERROR_RX_RECORD_TOO_LONG

Nose porque me pone 2 veces el puerto 30027.
Por http puedo acceder bien, pero no desde la app de android.
Probe deshabilitar el proxy en nginx pero me sigue dando el mismo error.
Alguien me puede dar una mano? nose si sera config.php o otra cosa que este dando ese error.

Nextcloud Versión de la aplicación: 32.0.5
Truenas community Versión: 25.10.1 - Goldeye
Nginx Versión de la aplicación: 2.13.6
PHP 8.3.30 (cli) (built: Jan 16 2026 23:26:52) (NTS)
¿Está utilizando Cloudflare, mod_security o similar? flaresolverr v3.4.6

Log:
2026-01-24 13:36:41.339110+00:00192.168.0.100 - - [24/Jan/2026:10:36:41 -0300] “\x16\x03\x01\x07O\x01” 400 527 “-” “-”

2026-01-24 13:36:41.344026+00:00192.168.0.100 - - [24/Jan/2026:10:36:41 -0300] “\x16\x03\x01\x02~\x01” 400 527 “-” “-”

{
“system”: {
“htaccess.RewriteBase”: “/”,
“memcache.local”: “\OC\Memcache\APCu”,
“apps_paths”: [
{
“path”: “/var/www/html/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/html/custom_apps”,
“url”: “/custom_apps”,
“writable”: true
}
],
“memcache.distributed”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“password”: “REMOVED SENSITIVE VALUE”,
“port”: 6379
},
“overwriteprotocol”: “http”,
“trusted_proxies”: “REMOVED SENSITIVE VALUE”,
“upgrade.disable-web”: true,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “pgsql”,
“version”: “32.0.5.0”,
“overwrite.cli.url”: “``http://192.168.0.199:30027``”,
“overwritehost”: “192.168.0.199:30027”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “465”,
“mail_smtpauth”: true,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“default_phone_region”: “AR”,
“maintenance”: false,
“maintenance_window_start”: “03”,
“loglevel”: 2,
“mail_sendmailmode”: “smtp”,
“mail_smtpsecure”: “ssl”,
“preview_imaginary_url”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“127.0.0.1”,
“192.168.0.199:30027”,
“localhost”,
“nextcloud”,
“nextcloud.local”
]
},
“apps”: {
“activity”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “filesystem”
},
“app_api”: {
“installed_version”: “32.0.0”,
“enabled”: “yes”,
“types”: “”
},
“backgroundjob”: {
“lastjob”: “34”
},
“bruteforcesettings”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“circles”: {
“installed_version”: “32.0.0”,
“enabled”: “yes”,
“types”: “filesystem,dav”,
“migration_run”: “0”,
“migration_22”: “1”,
“maintenance_run”: “0”,
“maintenance_update”: “{"3":1769261400,"2":1769261400,"1":1769261400}”,
“loopback_tmp_scheme”: “http”
},
“cloud_federation_api”: {
“installed_version”: “1.16.0”,
“enabled”: “yes”,
“types”: “filesystem”
},
“comments”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “logging”
},
“contactsinteraction”: {
“installed_version”: “1.13.1”,
“enabled”: “yes”,
“types”: “dav”
},
“core”: {
“installedat”: “1762121060.7178”,
“vendor”: “nextcloud”,
“public_files”: “files_sharing/public.php”,
“lastupdatedat”: 1769235383,
“backgroundjobs_mode”: “cron”,
“emailTestSuccessful”: “1”,
“metadataGenerationDone”: true,
“moveavatarsdone”: “yes”,
“previewsCleanedUp”: “1”,
“mail_providers_enabled”: true,
“lastupdateResult”: “”,
“lastcron”: 1769261401,
“files_metadata”: {
“photos-original_date_time”: {
“value”: null,
“type”: “int”,
“etag”: “”,
“indexed”: true,
“editPermission”: 0
},
“photos-exif”: {
“value”: null,
“type”: “array”,
“etag”: “”,
“indexed”: false,
“editPermission”: 0
},
“photos-ifd0”: {
“value”: null,
“type”: “array”,
“etag”: “”,
“indexed”: false,
“editPermission”: 0
},
“photos-size”: {
“value”: null,
“type”: “array”,
“etag”: “”,
“indexed”: false,
“editPermission”: 0
},
“blurhash”: {
“value”: null,
“type”: “string”,
“etag”: “8e1bd1fd12cd9b6530a73a1db41ae109”,
“indexed”: false,
“editPermission”: 0
},
“photos-gps”: {
“value”: null,
“type”: “array”,
“etag”: “”,
“indexed”: false,
“editPermission”: 0
},
“photos-place”: {
“value”: null,
“type”: “string”,
“etag”: “”,
“indexed”: true,
“editPermission”: 0
}
},
“oc.integritycheck.checker”:
},
“dashboard”: {
“installed_version”: “7.12.0”,
“enabled”: “yes”,
“types”: “”
},
“dav”: {
“installed_version”: “1.34.2”,
“enabled”: “yes”,
“types”: “filesystem”,
“hasCustomDefaultContact”: false,
“regeneratedBirthdayCalendarsForYearFix”: “yes”,
“buildCalendarSearchIndex”: “yes”,
“buildCalendarReminderIndex”: “yes”
},
“federatedfilesharing”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “”
},
“federation”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “authentication”
},
“files”: {
“installed_version”: “2.4.0”,
“enabled”: “yes”,
“types”: “filesystem”,
“mimetype_version”: “32.0.1.2”
},
“files_downloadlimit”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“files_pdfviewer”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“files_reminders”: {
“installed_version”: “1.5.0”,
“enabled”: “yes”,
“types”: “”
},
“files_sharing”: {
“enabled”: “yes”,
“types”: “filesystem”,
“installed_version”: “1.24.1”
},
“files_trashbin”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “filesystem,dav”
},
“files_versions”: {
“installed_version”: “1.25.0”,
“enabled”: “yes”,
“types”: “filesystem,dav”
},
“firstrunwizard”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“logreader”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “logging”
},
“lookup_server_connector”: {
“installed_version”: “1.20.0”,
“enabled”: “yes”,
“types”: “authentication”
},
“nextcloud_announcements”: {
“installed_version”: “4.0.0-dev.0”,
“enabled”: “yes”,
“types”: “logging”,
“pub_date”: “Thu, 24 Oct 2019 00:00:00 +0200”
},
“notifications”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “logging”
},
“oauth2”: {
“installed_version”: “1.20.0”,
“enabled”: “yes”,
“types”: “authentication”
},
“password_policy”: {
“installed_version”: “4.0.0-dev.0”,
“enabled”: “yes”,
“types”: “authentication”,
“enforceNumericCharacters”: “1”,
“enforceUpperLowerCase”: “1”
},
“photos”: {
“installed_version”: “5.0.0-dev.1”,
“enabled”: “yes”,
“types”: “dav,authentication”,
“lastPlaceMappedUser”: “Marianofr14”,
“lastPlaceMappingDone”: “true”
},
“privacy”: {
“installed_version”: “4.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“profile”: {
“installed_version”: “1.1.0”,
“enabled”: “yes”,
“types”: “”
},
“provisioning_api”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “prevent_group_restriction”
},
“recognize”: {
“faces.batchSize”: “500”,
“imagenet.batchSize”: “100”,
“landmarks.batchSize”: “100”,
“movinet.batchSize”: “20”,
“musicnn.batchSize”: “100”,
“node_binary”: “/var/www/html/custom_apps/recognize/bin/node”,
“nice_value”: “0”,
“concurrency.enabled”: “false”,
“imagenet.enabled”: “true”,
“landmarks.enabled”: “true”,
“movinet.enabled”: “true”,
“imagenet.status”: “true”,
“imagenet.lastFile”: “1768010420”,
“landmarks.lastFile”: “1764304925”,
“faces.status”: “true”,
“nice_binary”: “/usr/bin/nice”,
“types”: “filesystem,dav”,
“enabled”: “yes”,
“landmarks.status”: “true”,
“tensorflow.cores”: “0”,
“tensorflow.gpu”: “false”,
“tensorflow.purejs”: “false”,
“faces.enabled”: “true”,
“musicnn.enabled”: “false”,
“movinet.status”: “true”,
“clusterFaces.status”: “true”,
“installed_version”: “10.0.7”,
“movinet.lastFile”: “1767423645”,
“faces.lastFile”: “1768010432”,
“clusterFaces.lastRun”: “1768011306”
},
“recommendations”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“related_resources”: {
“installed_version”: “3.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“serverinfo”: {
“installed_version”: “4.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”,
“size_appdata_storage”: -1,
“cached_count_storages”: 2,
“cached_count_appdata_files”: 32893,
“cached_count_filecache”: 37237
},
“settings”: {
“installed_version”: “1.15.1”,
“enabled”: “yes”,
“types”: “”
},
“sharebymail”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “filesystem”
},
“support”: {
“installed_version”: “4.0.0-dev.0”,
“enabled”: “yes”,
“types”: “session”,
“SwitchUpdaterServerHasRun”: “yes”
},
“survey_client”: {
“installed_version”: “4.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“systemtags”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “logging”
},
“text”: {
“installed_version”: “6.0.1”,
“enabled”: “yes”,
“types”: “dav”
},
“theming”: {
“installed_version”: “2.7.0”,
“enabled”: “yes”,
“types”: “logging”
},
“twofactor_backupcodes”: {
“installed_version”: “1.21.0”,
“enabled”: “yes”,
“types”: “”
},
“updatenotification”: {
“installed_version”: “1.22.0”,
“enabled”: “yes”,
“types”: “”,
“core”: “32.0.5.0”,
“recognize”: “10.0.7”,
“update_check_errors”: 0
},
“user_status”: {
“installed_version”: “1.12.0”,
“enabled”: “yes”,
“types”: “”
},
“viewer”: {
“installed_version”: “5.0.0-dev.0”,
“enabled”: “yes”,
“types”: “”
},
“weather_status”: {
“installed_version”: “1.12.0”,
“enabled”: “yes”,
“types”: “”
},
“webhook_listeners”: {
“installed_version”: “1.3.0”,
“enabled”: “yes”,
“types”: “filesystem”
},
“workflowengine”: {
“installed_version”: “2.14.0”,
“enabled”: “yes”,
“types”: “filesystem”
}

Hey @Mariano_Fernandez, welcome to the Nextcloud community :waving_hand:

You’ve posted a request in the support section. Unfortunately you have not completed the required support template. Please edit your post and add as much information as possible so that community supporters have the necessary technical information to help you resolve your issue!

please excuse, my spanish is not very good, so using a translator it seems you’re not able to retrieve a SSL certificate right?

this looks strange… why is that port number referred to twice? that could be why there is a reference to the SSL_ERROR_RX-RECORD being too long!

Hola, también uso un traductor, mi ingles no es bueno.
Edite la publicación pero croe que no lo hice muy bien. Pido disculpas.
instale inginx para darle certificado ssl a truenas y a nextcloud.
No se porque pone dos veces el puerto (:30027:30027) cuando la ruta que escribi es con un solo puerto.
Creo que por eso no puedo acceder por https. No se que configuración es la que esta dando ese doble puerto.
Cuando volvi a instalar truenas en el nuevo ssd, cargue la configuracion de mi truenas en pendrive. Desde ese momento no pude acceder a la web de nexcloud. Modificando config.php pude entrar por http. pero no puedo corregir el error que me sale por https. En este momento tengo deshabilitado el proxy de ingnx para nextcloud. El error continua apareciendo.

Ahora veo que las otras app que tengo en truenas (nignx, homepage, pi-hole, etc.) puedo entrar por http, cuando pongo https me da el mismo error.

@Mariano_Fernandez

yes that makes it difficult to communicate, so we should wait for a native speaker to help you with this issue… right? :heart_hands: