Client Reporting Failure

46 views
Skip to first unread message

coffeehedake

unread,
Oct 10, 2013, 2:59:55 PM10/10/13
to munkise...@googlegroups.com
Running managed software update manually (via ARD) on a client successfully installs all packages in the manifest.

Unfortunately I'm getting a curl error running the command, and no client report is ever sent to munkiserver.

Each of the errors are below.

/usr/local/munki/managedsoftwareupdate:

Managed Software Update Tool

Copyright 2010-2013 The Munki Project

http://code.google.com/p/munki


Starting...

    Performing preflight tasks...

    preflight stdout: Updates will continue at this time.

Checking for available updates...

Checking Apple Software Update catalog...

WARNING: Could not download Apple SUS catalog.

Finishing...

    Performing postflight tasks...

    postflight stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed


  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0 18874    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

 82 56453   73 27690  100 18874  24176  16479  0:00:01  0:00:01 --:--:-- 24225

curl: (23) Failed writing body (0 != 16384)

Done.


/usr/local/munki/managedsoftwareupdate --installonly:

Managed Software Update Tool

Copyright 2010-2013 The Munki Project

http://code.google.com/p/munki


Starting...

    Performing preflight tasks...

    preflight stdout: Updates will continue at this time.

Nothing to install or remove.

Finishing...

    Performing postflight tasks...

    postflight stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed


  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0 18810    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

 82 56390   73 27690  100 18810  25370  17234  0:00:01  0:00:01 --:--:-- 25426

curl: (23) Failed writing body (0 != 16384)

Done.


I'm definitely not sure that the error is related, or isn't related to the reporting not working, however it was the first thing that stuck out (and I didn't find any information about it when I searched the mailing list).

Thanks for all the hard work, besides this little snaffu and ARD Plists failing to import, munkiserver seems excellent!

Sorry if this has been answered elsewhere, or if I've made a terribly newbish mistake, in advance.

Ricky Chilcott

unread,
Oct 10, 2013, 3:06:33 PM10/10/13
to munkise...@googlegroups.com
This is definitely a new problem. I'm in the process of re-building our munkiserver configuration today, so I can't test it right. However, I did notice this this morning before I started the rebuilding process.

Can you give me more information about your munkiserver install? How many clients do you have? Are you using sqlite or mysql?  Do you see this on all clients or just this one?

Also, I'd like to fix ARD Plist parsing, and might have time tomorrow. Do you have some example files that fail?

Ricky Chilcott



--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkiserver-d...@googlegroups.com.
To post to this group, send email to munkise...@googlegroups.com.
Visit this group at http://groups.google.com/group/munkiserver-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Pepijn Bruienne

unread,
Oct 10, 2013, 3:34:32 PM10/10/13
to munkise...@googlegroups.com, munkise...@googlegroups.com
First step in troubleshooting Munki runs is to step up the verbosity, I like to go with the max level just so I can see all the things: sudo managedsoftwareupdate --checkonly -vvvv

It would be very helpful to have the output of that command (sanitized as needed) to be able to tell what might be going on. Bonus points for putting it in a pastie/pasteboard/gist.

Thanks,
Pepijn.

---
Pepijn Bruienne

On Oct 10, 2013, at 2:59 PM, coffeehedake <caffei...@gmail.com> wrote:

--

Ricky Chilcott

unread,
Oct 10, 2013, 3:37:04 PM10/10/13
to munkise...@googlegroups.com
I'll also ask whether you're using the new postflight that I deployed earlier this week?

Since we're now capping (by default) postflight scripts for doing the curl command for 90 seconds, I bet it has something to do with that.

Ricky Chilcott


coffeehedake

unread,
Oct 10, 2013, 3:47:50 PM10/10/13
to munkise...@googlegroups.com
Definitely:

Running MySQL on Mac OS X 10.8.5 Server. (Followed these instructions verbatim).

So far, just one client in there, as I'm in the process of testing. I can add some more and see if different OS's and clients have any effect, so far I have had to add the one I have in there manually.

coffeehedake

unread,
Oct 10, 2013, 3:53:06 PM10/10/13
to munkise...@googlegroups.com
Here is a result of /usr/local/munki/managedsoftwareupdate --checkonly -vvvv:
 
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki

Starting...
    Performing preflight tasks...
    preflight stdout: Updates will continue at this time.
Checking for available updates...
    Manifest base URL is: http://hbdsreplica.region10.lan:3000/
    Manifest base URL is: http://hbdsreplica.region10.lan:3000/
    Getting manifest client_manifest...
    follow_redirects is False
    HTTP/1.1 304 Not Modified
    X-Meta-Request-Version: 0.2.6
    X-Ua-Compatible: IE=Edge,chrome=1
    Etag: "3009e0daf96d6d6b57b101bf590cd499"
    Cache-Control: max-age=0, private, must-revalidate
    X-Request-Id: 9ed92a10a47080223a11be1175df0106
    X-Runtime: 0.043806
    Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)
    Date: Thu, 10 Oct 2013 19:50:36 GMT
    Connection: close
    /Library/Managed Installs/manifests/client_manifest.plist already exists and is up-to-date.
    Using manifest: 00:17:f2:da:98:6e.plist
    **Checking for installs**
    ** Processing manifest client_manifest.plist for managed_installs
    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/
    Getting catalog 3-Production.plist...
    follow_redirects is False
    HTTP/1.1 304 Not Modified
    X-Meta-Request-Version: 0.2.6
    X-Ua-Compatible: IE=Edge,chrome=1
    Etag: "d653ac547495f8089ff4cb4be13cf127"
    Cache-Control: max-age=0, private, must-revalidate
    X-Request-Id: e42a119c8a9f6ea3a21ba8a5629a48ee
    X-Runtime: 0.016613
    Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)
    Date: Thu, 10 Oct 2013 19:50:36 GMT
    Connection: close
    /Library/Managed Installs/catalogs/3-Production.plist already exists and is up-to-date.
    * Processing manifest item munkitools for install
    Looking for detail for: munkitools, version latest...
    Considering 1 items with name munkitools from catalog 3-Production.plist
    Considering item munkitools, version 0.9.0.1803.0 with minimum os version required 10.6.0
    Our OS version is 10.7.5
    Considering item munkitools, version 0.9.0.1803.0 with maximum os version supported 10.8.4
    Our OS version is 10.7.5
    Considering item munkitools, version 0.9.0.1803.0 with supported architectures: (
    i386,
    "x86_64"
)
    Our architecture is i386
    Found munkitools, version 0.9.0.1803.0 in catalog 3-Production.plist
    Looking for package com.googlecode.munki.app, version 3.5.2.1803
    Looking for package com.googlecode.munki.admin, version 0.9.0.1797.0
    Looking for package com.googlecode.munki.launchd, version 0.8.0.1
    Looking for package com.googlecode.munki.core, version 0.9.0.1797.0
    munkitools version 0.9.0.1803.0 (or newer) is already installed.
    Looking for updates for: munkitools
    Looking for updates for: munkitools-0.9.0.1803.0
    Looking for updates for: munkitools--0.9.0.1803.0
    * Processing manifest item Chrome for install
    Looking for detail for: Chrome, version latest...
    Considering 1 items with name Chrome from catalog 3-Production.plist
    Considering item Chrome, version 30.0.1599.69 with minimum os version required 10.6.0
    Our OS version is 10.7.5
    Considering item Chrome, version 30.0.1599.69 with supported architectures: (
    i386,
    "x86_64"
)
    Our architecture is i386
    Found Chrome, version 30.0.1599.69 in catalog 3-Production.plist
    Found Info.plist at /Applications/Google Chrome.app/Contents/Info.plist
    Checking /Applications/Google Chrome.app/Contents/Info.plist for CFBundleShortVersionString 30.0.1599.69...
    Using version_comparison_key CFBundleShortVersionString
    Installed item has version 30.0.1599.69
    Installed item is the same.
    Chrome version 30.0.1599.69 (or newer) is already installed.
    Looking for updates for: Chrome
    Looking for updates for: Chrome-30.0.1599.69
    Looking for updates for: Chrome--30.0.1599.69
    * Processing manifest item munkiscripts for install
    Looking for detail for: munkiscripts, version latest...
    Considering 1 items with name munkiscripts from catalog 3-Production.plist
    Considering item munkiscripts, version 20131008 with minimum os version required 10.5.0
    Our OS version is 10.7.5
    Considering item munkiscripts, version 20131008 with supported architectures: (
    i386,
    "x86_64"
)
    Our architecture is i386
    Found munkiscripts, version 20131008 in catalog 3-Production.plist
    munkiscripts-20131008 requires munkitools-0.9.0.1803.0. Getting info on munkitools-0.9.0.1803.0...
    * Processing manifest item munkitools-0.9.0.1803.0 for install
    Looking for detail for: munkitools, version 0.9.0.1803...
    Considering 1 items with name munkitools from catalog 3-Production.plist
    Considering item munkitools, version 0.9.0.1803.0 with minimum os version required 10.6.0
    Our OS version is 10.7.5
    Considering item munkitools, version 0.9.0.1803.0 with maximum os version supported 10.8.4
    Our OS version is 10.7.5
    Considering item munkitools, version 0.9.0.1803.0 with supported architectures: (
    i386,
    "x86_64"
)
    Our architecture is i386
    Found munkitools, version 0.9.0.1803.0 in catalog 3-Production.plist
    munkitools-0.9.0.1803.0 is or will be installed.
    Looking for package com.github.jnraine.munkiserver.clientscripts, version 20131008
    munkiscripts version 20131008 (or newer) is already installed.
    Looking for updates for: munkiscripts
    Looking for updates for: munkiscripts-20131008
    Looking for updates for: munkiscripts--20131008
    **Checking for removals**
    ** Processing manifest client_manifest.plist for managed_uninstalls
    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/
    **Checking for managed updates**
    ** Processing manifest client_manifest.plist for managed_updates
    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/
    ** Processing manifest client_manifest.plist for optional_installs
    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/
    No change in InstallInfo.
Checking Apple Software Update catalog...
    Caching CatalogURL http://dssrv.region10.lan:8088/index.sucatalog
    follow_redirects is True
    Download error: http://dssrv.region10.lan:8088/index.sucatalog. Failed (7) with: couldn't connect to host
WARNING: Could not download Apple SUS catalog.
Finishing...
    Getting info on currently installed applications...
    Performing postflight tasks...
    postflight stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 18874    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
 82 56455   73 27690  100 18874  25075  17091  0:00:01  0:00:01 --:--:-- 25127

coffeehedake

unread,
Oct 10, 2013, 4:34:03 PM10/10/13
to munkise...@googlegroups.com
Third time I'm trying to attach this ARD plist file... maybe it'll be a charm.



On Thursday, October 10, 2013 3:06:33 PM UTC-4, Ricky Chilcott wrote:
tlc_desktops.plist.zip

coffeehedake

unread,
Oct 10, 2013, 5:02:21 PM10/10/13
to munkise...@googlegroups.com
Darn. I noticed I installed MunkiTools 0.9 as well, hopefully this isn't causing all of the issues to begin with.

The instructions I followed "verbatim" specifically said 0.8.

If so, my apologies.

coffeehedake

unread,
Oct 10, 2013, 5:45:10 PM10/10/13
to munkise...@googlegroups.com
On a different machine (brand new corei5 Mac Mini, running Mac OS X 10.8.5) I'm still getting curl errors:

Managed Software Update Tool

Copyright 2010-2013 The Munki Project

http://code.google.com/p/munki


Starting...

    Performing preflight tasks...

    preflight stdout: Updates will continue at this time.

Checking for available updates...

    Manifest base URL is: http://hbdsreplica.region10.lan:3000/

    Manifest base URL is: http://hbdsreplica.region10.lan:3000/

    Getting manifest client_manifest...

    follow_redirects is False

    HTTP/1.1 304 Not Modified

    X-Meta-Request-Version: 0.2.6

    X-Ua-Compatible: IE=Edge,chrome=1

    Etag: "06f78c97bc12dfafd382f8467f0ec79f"

    Cache-Control: max-age=0, private, must-revalidate

    X-Request-Id: 6350eec83b746ca8114294e568e20b96

    X-Runtime: 0.039278

    Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)

    Date: Thu, 10 Oct 2013 21:42:04 GMT

    Connection: close

    /Library/Managed Installs/manifests/client_manifest.plist already exists and is up-to-date.

    Using manifest: 10:dd:b1:c9:42:db.plist

    **Checking for installs**

    ** Processing manifest client_manifest.plist for managed_installs

    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/

    Getting catalog 4-Production.plist...

    follow_redirects is False

    HTTP/1.1 304 Not Modified

    X-Meta-Request-Version: 0.2.6

    X-Ua-Compatible: IE=Edge,chrome=1

    Etag: "323fe8d972100799fdbb49964b1c6591"

    Cache-Control: max-age=0, private, must-revalidate

    X-Request-Id: ca32175e7b87c149a69ed074347f6354

    X-Runtime: 0.013973

    Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)

    Date: Thu, 10 Oct 2013 21:42:04 GMT

    Connection: close

    /Library/Managed Installs/catalogs/4-Production.plist already exists and is up-to-date.

    * Processing manifest item munkitools for install

    Looking for detail for: munkitools, version latest...

    Considering 1 items with name munkitools from catalog 4-Production.plist

    Considering item munkitools, version 0.9.0.1803.0 with minimum os version required 10.6.0

    Our OS version is 10.8.5

    Considering item munkitools, version 0.9.0.1803.0 with supported architectures: (

    i386,

    "x86_64"

)

    Our architecture is x86_64

    Found munkitools, version 0.9.0.1803.0 in catalog 4-Production.plist

    Looking for package com.googlecode.munki.app, version 3.5.2.1803

    Looking for package com.googlecode.munki.admin, version 0.9.0.1797.0

    Looking for package com.googlecode.munki.launchd, version 0.8.0.1

    Looking for package com.googlecode.munki.core, version 0.9.0.1797.0

    munkitools version 0.9.0.1803.0 (or newer) is already installed.

    Looking for updates for: munkitools

    Looking for updates for: munkitools-0.9.0.1803.0

    Looking for updates for: munkitools--0.9.0.1803.0

    * Processing manifest item munkiscripts for install

    Looking for detail for: munkiscripts, version latest...

    Considering 1 items with name munkiscripts from catalog 4-Production.plist

    Considering item munkiscripts, version 20131008 with minimum os version required 10.5.0

    Our OS version is 10.8.5

    Considering item munkiscripts, version 20131008 with supported architectures: (

    i386,

    "x86_64"

)

    Our architecture is x86_64

    Found munkiscripts, version 20131008 in catalog 4-Production.plist

    munkiscripts-20131008 requires munkitools-0.9.0.1803.0. Getting info on munkitools-0.9.0.1803.0...

    * Processing manifest item munkitools-0.9.0.1803.0 for install

    Looking for detail for: munkitools, version 0.9.0.1803...

    Considering 1 items with name munkitools from catalog 4-Production.plist

    Considering item munkitools, version 0.9.0.1803.0 with minimum os version required 10.6.0

    Our OS version is 10.8.5

    Considering item munkitools, version 0.9.0.1803.0 with supported architectures: (

    i386,

    "x86_64"

)

    Our architecture is x86_64

    Found munkitools, version 0.9.0.1803.0 in catalog 4-Production.plist

    munkitools-0.9.0.1803.0 is or will be installed.

    Looking for package com.github.jnraine.munkiserver.clientscripts, version 20131008

    munkiscripts version 20131008 (or newer) is already installed.

    Looking for updates for: munkiscripts

    Looking for updates for: munkiscripts-20131008

    Looking for updates for: munkiscripts--20131008

    **Checking for removals**

    ** Processing manifest client_manifest.plist for managed_uninstalls

    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/

    **Checking for managed updates**

    ** Processing manifest client_manifest.plist for managed_updates

    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/

    ** Processing manifest client_manifest.plist for optional_installs

    Catalog base URL is: http://hbdsreplica.region10.lan:3000/catalogs/

Checking Apple Software Update catalog...

    Caching CatalogURL http://hbdsreplica.region10.lan:8088/index.sucatalog

    follow_redirects is True

    HTTP/1.1 302 Found

    Date: Thu, 10 Oct 2013 21:42:04 GMT

    Server: Apache/2.2.24 (Unix)

    Location: http://hbdsreplica.region10.lan:8088/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

    Content-Length: 413

    Connection: close

    Content-Type: text/html; charset=iso-8859-1

    HTTP/1.1 200 OK

    Date: Thu, 10 Oct 2013 21:42:04 GMT

    Server: Apache/2.2.24 (Unix)

    Connection: close

    Transfer-Encoding: chunked

    Content-Type: text/plain; charset=iso-8859-1


0..20..40..60..80..100

    WARNING: Web server did not return an etag. Munki cannot safely resume downloads without etag support on the web server. URL: http://hbdsreplica.region10.lan:8088/index.sucatalog

    Skipping Apple Software Update check because sucatalog is unchanged, installed Apple packages are unchanged and we recently did a full check.

Finishing...

    Getting info on currently installed applications...

    Performing postflight tasks...

    postflight stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed


  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0 17495    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

  0 17495    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0

 62 55075   45 17curl: (23) Failed writing body (0 != 1448)

Done.

Reply all
Reply to author
Forward
0 new messages