Skip to content

Webserver Settings are not saved #4569

Description

@SandraCHC

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

  • I have examined the logs and tried to resolve this issue
  • I have fixed any errors in the logs that relate to tags
  • I am not running MA across a VPN, VLAN, subnet, behind a firewall, or using local SSL or have any other complex network setup
  • I have disabled tool such as AdGuard, Pi-hole or pfSense and retested
  • I have checked my network setup to ensure mDNS/multicast is not being blocked
  • If using HA, I have confirmed the internal URL is set correctly
  • I have tried a wired connection for issues related to interrupted or poor playback quality
  • If the problem relates to a device then I have checked the device settings
  • If it is a frontend issue, I have tried a different widely used browser
  • I have reviewed the applicable player or music provider documentation
  • For voice problems, I have sought help elsewhere before returning here
  • For playback problems, I have recycled power to the physical device
  • I have tried restarting MA and rebooting the host

Have you reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

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

  • Try to open https://yourdomain.tld:8095 → No connection
  • Go to Settings → Webserver and change:
  • Base URL to https://yourdomain.tld:8095
  • SSL certificate path to /ssl/fullchain.pem
  • SSL key path to /ssl/privkey.pem
  • The connection now works (Validate Button also checked)
  • However, the settings are not saved in the GUI, and after a reboot SSL no longer works

Music Providers

Spotify

Player Providers

Sonos

Full log output

################################################################################
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

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

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions