On Wed, 24 Jul 2019 10:22:12 -0700 (PDT)
José Raddaoui <
jrad...@artefactual.com> wrote:
> Hi Patrick,
>
> I can see the 500 error in the logs from the first POST request to
> "/index.php/bowne-emeline-1896-1993/edit". As you said, restarting
> the worker fixed the problem so it was probably down at that moment.
> We're working on improving the AtoM worker service configuration in
> the Redmine ticket I linked, you could try to improve that
> configuration by your self in the meantime by adding restart rules to
> the service file located in
> "/usr/lib/systemd/system/atom-worker.service" and restarting the
> service.
Hi Jose,
I assume "adding restart rules" means changing the service
file so restart=no some other value?
What is the drawback which would make that a bad default?
The main reason I can come up with is a possible DoS on the server -
perhaps that could be mittigated by adding RestartSec.
Karl.
>
> As Dan comments, to run any AtoM task you need to execute it from the
> AtoM folder. However, the task you're trying to execute will actually
> register a different (temporary) worker in the Gearman server, which
> will be able to take jobs while it's running, but it won't solve the
> issue in the other worker running as a service.
>
> You may also find more information about why the worker failed with
> "sudo journalctl -u atom-worker", pressing enter until you get to the
> end.
>
> Best regards.
>
> On Monday, July 22, 2019 at 3:09:52 PM UTC+2, Patrick Goetz wrote:
> >
> >
> > I set up the systemd unit file for presumably the Gearman worker
> > manager as per the instructions provided here:
> >
https://www.accesstomemory.org/en/docs/2.5/admin-manual/installation/asynchronous-jobs/#installation-asynchronous-jobs
> >
> > I say presumably because there's no mention of Geraman in the unit
> > file, so I'm not quite sure how this works, but just copied the
> > text from the page above.
> >
> > This worked at first, but a few days ago the editor configuring the
> > site complained that she was getting internal server errors again
> > when attempting to edit documents.
> >
> > Upon running
> > # systemctl status atom-worker
> >
> >
> > Restarting the service:
> > # systemctl restart atom-worker
> >
> >
> > Seems to resolve the issue, but I'd prefer not to have to
> > continuously restart the service for the editors.
> >
--
Karl Goetz
Technical Services Officer - eResearch, Information Technology Services
University of Tasmania & Tasmanian Partnership for Advanced Computing
Mail: University of Tasmania, Private Bag 69, Hobart, Tasmania 7001
Delivery: TT Flynn Street, Sandy Bay, Tasmania 7005
University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.