Cannot connect to standalone Dgraph server

I just set up a dgraph standalone docker container following the get started docs but I can’t connect to my dgraph server from Ratel and also directly accessing the url in the browser results in a 404 whereas for other people it apparently shows something about “Dgraph browser is available for running separately using the dgraph-ratel binary”. I tried it with all three ports mapped from docker (8000, 8080, 9080) and none of them works. Though, I’ve seen other ports like 7080 or 5080 in the console so am I supposed to use any of those?

image

I’m on the latest version - v22.0.0

logs

{“log”:"\u001b[0;33m\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.296430235Z”}
{“log”:“Warning: This standalone version is meant for quickstart purposes only.\n”,“stream”:“stdout”,“time”:“2022-10-27T17:29:35.296474631Z”}
{“log”:" It is NOT RECOMMENDED for production environments.\u001b[0;0m\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.296484463Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: ContextifyFrames\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.77672528Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: Environment\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.7767595Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: Modules\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.776765313Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: IgnoreErrors\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.776770107Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: ContextifyFrames\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.791302742Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: Environment\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.791336949Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: Modules\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.79134284Z”}
{“log”:"[Sentry] 2022/10/27 17:29:35 Integration installed: IgnoreErrors\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:35.791347725Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: ContextifyFrames\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.502643086Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: Environment\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.503098594Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: Modules\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.503147858Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: IgnoreErrors\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.503156899Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: ContextifyFrames\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.52396361Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: Environment\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.524076982Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: Modules\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.52418745Z”}
{“log”:"[Sentry] 2022/10/27 17:29:36 Integration installed: IgnoreErrors\n",“stream”:“stdout”,“time”:“2022-10-27T17:29:36.524273327Z”}
{“log”:“I1027 17:29:36.739062 30 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 --telemetry “sentry=false;” flag. For more info, see https ://dgraph.io/docs/howto/#data-handling.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.739382517Z”}
{“log”:“I1027 17:29:36.792474 38 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 --telemetry “sentry=false;” flag. For more info, see https ://dgraph.io/docs/howto/#data-handling.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.792682747Z”}
{“log”:“I1027 17:29:36.958080 30 init.go:110] \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958329585Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958365894Z”}
{“log”:“Dgraph version : v22.0.0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958371471Z”}
{“log”:“Dgraph codename : dgraph\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958376095Z”}
{“log”:“Dgraph SHA-256 : bc4cc6d649fa2328df1d9d5702b30e2204934ba0b58cbbfa6816d52e98a9d191\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958380509Z”}
{“log”:“Commit SHA-1 : c36206a\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958385061Z”}
{“log”:“Commit timestamp : 2022-10-21 11:32:45 +0000\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958389529Z”}
{“log”:“Branch : release/v22.0.0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958394246Z”}
{“log”:“Go version : go1.18.5\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.95839857Z”}
{“log”:“jemalloc enabled : true\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958402821Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958407037Z”}
{“log”:“For Dgraph official documentation, visit https ://dgraph.io/docs.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958412832Z”}
{“log”:“For discussions about Dgraph , visit https ://discuss.dgraph.io.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958417151Z”}
{“log”:“For fully-managed Dgraph Cloud , visit https ://dgraph.io/cloud.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958421371Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958427049Z”}
{“log”:“Licensed variously under the Apache Public License 2.0 and Dgraph Community License.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958431258Z”}
{“log”:“Copyright 2015-2021 Dgraph Labs, Inc.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958435548Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:36.95843976Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958443886Z”}
{“log”:“I1027 17:29:36.958177 30 run.go:254] Setting Config to: {raft:0xc000114128 telemetry:0xc0006d6028 limit:0xc000114130 bindall:true portOffset:0 numReplicas:1 peer: w:zw rebalanceInterval:480000000000 tlsClientConfig:\u003cnil\u003e audit:\u003cnil\u003e limiterConfig:0xc000200380}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958530015Z”}
{“log”:“I1027 17:29:36.958363 30 run.go:144] Setting up grpc listener at: 0.0.0.0:5080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.958553372Z”}
{“log”:“I1027 17:29:36.959161 30 run.go:144] Setting up http listener at: 0.0.0.0:6080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.959242576Z”}
{“log”:“I1027 17:29:36.970229 30 log.go:295] Found file: 1 First Index: 1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.970379405Z”}
{“log”:“I1027 17:29:36.972339 30 storage.go:125] Init Raft Storage with snap: 0, first: 1, last: 16\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.972445272Z”}
{“log”:“I1027 17:29:36.972613 30 node.go:153] Setting raft.Config to: \u0026{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc000220b00 Applied:0 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x3111300 DisableProposalForwarding:false}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.972718066Z”}
{“log”:“I1027 17:29:36.973610 30 node.go:323] Found hardstate: {Term:3 Vote:1 Commit:16 XXX_unrecognized:}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.973727288Z”}
{“log”:“I1027 17:29:36.973710 30 node.go:328] Group 0 found 16 entries\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.973780556Z”}
{“log”:“I1027 17:29:36.973745 30 raft.go:633] Restarting node for dgraphzero\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.973788944Z”}
{“log”:“I1027 17:29:36.973795 30 log.go:34] 1 became follower at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.973850855Z”}
{“log”:“I1027 17:29:36.973828 30 log.go:34] newRaft 1 [peers: , term: 3, commit: 16, applied: 0, lastindex: 16, lastterm: 3]\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.973891581Z”}
{“log”:“I1027 17:29:36.974186 30 run.go:388] Running Dgraph Zero…\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.974264761Z”}
{“log”:“I1027 17:29:36.974506 30 node.go:190] Setting conf state to nodes:1 \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.97472319Z”}
{“log”:“I1027 17:29:36.974682 30 raft.go:993] Done applying conf change at 0x1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.974731926Z”}
{“log”:“I1027 17:29:36.974807 30 pool.go:164] CONN: Connecting to localhost:7080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.974897816Z”}
{“log”:“W1027 17:29:36.974833 30 pool.go:211] CONN: Shutting down extra connection to localhost:7080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.974907158Z”}
{“log”:“I1027 17:29:36.975191 30 pool.go:321] CONN: Returning from MonitorHealth for localhost:7080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:36.975271897Z”}
{“log”:“I1027 17:29:37.018111 38 init.go:110] \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018405259Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018436474Z”}
{“log”:“Dgraph version : v22.0.0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018440869Z”}
{“log”:“Dgraph codename : dgraph\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018444586Z”}
{“log”:“Dgraph SHA-256 : bc4cc6d649fa2328df1d9d5702b30e2204934ba0b58cbbfa6816d52e98a9d191\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018448346Z”}
{“log”:“Commit SHA-1 : c36206a\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018452212Z”}
{“log”:“Commit timestamp : 2022-10-21 11:32:45 +0000\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018456014Z”}
{“log”:“Branch : release/v22.0.0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018459629Z”}
{“log”:“Go version : go1.18.5\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018463337Z”}
{“log”:“jemalloc enabled : true\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018466815Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018470323Z”}
{“log”:“For Dgraph official documentation, visit https ://dgraph.io/docs.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018473745Z”}
{“log”:“For discussions about Dgraph , visit https ://discuss.dgraph.io.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018477266Z”}
{“log”:“For fully-managed Dgraph Cloud , visit https ://dgraph.io/cloud.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018492288Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018497056Z”}
{“log”:“Licensed variously under the Apache Public License 2.0 and Dgraph Community License.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018500487Z”}
{“log”:“Copyright 2015-2021 Dgraph Labs, Inc.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018504132Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:37.01850765Z”}
{“log”:"\n",“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018511256Z”}
{“log”:“I1027 17:29:37.018145 38 run.go:754] x.Config: {PortOffset:0 Limit:normalize-node=10000; mutations-nquad=1000000; disallow-drop=false; mutations=allow; query-edge=1000000; query-timeout=0ms; txn-abort-after=5m; max-retries=-1; max-pending-queries=10000 LimitMutationsNquad:1000000 LimitQueryEdge:1000000 BlockClusterWideDrop:false LimitNormalizeNode:10000 QueryTimeout:0s MaxRetries:-1 GraphQL:introspection=true; debug=false; extensions=true; poll-interval=1s; lambda-url= GraphQLDebug:false}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018514726Z”}
{“log”:“I1027 17:29:37.018209 38 run.go:755] x.WorkerConfig: {TmpDir:t ExportPath:export Trace:ratio=0.01; jaeger=; datadog= MyAddr: ZeroAddr:[localhost:5080] TLSClientConfig:\u003cnil\u003e TLSServerConfig:\u003cnil\u003e Raft:group=; learner=false; snapshot-after-entries=10000; snapshot-after-duration=30m; pending-proposals=256; idx= Badger:{Dir: ValueDir: SyncWrites:false NumVersionsToKeep:1 ReadOnly:false Logger:0xc00041e4d0 Compression:1 InMemory:false MetricsEnabled:true NumGoroutines:8 MemTableSize:67108864 BaseTableSize:2097152 BaseLevelSize:10485760 LevelSizeMultiplier:10 TableSizeMultiplier:2 MaxLevels:7 VLogPercentile:0 ValueThreshold:1048576 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:697932185 IndexCacheSize:375809638 NumLevelZeroTables:5 NumLevelZeroTablesStall:15 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:4 CompactL0OnClose:false LmaxCompaction:false ZSTDCompressionLevel:0 VerifyValueChecksum:false EncryptionKey: EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:true NamespaceOffset:-1 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0} WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] StrictMutations:false AclEnabled:false HmacSecret:**** AbortOlderThan:5m0s ProposedGroupId:0 StartTime:2022-10-27 17:29:36.28988888 +0000 UTC m=+0.255435589 Ludicrous:enabled=false; concurrency=2000 LudicrousEnabled:false Security:whitelist=0.0.0.0/0; token= EncryptionKey:**** LogRequest:0 HardSync:false Audit:false}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018526954Z”}
{“log”:“I1027 17:29:37.018335 38 run.go:756] worker.Config: {PostingDir:p WALDir:w MutationsMode:0 AuthToken: HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s CachePercentage:0,65,35 CacheMb:1024 Audit:\u003cnil\u003e ChangeDataConf:file=; kafka=; sasl_user=; sasl_password=; ca_cert=; client_cert=; client_key=; sasl-mechanism=PLAIN;}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.018537582Z”}
{“log”:“I1027 17:29:37.020477 38 log.go:295] Found file: 1 First Index: 1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.020623496Z”}
{“log”:“I1027 17:29:37.024045 38 storage.go:125] Init Raft Storage with snap: 0, first: 1, last: 12\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.024224499Z”}
{“log”:“I1027 17:29:37.024143 38 server_state.go:140] Opening postings BadgerDB with options: {Dir:p ValueDir:p SyncWrites:false NumVersionsToKeep:2147483647 ReadOnly:false Logger:0x3111300 Compression:1 InMemory:false MetricsEnabled:true NumGoroutines:8 MemTableSize:67108864 BaseTableSize:2097152 BaseLevelSize:10485760 LevelSizeMultiplier:10 TableSizeMultiplier:2 MaxLevels:7 VLogPercentile:0 ValueThreshold:1048576 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:697932185 IndexCacheSize:375809638 NumLevelZeroTables:5 NumLevelZeroTablesStall:15 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:4 CompactL0OnClose:false LmaxCompaction:false ZSTDCompressionLevel:0 VerifyValueChecksum:false EncryptionKey: EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:false NamespaceOffset:1 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.02433243Z”}
{“log”:“I1027 17:29:37.038902 38 log.go:34] All 1 tables opened in 1ms\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.039173631Z”}
{“log”:“I1027 17:29:37.040016 38 log.go:34] Discard stats nextEmptySlot: 0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.040146989Z”}
{“log”:“I1027 17:29:37.040237 38 log.go:34] Set nextTxnTs to 1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.04031454Z”}
{“log”:“I1027 17:29:37.040782 38 log.go:34] Deleting empty file: p/000001.vlog\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.040874406Z”}
{“log”:“I1027 17:29:37.043357 38 groups.go:100] Current Raft Id: 0x1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.043764529Z”}
{“log”:“I1027 17:29:37.043374 38 groups.go:116] Sending member request to Zero: id:1 addr:“localhost:7080” \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.043782748Z”}
{“log”:“I1027 17:29:37.043616 38 worker.go:114] Worker listening at address: [::]:7080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.043787474Z”}
{“log”:“I1027 17:29:37.044624 38 run.go:567] Bringing up GraphQL HTTP API at 0.0.0.0:8080/graphql\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.044780499Z”}
{“log”:“I1027 17:29:37.044640 38 run.go:568] Bringing up GraphQL HTTP admin API at 0.0.0.0:8080/admin\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.044794253Z”}
{“log”:“I1027 17:29:37.044650 38 run.go:595] gRPC server started. Listening on port 9080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.04479868Z”}
{“log”:“I1027 17:29:37.044657 38 run.go:596] HTTP server started. Listening on port 8080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.044802855Z”}
{“log”:“E1027 17:29:37.044678 38 groups.go:1224] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err: \u003cnil\u003e\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.044806855Z”}
{“log”:“I1027 17:29:37.143929 38 pool.go:164] CONN: Connecting to localhost:5080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.144126775Z”}
{“log”:“I1027 17:29:37.145560 30 zero.go:506] Got connection request: cluster_info_only:true \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.145839932Z”}
{“log”:“I1027 17:29:37.145682 30 log.go:34] 1 no leader at term 3; dropping index reading msg\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.145877405Z”}
{“log”:“E1027 17:29:37.978830 30 pool.go:311] CONN: Unable to connect with localhost:7080 : rpc error: code = Unknown desc = No node has been set up yet\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:37.979037371Z”}
{“log”:“E1027 17:29:38.045923 38 groups.go:1224] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err: \u003cnil\u003e\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:38.046190691Z”}
{“log”:“E1027 17:29:38.980693 30 pool.go:311] CONN: Unable to connect with localhost:7080 : rpc error: code = Unknown desc = No node has been set up yet\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:38.980966463Z”}
{“log”:“E1027 17:29:39.047050 38 groups.go:1224] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err: \u003cnil\u003e\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.047335814Z”}
{“log”:“W1027 17:29:39.146122 30 node.go:710] [0x1] Read index context timed out\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.146380364Z”}
{“log”:“I1027 17:29:39.146207 30 log.go:34] 1 no leader at term 3; dropping index reading msg\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.146452919Z”}
{“log”:“I1027 17:29:39.874527 30 log.go:34] 1 is starting a new election at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874750182Z”}
{“log”:“I1027 17:29:39.874569 30 log.go:34] 1 became pre-candidate at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874807857Z”}
{“log”:“I1027 17:29:39.874575 30 log.go:34] 1 received MsgPreVoteResp from 1 at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874813802Z”}
{“log”:“I1027 17:29:39.874598 30 log.go:34] 1 became candidate at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.87481776Z”}
{“log”:“I1027 17:29:39.874602 30 log.go:34] 1 received MsgVoteResp from 1 at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874821732Z”}
{“log”:“I1027 17:29:39.874613 30 log.go:34] 1 became leader at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874825548Z”}
{“log”:“I1027 17:29:39.874621 30 log.go:34] raft.node: 1 elected leader 1 at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874829344Z”}
{“log”:“I1027 17:29:39.874657 30 raft.go:939] I’ve become the leader, updating leases.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874859022Z”}
{“log”:“I1027 17:29:39.874666 30 assign.go:47] Updated UID: 1. Txn Ts: 20001. NsID: 1.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.874871408Z”}
{“log”:“E1027 17:29:39.982212 30 pool.go:311] CONN: Unable to connect with localhost:7080 : rpc error: code = Unknown desc = No node has been set up yet\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:39.982480532Z”}
{“log”:“E1027 17:29:40.047691 38 groups.go:1224] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err: \u003cnil\u003e\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:40.047934788Z”}
{“log”:“E1027 17:29:40.984207 30 pool.go:311] CONN: Unable to connect with localhost:7080 : rpc error: code = Unknown desc = No node has been set up yet\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:40.98445398Z”}
{“log”:“E1027 17:29:41.048834 38 groups.go:1224] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err: \u003cnil\u003e\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.049020569Z”}
{“log”:“W1027 17:29:41.146993 30 node.go:710] [0x1] Read index context timed out\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.147250648Z”}
{“log”:“I1027 17:29:41.147214 30 zero.go:531] Connected: cluster_info_only:true \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.147546225Z”}
{“log”:“I1027 17:29:41.147867 30 zero.go:506] Got connection request: id:1 addr:“localhost:7080” \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.147980384Z”}
{“log”:“I1027 17:29:41.147961 30 zero.go:653] Connected: id:1 addr:“localhost:7080” \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.148078867Z”}
{“log”:“I1027 17:29:41.148297 38 groups.go:135] Connected to group zero. Assigned group: 0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.148393216Z”}
{“log”:“I1027 17:29:41.148421 38 groups.go:137] Raft Id after connection to Zero: 0x1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.148488896Z”}
{“log”:“I1027 17:29:41.148534 38 draft.go:270] Node ID: 0x1 with GroupID: 1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.148611441Z”}
{“log”:“I1027 17:29:41.148611 38 draft.go:279] RaftContext: id:1 group:1 addr:“localhost:7080” \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.148733575Z”}
{“log”:“I1027 17:29:41.148898 38 node.go:153] Setting raft.Config to: \u0026{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc00015c8c0 Applied:0 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x3111300 DisableProposalForwarding:false}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.149004855Z”}
{“log”:“I1027 17:29:41.149435 38 node.go:323] Found hardstate: {Term:3 Vote:1 Commit:12 XXX_unrecognized:}\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.1495097Z”}
{“log”:“I1027 17:29:41.149621 38 node.go:328] Group 1 found 12 entries\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.149682637Z”}
{“log”:“I1027 17:29:41.149798 38 draft.go:1826] Restarting node for group: 1\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.149857987Z”}
{“log”:“I1027 17:29:41.149960 38 log.go:34] 1 became follower at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.150013992Z”}
{“log”:“I1027 17:29:41.150122 38 log.go:34] newRaft 1 [peers: , term: 3, commit: 12, applied: 0, lastindex: 12, lastterm: 3]\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.150191783Z”}
{“log”:“I1027 17:29:41.150332 38 draft.go:211] Operation started with id: opRollup\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.150397295Z”}
{“log”:“I1027 17:29:41.150660 38 draft.go:1208] Found Raft progress: 0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.150724812Z”}
{“log”:“I1027 17:29:41.150875 38 groups.go:863] Got address of a Zero leader: localhost:5080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.150983259Z”}
{“log”:“I1027 17:29:41.150894 38 node.go:190] Setting conf state to nodes:1 \n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.151167198Z”}
{“log”:“I1027 17:29:41.151508 38 groups.go:877] Starting a new membership stream receive from localhost:5080.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.151582356Z”}
{“log”:“I1027 17:29:41.152468 38 groups.go:894] Received first state update from Zero: counter:18 groups:\u003ckey:1 value:\u003cmembers:\u003ckey:1 value:\u003cid:1 group_id:1 addr:“localhost:7080” last_update:1666891781 \u003e \u003e tablets:\u003ckey:”\000\000\000\000\000\000\000\000dgraph.drop.op" value:\u003cgroup_id:1 predicate:"\000\000\000\000\000\000\000\000dgraph.drop.op" \u003e \u003e tablets:\u003ckey:"\000\000\000\000\000\000\000\000dgraph.graphql.p_query" value:\u003cgroup_id:1 predicate:"\000\000\000\000\000\000\000\000dgraph.graphql.p_query" \u003e \u003e tablets:\u003ckey:"\000\000\000\000\000\000\000\000dgraph.graphql.schema" value:\u003cgroup_id:1 predicate:"\000\000\000\000\000\000\000\000dgraph.graphql.schema" \u003e \u003e tablets:\u003ckey:"\000\000\000\000\000\000\000\000dgraph.graphql.xid" value:\u003cgroup_id:1 predicate:"\000\000\000\000\000\000\000\000dgraph.graphql.xid" \u003e \u003e tablets:\u003ckey:"\000\000\000\000\000\000\000\000dgraph.type" value:\u003cgroup_id:1 predicate:"\000\000\000\000\000\000\000\000dgraph.type" \u003e \u003e checksum:12696972231616318625 \u003e \u003e zeros:\u003ckey:1 value:\u003cid:1 addr:“localhost:5080” leader:true \u003e \u003e maxTxnTs:20000 maxRaftId:1 cid:“1894e9a7-7a42-4d01-8e87-334dddcbd65a” license:\u003cmaxNodes:18446744073709551615 expiryTs:1669481712 enabled:true \u003e \n",“stream”:“stderr”,“time”:“2022-10-27T17:29:41.152820869Z”}
{“log”:“I1027 17:29:41.985566 30 pool.go:327] CONN: Re-established connection with localhost:7080.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:41.985776326Z”}
{“log”:“E1027 17:29:42.046554 38 admin.go:862] namespace: 0. Error reading GraphQL schema: Please retry again, server is not ready to accept requests.\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:42.046801322Z”}
{“log”:“I1027 17:29:42.049838 38 pool.go:164] CONN: Connecting to localhost:7080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:42.049967834Z”}
{“log”:“I1027 17:29:42.151685 38 groups.go:166] Server is ready\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:42.151975336Z”}
{“log”:“I1027 17:29:42.151711 38 access_ee.go:418] InitializeAcl closed\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:42.152024941Z”}
{“log”:“I1027 17:29:44.050907 38 log.go:34] 1 is starting a new election at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051117359Z”}
{“log”:“I1027 17:29:44.050934 38 log.go:34] 1 became pre-candidate at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051177001Z”}
{“log”:“I1027 17:29:44.050939 38 log.go:34] 1 received MsgPreVoteResp from 1 at term 3\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051186446Z”}
{“log”:“I1027 17:29:44.050955 38 log.go:34] 1 became candidate at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051192964Z”}
{“log”:“I1027 17:29:44.050959 38 log.go:34] 1 received MsgVoteResp from 1 at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051198905Z”}
{“log”:“I1027 17:29:44.050969 38 log.go:34] 1 became leader at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051205905Z”}
{“log”:“I1027 17:29:44.050976 38 log.go:34] raft.node: 1 elected leader 1 at term 4\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.051341874Z”}
{“log”:“I1027 17:29:44.150864 38 groups.go:949] Leader idx=0x1 of group=1 is connecting to Zero for txn updates\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.151143135Z”}
{“log”:“I1027 17:29:44.150889 38 groups.go:961] Got Zero leader: localhost:5080\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.15117603Z”}
{“log”:“I1027 17:29:44.153469 38 access_ee.go:353] RefreshAcls closed\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:44.153605814Z”}
{“log”:“I1027 17:29:47.048488 38 admin.go:873] namespace: 0. No GraphQL schema in Dgraph; serving empty GraphQL API\n”,“stream”:“stderr”,“time”:“2022-10-27T17:29:47.048716124Z”}
{“log”:“I1027 17:30:36.974770 30 raft.go:807] Skipping creating a snapshot. Num groups: 1, Num checkpoints: 0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:30:36.975079819Z”}
{“log”:“I1027 17:31:36.975156 30 raft.go:807] Skipping creating a snapshot. Num groups: 1, Num checkpoints: 0\n”,“stream”:“stderr”,“time”:“2022-10-27T17:31:36.975411274Z”}

It is always 8080

Why your URL has a slash /dgraph?

See
https://dgraph.io/docs/deploy/ports-usage/

I see, okay.

oh I just proxy the 8080 port from the container to a url

Proxying how?
BTW, you don’t need to hide urls from test env.

Via nginx. More specifically, I’m using plesk to manage the server.
It works perfectly fine for other applications though.

I mean, show me the steps. I can’t help you without context.

well, the steps are literally just these:

not sure if that helps

but I just removed the rule and tried with port 49177 again and now I’m getting
image

so looks like the issue indeed somewhere here.
only problem, this way doesn’t provide me with https so play.dgraph.io wont work this way either

You have to forward other paths. Like /health, /admin, /graphq /mutation, /query, /commit.

If the proxy forward just 8080/ instead of 8080/* it won’t work.

Check if http://yourURL/dgraph/health is available. Ratel needs this.

oh okay, thank you.

:49177/health works now but doesn’t with the forwarding. so I guess I need to figure this out then

well, giving it a second thought, it works with my other applications though.
I have classic :8080/api/v1…
no idea

The Ratel you are using, is locally or playDgraph? Is the HTTPS valid from “https://debuggin.club/dgraph”?

Open the dev console in Ratel and see what the logs are.

ahaha CORS.
I’m using the play.dgraph.io online version.
so yeah, all the preflights fail for /health /query …

Access to fetch at 'https://domain.com/dgraph/health' from origin 'https://play.dgraph.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I still don’t quite understand what’s wrong though.
/health etc with proxy to https url gives me when trying to access it with a local http client.

HTTP/1.1 404 Not Found Server: nginx Date: Thu, 27 Oct 2022 20:56:04 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 19 Connection: keep-alive X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=15768000; includeSubDomains

404 page not found

Response code: 404 (Not Found); Time: 106ms (106 ms); Content length: 19 bytes (19 B)

as opposed to

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-Dgraph-AccessToken, X-Dgraph-AuthToken, Content-Type, Content-Length, Accept-Encoding, Cache-Control, X-CSRF-Token, X-Auth-Token, X-Requested-With
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Origin: *
Connection: close
Content-Type: application/json
Date: Thu, 27 Oct 2022 21:15:59 GMT
Content-Length: 215

but I’m guessing this is related to my setup

Check how we do

BTW, I suggest you to use Ratel locally

https://hub.docker.com/r/dgraph/ratel

docker pull dgraph/ratel:latest