I think the debug message "ERROR:oneconf.networksync:WebClient server
answering but not available" is important.
I've been looking at the code (or trying to) and, at around line 171 of
oneconf/networksync/__init__.py, the call self.infraclient.server_status() is
returning <b'"ok"'> instead of <ok>, at least for me.
If I "hack" the if in that line to give True, an error occurs next:
Traceback (most recent call last):
File "/home/bruno/src/oneconf/oneconf/networksync/__init__.py", line 112, in
_network_state_changed
self._refresh_can_sync()
File "/home/bruno/src/oneconf/oneconf/networksync/__init__.py", line 81, in
_refresh_can_sync
self.process_sync()
File "/home/bruno/src/oneconf/oneconf/networksync/__init__.py", line 231, in
process_sync
full_hosts_list = self.infraclient.list_machines()
File "/usr/lib/python3/dist-packages/piston_mini_client/validators.py", line
120, in wrapper
return func(self, *args, **kwargs)
File "/home/bruno/src/oneconf/oneconf/networksync/infraclient_pristine.py",
line 41, in list_machines
return ast.literal_eval(self._get('list-machines/',
scheme=AUTHENTICATED_API_SCHEME))
File "/usr/lib/python3.3/ast.py", line 86, in literal_eval
return _convert(node_or_string)
File "/usr/lib/python3.3/ast.py", line 85, in _convert
raise ValueError('malformed node or string: ' + repr(node))
ValueError: malformed node or string: b'[\n {\n "hostname": "XXXXX",
\n "logo_checksum": "X", \n "uuid": "XXXXX", \n
"packages_checksum": "XXXXX"\n }\n]'
Notice the <b'...'> in the last line. Why is that? Maybe something wrong in the
self._get() method? (where is that one defined?)
Sorry if I'm completely wrong.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to oneconf in Ubuntu.
https://bugs.launchpad.net/bugs/1165104
Title:
oneconf is only showing the pc you are on in raring and isn't sharing
to other machines
Status in “oneconf” package in Ubuntu:
Confirmed
Bug description:
In Raring I see only the machince I'm on. In the precise box beside
it I see a couple of boxes but not this one. Please see the
screenshots attached.
I have a feeling that some how the sync has broken but I'm not sure
what technology it is use on the backend.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: oneconf 0.3.3
ProcVersionSignature: Ubuntu 3.8.0-16.26-generic 3.8.5
Uname: Linux 3.8.0-16-generic x86_64
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Fri Apr 5 18:18:24 2013
InstallationDate: Installed on 2013-04-02 (3 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130402)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: oneconf
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/oneconf/+bug/1165104/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp