landscape-server cron jobs broken for landscape-quickstart

Bug #1861684 reported by Dan MacDonald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Server
Expired
Undecided
Unassigned

Bug Description

I have recently installed landscape-quickstart under Ubuntu server 18.04. After registering my first user and computer I navigated to Computers -> Packages in the OPL web UI and got the error:

"USN update cron script is not running, USN information may be out of date"

After a little bit of investigation, I discovered the cause of this error was the commands OPL was trying to execute in /etc/cron.d/landscape-server . All of the cron jobs within this file are configured to run `landscape ...` and so they were all failing because the actual command to run is `landscape-quickstart ...`.

My workaround was to create a symbolic link from /usr/bin/landscape-quickstart to /usr/bin/landscape, which has fixed the cron jobs.

Dan MacDonald (allcoms)
information type: Proprietary → Public
Revision history for this message
semidark (nthomaier) wrote :

I think that the content of /etc/cron.d/landscape-server is correct. The string landscape ist not the Binary but the User under which the following Script / Binary is excecuted.

And the user is only called Landscape

$grep landscape /etc/passwd
landscape:x:108:112::/var/lib/landscape:/usr/sbin/nologin

So I'm a bit confused that your workaround is working. Are you using a Proxy to get to https://usn.ubuntu.com?

Revision history for this message
Chris Johnston (cjohnston) wrote :

I am inclined to agree with semidark. I deploy quickstart regularly and have never had an issue with the crons, only an issue where proxies get in the way. If you could add logs or more information that would be helpful.

Changed in landscape:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Landscape Server because there has been no activity for 60 days.]

Changed in landscape:
status: Incomplete → Expired
Changed in landscape:
status: Expired → Incomplete
Changed in landscape:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.