Can't disable AD service after upgrade from CORE -> SCALE

Hi all,

Just upgraded from CORE to SCALE (ElectricEel-24.10.0.2).

All went smoothly and re-imported config and all datasets/shares etc have been restored correctly, however, AD is faulted.

Whilst trying to disable the AD service (unchecking the box and hitting save) I get this error and therefore can’t disable the AD service to re-enter the credentials and attempt to re-join AD again so get rid of the faulted issue.

Also get the same error if I go into AD advanced settings to try and delete the Kerberos Keytab manually.

Thanks.

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py”, line 357, in do_update
await self.update_netbios_data(old, new)
File “/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py”, line 128, in update_netbios_data
raise ValidationError(
middlewared.service_exception.ValidationError: [EINVAL] activedirectory.netbiosname: NetBIOS names may not be changed while service is enabled.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 488, in run
await self.future
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 533, in __run_body
rv = await self.method(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 179, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 49, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py”, line 359, in do_update
raise ValidationError(‘activedirectory_update.netbiosname’, str(e))
middlewared.service_exception.ValidationError: [EINVAL] activedirectory_update.netbiosname: [EINVAL] activedirectory.netbiosname: NetBIOS names may not be changed while service is enabled.

I am having this same issue.

In the end I just reinstalled and then didn’t import the config.

Manually recreated the shares and permissions - seemed quicker than trying to resolve the issues I was having.

Depends on how many shares/permissions etc you need to recreate I guess.

Good luck! :+1:

I need to see a debug where this issue is manifested.

I also have the same problem. I get the the following

========================8<============================

Error: Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py”, line 357, in do_update
await self.update_netbios_data(old, new)
File “/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py”, line 128, in update_netbios_data
raise ValidationError(
middlewared.service_exception.ValidationError: [EINVAL] activedirectory.netbiosname: NetBIOS names may not be changed while service is enabled.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 488, in run
await self.future
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 533, in __run_body
rv = await self.method(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 179, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 49, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py”, line 359, in do_update
raise ValidationError(‘activedirectory_update.netbiosname’, str(e))
middlewared.service_exception.ValidationError: [EINVAL] activedirectory_update.netbiosname: [EINVAL] activedirectory.netbiosname: NetBIOS names may not be changed while service is enabled.

I meant system debug, not a backtrace.

I have a system debug, but I am unsure how to share it here. I cannot post a link, and it is not an allowed filetype for upload.

Message @awalkerix with your ticket number or Bug info number

You can also email the debug to awalker@ixsystems.com. This isn’t a guarantee for software support, but it will help me to see whether what you’re experiencing is an issue already fixed for 24.10.1.

I just sent you an email with the debug. Thanks for you help!

1 Like

Will be fixed in 24.10.1 (which just entered code freeze).

Thank you. I will wait and give it a test. Will report back here.