Unable to delete certificates

Description

When trying to delete old lets encrypt certificate you are presented with the following error. The same applies when trying to delete freenas_default

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 361, in run
await self.future
File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 399, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 2028, in do_delete
self.middleware.call_sync('certificate.check_dependencies', id)
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1245, in call_sync
return self.run_coroutine(methodobj(*prepared_call.args))
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1285, in run_coroutine
return fut.result()
File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 555, in check_dependencies
raise CallError('This object is being used by other objects', errno.EBUSY,
middlewared.service_exception.CallError: [EBUSY] This object is being used by other objects

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Joe Maloney 
July 17, 2020 at 12:12 PM

Certificates must be removed before deletion.  Not a bug here.  Please create a new feature request to suggest an improvement.

nathan kirkpatrick 
July 17, 2020 at 3:02 AM

I can confirm this worked. WebDav was the issue. This is now resolved however it might be worth the error message giving you a pointer to where it was in use.

 

thank you for your help

 

regards, Nathan

Waqar 
July 15, 2020 at 6:41 PM

Okay so your kirky cert is being used in webdav, freenas default is being used in ftp. That's why both can't be deleted. If you would like to delete them, please remove their usages first. Thank you

nathan kirkpatrick 
July 15, 2020 at 3:02 PM
(edited)

 

 

The certificate is not in use anywhere as far as i know. Under system>general the cert being used is kirky_truenas

Waqar 
July 15, 2020 at 1:03 PM

Hi , can you please confirm if the certificates are being used anywhere with any service ? Freenas_Default i assume is being used in System->General.
If not, can you please share your database file ( /data/freenas-v1.db ) ?

User Configuration Error

Details

Assignee

Reporter

Components

Fix versions

Priority

More fields

Katalon Platform

Created July 14, 2020 at 11:55 PM
Updated July 1, 2022 at 3:53 PM
Resolved July 17, 2020 at 12:12 PM