Repo_sync crashes following server rebuild.

91 views
Skip to first unread message

Simon Weaver

unread,
Jul 16, 2012, 3:04:15 AM7/16/12
to repo...@googlegroups.com
Hi,

I'm struggling with repo_sync following a rebuild of the server. 

I got this error when ran first time...

repo_sync run started
Traceback (most recent call last):
  File "./repo_sync", line 710, in <module>
    main()
  File "./repo_sync", line 706, in main
    download_packages=download_packages)
  File "./repo_sync", line 633, in sync
    dist = parseSUdist(preferred_dist)
  File "./repo_sync", line 106, in parseSUdist
    dom = minidom.parse(filename)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 211, in parseFile
    parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 811, column 10884

my preferences plist is as follows (I'm only after lion updates)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LocalCatalogURLBase</key>
<string></string>
<key>UpdatesMetadataDir</key>
<string>/var/www/swupdate/metadata</string>
<key>UpdatesRootDir</key>
<string>/var/www/swupdate/html</string>

    <key>AppleCatalogURLs</key>
    <array>
    </array>
</dict>
</plist>

I'm sure I've done something daft but just can't see it.

Thanks,
Simon.

Matt Hansen

unread,
Jul 16, 2012, 9:01:19 AM7/16/12
to repo...@googlegroups.com
Simon,

I had the same issue with the 041-3895 en.dist see this thread - https://groups.google.com/forum/?fromgroups#!topic/reposado/oTn0I9xvC3w

Check the .dist file link in Safari and it should contain 1030 lines, and if not copy the valid file from the thread into your repo and set the permissions.

xml.parsers.expat.ExpatError: no element found: line 811, column 10884

-Matt

Stephan Peterson

unread,
Jul 16, 2012, 2:40:26 PM7/16/12
to repo...@googlegroups.com
Matt,

Thanks for this. I've been seeing the same issue. Will doing a
repo_sync --recheck undo this bandaid fix?

Thanks,
Stephan

Simon Weaver

unread,
Jul 16, 2012, 8:56:41 PM7/16/12
to repo...@googlegroups.com
Many thanks Matt, thats fixed it.

Greg Neagle

unread,
Jul 17, 2012, 12:44:58 AM7/17/12
to repo...@googlegroups.com
This won't fix the underlying problem, but I pushed a fix to GitHub so that you get an error message if a dist file is corrupt and repo_sync will attempt to continue instead of exiting ungracefully.

-Greg

Matt Hansen

unread,
Jul 17, 2012, 7:06:58 PM7/17/12
to repo...@googlegroups.com
Remember to file a bug report (bugreport.apple.com) and you can mention radar #11829688

Apple Engineering responded stating they couldn't reproduce the issue on their end.

-Matt

Greg Neagle

unread,
Jul 17, 2012, 7:08:12 PM7/17/12
to repo...@googlegroups.com
Not everyone is seeing it. I suspect it has to do with which Akamai mirror you happen to be hitting.

-Greg
Reply all
Reply to author
Forward
0 new messages