1. Home
  2. Troubleshooting
  3. falcon.service failed to start

falcon.service failed to start

Issue

Application does not start and the following errors are seen in the logs.

Oct 17 20:48:47 ip-10-0-1-248.ec2.internal systemd[5231]: Failed at step EXEC spawning /falcon_deploy/app/falcon-deploy-1.0.war: Permission denied
Oct 17 20:48:47 ip-10-0-1-248.ec2.internal systemd[1]: falcon.service: main process exited, code=exited, status=203/EXEC
Oct 17 20:48:47 ip-10-0-1-248.ec2.internal systemd[1]: Unit falcon.service entered failed state.
Oct 17 20:48:47 ip-10-0-1-248.ec2.internal systemd[1]: falcon.service failed.

Solution

Make sure the OS user has execute permission on falcon-deploy-ver.war. 

As falcon user

> cd /falcon_deploy/app
> ls -ltr
-rwxr--r-- 1 root deploy 53387165 Oct 23 17:25 falcon-deploy-1.0.war

> sudo chown falcon:deploy falcon-deploy-1.0.war
> sudo chmod 770 falcon-deploy-1.0.war
> ls -ltr falcon-deploy-1.0.war
-rwxrwx--- 1 falcon deploy 53387165 Oct 23 17:25 falcon-deploy-1.0.war

Updated on March 10, 2019

Related Articles