# Localhost:8000 connection refused

**URL:** <https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309>\
**Category:** Dgraph\
**Tags:** ratel\
**Created:** [August 8, 2020, 4:52pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309 "2020-08-08T16:52:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![APS96](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@APS96](https://discuss.dgraph.io/u/APS96)\
**Post date:** [August 8, 2020, 4:52pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/1 "2020-08-08T16:52:28Z")

</div>

I downloaded docker and used this command : docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 dgraph/standalone:latest

Then I got this in my power shell terminal (I have used bash and others too)  
Unable to find image ‘dgraph/standalone:latest’ locally  
latest: Pulling from dgraph/standalone  
692c352adcf2: Pull complete 97058a342707: Pull complete 2821b8e766f4: Pull complete 4e643cc37772: Pull complete 1c53bf7d9436: Pull complete e7be5b38aff8: Pull complete c1324a267774: Pull complete c929db74b44c: Pull complete 5b92fba44001: Pull complete Digest: sha256:ce6e3ecdcb477efebd6cbe14e2df5c7e7c1fa93d36979cb3bceb05565a429ebe  
Status: Downloaded newer image for dgraph/standalone:latest

Warning: This standalone version is meant for quickstart purposes only.  
It is NOT RECOMMENDED for production environments.  
2020/08/08 16:46:27 Listening on :8000…  
[Decoder]: Using assembly version of decoder  
[Decoder]: Using assembly version of decoder  
[Sentry] 2020/08/08 16:46:27 Integration installed: ContextifyFrames  
[Sentry] 2020/08/08 16:46:27 Integration installed: Environment  
[Sentry] 2020/08/08 16:46:27 Integration installed: Modules  
[Sentry] 2020/08/08 16:46:27 Integration installed: IgnoreErrors  
[Sentry] 2020/08/08 16:46:27 Integration installed: ContextifyFrames  
[Sentry] 2020/08/08 16:46:27 Integration installed: Environment  
[Sentry] 2020/08/08 16:46:27 Integration installed: Modules  
[Sentry] 2020/08/08 16:46:27 Integration installed: IgnoreErrors  
[Decoder]: Using assembly version of decoder  
[Decoder]: Using assembly version of decoder  
[Sentry] 2020/08/08 16:46:28 Integration installed: ContextifyFrames  
[Sentry] 2020/08/08 16:46:28 Integration installed: Environment  
[Sentry] 2020/08/08 16:46:28 Integration installed: Modules  
[Sentry] 2020/08/08 16:46:28 Integration installed: IgnoreErrors  
[Sentry] 2020/08/08 16:46:28 Integration installed: ContextifyFrames  
[Sentry] 2020/08/08 16:46:28 Integration installed: Environment  
[Sentry] 2020/08/08 16:46:28 Integration installed: Modules  
[Sentry] 2020/08/08 16:46:28 Integration installed: IgnoreErrors  
I0808 16:46:28.967455 143 sentry\_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable\_sentry=false flag. For more info, see [How To Guides - Howto](https://dgraph.io/docs/howto/#data-handling).  
I0808 16:46:28.968438 140 sentry\_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable\_sentry=false flag. For more info, see [How To Guides - Howto](https://dgraph.io/docs/howto/#data-handling).  
I0808 16:46:28.969967 140 util\_ee.go:126] KeyReader instantiated of type   
I0808 16:46:29.360372 140 init.go:102]

Dgraph version : v20.07.0  
Dgraph codename : shuri  
Dgraph SHA-256 : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4  
Commit SHA-1 : d65e20530  
Commit timestamp : 2020-07-28 15:31:37 -0700  
Branch : HEAD  
Go version : go1.14.4

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.  
Copyright 2015-2020 Dgraph Labs, Inc.

I0808 16:46:29.367259 140 run.go:654] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 PollInterval:1s GraphqlExtension:true}  
I0808 16:46:29.367941 140 run.go:655] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] RaftId:0 WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2020-08-08 16:46:28.147760397 +0000 UTC m=+0.020040632 LudicrousMode:false EncryptionKey:\*\*\*\* LogRequest:0}  
I0808 16:46:29.368396 140 run.go:656] worker.Config: {PostingDir:p BadgerTables:mmap BadgerVlog:mmap BadgerCompressionLevel:3 WALDir:w MutationsMode:0 AuthToken: AllottedMemory:1024 HmacSecret:\*\*\*\* AccessJwtTtl:0s RefreshJwtTtl:0s AclRefreshInterval:0s}  
I0808 16:46:29.369154 140 server\_state.go:78] Setting Badger Compression Level: 3  
I0808 16:46:29.370194 143 init.go:102]

Dgraph version : v20.07.0  
Dgraph codename : shuri  
Dgraph SHA-256 : 4cd320fc6eab163ab68602a5122a6c82c8467c2ed5ac93478d5f40d44eec71c4  
Commit SHA-1 : d65e20530  
Commit timestamp : 2020-07-28 15:31:37 -0700  
Branch : HEAD  
Go version : go1.14.4

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.  
Copyright 2015-2020 Dgraph Labs, Inc.

I0808 16:46:29.374534 140 server\_state.go:87] Setting Badger table load option: mmap  
I0808 16:46:29.375011 140 server\_state.go:99] Setting Badger value log load option: mmap  
I0808 16:46:29.375447 140 server\_state.go:144] Opening write-ahead log BadgerDB with options: {Dir:w ValueDir:w SyncWrites:false TableLoadingMode:1 ValueLogLoadingMode:2 NumVersionsToKeep:1 ReadOnly:false Truncate:true Logger:0x2bcf318 Compression:2 InMemory:false MaxTableSize:67108864 LevelSizeMultiplier:10 MaxLevels:7 ValueThreshold:1048576 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 KeepL0InMemory:false MaxCacheSize:10485760 MaxBfCacheSize:0 LoadBloomsOnOpen:false NumLevelZeroTables:5 NumLevelZeroTablesStall:10 LevelOneSize:268435456 ValueLogFileSize:1073741823 ValueLogMaxEntries:10000 NumCompactors:2 CompactL0OnClose:true LogRotatesToFlush:2 ZSTDCompressionLevel:3 VerifyValueChecksum:false EncryptionKey: EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:false KeepBlockIndicesInCache:false KeepBlocksInCache:false managedTxns:false maxBatchCount:0 maxBatchSize:0}  
I0808 16:46:29.376825 143 run.go:108] Setting up grpc listener at: 0.0.0.0:5080  
I0808 16:46:29.379065 143 run.go:108] Setting up http listener at: 0.0.0.0:6080  
I0808 16:46:29.387620 140 log.go:34] All 0 tables opened in 0s  
I0808 16:46:29.399440 140 server\_state.go:78] Setting Badger Compression Level: 3  
I0808 16:46:29.401048 140 server\_state.go:87] Setting Badger table load option: mmap  
I0808 16:46:29.401660 140 server\_state.go:99] Setting Badger value log load option: mmap  
I0808 16:46:29.402138 140 server\_state.go:168] Opening postings BadgerDB with options: {Dir:p ValueDir:p SyncWrites:false TableLoadingMode:2 ValueLogLoadingMode:2 NumVersionsToKeep:2147483647 ReadOnly:false Truncate:true Logger:0x2bcf318 Compression:2 InMemory:false MaxTableSize:67108864 LevelSizeMultiplier:10 MaxLevels:7 ValueThreshold:1024 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 KeepL0InMemory:false MaxCacheSize:1073741824 MaxBfCacheSize:524288000 LoadBloomsOnOpen:false NumLevelZeroTables:5 NumLevelZeroTablesStall:10 LevelOneSize:268435456 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:2 CompactL0OnClose:true LogRotatesToFlush:2 ZSTDCompressionLevel:3 VerifyValueChecksum:false EncryptionKey: EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:false KeepBlockIndicesInCache:true KeepBlocksInCache:true managedTxns:false maxBatchCount:0 maxBatchSize:0}  
badger 2020/08/08 16:46:29 INFO: All 0 tables opened in 0s  
I0808 16:46:29.408112 143 node.go:148] Setting raft.Config to: &{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc0000765c0 Applied:0 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x2bcf318 DisableProposalForwarding:false}  
I0808 16:46:29.410259 143 node.go:326] Group 0 found 0 entries  
I0808 16:46:29.410301 143 log.go:34] 1 became follower at term 0  
I0808 16:46:29.410348 143 log.go:34] newRaft 1 [peers: , term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]  
I0808 16:46:29.410353 143 log.go:34] 1 became follower at term 1  
E0808 16:46:29.412402 143 raft.go:518] While proposing CID: Not Zero leader. Aborting proposal: cid:“64e90da1-54bd-4134-a0fd-c847b7a61aeb” . Retrying…  
I0808 16:46:29.413521 143 run.go:311] Running Dgraph Zero…  
I0808 16:46:29.414950 143 node.go:185] Setting conf state to nodes:1  
I0808 16:46:29.415393 143 raft.go:708] Done applying conf change at 0x1  
I0808 16:46:29.436254 140 log.go:34] All 0 tables opened in 0s  
I0808 16:46:29.440494 140 run.go:524] Bringing up GraphQL HTTP API at 0.0.0.0:8080/graphql  
I0808 16:46:29.441080 140 run.go:525] Bringing up GraphQL HTTP admin API at 0.0.0.0:8080/admin  
I0808 16:46:29.441530 140 run.go:557] gRPC server started. Listening on port 9080  
I0808 16:46:29.442004 140 run.go:558] HTTP server started. Listening on port 8080  
I0808 16:46:29.442404 140 groups.go:107] Current Raft Id: 0x0  
I0808 16:46:29.442860 140 worker.go:97] Worker listening at address: [::]:7080  
I0808 16:46:29.544172 140 pool.go:160] CONNECTING to localhost:5080  
I0808 16:46:29.546127 143 zero.go:422] Got connection request: cluster\_info\_only:true  
I0808 16:46:29.546181 143 log.go:34] 1 no leader at term 1; dropping index reading msg  
W0808 16:46:31.546290 143 node.go:674] [0x1] Read index context timed out  
I0808 16:46:31.546312 143 log.go:34] 1 no leader at term 1; dropping index reading msg  
I0808 16:46:31.812253 143 log.go:34] 1 is starting a new election at term 1  
I0808 16:46:31.812272 143 log.go:34] 1 became pre-candidate at term 1  
I0808 16:46:31.812275 143 log.go:34] 1 received MsgPreVoteResp from 1 at term 1  
I0808 16:46:31.812286 143 log.go:34] 1 became candidate at term 2  
I0808 16:46:31.812289 143 log.go:34] 1 received MsgVoteResp from 1 at term 2  
I0808 16:46:31.812298 143 log.go:34] 1 became leader at term 2  
I0808 16:46:31.812305 143 log.go:34] raft.node: 1 elected leader 1 at term 2  
I0808 16:46:31.812324 143 raft.go:673] I’ve become the leader, updating leases.  
I0808 16:46:31.812328 143 assign.go:42] Updated Lease id: 1. Txn Ts: 1  
E0808 16:46:32.414055 143 raft.go:518] While proposing CID: Not Zero leader. Aborting proposal: cid:“3c7be3f0-64af-4bea-99f2-a924a87eb30f” . Retrying…  
W0808 16:46:33.546341 143 node.go:674] [0x1] Read index context timed out  
I0808 16:46:33.546450 143 zero.go:440] Connected: cluster\_info\_only:true  
I0808 16:46:33.547854 143 zero.go:422] Got connection request: addr:“localhost:7080”  
I0808 16:46:33.548038 143 pool.go:160] CONNECTING to localhost:7080  
W0808 16:46:33.550017 143 pool.go:254] Connection lost with localhost:7080. Error: rpc error: code = Unknown desc = No node has been set up yet  
I0808 16:46:33.551039 143 zero.go:571] Connected: id:1 group\_id:1 addr:“localhost:7080”  
I0808 16:46:33.551605 140 groups.go:135] Connected to group zero. Assigned group: 1  
I0808 16:46:33.551641 140 groups.go:137] Raft Id after connection to Zero: 0x1  
I0808 16:46:33.551773 140 draft.go:210] Node ID: 0x1 with GroupID: 1  
I0808 16:46:33.551802 140 node.go:148] Setting raft.Config to: &{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc0001be780 Applied:0 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x2bcf318 DisableProposalForwarding:false}  
I0808 16:46:33.551850 140 node.go:326] Group 1 found 0 entries  
I0808 16:46:33.551856 140 draft.go:1632] New Node for group: 1  
I0808 16:46:33.551872 140 log.go:34] 1 became follower at term 0  
I0808 16:46:33.551887 140 log.go:34] newRaft 1 [peers: , term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]  
I0808 16:46:33.551891 140 log.go:34] 1 became follower at term 1  
I0808 16:46:33.551902 140 draft.go:160] Operation started with id: opRollup  
I0808 16:46:33.555922 140 groups.go:155] Server is ready  
I0808 16:46:33.555965 140 draft.go:1009] Found Raft progress: 0  
I0808 16:46:33.556029 140 groups.go:790] Got address of a Zero leader: localhost:5080  
I0808 16:46:33.556148 140 groups.go:804] Starting a new membership stream receive from localhost:5080.  
I0808 16:46:33.558008 140 groups.go:821] Received first state update from Zero: counter:3 groups:\<key:1 value:\<members:\<key:1 value:\<id:1 group\_id:1 addr:“localhost:7080” \> \> \> \> zeros:\<key:1 value:\<id:1 addr:“localhost:5080” leader:true \> \> maxRaftId:1  
I0808 16:46:33.558980 140 node.go:185] Setting conf state to nodes:1  
I0808 16:46:33.559538 140 log.go:34] 1 is starting a new election at term 1  
I0808 16:46:33.560234 140 log.go:34] 1 became pre-candidate at term 1  
I0808 16:46:33.560562 140 log.go:34] 1 received MsgPreVoteResp from 1 at term 1  
I0808 16:46:33.560917 140 log.go:34] 1 became candidate at term 2  
I0808 16:46:33.561211 140 log.go:34] 1 received MsgVoteResp from 1 at term 2  
I0808 16:46:33.561561 140 log.go:34] 1 became leader at term 2  
I0808 16:46:33.562166 140 log.go:34] raft.node: 1 elected leader 1 at term 2  
I0808 16:46:33.563047 140 pool.go:160] CONNECTING to localhost:7080  
I0808 16:46:34.453177 140 admin.go:605] No GraphQL schema in Dgraph; serving empty GraphQL API  
I0808 16:46:34.556893 140 groups.go:873] Leader idx=0x1 of group=1 is connecting to Zero for txn updates  
I0808 16:46:34.558119 140 groups.go:882] Got Zero leader: localhost:5080  
I0808 16:46:34.563275 140 groups.go:481] Serving tablet for: dgraph.type  
I0808 16:46:34.565650 140 draft.go:160] Operation started with id: opIndexing  
I0808 16:46:34.565672 140 index.go:912] Deleting index for attr dgraph.type and tokenizers   
I0808 16:46:34.565676 140 index.go:926] Deleting index for attr dgraph.type and tokenizers [exact]  
I0808 16:46:34.565683 140 log.go:34] DropPrefix Called  
I0808 16:46:34.565689 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.565706 140 draft.go:115] Operation completed with id: opRollup  
I0808 16:46:34.569101 140 log.go:34] DropPrefix done  
I0808 16:46:34.569421 140 log.go:34] Resuming writes  
I0808 16:46:34.569634 140 log.go:34] DropPrefix Called  
I0808 16:46:34.570050 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.571365 140 log.go:34] DropPrefix done  
I0808 16:46:34.571754 140 log.go:34] Resuming writes  
I0808 16:46:34.572430 140 log.go:34] DropPrefix Called  
I0808 16:46:34.573380 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.579461 140 log.go:34] DropPrefix done  
I0808 16:46:34.580041 140 log.go:34] Resuming writes  
I0808 16:46:34.580525 140 log.go:34] DropPrefix Called  
I0808 16:46:34.581118 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.582815 140 log.go:34] DropPrefix done  
I0808 16:46:34.583729 140 log.go:34] Resuming writes  
I0808 16:46:34.624708 140 log.go:34] All 0 tables opened in 0s  
I0808 16:46:34.626422 140 log.go:34] Rebuilding index for predicate dgraph.type (1/2): Sent 0 keys  
I0808 16:46:34.626880 140 log.go:34] Rebuilding index for predicate dgraph.type (2/2): Sent 0 keys  
I0808 16:46:34.627429 140 log.go:34] Got compaction priority: {level:0 score:1.73 dropPrefixes:}  
I0808 16:46:34.628700 140 index.go:957] Rebuilding index for attr dgraph.type and tokenizers [exact]  
I0808 16:46:34.631180 140 groups.go:481] Serving tablet for: dgraph.graphql.schema  
I0808 16:46:34.671958 140 log.go:34] All 0 tables opened in 0s  
I0808 16:46:34.673696 140 log.go:34] Rebuilding index for predicate dgraph.type (1/2): Sent 0 keys  
I0808 16:46:34.674128 140 log.go:34] Rebuilding index for predicate dgraph.type (2/2): Sent 0 keys  
I0808 16:46:34.674633 140 log.go:34] Got compaction priority: {level:0 score:1.73 dropPrefixes:}  
I0808 16:46:34.675669 140 mutation.go:186] Done schema update predicate:“dgraph.type” value\_type:STRING directive:INDEX tokenizer:“exact” list:true  
I0808 16:46:34.676409 140 draft.go:115] Operation completed with id: opIndexing  
E0808 16:46:34.676163 140 draft.go:670] Applying proposal. Error: operation opIndexing is already running. Proposal: "mutations:\<group\_id:1 start\_ts:3 schema:\<predicate:"dgraph.graphql.schema" value\_type:STRING \> \> key:"01-1597834645204707386" index:7 ".  
E0808 16:46:34.678331 140 groups.go:253] Error while proposing initial schema: operation opIndexing is already running  
I0808 16:46:34.780697 140 draft.go:160] Operation started with id: opIndexing  
I0808 16:46:34.780764 140 draft.go:115] Operation completed with id: opIndexing  
I0808 16:46:34.783725 140 groups.go:481] Serving tablet for: dgraph.graphql.xid  
I0808 16:46:34.784707 140 draft.go:160] Operation started with id: opIndexing  
I0808 16:46:34.784728 140 index.go:912] Deleting index for attr dgraph.graphql.xid and tokenizers   
I0808 16:46:34.784732 140 index.go:926] Deleting index for attr dgraph.graphql.xid and tokenizers [exact]  
I0808 16:46:34.784738 140 log.go:34] DropPrefix Called  
I0808 16:46:34.784744 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.788791 140 log.go:34] Got compaction priority: {level:0 score:1.74 dropPrefixes:[[0 0 18 100 103 114 97 112 104 46 103 114 97 112 104 113 108 46 120 105 100 2 2] [33 98 97 100 103 101 114 33 109 111 118 101 0 0 18 100 103 114 97 112 104 46 103 114 97 112 104 113 108 46 120 105 100 2 2]]}  
I0808 16:46:34.789290 140 log.go:34] Running for level: 0  
I0808 16:46:34.791559 140 log.go:34] LOG Compact 0-\>1, del 1 tables, add 1 tables, took 1.905807ms  
I0808 16:46:34.791983 140 log.go:34] Compaction for level: 0 DONE  
I0808 16:46:34.792332 140 log.go:34] DropPrefix done  
I0808 16:46:34.792686 140 log.go:34] Resuming writes  
I0808 16:46:34.793105 140 log.go:34] DropPrefix Called  
I0808 16:46:34.793482 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.794960 140 log.go:34] Dropping prefix at level 1 (1 tableGroups)  
I0808 16:46:34.797587 140 log.go:34] LOG Compact 1-\>1, del 1 tables, add 1 tables, took 2.04377ms  
I0808 16:46:34.798141 140 log.go:34] DropPrefix done  
I0808 16:46:34.798511 140 log.go:34] Resuming writes  
I0808 16:46:34.798892 140 log.go:34] DropPrefix Called  
I0808 16:46:34.799314 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.800799 140 log.go:34] DropPrefix done  
I0808 16:46:34.801249 140 log.go:34] Resuming writes  
I0808 16:46:34.801667 140 log.go:34] DropPrefix Called  
I0808 16:46:34.802069 140 log.go:34] Writes flushed. Stopping compactions now…  
I0808 16:46:34.803540 140 log.go:34] Dropping prefix at level 1 (1 tableGroups)  
I0808 16:46:34.805465 140 log.go:34] LOG Compact 1-\>1, del 1 tables, add 1 tables, took 1.544095ms  
I0808 16:46:34.805867 140 log.go:34] DropPrefix done  
I0808 16:46:34.806186 140 log.go:34] Resuming writes  
I0808 16:46:34.806763 140 index.go:957] Rebuilding index for attr dgraph.graphql.xid and tokenizers [exact]  
I0808 16:46:34.811843 140 log.go:34] All 0 tables opened in 0s  
I0808 16:46:34.813292 140 log.go:34] Rebuilding index for predicate dgraph.graphql.xid (1/2): Sent 0 keys  
I0808 16:46:34.813738 140 log.go:34] Rebuilding index for predicate dgraph.graphql.xid (2/2): Sent 0 keys  
I0808 16:46:34.814266 140 log.go:34] Got compaction priority: {level:0 score:1.73 dropPrefixes:}  
I0808 16:46:34.815309 140 mutation.go:186] Done schema update predicate:“dgraph.graphql.xid” value\_type:STRING directive:INDEX tokenizer:“exact” upsert:true  
I0808 16:46:34.815803 140 draft.go:115] Operation completed with id: opIndexing  
I0808 16:46:35.414921 143 raft.go:510] CID set for cluster: 8d7470bb-2c6d-4c8d-8b54-61e560f003e6  
I0808 16:46:35.416397 143 license\_ee.go:45] Enterprise trial license proposed to the cluster: key:“z1-10536016524465569627” license:\<maxNodes:18446744073709551615 expiryTs:1599497195 \>  
I0808 16:46:44.677295 140 draft.go:160] Operation started with id: opRollup

When I try to enter localhost:8000, it doesn’t work.

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/1/1c25a2ad57f49fb21b715a3d4cdbfb8eac439aab.png)  
ERR\_CONNECTION\_REFUSED

What can I do?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [August 8, 2020, 5:16pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/2 "2020-08-08T17:16:52Z")

</div>

Are you sure you are using a native Docker installation? If not, you should try to get the machine’s (in general it is a hyper-v VM on Windows) IP. And access it via it’s IP. e.g: 192.168.99.1:8000

If it is a native installation, check your docker configs. Not sure how it works on Windows. In my mind, it should forward the port to the localhost automatically.

You can also do a test to check if the Ratel UI is really running.

Run:

```auto
docker ps

```

Get the container ID and then:

```auto
docker exec -it $ContainerID sh

```

So you gonna be inside the container. You can run:

```auto
curl localhost:8000

```

If you get a giant HTLM body in the response it means that it is running and the issue is related to Docker.

```auto
<!doctype html><html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">

```

Cheers.

---

<div class="post-metadata">

**Author:** ![abhijit-kar](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/abhijit-kar/32/3726_2.png) [@abhijit-kar](https://discuss.dgraph.io/u/abhijit-kar)\
**Post date:** [August 8, 2020, 5:37pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/3 "2020-08-08T17:37:53Z")

</div>

localhost didn’t work for me while trying out Dgraph.

But when I used:

> 127.0.0.1/8000

It worked like charm!

---

<div class="post-metadata">

**Author:** ![APS96](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@APS96](https://discuss.dgraph.io/u/APS96)\
**Post date:** [August 8, 2020, 5:50pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/4 "2020-08-08T17:50:05Z")

</div>

Thank you so much. I am using a native Docker installation and I thought it would forward to localhost automatically, but it didn’t. When I tried it with the machine’s IP it worked great (192.168.99.1:8000). Thank you once again for your fast solution.

---

<div class="post-metadata">

**Author:** ![APS96](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@APS96](https://discuss.dgraph.io/u/APS96)\
**Post date:** [August 8, 2020, 5:51pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/5 "2020-08-08T17:51:51Z")

</div>

The 127.0.0.1 I think is my localhost so it’s not working. I needed to use the IP of the machine that uses docker since it’s not forwarding to the localhost automatically. But thank you for you solution, I was so stressed out hehe

---

<div class="post-metadata">

**Author:** ![BenW](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/benw/32/7532_2.png) [@BenW](https://discuss.dgraph.io/u/BenW)\
**Post date:** [May 5, 2021, 9:12am UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/6 "2021-05-05T09:12:43Z")

</div>

I have this issue. This is what my terminal output looks like:

```auto
❯ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
08563dd52f61 dgraph/standalone:v21.03.0 "/run.sh" 13 minutes ago Up 13 minutes 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:9080->9080/tcp, :::9080->9080/tcp cranky_dirac
❯ docker exec -it 08563dd52f61 sh
# curl localhost:8000
curl: (7) Failed to connect to localhost port 8000: Connection refused
# ls
p t w zw
# pwd
/dgraph
# curl 0.0.0.0:8000
curl: (7) Failed to connect to 0.0.0.0 port 8000: Connection refused
# curl localhost:8080
Dgraph browser is available for running separately using the dgraph-ratel binary#

```

I assumed that `dgraph-ratel` was included as part of the standalone docker image? This is what is specified by the docs: [https://dgraph.io/docs/tutorial-1/](https://dgraph.io/docs/tutorial-1/)

EDIT: Maybe this is the issue: [Dgraph-ratel binary missing in docker image v21.03.0 - #4 by MichelDiz](http://discuss.hypermode.com/t/dgraph-ratel-binary-missing-in-docker-image-v21-03-0/13628/4)

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 5, 2021, 11:54am UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/7 "2021-05-05T11:54:37Z")

</div>

> [@BenW](#):
>
> I assumed that `dgraph-ratel` was included as part of the standalone docker image?

I don’t think so. As Ratel was a kind of a “bundle” in the main binary deployment.

Run [play.dgraph.io](http://play.dgraph.io)

Cheers.

---

<div class="post-metadata">

**Author:** ![BenW](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/benw/32/7532_2.png) [@BenW](https://discuss.dgraph.io/u/BenW)\
**Post date:** [May 5, 2021, 12:21pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/8 "2021-05-05T12:21:22Z")

</div>

I’m trying to set up a local development environment, are you suggesting I use a hosted Dgraph instance for development?

EDIT: Seems like I need to build Ratel from source now [ratel/INSTRUCTIONS.md at master · dgraph-io/ratel · GitHub](https://github.com/dgraph-io/ratel/blob/master/INSTRUCTIONS.md)

---

<div class="post-metadata">

**Author:** ![iluminae](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/iluminae/32/7367_2.png) [@iluminae](https://discuss.dgraph.io/u/iluminae)\
**Post date:** [May 5, 2021, 4:08pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/9 "2021-05-05T16:08:06Z")

</div>

The suggestion is to use [play.dgraph.io](http://play.dgraph.io) and use the connection settings to connect to 127.0.0.1:8080 (or wherever your database actually is)

The only reason you would want to run ratel is if you cannot access the internet, which will be a very small amount of users.

---

<div class="post-metadata">

**Author:** ![onuryartasi](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/onuryartasi/32/8164_2.png) [@onuryartasi](https://discuss.dgraph.io/u/onuryartasi)\
**Post date:** [May 12, 2021, 8:38am UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/10 "2021-05-12T08:38:03Z")

</div>

Hi,  
When I check the image with version `dgraph/standalone:v21.03.0` I can’t see a running 8000 port. Actually I think this image is the source of the problem.

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/1/11db47b1e59cd363ba48861914a861df1059e878.png)

When I change image version to `dgraph/standalone:v20.03.0` everything okey.  
I can’t send second image because of I’m a new user.

```bash
root@ccfbeeefe1d9:/dgraph# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 :::8080 :::* LISTEN 37/dgraph
tcp6 0 0 :::9080 :::* LISTEN 37/dgraph
tcp6 0 0 :::5080 :::* LISTEN 46/dgraph
tcp6 0 0 :::6080 :::* LISTEN 46/dgraph
tcp6 0 0 :::8000 :::* LISTEN 13/dgraph-ratel
tcp6 0 0 :::7080 :::* LISTEN 37/dgraph

```

Source of the problem is this binary `/usr/local/bin/dgraph-ratel` doesn’t exists in `dgraph/standalone:v21.03.0`

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 12, 2021, 12:53pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/11 "2021-05-12T12:53:01Z")

</div>

Ratel isn’t in the image anymore, use [http://play.dgraph.io/](http://play.dgraph.io/).

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 14, 2021, 8:37pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/12 "2021-05-14T20:37:36Z")

</div>

@joaquin has published the [Ratel image](https://hub.docker.com/r/dgraph/ratel) [Docker Hub](https://hub.docker.com/r/dgraph/ratel)

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 27, 2021, 2:04pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/13 "2021-05-27T14:04:37Z")

</div>

A post was split to a new topic: [Fix tutorial](https://discuss.dgraph.io/t/fix-tutorial/14333)

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 27, 2021, 2:05pm UTC](https://discuss.dgraph.io/t/localhost-8000-connection-refused/9309/14 "2021-05-27T14:05:00Z")

</div>


