Bug #13321

Problem: creating Actor relationships via the GUI results in a 500 error

Added by Peter Van Garderen 5 months ago. Updated 5 months ago.

Status:VerifiedStart date:05/20/2020
Priority:HighDue date:
Assignee:Mike Cantelon% Done:

0%

Category:Actor
Target version:Release 2.6.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

Given two existing authority records, when adding one or more relationships using the "Relationships area" in the GUI, AtoM responds with a 500 error and the relationship(s) is not created.

History

#1 Updated by Peter Van Garderen 5 months ago

From DavidJ: "Looks like the relation row isn't getting written to the database, but I don't see any error in the nginx error log"

#2 Updated by Peter Van Garderen 5 months ago

  • Status changed from New to Verified

This issue was happening on an AtoM Vagrant box where Gearman workers (required for the background create relationship job) are often not running.

Checking the nginx error log,

sudo tail /var/log/nginx/error.log

showed that there was no available Gearman worker:
2020/05/20 19:23:26 [error] 548#548: *91 FastCGI sent in stderr: "PHP message: No Gearman worker available that can handle the job arUpdateEsActorRelationsJob" while reading response header from upstream, client: 10.10.10.1, server: _, request: "POST /the-dude-1/edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.atom.sock:", host: "10.10.10.10", referrer: "http://10.10.10.10/the-dude-1/edit" 

Starting a Gearman worker fixed this issue:

./symfony job:wor

Also available in: Atom PDF