Atom worker 서비스 실행 오류

edited November 2018 in AtoM
안녕하세요. 오랜만에 질문 드립니다. ^^

그동안 AWS에 Omeka와 Atom을 설치해서 주로 Omeka만 사용하고 있었습니다. 
컨텐츠도 별로 없는 상황에서 매달 과금이 부담되어서 저렴한 호스팅을 다시 찾아보다가 AWS에서 Lightsail을 출시했다는 것을 알고 서버를 옮기고 있습니다.
Omeka는 큰 문제 없이 서버 이전을 했는데 Atom은 어차피 자료가 없어서 새롭게 설치하려고 하였습니다.
그러던중 Elasticsearch가 리소스를 많이 먹는다고 해서 Lightsail에서 1GM RAM 가상 장비에 설치를 하려고 올려주신 설치가이드를 하나하나 따라하면서 설치하는 중에 Gearman 서비스 설치후 Atom worker가 실행이 안되고 failed가 됩니다. 오류 메시지는 아래와 같습니다.







p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px}
span.s1 {font-variant-ligatures: no-common-ligatures; color: #b42419}
span.s2 {font-variant-ligatures: no-common-ligatures}

atom-worker.service - AtoM worker

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

   Active: failed (Result: exit-code) since Fri 2018-11-30 03:31:57 UTC; 4min 52s ago

  Process: 1719 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=200/CHDIR)

  Process: 1716 ExecStart=/usr/bin/php -d memory_limit=-1 -d error_reporting=E_ALL symfony jobs:worker (code=exited, status=200/CHDIR)

 Main PID: 1716 (code=exited, status=200/CHDIR)


Nov 30 03:31:57 ip-172-26-0-19 systemd[1]: Started AtoM worker.

Nov 30 03:31:57 ip-172-26-0-19 systemd[1]: atom-worker.service: Main process exited, code=exited, status=200/CHDIR

Nov 30 03:31:57 ip-172-26-0-19 systemd[1]: atom-worker.service: Control process exited, code=exited status=200

Nov 30 03:31:57 ip-172-26-0-19 systemd[1]: atom-worker.service: Unit entered failed state.

Nov 30 03:31:57 ip-172-26-0-19 systemd[1]: atom-worker.service: Failed with result 'exit-code'.


이 오류 때문인지 설치가이드의 끝까지 가서 Atom 설치 웹화면에서 db생성 다음 단계로 넘어가지를 않습니다.
한번 검토 부탁 드립니다.

감사합니다.
이태희

Comments

  • edited November 2018
    설치가이드 순서상 atom 디렉토리가 Gearman설치후에 생기는 군요. 그래서 atom 설치까지 하고서 다시 서비스 상태를 보니 아래와 같은 메시지가 나왔습니다.


    atom-worker.service - AtoM worker

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

       Active: failed (Result: exit-code) since Fri 2018-11-30 04:09:49 UTC; 16s ago

      Process: 5926 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)

      Process: 5920 ExecStart=/usr/bin/php -d memory_limit=-1 -d error_reporting=E_ALL symfony jobs:worker (code=exited, status=1/FAILURE)

     Main PID: 5920 (code=exited, status=1/FAILURE)


    Nov 30 04:09:49 ip-172-26-0-19 php[5920]:             Try again a little later or ask in the <a href="http://groups.google.ca/group/ica-atom-users">discussion grou

    Nov 30 04:09:49 ip-172-26-0-19 php[5920]:             <a href="javascript:history.go(-1)">Back to previous page.</a>

    Nov 30 04:09:49 ip-172-26-0-19 php[5920]:           </p>

    Nov 30 04:09:49 ip-172-26-0-19 php[5920]:         </div>

    Nov 30 04:09:49 ip-172-26-0-19 php[5920]:       </section>

    Nov 30 04:09:49 ip-172-26-0-19 php[5920]:   </body>

    Nov 30 04:09:49 ip-172-26-0-19 php[5920]: </html>

    Nov 30 04:09:49 ip-172-26-0-19 systemd[1]: atom-worker.service: Main process exited, code=exited, status=1/FAILURE

    Nov 30 04:09:49 ip-172-26-0-19 systemd[1]: atom-worker.service: Unit entered failed state.

    Nov 30 04:09:49 ip-172-26-0-19 systemd[1]: atom-worker.service: Failed with result 'exit-code'.

    특히 아래의 줄을 보면 혹시 메모리가 모자라다는 걸까요?
    Process: 5920 ExecStart=/usr/bin/php -d memory_limit=-1 -d error_reporting=E_ALL symfony jobs:worker 

    현재의 메모리 상황은 이렇습니다. 조금 모자라는거 같기도 하네요..






    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
    span.s1 {font-variant-ligatures: no-common-ligatures}

    top - 04:13:58 up 52 min,  1 user,  load average: 0.00, 0.00, 0.00

    Tasks: 124 total,   1 running, 123 sleeping,   0 stopped,   0 zombie

    %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

    KiB Mem :  1014540 total,    84608 free,   557628 used,   372304 buff/cache

    KiB Swap:        0 total,        0 free,        0 used.   273348 avail Mem 

  • 끝까지 설치 진행을 해봤지만 역시나 "Search Configuration"단계에서 다음과 같은 에러가 납니다.

    • Can't connect to the server (Failed to connect to localhost port 9200: Connection refused).
  • edited November 2018
    이번에는 2GB 메모리의 Lightsail instance를 만들고  tcp port 9200번을 열고서 elasticsearch 서비스를 다시 시작한후에 설치를 다시 시도하니 설치가 완료 되어서 정상적인 화면이 보입니다.

    그러나 여전히 atom_worker 서비스는 failed입니다. 작동에 문제는 없는지 모르겠네요..
    현재의 메모리 상태 입니다.  (MB)  이걸 보면 1GB 메모리 장비로는 말씀하신것처럼 부족한것 같습니다.


                  total        used        free      shared  buff/cache   available

    Mem:           1998         927         629          25         440         880

Sign In or Register to comment.