Skip to content

Instantly share code, notes, and snippets.

@kjnilsson
Created December 18, 2014 13:21
Show Gist options
  • Save kjnilsson/d9c8fc813e047936c8ab to your computer and use it in GitHub Desktop.
Save kjnilsson/d9c8fc813e047936c8ab to your computer and use it in GitHub Desktop.
influxdb error log when writing to docker mounted directory
[2014/12/18 13:03:09 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).GetShardToWriteToBySeriesAndTime:834) No matching shards for write at time 1418907789187110u, creating...
[2014/12/18 13:03:09 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).createShards:865) createShards for space default: start: Thu Dec 18 00:00:00 +0000 UTC 2014. end: Thu Dec 25 00:00:00 +0000 UTC 2014
[2014/12/18 13:03:09 UTC] [INFO] (github.com/influxdb/influxdb/datastore.(*ShardDatastore).GetOrCreateShard:158) DATASTORE: opening or creating shard /mnt/data/db/shard_db_v2/00005
[2014/12/18 13:03:09 UTC] [EROR] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).AddShards:1075) AddShards: error setting local store: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:03:09 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).doOrProxyCommandOnce:168) Cannot run command &coordinator.CreateShardsCommand{Shards:[]*cluster.NewShardData{(*cluster.NewShardData)(0xc2080dea80)}, SpaceName:""}. IO error: directory: Invalid argument
[2014/12/18 13:03:09 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).CreateShards:750) RAFT: CreateShards: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:03:57 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).GetShardToWriteToBySeriesAndTime:834) No matching shards for write at time 1418907837113839u, creating...
[2014/12/18 13:03:57 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).createShards:865) createShards for space default: start: Thu Dec 18 00:00:00 +0000 UTC 2014. end: Thu Dec 25 00:00:00 +0000 UTC 2014
[2014/12/18 13:03:57 UTC] [INFO] (github.com/influxdb/influxdb/datastore.(*ShardDatastore).GetOrCreateShard:158) DATASTORE: opening or creating shard /mnt/data/db/shard_db_v2/00006
[2014/12/18 13:03:57 UTC] [EROR] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).AddShards:1075) AddShards: error setting local store: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:03:57 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).doOrProxyCommandOnce:168) Cannot run command &coordinator.CreateShardsCommand{Shards:[]*cluster.NewShardData{(*cluster.NewShardData)(0xc2080df420)}, SpaceName:""}. IO error: directory: Invalid argument
[2014/12/18 13:03:57 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).CreateShards:750) RAFT: CreateShards: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:04:02 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).GetShardToWriteToBySeriesAndTime:834) No matching shards for write at time 1418907842231083u, creating...
[2014/12/18 13:04:02 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).createShards:865) createShards for space default: start: Thu Dec 18 00:00:00 +0000 UTC 2014. end: Thu Dec 25 00:00:00 +0000 UTC 2014
[2014/12/18 13:04:02 UTC] [INFO] (github.com/influxdb/influxdb/datastore.(*ShardDatastore).GetOrCreateShard:158) DATASTORE: opening or creating shard /mnt/data/db/shard_db_v2/00007
[2014/12/18 13:04:02 UTC] [EROR] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).AddShards:1075) AddShards: error setting local store: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:04:02 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).doOrProxyCommandOnce:168) Cannot run command &coordinator.CreateShardsCommand{Shards:[]*cluster.NewShardData{(*cluster.NewShardData)(0xc2080df9d0)}, SpaceName:""}. IO error: directory: Invalid argument
[2014/12/18 13:04:02 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).CreateShards:750) RAFT: CreateShards: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:04:10 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).GetShardToWriteToBySeriesAndTime:834) No matching shards for write at time 1418907850659629u, creating...
[2014/12/18 13:04:10 UTC] [INFO] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).createShards:865) createShards for space default: start: Thu Dec 18 00:00:00 +0000 UTC 2014. end: Thu Dec 25 00:00:00 +0000 UTC 2014
[2014/12/18 13:04:10 UTC] [INFO] (github.com/influxdb/influxdb/datastore.(*ShardDatastore).GetOrCreateShard:158) DATASTORE: opening or creating shard /mnt/data/db/shard_db_v2/00008
[2014/12/18 13:04:10 UTC] [EROR] (github.com/influxdb/influxdb/cluster.(*ClusterConfiguration).AddShards:1075) AddShards: error setting local store: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:04:10 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).doOrProxyCommandOnce:168) Cannot run command &coordinator.CreateShardsCommand{Shards:[]*cluster.NewShardData{(*cluster.NewShardData)(0xc208180000)}, SpaceName:""}. IO error: directory: Invalid argument
[2014/12/18 13:04:10 UTC] [EROR] (github.com/influxdb/influxdb/coordinator.(*RaftServer).CreateShards:750) RAFT: CreateShards: %!(EXTRA rocksdb.DatabaseError=IO error: directory: Invalid argument)
[2014/12/18 13:12:55 UTC] [INFO] (github.com/influxdb/influxdb/coordinator.(*RaftServer).dropShardsWithRetentionPolicies:537) Checking for shards to drop
@holyjak
Copy link

holyjak commented May 4, 2015

Hi, do you have any solution for this problem? I experienced it as well. Thanks!

Perhaps it has something to do with permissions? Perhaps related to boot2docker's boot2docker/boot2docker#581?

Update: Yes, for me this was a problem with boot2docker and, more specifically, with permissions on VirtualBox-mounted directories. So I do not mount the volume anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment