Atom-Worker.Serivce Code=Exited, status=1failure)

135 views
Skip to first unread message

i.r.f...@gmail.com

unread,
Feb 12, 2019, 10:14:32 AM2/12/19
to AtoM Users
Hi I am currently going through the installation of atom worker and trying to get the atom-work.service going but receiving the below error



MYUSER@MYSERVER:/$ sudo systemctl status atom-worker
● atom-worker.service - AtoM worker
   Loaded: loaded (/usr/lib/systemd/system/atom-worker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-02-12 14:49:47 GMT; 17min ago
  Process: 8079 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 8074 ExecStart=/usr/bin/php -d memory_limit=-1 -d error_reporting=E_ALL symfony jobs:worker (code=exited, status=1/FAILURE)
 Main PID: 8074 (code=exited, status=1/FAILURE)
Feb 12 14:49:47 Peel-AToM systemd[1]: Started AtoM worker.
Feb 12 14:49:47 Peel-AToM php[8074]: Could not open input file: symfony
Feb 12 14:49:47 Peel-AToM systemd[1]: atom-worker.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 14:49:47 Peel-AToM systemd[1]: atom-worker.service: Unit entered failed state.
Feb 12 14:49:47 Peel-AToM systemd[1]: atom-worker.service: Failed with result 'exit-code'.
Feb 12 15:06:53 Peel-AToM systemd[1]: Stopped AtoM worker.

Has anybody experienced this?

regards

Dan Gillean

unread,
Feb 12, 2019, 10:54:12 AM2/12/19
to ICA-AtoM Users
Hi there, 

I'm hoping this is a simple one - have you tried running the command from the root AtoM installation directory? The service is trying to call a Symfony task, but Symfony tasks need to be executed from the root AtoM installation directory - if you have followed our recommended installation instructions, this is generally /usr/share/nginx/atom

If that doesn't help: 

You have been following the instructions in this document, correct?
  • sudo systemctl daemon-reload
You might also want to restart PHP-FPM 
  • sudo systemctl restart php7.0-fpm
If these suggestions don't help, can you please tell us more about your installation? I'm guessing from the command that you are using Ubuntu 16.04 - have you made any changes to our recommended installation instructions? Have you double-checked the filesystem permissions in your installation environment? Any other information about your installation environment that you think would be helpful to know is welcome. 

Cheers, 



Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/7cea6a5f-2f96-460d-aeff-712f7adc44d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karl Goetz

unread,
Feb 12, 2019, 4:30:49 PM2/12/19
to ica-ato...@googlegroups.com
Hi,
If Dans advice hasn’t already fixed the issue it would be good too see a copy of your service file. If you installed somewhere other than the default your install path would be good too - it looks like your WorkingDirectory Is wrong or missing.

Karl.


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/7cea6a5f-2f96-460d-aeff-712f7adc44d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday



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.

i.r.f...@gmail.com

unread,
Feb 14, 2019, 3:38:32 AM2/14/19
to AtoM Users
Hi Gents,

Appreciate the response.

Yes I have run it from the ATOM dir.

MYUSER@MYSERVER:/usr/share/nginx/atom$ sudo systemctl status atom-worker
[sudo] password for peeladmin:

atom-worker.service - AtoM worker
   
Loaded: loaded (/usr/lib/systemd/system/atom-worker.service; enabled; vendor preset: enabled)

   
Active: failed (Result: exit-code) since Tue 2019-02-12 15:26:49 GMT; 1 day 17h ago
 
Main PID: 8339 (code=exited, status=1/FAILURE)
Feb 12 15:26:49 Peel-AToM systemd[1]: Started AtoM worker.
Feb 12 15:26:49 Peel-AToM php[8339]: Could not open input file: symfony
Feb 12 15:26:49 Peel-AToM systemd[1]: atom-worker.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 15:26:49 Peel-AToM systemd[1]: atom-worker.service: Unit entered failed state.
Feb 12 15:26:49 Peel-AToM systemd[1]: atom-worker.service: Failed with result 'exit-code'.

In regards to installation environment this is a VM built specifically for AToM, a fresh copy of Ubuntu 16.04. I have followed the install instructions to a T I'm 99% sure. In-regards to the atom directory, should there be anything in there? I did a check in the nginx dir the atom folder is blue text highlighted in green & the ls command brings no files or directories to list.

i.r.f...@gmail.com

unread,
Feb 14, 2019, 3:40:29 AM2/14/19
to AtoM Users
Description=AtoM worker
After=network.target

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/usr/share/nginx/atom
ExecStart=/usr/bin/php -d memory_limit=-1 -d error_reporting="E_ALL" symfony jobs:worker
ExecStop=/bin/kill -s TERM $MAINPID
Restart=no


This is the service file copied directly from the website.



On Tuesday, February 12, 2019 at 3:14:32 PM UTC, i.r.f...@gmail.com wrote:

Dan Gillean

unread,
Feb 14, 2019, 10:55:23 AM2/14/19
to ICA-AtoM Users
Hi Aaron, 

If there is nothing at all in the root AtoM directory at /usr/share/nginx/atom then something has definitely gone wrong in your installation - this is where every other file and directory in AtoM should live! For example, you should see almost every subdirectory and file seen here in our code repository: 
In my local Vagrant box, here is everything below the root AtoM installation directory:
atom-root.png
 
Other than the job scheduler, does your AtoM site work? If so, then you must have installed in a different location, and that is likely what is causing the issues here - though I would expect that if you don't correct this, you might run into additional issues down the line. 

If not, then you may want to start the installation instructions over. You should complete the instructions up to the step where you run and configure the web installer before completing the Gearman set up and configuration for the job scheduler. 

Let us know what you find! 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.

i.r.f...@gmail.com

unread,
Feb 14, 2019, 11:01:25 AM2/14/19
to AtoM Users
Hi Dan,

Thanks for you reply, yes you are correct, once I got to the job scheduler part of the instructions I didn't continue with the rest of the installation which is basically downloading and installing atom & creating and configuring DB then running web installer, but the issues still stand with the jobs/worker/scheduling part.

I believe it may be something to do with php symfony not being installed properly? I am going to start with a fresh Linux install & try again in the morning, only takes 10 - 20 minutes to get up to where I was,

I'm sure I will be back with a different problem tomorrow!

Kind Regards
MYU...@MYSERVER:/$ sudo systemctl status atom-worker

● atom-worker.service - AtoM worker
   Loaded: loaded (/usr/lib/systemd/system/atom-worker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-02-12 14:49:47 GMT; 17min ago
  Process: 8079 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 8074 ExecStart=/usr/bin/php -d memory_limit=-1 -d error_reporting=E_ALL symfony jobs:worker (code=exited, status=1/FAILURE)
 Main PID: 8074 (code=exited, status=1/FAILURE)
Feb 12 14:49:47 Peel-AToM systemd[1]: Started AtoM worker.
Feb 12 14:49:47 Peel-AToM php[8074]: Could not open input file: symfony
Feb 12 14:49:47 Peel-AToM systemd[1]: atom-worker.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 14:49:47 Peel-AToM systemd[1]: atom-worker.service: Unit entered failed state.
Feb 12 14:49:47 Peel-AToM systemd[1]: atom-worker.service: Failed with result 'exit-code'.
Feb 12 15:06:53 Peel-AToM systemd[1]: Stopped AtoM worker.

Has anybody experienced this?

regards

Karl Goetz

unread,
Feb 14, 2019, 4:56:56 PM2/14/19
to ica-ato...@googlegroups.com
Hi,
I’m intrigued now… why were you trying to install the worker without atom?

Vis a vi the issue below:

You will need to install atom, it brings in the ‘symfony’ command.



Karl

To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@http://googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.

For more options, visit https://groups.google.com/d/optout.
-- 
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday

Message has been deleted
Message has been deleted

Dan Gillean

unread,
Feb 15, 2019, 6:02:10 PM2/15/19
to ICA-AtoM Users
Hi Aaron, 

Glad to hear that you have everything working! 

Your feedback is very helpful for understanding how we can clarify the installation documentation. I don't have time to update them immediately, but I'm going to file an internal issue for myself to review this section, and add a note about completing the initial installation instructions before configuring Gearman. 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory


On Fri, Feb 15, 2019 at 5:59 PM <i.r.f...@gmail.com> wrote:
I feel slightly silly!! All working.

I figured you have steps 1 2 3 4 5 etc and in the middle you've got the gearman job server, I figured you had to complete that first. Also, I was experiencing issues when installing percona-server-server 5.6 when I attempted to put in a password it error'd on this installation kept it blank.

Appreciate the responses guys!

Have a great weekend & no doubt I'll be around here more often.

Kind Regards

On Thursday, February 14, 2019 at 9:56:56 PM UTC, Karl Goetz wrote:
Hi,
I’m intrigued now… why were you trying to install the worker without atom?

Vis a vi the issue below:

You will need to install atom, it brings in the ‘symfony’ command.



Karl

To post to this group, send email to ica-at...@googlegroups.com.

-- 
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday



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.

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
Reply all
Reply to author
Forward
0 new messages