Open elee opened 9 years ago
host details:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
$ uname -a
Linux ip-1-2-3-4 3.2.0-23-virtual #36-Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$
Thanks for the bug report @elee This is actually an issue with the wrapper script. System packaging tools often leave backup copies of configuration files next to the original file. Unfortunately, the wrapper script assumes that any file inside /etc/chronos/conf/
should be treated as a flag to the chronos service. So when backup files are present, the wrapper script will try to use these files as additional arguments. The intermediate workaround would be to delete the .dpkg-dist files and restart the chronos service.
sudo find /etc/chronos/conf -name \*.dpkg-dist -delete
sudo service chronos restart
@lingmann thanks for the fast reply. I ended up just instructing the automation to whack that file if it exists and all is well.
What step in packaging creates this file? I am unsure from reading the Makefile. Could you possibly just wipe it out in the postinst
hook?
It's actually not created by the package at all, it is created by the system packaging tools (dpkg) during a Chronos package upgrade. So in your case, it looks like the file /etc/chronos/conf/http_port
existed and had contents which differed from the new Chronos package that was installed. We could remove these files with the postinst
hook, but I'm leaning towards updating the wrapper script so that these backup files are explicitly ignored.
Trying to install the chronos deb out of the mesosphere repo I encountered some flapping with the service. Peeking into syslog I saw these errors:
http_port.dpkg-dist
seems to be the offending argument. I thought this was some error in how I was installing the deb via automation, but the ctime on this file is Oct-2.Curiously, peeking inside the deb itself:
I can workaround by whacking the
/etc/chronos/conf/http_port.dpkg-dist
file manually, but I am suspicious of this part of the Makefile: https://github.com/mesosphere/chronos-pkg/blob/f22c398076f3f27f67703b15fd2af9c3b27f8200/Makefile#L85The contents of the offending file, are for the record, correct: