Datagerry web gui is accessible. We have a reverse proxy in front of it.
The DataGerry documentation website states:
https://datagerry.readthedocs.io/en/latest/admin_guide/setup.html#setup-datagerry
To access the DATAGERRY frontend, use the following parameters:
http://<>:4000
user: admin
password: admin
But these credentials did not work. The admin credentials were refused. I have a 640kB video showing the error, but this website won’t let us post video. Photograph below.
Here are the login logs, but I did not notice an error related to this per se:
( I have put the debug nginx logs taken during the attempted login further down this post. )
# tail -f /var/log/nginx/cmdb1.x.y.local.*
==> /var/log/nginx/cmdb1.x.y.local.error.log <==
==> /var/log/nginx/cmdb1.x.y.local.access.log <==
10.223.33.126 - - [02/May/2024:11:42:40 +0200] "POST /rest/auth/login HTTP/1.1" 401 424 "https://cmdb1.x.y/auth" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
These are the mongodb messages that appear when I try to login with admin|admin:
"id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.80.23.201:52148","uuid":{"uuid":{"$uuid":"2d4e94fb-d633-43ee-ba39-988a9155ee1c"}},"connectionId":164,"connectionCount":34}}
"id":51800, "ctx":"conn164","msg":"client metadata","attr":{"remote":"10.80.23.201:52148","client":"conn164","negotiatedCompressors":[],"doc":{"driver":{"name":"PyMongo","version":"4.6.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.14.0-362.18.1.el9_3.x86_64"},"platform":"CPython 3.9.16.final.0"}}}
"id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.80.23.201:52154","uuid":{"uuid":{"$uuid":"bfdc9bd7-1cb0-4db8-86af-da413923d867"}},"connectionId":165,"connectionCount":35}}
"id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.80.23.201:52162","uuid":{"uuid":{"$uuid":"de3aead3-ddfa-44d1-8053-923523b66237"}},"connectionId":166,"connectionCount":36}}
"id":51800, "ctx":"conn165","msg":"client metadata","attr":{"remote":"10.80.23.201:52154","client":"conn165","negotiatedCompressors":[],"doc":{"driver":{"name":"PyMongo","version":"4.6.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.14.0-362.18.1.el9_3.x86_64"},"platform":"CPython 3.9.16.final.0"}}}
"id":51800, "ctx":"conn166","msg":"client metadata","attr":{"remote":"10.80.23.201:52162","client":"conn166","negotiatedCompressors":[],"doc":{"driver":{"name":"PyMongo","version":"4.6.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.14.0-362.18.1.el9_3.x86_64"},"platform":"CPython 3.9.16.final.0"}}}
"id":6788700, "ctx":"conn165","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":0}
And the nginx access and error logs show:
[debug] 89427#89427: *18 http keepalive handler
[debug] 89427#89427: *18 malloc: 00005559A40B8930:1024
[debug] 89427#89427: *18 SSL_read: 753
[debug] 89427#89427: *18 SSL_read: -1
[debug] 89427#89427: *18 SSL_get_error: 2
[debug] 89427#89427: *18 reusable connection: 0
[debug] 89427#89427: *18 posix_memalign: 00005559A40CA680:4096 @16
[debug] 89427#89427: *18 event timer del: 17: 858996854
[debug] 89427#89427: *18 http process request line
[debug] 89427#89427: *18 http request line: "POST /rest/auth/login HTTP/1.1"
[debug] 89427#89427: *18 http uri: "/rest/auth/login"
[debug] 89427#89427: *18 http args: ""
[debug] 89427#89427: *18 http exten: ""
[debug] 89427#89427: *18 posix_memalign: 00005559A40A8C70:4096 @16
[debug] 89427#89427: *18 http process request header line
[debug] 89427#89427: *18 http header: "Host: cmdb1.x.y"
[debug] 89427#89427: *18 http header: "Connection: keep-alive"
[debug] 89427#89427: *18 http header: "Content-Length: 40"
[debug] 89427#89427: *18 http header: "sec-ch-ua: "Chromium";v="122", "Not(A:Brand";v="24", "Microsoft Edge";v="122""
[debug] 89427#89427: *18 http header: "Accept: application/json, text/plain, */*"
[debug] 89427#89427: *18 http header: "Content-Type: application/json"
[debug] 89427#89427: *18 http header: "sec-ch-ua-mobile: ?0"
[debug] 89427#89427: *18 http header: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
[debug] 89427#89427: *18 http header: "sec-ch-ua-platform: "Windows""
[debug] 89427#89427: *18 http header: "Origin: https://cmdb1.x.y"
[debug] 89427#89427: *18 http header: "Sec-Fetch-Site: same-origin"
[debug] 89427#89427: *18 http header: "Sec-Fetch-Mode: cors"
[debug] 89427#89427: *18 http header: "Sec-Fetch-Dest: empty"
[debug] 89427#89427: *18 http header: "Referer: https://cmdb1.x.y/auth"
[debug] 89427#89427: *18 http header: "Accept-Encoding: gzip, deflate, br"
[debug] 89427#89427: *18 http header: "Accept-Language: en-US,en;q=0.9"
[debug] 89427#89427: *18 http header done
[debug] 89427#89427: *18 generic phase: 0
[debug] 89427#89427: *18 rewrite phase: 1
[debug] 89427#89427: *18 test location: "/"
[debug] 89427#89427: *18 using configuration "/"
[debug] 89427#89427: *18 http cl:40 max:1048576
[debug] 89427#89427: *18 rewrite phase: 3
[debug] 89427#89427: *18 http script value: "http://127.0.0.1:4000"
[debug] 89427#89427: *18 http script set $upstream_host
[debug] 89427#89427: *18 http script regex: "^/(.*)"
[notice] 89427#89427: *18 "^/(.*)" matches "/rest/auth/login", client: 10.223.33.126, server: _, request: "POST /rest/auth/login HTTP/1.1", host: "cmdb1.x.y", referrer: "https://cmdb1.x.y/auth"
[debug] 89427#89427: *18 http script copy: "/"
[debug] 89427#89427: *18 http script capture: "rest/auth/login"
[debug] 89427#89427: *18 http script regex end
[notice] 89427#89427: *18 rewritten data: "/rest/auth/login", args: "", client: 10.223.33.126, server: _, request: "POST /rest/auth/login HTTP/1.1", host: "cmdb1.x.y", referrer: "https://cmdb1.x.y/auth"
[debug] 89427#89427: *18 post rewrite phase: 4
[debug] 89427#89427: *18 generic phase: 5
[debug] 89427#89427: *18 generic phase: 6
[debug] 89427#89427: *18 generic phase: 7
[debug] 89427#89427: *18 generic phase: 8
[debug] 89427#89427: *18 access phase: 9
[debug] 89427#89427: *18 access phase: 10
[debug] 89427#89427: *18 access phase: 11
[debug] 89427#89427: *18 post access phase: 12
[debug] 89427#89427: *18 generic phase: 13
[debug] 89427#89427: *18 generic phase: 14
[debug] 89427#89427: *18 http script var: "http://127.0.0.1:4000"
[debug] 89427#89427: *18 http client request body preread 40
[debug] 89427#89427: *18 http request body content length filter
[debug] 89427#89427: *18 http body new buf t:1 f:0 00005559A40B8BF9, pos 00005559A40B8BF9, size: 40 file: 0, size: 0
[debug] 89427#89427: *18 http init upstream, client timer: 0
[debug] 89427#89427: *18 http script copy: "Host"
[debug] 89427#89427: *18 http script var: "cmdb1.x.y"
[debug] 89427#89427: *18 http script copy: "X-Real-IP"
[debug] 89427#89427: *18 http script var: "10.223.33.126"
[debug] 89427#89427: *18 http script copy: "X-Forwarded-For"
[debug] 89427#89427: *18 http script var: "10.223.33.126"
[debug] 89427#89427: *18 http script copy: "X-Forwarded-Proto"
[debug] 89427#89427: *18 http script var: "https"
[debug] 89427#89427: *18 http script copy: "Connection"
[debug] 89427#89427: *18 http script copy: "close"
[debug] 89427#89427: *18 http script copy: "Content-Length"
[debug] 89427#89427: *18 http script var: "40"
[debug] 89427#89427: *18 http script copy: ""
[debug] 89427#89427: *18 http proxy header: "sec-ch-ua: "Chromium";v="122", "Not(A:Brand";v="24", "Microsoft Edge";v="122""
[debug] 89427#89427: *18 http proxy header: "Accept: application/json, text/plain, */*"
[debug] 89427#89427: *18 http proxy header: "Content-Type: application/json"
[debug] 89427#89427: *18 http proxy header: "sec-ch-ua-mobile: ?0"
[debug] 89427#89427: *18 http proxy header: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
[debug] 89427#89427: *18 http proxy header: "sec-ch-ua-platform: "Windows""
[debug] 89427#89427: *18 http proxy header: "Origin: https://cmdb1.x.y"
[debug] 89427#89427: *18 http proxy header: "Sec-Fetch-Site: same-origin"
[debug] 89427#89427: *18 http proxy header: "Sec-Fetch-Mode: cors"
[debug] 89427#89427: *18 http proxy header: "Sec-Fetch-Dest: empty"
[debug] 89427#89427: *18 http proxy header: "Referer: https://cmdb1.x.y/auth"
[debug] 89427#89427: *18 http proxy header: "Accept-Encoding: gzip, deflate, br"
[debug] 89427#89427: *18 http proxy header: "Accept-Language: en-US,en;q=0.9"
[debug] 89427#89427: *18 http proxy header:
"POST /rest/auth/login HTTP/1.0
Host: cmdb1.x.y
X-Real-IP: 10.223.33.126
X-Forwarded-For: 10.223.33.126
X-Forwarded-Proto: https
Connection: close
Content-Length: 40
sec-ch-ua: "Chromium";v="122", "Not(A:Brand";v="24", "Microsoft Edge";v="122"
Accept: application/json, text/plain, */*
Content-Type: application/json
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
sec-ch-ua-platform: "Windows"
Origin: https://cmdb1.x.y
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://cmdb1.x.y/auth
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
"
[debug] 89427#89427: *18 http cleanup add: 00005559A40A9C20
[debug] 89427#89427: *18 posix_memalign: 00005559A41CF6D0:4096 @16
[debug] 89427#89427: *18 get rr peer, try: 1
[debug] 89427#89427: *18 stream socket 19
[debug] 89427#89427: *18 epoll add connection: fd:19 ev:80002005
[debug] 89427#89427: *18 connect to 127.0.0.1:4000, fd:19 #47
[debug] 89427#89427: *18 http upstream connect: -2
[debug] 89427#89427: *18 posix_memalign: 00005559A3FF29C0:128 @16
[debug] 89427#89427: *18 event timer add: 19: 60000:859016064
[debug] 89427#89427: *18 http finalize request: -4, "/rest/auth/login?" a:1, c:2
[debug] 89427#89427: *18 http request count:2 blk:0
[debug] 89427#89427: *18 http run request: "/rest/auth/login?"
[debug] 89427#89427: *18 http upstream check client, write event:1, "/rest/auth/login"
[debug] 89427#89427: *18 http upstream request: "/rest/auth/login?"
[debug] 89427#89427: *18 http upstream send request handler
[debug] 89427#89427: *18 http upstream send request
[debug] 89427#89427: *18 http upstream send request body
[debug] 89427#89427: *18 chain writer buf fl:0 s:792
[debug] 89427#89427: *18 chain writer buf fl:1 s:40
[debug] 89427#89427: *18 chain writer in: 00005559A41CF908
[debug] 89427#89427: *18 writev: 832 of 832
[debug] 89427#89427: *18 chain writer out: 0000000000000000
[debug] 89427#89427: *18 event timer del: 19: 859016064
[debug] 89427#89427: *18 event timer add: 19: 60000:859016065
[debug] 89427#89427: *18 http upstream request: "/rest/auth/login?"
[debug] 89427#89427: *18 http upstream process header
[debug] 89427#89427: *18 malloc: 00005559A41BDF30:4096
[debug] 89427#89427: *18 recv: eof:0, avail:-1
[debug] 89427#89427: *18 recv: fd:19 302 of 4096
[debug] 89427#89427: *18 http proxy status 401 "401 UNAUTHORIZED"
[debug] 89427#89427: *18 http proxy header: "Server: gunicorn"
[debug] 89427#89427: *18 http proxy header: "Date: Thu, 02 May 2024 11:06:52 GMT"
[debug] 89427#89427: *18 http proxy header: "Connection: close"
[debug] 89427#89427: *18 http proxy header: "Content-Type: application/json"
[debug] 89427#89427: *18 http proxy header: "Content-Length: 424"
[debug] 89427#89427: *18 http proxy header: "Access-Control-Allow-Origin: https://cmdb1.x.y"
[debug] 89427#89427: *18 http proxy header: "Access-Control-Expose-Headers: X-API-Version, X-Total-Count"
[debug] 89427#89427: *18 http proxy header: "Vary: Origin"
[debug] 89427#89427: *18 http proxy header done
[debug] 89427#89427: *18 xslt filter header
[debug] 89427#89427: *18 HTTP/1.1 401 UNAUTHORIZED
Server: nginx/1.20.1
Date: Thu, 02 May 2024 11:06:52 GMT
Content-Type: application/json
Content-Length: 424
Connection: keep-alive
Access-Control-Allow-Origin: https://cmdb1.x.y
Access-Control-Expose-Headers: X-API-Version, X-Total-Count
Vary: Origin
[debug] 89427#89427: *18 write new buf t:1 f:0 00005559A41CFCE8, pos 00005559A41CFCE8, size: 311 file: 0, size: 0
[debug] 89427#89427: *18 http write filter: l:0 f:0 s:311
[debug] 89427#89427: *18 http cacheable: 0
[debug] 89427#89427: *18 http proxy filter init s:401 h:0 c:0 l:424
[debug] 89427#89427: *18 http upstream process upstream
[debug] 89427#89427: *18 pipe read upstream: 0
[debug] 89427#89427: *18 pipe preread: 0
[debug] 89427#89427: *18 pipe buf free s:0 t:1 f:0 00005559A41BDF30, pos 00005559A41BE05E, size: 0 file: 0, size: 0
[debug] 89427#89427: *18 pipe length: 424
[debug] 89427#89427: *18 event timer: 19, old: 859016065, new: 859016070
[debug] 89427#89427: *18 http upstream request: "/rest/auth/login?"
[debug] 89427#89427: *18 http upstream dummy handler
[debug] 89427#89427: *18 http upstream request: "/rest/auth/login?"
[debug] 89427#89427: *18 http upstream process upstream
[debug] 89427#89427: *18 pipe read upstream: 1
[debug] 89427#89427: *18 readv: eof:0, avail:-1
[debug] 89427#89427: *18 readv: 1, last:3794
[debug] 89427#89427: *18 pipe recv chain: 424
[debug] 89427#89427: *18 pipe buf free s:0 t:1 f:0 00005559A41BDF30, pos 00005559A41BE05E, size: 424 file: 0, size: 0
[debug] 89427#89427: *18 pipe length: 424
[debug] 89427#89427: *18 input buf #0
[debug] 89427#89427: *18 pipe write downstream: 1
[debug] 89427#89427: *18 pipe write downstream flush in
[debug] 89427#89427: *18 http output filter "/rest/auth/login?"
[debug] 89427#89427: *18 http copy filter: "/rest/auth/login?"
[debug] 89427#89427: *18 image filter
[debug] 89427#89427: *18 xslt filter body
[debug] 89427#89427: *18 http postpone filter "/rest/auth/login?" 00005559A41CF918
[debug] 89427#89427: *18 write old buf t:1 f:0 00005559A41CFCE8, pos 00005559A41CFCE8, size: 311 file: 0, size: 0
[debug] 89427#89427: *18 write new buf t:1 f:0 00005559A41BDF30, pos 00005559A41BE05E, size: 424 file: 0, size: 0
[debug] 89427#89427: *18 http write filter: l:0 f:0 s:735
[debug] 89427#89427: *18 http copy filter: 0 "/rest/auth/login?"
[debug] 89427#89427: *18 pipe write downstream done
[debug] 89427#89427: *18 event timer: 19, old: 859016065, new: 859016070
[debug] 89427#89427: *18 http upstream exit: 0000000000000000
[debug] 89427#89427: *18 finalize http upstream request: 0
[debug] 89427#89427: *18 finalize http proxy request
[debug] 89427#89427: *18 free rr peer 1 0
[debug] 89427#89427: *18 close http upstream connection: 19
[debug] 89427#89427: *18 free: 00005559A3FF29C0, unused: 48
[debug] 89427#89427: *18 event timer del: 19: 859016065
[debug] 89427#89427: *18 reusable connection: 0
[debug] 89427#89427: *18 http upstream temp fd: -1
[debug] 89427#89427: *18 http output filter "/rest/auth/login?"
[debug] 89427#89427: *18 http copy filter: "/rest/auth/login?"
[debug] 89427#89427: *18 image filter
[debug] 89427#89427: *18 xslt filter body
[debug] 89427#89427: *18 http postpone filter "/rest/auth/login?" 00007FFF3F668E30
[debug] 89427#89427: *18 write old buf t:1 f:0 00005559A41CFCE8, pos 00005559A41CFCE8, size: 311 file: 0, size: 0
[debug] 89427#89427: *18 write old buf t:1 f:0 00005559A41BDF30, pos 00005559A41BE05E, size: 424 file: 0, size: 0
[debug] 89427#89427: *18 write new buf t:0 f:0 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 0
[debug] 89427#89427: *18 http write filter: l:1 f:0 s:735
[debug] 89427#89427: *18 http write filter limit 0
[debug] 89427#89427: *18 malloc: 00005559A41C4150:16384
[debug] 89427#89427: *18 SSL buf copy: 311
[debug] 89427#89427: *18 SSL buf copy: 424
[debug] 89427#89427: *18 SSL to write: 735
[debug] 89427#89427: *18 SSL_write: 735
[debug] 89427#89427: *18 http write filter 0000000000000000
[debug] 89427#89427: *18 http copy filter: 0 "/rest/auth/login?"
[debug] 89427#89427: *18 http finalize request: 0, "/rest/auth/login?" a:1, c:1
[debug] 89427#89427: *18 set http keepalive handler
[debug] 89427#89427: *18 http close request
[debug] 89427#89427: *18 http log handler
==> /var/log/nginx/cmdb1.x.y.local.access.log <==
10.223.33.126 - - [02/May/2024:13:06:52 +0200] "POST /rest/auth/login HTTP/1.1" 401 424 "https://cmdb1.x.y/auth" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
==> /var/log/nginx/cmdb1.x.y.local.error.log <==
[debug] 89427#89427: *18 free: 00005559A41BDF30
[debug] 89427#89427: *18 free: 00005559A40CA680, unused: 3
[debug] 89427#89427: *18 free: 00005559A40A8C70, unused: 0
[debug] 89427#89427: *18 free: 00005559A41CF6D0, unused: 1032
[debug] 89427#89427: *18 free: 00005559A40B8930
[debug] 89427#89427: *18 hc free: 0000000000000000
[debug] 89427#89427: *18 hc busy: 0000000000000000 0
[debug] 89427#89427: *18 free: 00005559A41C4150
[debug] 89427#89427: *18 reusable connection: 1
[debug] 89427#89427: *18 event timer add: 17: 65000:859021070
Can anybody see anything amiss?