Comments (14)
After running /opt/nDeploy/scripts/attempt_autofix.sh
you are still seeing watcher in ps aux?
or if you run manually
systemctl restart ndeploy_watcher.service
does it still show failed ? and what is the status of the process in ps aux |grep watcher
from autom8n.
Once I run attempt_autofix.sh, which ends up with this error:
Attempting to restart ndeploy_watcher daemon:
Job for ndeploy_watcher.service failed because the control process exited with error code. See "systemctl status ndeploy_watcher.service" and "journalctl -xe" for details.
Redirecting to /bin/systemctl restart ndeploy_watcher.service
Job for ndeploy_watcher.service failed because the control process exited with error code. See "systemctl status ndeploy_watcher.service" and "journalctl -xe" for details.
Further commands and output are listed in the order of execution
ps waux | grep watcher
root 410498 0.0 0.0 433748 12216 ? Sl 09:35 0:00 python /opt/nDeploy/scripts/watcher.py start
systemctl restart ndeploy_watcher.service
Job for ndeploy_watcher.service failed because the control process exited with error code. See "systemctl status ndeploy_watcher.service" and "journalctl -xe" for details.
systemctl status ndeploy_watcher.service
● ndeploy_watcher.service - nDeploy Watcher
Loaded: loaded (/usr/lib/systemd/system/ndeploy_watcher.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2015-12-22 12:51:03 AEDT; 28s ago
Process: 457892 ExecStart=/opt/nDeploy/scripts/watcher.py start (code=exited, status=1/FAILURE)
Dec 22 12:51:03 systemd[1]: Starting nDeploy Watcher...
Dec 22 12:51:03 systemd[1]: ndeploy_watcher.service: control process exited, code=exited status=1
Dec 22 12:51:03 systemd[1]: Failed to start nDeploy Watcher.
Dec 22 12:51:03 systemd[1]: Unit ndeploy_watcher.service entered failed state.
Dec 22 12:51:03 systemd[1]: ndeploy_watcher.service failed.
ps waux | grep watcher
root 410498 0.0 0.0 433748 12216 ? Sl 09:35 0:00 python /opt/nDeploy/scripts/watcher.py start
from autom8n.
Can you try
systemctl stop ndeploy_watcher
systemctl status ndeploy_watcher.service
systemctl start ndeploy_watcher
systemctl status ndeploy_watcher.service
from autom8n.
Here is the screenshot with command outputs:
https://www.evernote.com/l/AKGGvR3iuoRIY7LLNK6L5UMVUaomhmIeRdY
Additionally:
ps waux | grep watcher
root 2951 0.0 0.0 112648 956 pts/0 S+ 11:47 0:00 grep --color=auto watcher
root 617000 0.0 0.0 329968 10040 ? Sl Dec22 0:00 python /opt/nDeploy/scripts/watcher.py restart
from autom8n.
Can you confirm if the watcher process start and stop are indeed showing a non-zero exit status. I was unable to find any issues on a plain centos7 server
root@centos7 [~]# systemctl status ndeploy_watcher
● ndeploy_watcher.service - nDeploy Watcher
Loaded: loaded (/usr/lib/systemd/system/ndeploy_watcher.service; enabled; vendor preset: disabled)
Active: active (exited) since Tue 2015-12-22 23:18:57 EST; 34min ago
Process: 12393 ExecStop=/opt/nDeploy/scripts/watcher.py stop (code=exited, status=0/SUCCESS)
Process: 12400 ExecStart=/opt/nDeploy/scripts/watcher.py start (code=exited, status=0/SUCCESS)
Main PID: 12408 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ndeploy_watcher.service
└─12409 python /opt/nDeploy/scripts/watcher.py start
Dec 22 23:18:57 centos7.sysally.net systemd[1]: Starting nDeploy Watcher...
Dec 22 23:18:57 centos7.sysally.net systemd[1]: Started nDeploy Watcher.
root@centos7 []# /opt/nDeploy/scripts/watcher.py stop]# echo $?
root@centos7 [
0
root@centos7 []# /opt/nDeploy/scripts/watcher.py start]# echo $?
root@centos7 [
0
from autom8n.
My output is the same, except of no CGroup (I guess because it is not running).
The server where it fails is CentOS 7 / cPanel / CloudLinux
which may be the reason it is different to the plain CentOS 7 install.
Any other ideas?
from autom8n.
Check watcher.log
from autom8n.
watcher.log file is empty
from autom8n.
It shouldnt be empty
root@centos7 [~]# cat /opt/nDeploy/watcher.log
2015-12-23 01:49:14.613774
<open file '/opt/nDeploy/conf/jobs.yml', mode 'r' at 0x1c70f60>
job3
job2
job1
will be there in the file in a normal start .
Can you manually kill the watcher process and remove the watcher.pid file and start watcher using systemctl .See if the error persist and see watcher log is populated with the above status.
from autom8n.
Worked.
Normally starting a process complains about existing .pid file. Maybe you could add this check into ndeploy_backends.service file, if .pid file exists, fail.
from autom8n.
Does systemctl restart ndeploy_backends also work fine now?
Check that also .
Also the systemd service was indeed failing in the status when the pid file exist. Dont think there is need for an additional check.
from autom8n.
Yes, systemctl restart ndeploy_backends works now. I do reckon you need to add a check for the pid file, as it seem to be the problem for the failure.
from autom8n.
Absolutely the same situation, Centos 7 + just installed Cpanel + nDeploy - "Job for ndeploy_watcher.service failed because the control process exited with error code".
(ndeploy_watcher, NOT ndeploy_backends!)
/opt/nDeploy/watcher.pid exists, but no running process with this PID.
Situation resolved by removing /opt/nDeploy/watcher.pid.
Please fix such incorrect behaviour, if it's possible. Or at least add cleaning of PID file to attempt_autofix.sh.
from autom8n.
Just added removal of the pid file as a step in autofix.sh script.
from autom8n.
Related Issues (20)
- custom nginx error_log for nemesida HOT 1
- Add autofix maxscale mysql on master cron
- Add default my.cnf.local on initial playbook run
- show maxscale/mariadb cluster status in WHM UI
- Extend proxy_to_master feature with a failover upstream setup
- nwaf whitelisting is accepting only one domain as parameter
- Basic spam filtering in postfix on slave nodes
- Cleanup WHM UI
- fix update_nginx_status_allow.py script on NAT-ed environment
- update maxscale to new version on playbook
- fix nwaf disable
- remove upgrade in server.j2
- Feature Request - Development Mode via App Integration HOT 1
- nginx stopped in slave for ssl error
- ansible dont support /etc/crontab for cron entry
- mariabackup gtid position script error
- Centos8 change rpm dependency to ansible-core instead of ansible HOT 1
- Remove nginx modules that no longer compile HOT 1
- move named stop step in playbook to end
- fix compatibility issue with centos7/centos8 in playbook run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autom8n.