I can now use SSL with my Home Assistant instance.
However, when I configure the web server settings, SSL works correctly at first, but the values are not saved in the GUI. After a system reboot, the SSL settings are lost.
################################################################################
Webserver available on: https://yourdomain.tld:8095
If this address is incorrect, see the documentation on how to configure
the Webserver in Settings --> Core modules --> Webserver
################################################################################
2025-12-19 10:40:11.902 INFO (MainThread) [music_assistant.webserver] SSL/TLS enabled for server
2025-12-19 10:40:11.925 DEBUG (MainThread) [music_assistant.webserver] Successfully announced to Home Assistant. Discovery UUID: None
2025-12-19 10:40:11.926 ERROR (MainThread) [music_assistant.webserver] Error handling message: CommandMessage(message_id='d....8', command='config/core/save', args={'domain': 'webserver', 'values': {'auth_allow_self_registration': True, 'base_url': 'https://yourdomain.tld:8095', 'bind_port': 8095, 'webserver_warn': None, 'enable_ssl': True, 'ssl_certificate': '/ssl/fullchain.pem', 'ssl_private_key': '/ssl/privkey.pem', 'verify_ssl': None, 'ssl_verify_result': '', 'bind_ip': '0.0.0.0', 'log_level': 'GLOBAL'}})
Traceback (most recent call last):
File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/webserver/websocket_client.py", line 233, in _run_handler
result = await result
^^^^^^^^^^^^
File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/config.py", line 1075, in save_core_config
await controller.reload(config)
File "/app/venv/lib/python3.13/site-packages/music_assistant/models/core_controller.py", line 62, in reload
await self.setup(config)
File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/webserver/controller.py", line 371, in setup
await self.remote_access.setup()
File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/webserver/remote_access/__init__.py", line 77, in setup
self._register_api_commands()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/app/venv/lib/python3.13/site-packages/music_assistant/controllers/webserver/remote_access/__init__.py", line 266, in _register_api_commands
self.mass.register_api_command(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"remote_access/info", get_remote_access_info, required_role="admin"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/venv/lib/python3.13/site-packages/music_assistant/mass.py", line 571, in register_api_command
raise RuntimeError(msg)
RuntimeError: Command remote_access/info is already registered
2025-12-19 10:40:11.933 DEBUG (MainThread) [music_assistant.webserver] Ingress connection without user headers, expecting token auth
2025-12-19 10:40:11.933 DEBUG (MainThread) [music_assistant.webserver] Subscribed to events
2025-12-19 10:40:11.935 DEBUG (MainThread) [music_assistant.webserver] Handling command auth
2025-12-19 10:40:11.939 INFO (MainThread) [music_assistant.webserver] WebSocket client authenticated as homeassistant_system
What version of Music Assistant has the issue?
2.7.1
How is the MA server installed?
Home Assistant OS Addon
Carefully read the Troubleshooting FAQ and confirm that
Have you reviewed the Open and Closed Issues and Discussions to resolve this yourself?
The problem
Thank you for the pull request music-assistant/server#2836
I can now use SSL with my Home Assistant instance.
However, when I configure the web server settings, SSL works correctly at first, but the values are not saved in the GUI. After a system reboot, the SSL settings are lost.
How to reproduce
Music Providers
Spotify
Player Providers
Sonos
Full log output
Additional information
What version of Home Assistant Core (if used) are your running
2025.12.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux
Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot