Error exporting/disconnecting pool - 'NoneType' object has no attribute 'split'

Description

Just upgraded my system from FreeNAS 11.3 U5 to TrueNAS-12.0.-U3.1 using the GUI.

My first task was to export my pools but get the following error on both of the 2 pools I have.

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 1646, in attachments
return await self.middleware.call('pool.dataset.attachments_with_path', pool['path'])
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 3766, in attachments_with_path
for attachment in await delegate.query(path, True):
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/s3_/attachments.py", line 21, in query
if query_dataset in (s3_ds, s3_ds.split('/')[0]) or query_dataset.startswith(f'{s3_ds}/'):
AttributeError: 'NoneType' object has no attribute 'split'

There is a thread on the forum with other members reporting the same issue but I've not been able to locate a bug reported here.

https://www.truenas.com/community/threads/cannot-export-pool-with-u3.92538/

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Bug Clerk 
June 15, 2021 at 5:16 PM

Bug Clerk 
May 17, 2021 at 1:54 PM

Waqar 
May 14, 2021 at 1:11 PM

It’s a case which we should account for in middleware to not traceback like this.

Steve 
May 11, 2021 at 5:20 PM

Thank you Ahmed, that was just the clue I needed!

even though I have the S3 service disabled, it had an old config referencing a dataset I removed ages ago.

Ive just changed the path to a dataset still in existence and its letting me remove the pools in the gui now.

Thanks!

Waqar 
May 11, 2021 at 2:38 PM

can you please share the output of "midclt call s3.config | jq" ? And also can you please attach a debug of the system ( System -> Advanced -> Save Debug ) ? Thank you

Complete

Details

Assignee

Reporter

Labels

Impact

Components

Affects versions

Priority

More fields

Katalon Platform

Created May 11, 2021 at 2:12 PM
Updated July 6, 2022 at 8:59 PM
Resolved June 21, 2021 at 2:57 PM