Failed to configure Rockstor service. Try again. Exception: get() returned more than one NetworkConnection -- it returned 2!

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

Cannot set Rockstor interface in “System, Services, Rockstor”

Detailed step by step instructions to reproduce the problem

Used the dropdown to select the static interface used for the Web UI. When I click on submit, it returns the error shown.

Web-UI screenshot


[Drag and drop the image here]

Error Traceback provided on the Web-UI

        Traceback (most recent call last):

File “/opt/rockstor/src/rockstor/smart_manager/views/rockstor_service.py”, line 59, in post
nco = NetworkConnection.objects.get(name=ni)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/models/manager.py”, line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/rockstor/.venv/lib/python3.11/site-packages/django/db/models/query.py”, line 640, in get
raise self.model.MultipleObjectsReturned(
storageadmin.models.network_interface.NetworkConnection.MultipleObjectsReturned: get() returned more than one NetworkConnection – it returned 2!

@Thump257 Hello again.

Thanks for the report. Could you let us know what version of Rockstor you are experiencing this with.

It may not be related, but we did have a fix in the area (‘rockstor’/Web-UI service) that was released in 5.0.9-0:

But that looks a little different.

  • So let us know the Rockstor version to double check you have the above fix in place?
  • And does your system have 2 or more network cards?

Hope that help.

2 Likes