Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local pass-docker with deposit services/dspace failing #1048

Closed
rpoet-jh opened this issue Sep 17, 2024 · 0 comments · Fixed by eclipse-pass/pass-docker#381
Closed

Local pass-docker with deposit services/dspace failing #1048

rpoet-jh opened this issue Sep 17, 2024 · 0 comments · Fixed by eclipse-pass/pass-docker#381
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rpoet-jh
Copy link
Contributor

rpoet-jh commented Sep 17, 2024

Environment

mac, chrome, local pass-docker

Date/time occurred

2024-09-17

Description

When running pass-docker locally with deposit services and dspace, the deposit into dspace is failing.

Note I tested this in PASS stage, and it is working fine there, this is only an issue running pass-docker locally.

Steps to Reproduce

Start pass-docker locally with deposit services and dspace (follow full instructions from pass-docker https://github.com/eclipse-pass/pass-docker/blob/main/README.md#run-with-deposit-services-and-dspace)
Log into PASS using staff1
Submit new submission all the way through (use grant R24)

Expected Results

JScholarship deposit on submissions details page gets a dspace handle.

Actual Results

JScholarship deposit on submissions details page fails and no dspace handle is created.

Evidence

Pulling errors from local dspace and dspacedb container:

dspace:

Caused by: java.lang.RuntimeException: Postcondition failed for 81: Transport of package to endpoint failed: {"timestamp":"2024-09-17T18:40:33.759+00:00","status":500,"error":"Internal Server Error","message":"javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute batch","path":"/server/swordv2/collection/123456789/20"}
2024-09-17 14:40:34     at org.eclipse.pass.deposit.service.DepositTask$DepositTaskCriFunc.lambda$depositPostcondition$3(DepositTask.java:480)
2024-09-17 14:40:34     at org.eclipse.pass.deposit.cri.CriticalPath.performCritical(CriticalPath.java:202)
2024-09-17 14:40:34     at org.eclipse.pass.deposit.cri.CriticalRepositoryInteraction.performCritical(CriticalRepositoryInteraction.java:146)
2024-09-17 14:40:34     at org.eclipse.pass.deposit.service.DepositTask.executeDeposit(DepositTask.java:98)
2024-09-17 14:40:34     ... 21 common frames omitted
2024-09-17 14:40:34 Caused by: org.eclipse.pass.deposit.transport.sword2.SwordErrorMessageWrapper: {"timestamp":"2024-09-17T18:40:33.759+00:00","status":500,"error":"Internal Server Error","message":"javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute batch","path":"/server/swordv2/collection/123456789/20"}
2024-09-17 14:40:34     at org.eclipse.pass.deposit.transport.sword2.Sword2ErrorResponse.<init>(Sword2ErrorResponse.java:46)
2024-09-17 14:40:34     at org.eclipse.pass.deposit.transport.sword2.Sword2TransportSession.send(Sword2TransportSession.java:171)
2024-09-17 14:40:34     at org.eclipse.pass.deposit.service.DepositTask$DepositTaskCriFunc.lambda$performDeposit$1(DepositTask.java:440)
2024-09-17 14:40:34     at org.eclipse.pass.deposit.cri.CriticalPath.performCritical(CriticalPath.java:178)
2024-09-17 14:40:34     ... 23 common frames omitted

dspacedb:

2024-09-17 14:34:51 2024-09-17 18:34:51.628 UTC [85] ERROR:  new row for relation "resourcepolicy" violates check constraint "resourcepolicy_eperson_and_epersongroup_not_nullobject_chk"
2024-09-17 14:34:51 2024-09-17 18:34:51.628 UTC [85] DETAIL:  Failing row contains (806, 0, null, 0, null, null, null, null, null, null, null, null).
2024-09-17 14:34:51 2024-09-17 18:34:51.628 UTC [85] STATEMENT:  insert into public.resourcepolicy (action_id, dspace_object, end_date, eperson_id, epersongroup_id, resource_type_id, rpdescription, rpname, rptype, start_date, policy_id) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)

Estimated Severity

Major

@rpoet-jh rpoet-jh added the bug Something isn't working label Sep 17, 2024
@rpoet-jh rpoet-jh added this to the 1.11.0 milestone Sep 17, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Eclipse PASS Sep 17, 2024
@dkriethof dkriethof modified the milestones: 1.11.0, 1.12.0 Sep 26, 2024
@rpoet-jh rpoet-jh self-assigned this Oct 7, 2024
@rpoet-jh rpoet-jh moved this from Backlog to In Progress in Eclipse PASS Oct 7, 2024
@github-project-automation github-project-automation bot moved this from Peer Review/QA to Done in Eclipse PASS Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants