Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ece-deploy - in a newvly and automatically install environment ece-deploy will fails on permissions #9

Open
oschon opened this issue Jan 14, 2013 · 3 comments

Comments

@oschon
Copy link

oschon commented Jan 14, 2013

In a newly installed (fai) environment ece-deploy will fails on the error below unless a restart is first performed with the 'ece' script where the permissions are corrected:

[ece-deploy-0] Started @ Mon Jan 14 12:39:22 UTC 2013
[ece-deploy-0] This deployment has ID ip-10-58-107-107-1358167162 and is
[ece-deploy-0] logging to /var/log/escenic/ece-deploy.log
[ece-deploy-0] Remembering the deployment states for all instances ...
[ece#engine-engine1] /var/run/escenic/engine1.pid: /var/run/escenic isn't
[ece#engine-engine1] writable for user escenic

@skybert
Copy link

skybert commented Jan 14, 2013

Sorry, but I cannot reproduce this. I have a clean system, with no /var/run/escenic at all. Then, I run ece-install with the following configuration:

fai_enabled=1
fai_presentation_install=1

This results in a runing instance with correction permissions on both run directory and PID file:

$ ls -ltra /var/run/escenic
total 12
-rw-r--r-- 1 escenic escenic    6 Jan 14 17:47 engine1.pid
drwxr-xr-x 9 root    root    4096 Jan 14 17:48 ..
drwxr-xr-x 2 escenic escenic 4096 Jan 14 17:52 

What is different in your case?

@skybert
Copy link

skybert commented Jan 15, 2013

@mogsie had a hunch that your problems stemmed from that you do a reboot of your machine after running ece-install and that ece-installed didn't add /etc/init.d/ece to the default run levels.

However, I cannot re-produce this on my system, using fai_presentation_install. Do you use a different profile or combination of these? Does ece-install say something about the run levels?

You may have a search for it in the installation log like this:

$ grep -A 8 "run level" /var/log/escenic/ece-install.log 
[ece-install-732] Adding the ece init.d script to the default run levels ...
 Adding system startup for /etc/init.d/ece ...
   /etc/rc0.d/K20ece -> ../init.d/ece
   /etc/rc1.d/K20ece -> ../init.d/ece
   /etc/rc6.d/K20ece -> ../init.d/ece
   /etc/rc2.d/S20ece -> ../init.d/ece
   /etc/rc3.d/S20ece -> ../init.d/ece
   /etc/rc4.d/S20ece -> ../init.d/ece
   /etc/rc5.d/S20ece -> ../init.d/ece

@skybert
Copy link

skybert commented Jan 16, 2013

Note: I could re-produce this if I had 4-profiles in the ece-install.conf.

Now fixed with commit 39c8eef.

Can you confirm this fix, @oschon ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants