Skip to content

Commit 59f2bb5

Browse files
committed
fix(deisctl): start gateway before volume
1 parent 163601e commit 59f2bb5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

deisctl/cmd/cmd.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ func startDefaultServices(b backend.Backend, wg *sync.WaitGroup, outchan chan st
131131
b.Start([]string{"store-metadata"}, wg, outchan, errchan)
132132
wg.Wait()
133133

134-
b.Start([]string{"store-volume", "store-gateway"}, wg, outchan, errchan)
134+
// we start gateway first to give metadata time to come up for volume
135+
b.Start([]string{"store-gateway"}, wg, outchan, errchan)
136+
wg.Wait()
137+
b.Start([]string{"store-volume"}, wg, outchan, errchan)
135138
wg.Wait()
136139

137140
// start logging subsystem first to collect logs from other components

0 commit comments

Comments
 (0)