Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1114378

Summary: first boot race condition: couldn't create Tag store: unexpected end of JSON input
Product: [Retired] Atomic Reporter: Colin Walters <walters>
Component: docker-ioAssignee: Vivek Goyal <vgoyal>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: dwalsh, fdeutsch, msnitzer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-21 03:24:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Colin Walters 2014-06-29 19:48:57 UTC
I frequently see this error on fresh start of an empty OS:

[71ab01f0] -job initserver() = ERR(1)
Couldn't create Tag store: unexpected end of JSON input

Searching the web, the most useful bug report on this I've found is:

https://github.com/coreos/coreos-vagrant/issues/12

Which is kind of weird as it was resolved by a fix related to timezone handling??

Needs investigation.

Comment 1 Daniel Walsh 2014-09-15 19:55:04 UTC
Colin do you still see this?

Comment 2 Colin Walters 2014-09-17 18:02:40 UTC
Yep, pretty often still.  Might be reproducible by a loop of:

systemctl stop docker
rm /var/lib/docker/* -rf
systemctl start docker 

?

Comment 3 Daniel Walsh 2015-03-10 00:34:15 UTC
Is this problem fixed?

Comment 4 Fabian Deutsch 2015-04-01 12:41:55 UTC
I am still seeing this with CentOS-7-x86_64-AtomicHost-20150228_01

Comment 7 Daniel Walsh 2015-07-21 13:17:30 UTC
The people who are hitting this, soposedly the fix is to remove /var/lib/docker/repositories-btrfs.  Could we somehow be ending up with a corrupt /var/lib/docker/repositories-devicemapper

Comment 8 Daniel Walsh 2015-07-21 13:18:59 UTC
In Daemon.go we see this causes the error.

	repositories, err := graph.NewTagStore(filepath.Join(config.Root, "repositories-"+d.driver.String()), tagCfg)
	if err != nil {
		return nil, fmt.Errorf("Couldn't create Tag store: %s", err)
	}

Comment 9 Daniel Walsh 2015-08-21 03:24:54 UTC
I think this has been fixed.