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

Exit code 5 on install #66

Open
pstaabp opened this issue Dec 20, 2013 · 2 comments
Open

Exit code 5 on install #66

pstaabp opened this issue Dec 20, 2013 · 2 comments

Comments

@pstaabp
Copy link

pstaabp commented Dec 20, 2013

I'm running on ubuntu (12.04.3) and have tried this via apt-get and also via cpanm to install ubic. I get the following after running sudo ubic-admin setup (with standard parameters)

Looks like ubic is already configured, do you want to reconfigure? [y/N] y

Ubic can be installed either in your home dir or into standard system paths (/etc, /var).
You need to be root to install it into system.
Would you like to configure as much as possible automatically? [Y/n] 
Installing dirs...
Installing ubic.ping service...
Installing ubic.watchdog service...
Installing ubic.update service...
Installing cron jobs...
Installing /etc/ubic/ubic.cfg...
Starting ubic.watchdog...
Service 'ubic.watchdog' not found
exit code 5 at /usr/share/perl5/Ubic/Admin/Setup.pm line 113.

I first installed it locally and was able to get it running, but can't running as root, although it appears that all of the files are installing in the correct places and setting the correct permissions.

@pstaabp
Copy link
Author

pstaabp commented Dec 20, 2013

I just tried updating via the ubic-admin setup script. If I install as a regular user in ~/ubic, then everything works. If I am root, then I get the above error.

@pstaabp
Copy link
Author

pstaabp commented Jan 7, 2014

I figured this out. There is a config file in ~/.ubic-cfg which was being read before the one in /etc/ubic.cfg and thus the conflict. Your setup script should detect this and remove the one in ~

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

1 participant