-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx 502 Bad gateway. GMD 111: Connection refused) while connecting to upstream #70
Comments
Hello, It appears that NGINX is encountering difficulties connecting to GMD on port 8000. Could you kindly verify if GMD is accessible on this port? A simple way to check is by using the telnet command:
Thank you for your cooperation. |
No, telnet returns connection refused error, even gmd service status is active and online.And gmd logs are also not helpful.Sent from my iPhoneOn 07-Nov-2023, at 12:13 AM, esscz ***@***.***> wrote:
Hello,
It appears that NGINX is encountering difficulties connecting to GMD on port 8000. Could you kindly verify if GMD is accessible on this port? A simple way to check is by using the telnet command:
telnet 127.0.0.1 8000
Thank you for your cooperation.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Could you please verify that |
It's also possible that SELinux is preventing the connection. Could you please execute the following commands to check the status of SELinux and to search for any relevant AVC denials?
and
|
GMD Is not listening. Not sure how come service showing active. [root@nhtlaspsitcdb01 ~]# sestatus I tried running gmd service manually using below command: I can see a timeout, could it be a reason? if yes, then how to set proxy for GMD as our internet access is behind a proxy and setting up OS level proxy will break functionality of other running application. |
Thanks its fixed. issue seems to be http_proxy was not set. I access my proxy details in cat /usr/lib/systemd/system/gmd.service[Unit] [Service] [Install] ]# restart gmd service and it started working. |
now getting error while adding node in cluster: failed to execute cluster config script (RunScriptWithConn) Process exited with status 4 |
Could you please attach whole log of installation ? The reason will be mentioned several lines before the end of file. |
Attached: i am trying to monitor the existing Galera-cluster and; Error: Transaction test error: |
I tried installing the "managed cluster" on a fresh node. still no luck. Attaching full logs |
In both cases it's not possible to resolve hostname:
and
could you please check DNS settings ? |
The system is behind proxy, the installer must have an option to set proxy otherwise must use ENV variable http_proxy. |
I managed to pass proxy to galera installer by exporting http_proxy variable in /etc/bashrc file. And I can see installer was able to make progress but it failing now on: root@10.112.48.70# mysqladmin -u root status FUll console logs: Host logs: Hope the above logs may provide you more insight to what is going wrong. |
tried on fresh redhat 8 node with mysql-8 instead of mariadb. still failing on same point. , 2023 13:52:46 | galera-manager | checking node status |
Hi. The key is this line:
That means that mysqld failed to start for its own internal reasons (most likely misconfiguration) and we must see its error log (the output of the aforementioned commands may br helpful, but limited) Please post mysqld error log (normally /var/lib/mysql/mysqld.err or /var/log/mysql/error.log) |
HI alexey, Available repos: |
this suggests you're missing the repository for galera, despite the galera-manager repo being there, it suggests you're not seeing galera server. can you paste contents of the galera-manager repo and for good measure influxdb repo and ensure that everything it calls can be accessed thru your firewall? |
Hi, I've made a fresh start on 3 vanilla redhat 8 nodes. Galera installation was successful but adding nodes is still failing Deployment logs from Galera console:
Service status mariadb shows permission issue with telegraf
changed ownerhip # chown -R telegraf: /etc/telegraf and systemctl restart mariadb.service, but its still failing :
mariadb.serice file is blank:
It is a broken installer i believe? Sharing Repository details as requested:Galera clinet:
Galera Server:
|
Finally, it workshttps://galeracluster.com/2023/11/galera-manager-november-2023-release-now-includes-deployment-and-monitoring-for-percona-xtradb-cluster-pxc-8-0/
`### Galera-manager installer issues fail to manage HTTP proxy
Galera-manager deployment issuesGM installer fails to use HTTP proxy defined in /etc/profile or exported in http_proxy variable If you are performing deployment on nodes behind a proxy, ensure to export http_proxy and https_proxy in /etc/bashrc for the GM installer to use it and perform the deployment. You can perform clean-up after deployment and define a proxy in dnf repo files. Galera-manager after deployment issues1. GM installer fail to start services Once GM is installed, and while performing db deployments, GM fails to start the service at the final step. Ensure below
2. Other Errors
To fix it use "alter table" :
To fix it follow influxdata/telegraf#7968 best of luck..! |
Hi,
Recently I managed to install GMD successfully using the installer . All services are active but still getting error" 502 BAD Gateway
Installation Closing message:
Galera Manager installation finished. Enter http://10.112.48.69 in a web browser to access. Please note, you chose to use an unencrypted http protocol, such connections are prone to several types of security issues. Always use only trusted networks when connecting to the service.
INFO[0077] Logs DB url: http://10.112.48.69:8081
IMPORTANT: ensure TCP ports 80, 8081 are open in firewall.
INFO[0077] Below you can see Logs DB credentials:
DB name: gmd
DB user: gmd
DB password: 9iKc2lXzdW
The installation log is located at /tmp/gm-installer.log
Service status : NGINX
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2023-11-04 06:03:11 GMT; 28min ago
Process: 1089519 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 1089517 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 1089511 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Main PID: 1089520 (nginx)
Tasks: 9 (limit: 205278)
Memory: 11.6M
CGroup: /system.slice/nginx.service
├─1089520 nginx: master process /usr/sbin/nginx
├─1089521 nginx: worker process
├─1089522 nginx: worker process
├─1089523 nginx: worker process
├─1089524 nginx: worker process
├─1089525 nginx: worker process
├─1089526 nginx: worker process
├─1089527 nginx: worker process
└─1089528 nginx: worker process
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl systemd[1]: Starting The nginx HTTP and reverse proxy server...
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl nginx[1089517]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl nginx[1089517]: nginx: configuration file /etc/nginx/nginx.conf test is successf>
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl systemd[1]: Started The nginx HTTP and reverse proxy server.
Service status : GMD
● gmd.service - gmd - galera manager daemon
Loaded: loaded (/usr/lib/systemd/system/gmd.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2023-11-04 06:31:25 GMT; 17s ago
Main PID: 1091659 (gmd)
Tasks: 12 (limit: 205278)
Memory: 20.8M
CGroup: /system.slice/gmd.service
└─1091659 /usr/bin/gmd run
Nov 04 06:31:25 wkflaspsitcdb01.idm.oam.mbnl systemd[1]: Started gmd - galera manager daemon.
Nov 04 06:31:25 wkflaspsitcdb01.idm.oam.mbnl gmd[1091659]: time="2023-11-04T06:31:25.755" level=info msg="Starting gmd" func=>
Nov 04 06:31:25 wkflaspsitcdb01.idm.oam.mbnl gmd[1091659]: time="2023-11-04T06:31:25.755" level=info msg="Listening on 127.0.>
Nov 04 06:31:25 wkflaspsitcdb01.idm.oam.mbnl gmd[1091659]: time="2023-11-04T06:31:25.755" level=info msg="ConfigDir = /var/li>
Nov 04 06:31:25 wkflaspsitcdb01.idm.oam.mbnl gmd[1091659]: time="2023-11-04T06:31:25.755" level=info msg="LogsDir = /var/log
Service status : influxd
influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2023-11-04 06:03:11 GMT; 30min ago
Docs: https://docs.influxdata.com/influxdb/
Process: 1089450 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
Main PID: 1089455 (influxd)
Tasks: 13 (limit: 205278)
Memory: 58.0M
CGroup: /system.slice/influxdb.service
└─1089455 /usr/bin/influxd
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl systemd[1]: Starting InfluxDB is an open-source, distributed, time series databa>
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl influxd-systemd-start.sh[1089456]: Command "print-config" is deprecated, use the>
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl influxd-systemd-start.sh[1089479]: Command "print-config" is deprecated, use the>
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl influxd-systemd-start.sh[1089493]: Command "print-config" is deprecated, use the>
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl influxd-systemd-start.sh[1089450]: InfluxDB started
Nov 04 06:03:11 wkflaspsitcdb01.idm.oam.mbnl systemd[1]: Started InfluxDB is an open-source, distributed, time series databas>
lines 1-17/17 (END)
LOGS
[]# tail -f /var/log/gmd/default.log
{"channel-type":"app","file":"/go/pkg/cmd/run.go:64","func":"github.com/codership/galera-manager/pkg/cmd.(*RunCommand).Execute","level":"info","msg":"ConfigDir = /var/lib/gmd","time":"2023-11-04T06:24:22Z"}
{"channel-type":"app","file":"/go/pkg/cmd/run.go:65","func":"github.com/codership/galera-manager/pkg/cmd.(*RunCommand).Execute","level":"info","msg":"LogsDir = /var/log/gmd","time":"2023-11-04T06:24:22Z"}
{"channel-type":"app","file":"/go/pkg/cmd/run.go:60","func":"github.com/codership/galera-manager/pkg/cmd.(*RunCommand).Execute","level":"info","msg":"Starting gmd","time":"2023-11-04T06:24:52Z"}
{"channel-type":"app","file":"/go/pkg/cmd/run.go:61","func":"github.com/codership/galera-manager/pkg/cmd.(*RunCommand).Execute","level":"info","msg":"Listening on 127.0.0.1:8000","time":"2023-11-04T06:24:52Z"}
~]# ll /var/log/influxdb/
total 0
~]#tail -f /var/log/nginx/10.112.48.69.gmd.error.log
2023/11/04 06:13:54 [error] 1089521#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.112.48.69, server: 10.112.48.69, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "10.112.48.69"
Setup & ENV
Questions
The text was updated successfully, but these errors were encountered: