Title
#kolide
s

seph

09/04/2019, 3:21 PM
@brandon What platform? Issue 164 wasn’t well formed.
b

Brandon

09/04/2019, 3:25 PM
This was on Ubuntu 14.04 and using an upstart script for launcher
launcher --version
launcher - version 0.10.3
  branch: 	master
  revision: 	c0115f999046a62ca43889c743d18826c5c4c53c
  build date: 	2019-07-24
  build user: 	seph (seph)
  go version: 	go1.12.5
s

seph

09/04/2019, 3:26 PM
0.10.3 is the stable release. Do you know what version you started with? You shouldn’t see an upgrade from that version
b

Brandon

09/04/2019, 3:30 PM
I just verified the
launcher
binary on another server without
autoupdate
in the flag and confirmed it was the same version,
0.10.3
s

seph

09/04/2019, 3:30 PM
What version of the launcher package is installed?
b

Brandon

09/04/2019, 3:35 PM
Sorry for the dumb question, but what's the best way to verify that besides
launcher --version
? FWIW, starting launcher with:
exec /usr/bin/launcher --hostname=hostname-redacted:443 --enroll_secret_path=/var/kolide-fleet/enroll --root_directory=/var/kolide-fleet --osqueryd_path=/usr/bin/osqueryd --autoupdate
s

seph

09/04/2019, 3:36 PM
dpkg -l | grep launcher
3:37 PM
So… What I’m trying to tell is whether it updated. So if you started with something older than 0.10.3, and it updated, but you got an error. Vs, starting with 0.10.3, and somehow hitting that code
b

Brandon

09/04/2019, 3:38 PM
Ah thought that's what you meant, apologies for confusion. So I'm not installing launcher as a package, just copying the binary to
/usr/bin
after I build it and bake in a base AMI. Is that not preferred? This is for 14.04 so that's the approach I was taking since it appears there's only support for the launcher package for systemd systems?
s

seph

09/04/2019, 3:40 PM
Not using a package is fine. I make pacakges, but I have no expectations about what you might be doing. the packaging supports many things. See https://github.com/kolide/launcher/blob/master/docs/package-builder.md Building it yourself, and using autoupdate is interesting. What led you to that?
b

Brandon

09/04/2019, 3:56 PM
Initially I tried building the package on 14.04 using
package-builder
and installed via
dpkg -i launcher...deb
. But I was running into issues with 14.04. It's been a few weeks, but if I recall correctly it was because the launcher by default was starting the process via systemd and not supported via 14.04. I could be wrong on the memory recall however 😒imple_smile:.
s

seph

09/04/2019, 3:57 PM
On linux,
package-builder
defaults to building a systemd package. But you can build init, upstart, or nothing packages
b

Brandon

09/04/2019, 3:57 PM
That is something I missed in the documentation then! Apologies.
s

seph

09/04/2019, 3:57 PM
No worries! It’s not directly related here.
3:57 PM
So… Using autoupdate implies you trust the binaries I build. So why build your own and not use the released ones?
3:58 PM
Anyhow, I agree this all smells like weird code around auto update. Feel free to comment in that issue.
b

Brandon

09/04/2019, 4:01 PM
Total oversight on my part that you had releases already for the binary. Just in testing stage now to deploy across all environment, so I think it's worth trying your pre-built binaries. I'm guessing the pre-built binary is optimized for systemd?
s

seph

09/04/2019, 4:01 PM
no. Launcher is launcher, there is no difference. It’s a static go binary.
4:02 PM
The only differences between the init scripts is the init scripts.
b

Brandon

09/04/2019, 4:02 PM
I'll stick with the pre-built releases from now on
s

seph

09/04/2019, 4:02 PM
I mean… I ❤️ that people build their own. But I’d advise against autoupdate if you’re doing that.
b

Brandon

09/04/2019, 4:02 PM
Thank you for the advice and information 🙇
s

seph

09/04/2019, 4:03 PM
Still no idea how you hit that error. But this is all a side step to avoid it for a bit.
b

Brandon

09/04/2019, 10:15 PM
FWIW, I used the published release, including replacing the version of
launcher
and still receiving the error that's fixed by a service restart. Glad to post a followup if I find out any more info that might be helpful and add to the issue.