Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567384 - app-portage/layman-2.0.0-r3: Permanent failure after network hiccup
Summary: app-portage/layman-2.0.0-r3: Permanent failure after network hiccup
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 20:48 UTC by Patrick Lauer
Modified: 2016-01-02 01:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2015-12-02 20:48:20 UTC
# layman -S

 * Fetching remote list,...
 * Failed to fetch overlay list!
 *  Original Error was: no element found: line 1, column 0

 * Syncing selected overlays,...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/layman", line 45, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/layman/cli.py", line 184, in __call__
    result += getattr(self, action[1])()
  File "/usr/lib64/python2.7/site-packages/layman/cli.py", line 252, in Sync
    result = self.api.sync(selection, update_news=True)
  File "/usr/lib64/python2.7/site-packages/layman/api.py", line 326, in sync
    ordb = self._get_remote_db().select(ovl)
  File "/usr/lib64/python2.7/site-packages/layman/api.py", line 496, in _get_remote_db
    self._available_db = RemoteDB(self.config)
  File "/usr/lib64/python2.7/site-packages/layman/db.py", line 281, in __init__
    ignore_init_read_errors=ignore_init_read_errors)
  File "/usr/lib64/python2.7/site-packages/layman/dbbase.py", line 101, in __init__
    self.read_file(path)
  File "/usr/lib64/python2.7/site-packages/layman/dbbase.py", line 133, in read_file
    self.read(document, origin=path)
  File "/usr/lib64/python2.7/site-packages/layman/dbbase.py", line 158, in read
    document = ET.fromstring(text)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1301, in XML
    return parser.close()
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0


# ls -al /var/lib/layman/
total 280
drwxr-xr-x  3 root root   4096 Nov 28 22:09 .
drwxr-xr-x 24 root root   4096 Dec  2 18:24 ..
drwxr-xr-x 12 root root   4096 Nov 28 22:09 adjust
-rw-r--r--  1 root root     29 Dec  2 20:40 cache_256ea584770264cfafa29ce2fe18c87e.timestamp
-rw-r--r--  1 root root      0 Dec  2 20:41 cache_256ea584770264cfafa29ce2fe18c87e.xml
-rw-r--r--  1 root root     29 Dec  2 20:40 cache_ac494f50f5736be7871962c0dec7b3bb.timestamp
-rw-r--r--  1 root root 257671 Dec  2 20:40 cache_ac494f50f5736be7871962c0dec7b3bb.xml
-rw-r--r--  1 root root    417 Nov 28 22:09 installed.xml
-rw-r--r--  1 root root      0 Nov 28 22:07 .keep_app-portage_layman-0
-rw-r--r--  1 root root     60 Nov 28 22:09 make.conf


Notice the 0-byte file? That breaks it. Deleting all cache* files fixes.