Mac Mini Bad Gateway error

  • Platform information:
    • Hardware: Mac Mini intel i7
    • OS: Mojave
    • Java Runtime Environment: Zulu 8
    • openHAB version : Openhab 2.4
  • Bad Gateway Error
    Openhab2 service runs in terminal without errors, but any attempt to access via a browser either on the local machine or a remote pc using safari, chrome or mozilla results in a bad gateway error. I have tried clearing openhab2 cache and temp folders along with several re-installs but without success,
    Any suggestions as to resolving the situation would be gratefully received.
    I’m currently running openHAB on a raspberry pi4, but ran against a wall when trying to render charts from Grafana so decided to try the mac mini.

I have followed previous bad gateway threads but have I not found a solution

Ian

Hi,
what is the URL of your openHAB? Do you go directly to the applicationserver (http: // openhab: 8080) or do you have a reverse proxy before that? The error affects me as if, for example, a nginx before the openhab having a wrong config. Do you see which web server sends you the “Bad Gateway”?

Chris

Many thanks Chris.
Using Safari,
If I type http://openhab:8080 the mac logs on to my raspberry pi sucessfully.
http://localhost:8080 and I get the message “502 Bad Gateway”
"Socks%ProtocolException("SOCKS5 mode failure: SocksError(“Invalid SOCKS version. Expected0x05, got 0x47’,)”,)

I must admit I’ve hit a wall with this error.
Ian
Ian

etup, Configuration and UseBeginners

Notice for all APT Users: Please update the public key for our repositories, see here for details!

Mac Mini Bad Gateway error

Setup, Configuration and UseBeginners

Aug 22

3 / 3

Aug 23

1m ago

boxer_ianIan Carby

6d

  • Platform information:
    • Hardware: Mac Mini intel i7
    • OS: Mojave
    • Java Runtime Environment: Zulu 8
    • openHAB version : Openhab 2.4
  • Bad Gateway Error
    Openhab2 service runs in terminal without errors, but any attempt to access via a browser either on the local machine or a remote pc using safari, chrome or mozilla results in a bad gateway error. I have tried clearing openhab2 cache and temp folders along with several re-installs but without success,
    Any suggestions as to resolving the situation would be gratefully received.
    I’m currently running openHAB on a raspberry pi4, but ran against a wall when trying to render charts from Grafana so decided to try the mac mini.

I have followed previous bad gateway threads but have I not found a solution

Ian

Reply

  • created

6d

  • [

last reply

](Mac Mini Bad Gateway error)

5d

  • 1

reply

  • 45

views

  • 2

users

chzimmChristoph Zimmermann

5d

Hi,
what is the URL of your openHAB? Do you go directly to the applicationserver (http: // openhab: 8080) or do you have a reverse proxy before that? The error affects me as if, for example, a nginx before the openhab having a wrong config. Do you see which web server sends you the “Bad Gateway”?

Chris

Mark as solutionReply

boxer_ianIan Carby

1m

Many thanks Chris.
Using Safari,
If I type http://openhab:8080 the mac logs on to my raspberry pi sucessfully.
http://localhost:8080 and I get the message “502 Bad Gateway”
"Socks5ProtocolException("SOCKS5 mode failure: SocksError(“Invalid SOCKS version. Expected0x05, got 0x47’,)”,)

I must admit I’ve hit a wall with this error.
Ian

just corrected the typos!

Now solved. Through reading all the relevant threads in this community, it was obvious that I was doing something wrong and it was Java that I hadn’t installed correctly.
So now the ui’s load ok through safari and we can continue playing with the mac mini.
Many thaks to all,
Ian