help deleting data model

29 views
Skip to first unread message

Lily Pregill

unread,
Mar 2, 2020, 7:42:16 PM3/2/20
to Arches Project
Hi all,

I have a data model that I'm trying to delete in a v.5 instance, but the system is preventing me from removing it. I suspect I deleted a concept and resource in the wrong order and there are data remnants lingering in the system. I've tried to Delete Instances under the Arches Designer --> Manage and I get the following:

Request Failed...


Sorry! The request failed. Please try again. Contact your system administrator if the problem persists.


I get the same message when I go to Manage --> Delete Model. 


I currently don't have any resources in the system, but I would like to avoid wiping this instance and starting again. Any suggestions for things to try from the community would be most welcome.


Thanks,

Lily

Alexei Peters

unread,
Mar 3, 2020, 1:01:31 PM3/3/20
to Lily Pregill, Arches Project
Hi Lily,
Are you getting any error messages in the terminal running Arches, or any messages in the arches.log file?
Cheers,
Alexei

Director of Web Development - Farallon Geographics, Inc. - 971.227.3173


--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archesprojec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/08969c3a-5e61-4bd0-9dda-94e47c21d9b1%40googlegroups.com.

Lily Pregill

unread,
Mar 3, 2020, 7:15:49 PM3/3/20
to Arches Project
Hi Alexei,

Thanks for having a look. This is what I'm seeing....

best,
Lily

---------------

Mar 03 09:41:09.941 [staging-arches-ruscha] arches 127.0.0.1 - - [03/Mar/2020:17:41:09 +0000] “DELETE /arches/ruscha/graph/f5ed3e88-550f-11ea-a96c-02ba3a331460/delete HTTP/1.0” 500 27483 “https://staging-tools.getty.edu/arches/ruscha/graph/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:73.0) Gecko/20100101 Firefox/73.0”
Mar 03 09:41:09.940 [staging-arches-ruscha] arches arches.app.models.models.Value.DoesNotExist: Value matching query does not exist.
Mar 03 09:41:09.940 [staging-arches-ruscha] arches raise self.model.DoesNotExist(
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/db/models/query.py”, line 406, in get
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return getattr(self.get_queryset(), name)(*args, **kwargs)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/db/models/manager.py”, line 82, in manager_method
Mar 03 09:41:09.940 [staging-arches-ruscha] arches self.value_lookup[valueid] = models.Value.objects.get(pk=valueid)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/datatypes/concept_types.py”, line 32, in get_value
Mar 03 09:41:09.940 [staging-arches-ruscha] arches new_val = self.get_value(uuid.UUID(val))
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/datatypes/concept_types.py”, line 275, in get_display_value
Mar 03 09:41:09.940 [staging-arches-ruscha] arches value = datatype.get_display_value(tile, node)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/functions/primary_descriptors.py”, line 29, in get_primary_descriptor_from_nodes
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return PrimaryDescriptorsFunction.get_primary_descriptor_from_nodes(self, functionConfig[0].config[descriptor])
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/models/resource.py”, line 66, in get_descriptor
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return self.get_descriptor(“name”)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/models/resource.py”, line 80, in displayname
Mar 03 09:41:09.940 [staging-arches-ruscha] arches self.save_edit(edit_type=“delete”, user=user, note=self.displayname)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/models/resource.py”, line 346, in delete
Mar 03 09:41:09.940 [staging-arches-ruscha] arches resource.delete()
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/models/graph.py”, line 417, in delete_instances
Mar 03 09:41:09.940 [staging-arches-ruscha] arches graph.delete_instances()
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/views/graph.py”, line 414, in delete
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return view_func(request, *args, **kwargs)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/contrib/auth/decorators.py”, line 21, in _wrapped_view
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return bound_method(*args, **kwargs)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/utils/decorators.py”, line 45, in _wrapper
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return handler(request, *args, **kwargs)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/views/generic/base.py”, line 97, in dispatch
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return self.dispatch(request, *args, **kwargs)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/views/generic/base.py”, line 71, in view
Mar 03 09:41:09.940 [staging-arches-ruscha] arches response = wrapped_callback(request, *callback_args, **callback_kwargs)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/core/handlers/base.py”, line 113, in _get_response
Mar 03 09:41:09.940 [staging-arches-ruscha] arches response = self.process_exception_by_middleware(e, request)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/core/handlers/base.py”, line 115, in _get_response
Mar 03 09:41:09.940 [staging-arches-ruscha] arches response = get_response(request)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/ENV/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 34, in inner
Mar 03 09:41:09.940 [staging-arches-ruscha] arches Traceback (most recent call last):
Mar 03 09:41:09.940 [staging-arches-ruscha] arches During handling of the above exception, another exception occurred:
Mar 03 09:41:09.940 [staging-arches-ruscha] arches KeyError: UUID(‘f874a20e-795c-408e-ab80-b56101b4930c’)
Mar 03 09:41:09.940 [staging-arches-ruscha] arches return self.value_lookup[valueid]
Mar 03 09:41:09.940 [staging-arches-ruscha] arches File “/web_root/arches/arches/app/datatypes/concept_types.py”, line 30, in get_value
Mar 03 09:41:09.940 [staging-arches-ruscha] arches Traceback (most recent call last):
Mar 03 09:41:09.940 [staging-arches-ruscha] arches Internal Server Error: /arches/ruscha/graph/f5ed3e88-550f-11ea-a96c-02ba3a331460/delete


On Tuesday, March 3, 2020 at 10:01:31 AM UTC-8, Alexei Peters wrote:
Hi Lily,
Are you getting any error messages in the terminal running Arches, or any messages in the arches.log file?
Cheers,
Alexei

Director of Web Development - Farallon Geographics, Inc. - 971.227.3173


On Mon, Mar 2, 2020 at 4:42 PM Lily Pregill <lpre...@getty.edu> wrote:
Hi all,

I have a data model that I'm trying to delete in a v.5 instance, but the system is preventing me from removing it. I suspect I deleted a concept and resource in the wrong order and there are data remnants lingering in the system. I've tried to Delete Instances under the Arches Designer --> Manage and I get the following:

Request Failed...


Sorry! The request failed. Please try again. Contact your system administrator if the problem persists.


I get the same message when I go to Manage --> Delete Model. 


I currently don't have any resources in the system, but I would like to avoid wiping this instance and starting again. Any suggestions for things to try from the community would be most welcome.


Thanks,

Lily

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to arches...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en

---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arches...@googlegroups.com.

Alexei Peters

unread,
Mar 4, 2020, 4:26:32 PM3/4/20
to Lily Pregill, Arches Project
Hi Lily,
It does look like deleting that concept is what is causing the problem with deleting the model.
This of course shouldn't be happening. 

I created a ticket for this: 

In the meantime, I think the only way to recover would be to recreate the concept that you deleted via the RDM.  Then update the primary key of the value associated to that new concept.
Then you should be able to delete your graph, assuming that there was only one concept deleted in the first place.

Cheers,
Alexei

Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en

---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archesprojec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/887c7b93-fcae-4c49-8a94-7c7144ec1a6d%40googlegroups.com.

Lily Pregill

unread,
Mar 9, 2020, 2:55:58 PM3/9/20
to Arches Project
Thanks, Alexei. I'm not that familiar with the Arches db structure but I'll see what I can accomplish with your suggestion.

best,
Lily

Alexei Peters

unread,
Mar 19, 2020, 6:26:51 PM3/19/20
to Arches Project
Hi Lily,
Were you ever able to resolve your issue?
Also, we tried recreating the issue but were unsuccessful.  See: https://github.com/archesproject/arches/issues/5957#issuecomment-601397100
Can you give us any guidance on how to reproduce this error?
If not then we will just close this ticket for now.
Cheers,
Alexei
Reply all
Reply to author
Forward
0 new messages