Search Engine: Elastic

Article ID: 131923, created on Dec 15, 2017, last review on Dec 15, 2017

  • Applies to:
  • Operations Automation 7.0

Symptoms

After making changes in Apache configuration via OAP Control panel, one of generated tasks "Configuring service ApacheNG" failed with the following output:

truepath fastcgi: No such file or directory (errno 2).

In core.log one could see failed attempt of file creation:

[task:100587203:...]: [ HCL::HCLProcessor::process] Processing CREATEFILE(group="${defgrp}", overwrite="yes", owner="${defuser}", path="fastcgi", perm="0644"):
[task:100587203:...]: [ OpCreateFile] {module_id="HCL"; code="1101"} truepath fastcgi: No such file or directory (errno 2).

Capturing process calls via strace utility sheds more light on the issue:

9013  send(3, "<135>Dec 15 17:54:10 : DBG [task:100587203:799842 5847:8814:b0af4b70 lib ]: [ HCL::HCLProcessor::process] Processing CREATEFILE(path=\"fastcgi\"...
9013  getcwd(0xb3748374, 4096)          = -1 ENOENT (No such file or directory)
9013  send(3, "<135>Dec 15 17:54:10 : DBG [task:100587203:799842 5847:8814:b0af4b70 lib ]: [ OpCreateFile] {module_id=\"HCL\"; code=\"1101\"} truepath fastcgi: No such file or directory (errno 2)."

According to strace output, failure occurs inside of getcwd system call that acquires current working directory of a process. It could be checked the following way (for example, PID of pa-agent is 8814):

# ll /proc/8814/cwd
lrwxrwxrwx 1 root root 0 Dec 15 18:49 /proc/8814/cwd ->  (deleted)/var/www/vhosts/108/...

Cause

Under unknown circumstances pa-agent was left in the location that was removed afterwards. Attempt to obtain path of removed directory lead to an error.

Resolution

Restart of agent on the slave host is required:

# service pa-agent restart

Working directory of a new process should point to /usr/local/pem/var/cores.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d

Email subscription for changes to this article
Save as PDF