Error in loading other_hosts file

Bug #1486450 reported by Michael Heuberger
104
This bug affects 21 people
Affects Status Importance Assigned to Milestone
oneconf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am seeing this error in the syslog

Aug 19 20:38:31 M1 com.ubuntu.OneConf[25838]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/michael-heuberger/.cache/oneconf/813e56ef1c4f171bda95b46b5448007c/other_hosts'

Any ideas what it could be and how to fix?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in oneconf (Ubuntu):
status: New → Confirmed
Revision history for this message
ogsmokie (ogsmokie) wrote :

I've tried different versions of Ubuntu boot with BIOS, but the error occurs in all these versions. 14.04, 14.10, 15.04
Then I installed Ubuntu 14.04 boot with UEFI and BIOS reset. ( CSM off and different other settings )
Now the system is running without error since 4 days
System: Asrock Q1900

Can anyone confirm this with another Ubuntu version with UEFI boot?

Revision history for this message
Srikant Marakani (srikant) wrote :

I can confirm that it is an issue when trying to install xubuntu 15.10.

Revision history for this message
Steve Par (15303bdc) wrote :

Same here:

Apr 30 17:20:38 steven-OptiPlex-7020 com.ubuntu.OneConf[1906]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/steven/.cache/oneconf/40f6293cf2dc8054062a998756b5cc5b/other_hosts'

Revision history for this message
WinEunuchs2Unix (ricklee518) wrote :

Same here:

Sep 25 12:06:13 dell com.ubuntu.OneConf[1161]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/rick/.cache/oneconf/60404938df669372cddaa05a56db23ae/other_hosts'

I checked and the file does exist. Note the system had been suspended and resumed 3 minutes earlier. Ubuntu 16.04 LTD, Kernel 4.7.3. Only other anomaly (ok the major one!) is syslog shows systemd initiates suspend and upon resume kernel starts sleep process and wakes up right away.

Revision history for this message
Antonios Hadjigeorgalis (antonioshadji) wrote :

Nov 18 10:14:27 antonios-linux com.ubuntu.OneConf[2461]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/antonios/.cache/oneconf/8b03469885edc0cbe299f0a300000002/other_hosts'

Ubuntu 16.04.1 kernel 4.4.0-47-generic
UEFI boot

There is no 'other_hosts' file, only a 'host' file, a logo in png format, and a package_list file containing a JSON listing a bunch of packages.

my Ubuntu was a clean install in Sept 2012 with 12.04.

Revision history for this message
Antonios Hadjigeorgalis (antonioshadji) wrote :

adding an empty other_hosts file stopped this error message.
Based on https://wiki.ubuntu.com/OneConf/Testing
the other_hosts file is for storing oneconf information from other hosts on the network.

Revision history for this message
Antonios Hadjigeorgalis (antonioshadji) wrote :

I believe this message originates from line 184 in
http://bazaar.launchpad.net/~ubuntu-desktop/oneconf/trunk/view/head:/oneconf/hosts.py
This appears to be a normal message that will always be logged unless an other_hosts file is created.

```
def _load_other_hosts(self):
        '''Load all other hosts from local store'''

        try:
            with open(os.path.join(self._host_file_dir, OTHER_HOST_FILENAME), 'r') as f:
                return json.load(f)
        except (IOError, TypeError, ValueError) as e:
            LOG.warning("Error in loading %s file: %s" % (OTHER_HOST_FILENAME, e))
            return {}
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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