Ubic icon indicating copy to clipboard operation
Ubic copied to clipboard

Exit code 5 on install

Open pstaabp opened this issue 12 years ago • 2 comments

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 avatar Dec 20 '13 18:12 pstaabp

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 avatar Dec 20 '13 19:12 pstaabp

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 ~

pstaabp avatar Jan 07 '14 20:01 pstaabp