sandbender
Cadet
- Joined
- Dec 29, 2022
- Messages
- 5
I recently changed my NIS server from CentOS to Ubuntu. I did this by simple creating a new server with new information. I'm using the same NIS domain name and IP address for the new server. My two TrueNAS servers are having trouble with this however. I get the following error when I try to start NIS
I am running TrueNAS-13.0-U2.
Thanks
In looking at the nis.py code I see the following[2022/12/29 08:00:46] (DEBUG) NISService.start():136 - NIS service successfully started. Setting state to HEALTHY.
[2022/12/29 08:00:46] (ERROR) middlewared.job.run():367 - Job <bound method NISService.fill_cache of <middlewared.plugins.nis.NISService object at 0x81b13eeb0>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 393, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1154, in run_in_thread
return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1151, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/nis.py", line 234, in fill_cache
raise CallError('NIS cache already exists. Refusing to generate cache.')
middlewared.service_exception.CallError: [EFAULT] NIS cache already exists. Refusing to generate cache.
Clearly the old NIS cache is in the database and the service is basically refusing to overwrite it. Is there some way for me to remove the cache from the system database? Or to get the force flag set to True?def fill_cache(self, job, force=False):
user_next_index = group_next_index = 200000000
if self.middleware.call_sync('cache.has_key', 'NIS_cache') and not force:
raise CallError('NIS cache already exists. Refusing to generate cache.')
I am running TrueNAS-13.0-U2.
Thanks