mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leigh Martell <le...@immun.io>
Subject Re: nginx infront of the mesos web admin
Date Wed, 12 Nov 2014 14:20:14 GMT
There you go "--ip=192.168.33.30" update your nginx config to point to
192.168.33.30:5050. Note that after it works you will have other headaches
reaching slaves and/or redirecting to the current master.

Hope that helps ya.

-Leigh

On Wed, Nov 12, 2014 at 10:16 AM, Jason Clark <jason.clark@360pi.com> wrote:

> Np, I know how that feels ;)
>
> Here is the launch string for the mesos-master:
>
> /usr/local/sbin/mesos-master --zk=zk://192.168.33.30:2181,
> 192.168.33.31:2181,192.168.33.32:2181/mesos --ip=192.168.33.30
> --port=5050 --cluster=mesos_cluster --log_dir=/var/log/mesos --quorum=2
> --work_dir=/var/lib/mesos
>
> lsof -n -i:5050 returns nothing
>
> On Wed, Nov 12, 2014 at 8:53 AM, Leigh Martell <leigh@immun.io> wrote:
>
>> Whoops my bad obvs need more coffee :) can you do a lsof -n -i:5050 than,
>> you should be hitting some different issues, my guess is its not binding to
>> * or lo.
>>
>> -Leigh
>>
>> On Wed, Nov 12, 2014 at 9:32 AM, Jason Clark <jason.clark@360pi.com>
>> wrote:
>>
>>> Hi Leigh, it isn't marathon I can't forward the port for its mesos..
>>> Marathon and chronos I can forward the port no problem, mesos on 5050 just
>>> 502's every time.  Hitting 5050 directly works fine.
>>>
>>> On Wed, Nov 12, 2014 at 7:45 AM, Leigh Martell <leigh@immun.io> wrote:
>>>
>>>> Anything special about your marathon setup? Is it in docker? also can
>>>> you try curl -v http://127.0.0.1:8080 if that fails ensure that your
>>>> marathon is listening on the proper interface with lsof -n -i:8080. If all
>>>> that checks out the cmd string you use to launch marathon would be useful.
>>>> Thanks!
>>>>
>>>> -Leigh
>>>>
>>>> On Wed, Nov 12, 2014 at 8:28 AM, Jason Clark <jason.clark@360pi.com>
>>>> wrote:
>>>>
>>>>> Wish that was it, but nope I'm using ubuntu.  I tried stopping
>>>>> apparmor, and that didn't help.
>>>>>
>>>>> On Wed, Nov 12, 2014 at 1:37 AM, Giulio Eulisse <
>>>>> Giulio.Eulisse@cern.ch> wrote:
>>>>>
>>>>>> I bet it's selinux. I had similar problems. check
>>>>>> /var/log/audit/audit.log
>>>>>>
>>>>>> On mer 12 nov 2014 at 01:09 Jason Clark <jason.clark@360pi.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Heya, yep same machine  configs below
>>>>>>>
>>>>>>> curl results:
>>>>>>>
>>>>>>> * Rebuilt URL to: 192.168.33.30:9001/
>>>>>>> * Hostname was NOT found in DNS cache
>>>>>>> *   Trying 192.168.33.30...
>>>>>>> * Connected to 192.168.33.30 (192.168.33.30) port 9001 (#0)
>>>>>>> > GET / HTTP/1.1
>>>>>>> > User-Agent: curl/7.37.1
>>>>>>> > Host: 192.168.33.30:9001
>>>>>>> > Accept: */*
>>>>>>> >
>>>>>>> < HTTP/1.1 502 Bad Gateway
>>>>>>> * Server nginx/1.6.2 is not blacklisted
>>>>>>> < Server: nginx/1.6.2
>>>>>>> < Date: Wed, 12 Nov 2014 00:06:27 GMT
>>>>>>> < Content-Type: text/html
>>>>>>> < Content-Length: 172
>>>>>>> < Connection: keep-alive
>>>>>>> <
>>>>>>> <html>
>>>>>>> <head><title>502 Bad Gateway</title></head>
>>>>>>> <body bgcolor="white">
>>>>>>> <center><h1>502 Bad Gateway</h1></center>
>>>>>>> <hr><center>nginx/1.6.2</center>
>>>>>>> </body>
>>>>>>> </html>
>>>>>>> * Connection #0 to host 192.168.33.30 left intact
>>>>>>>
>>>>>>>
>>>>>>> config:
>>>>>>>
>>>>>>>
>>>>>>>  server {
>>>>>>>         listen          9001;
>>>>>>>         access_log      /var/log/nginx/mesos_access.log;
>>>>>>>
>>>>>>>         location / {
>>>>>>>             proxy_pass http://127.0.0.1:5050/;
>>>>>>>             auth_basic "Restricted";
>>>>>>>             auth_basic_user_file /etc/nginx/.htpasswd;
>>>>>>>         }
>>>>>>>     }
>>>>>>>
>>>>>>>     server {
>>>>>>>         listen          9002;
>>>>>>>         access_log      /var/log/nginx/marathon_access.log;
>>>>>>>
>>>>>>>         location / {
>>>>>>>             proxy_pass http://127.0.0.1:8080/;
>>>>>>>             auth_basic "Restricted";
>>>>>>>             auth_basic_user_file /etc/nginx/.htpasswd;
>>>>>>>         }
>>>>>>>     }
>>>>>>>
>>>>>>>     server {
>>>>>>>         listen          9003;
>>>>>>>         access_log      /var/log/nginx/chronos_access.log;
>>>>>>>
>>>>>>>         location / {
>>>>>>>             proxy_pass http://127.0.0.1:8081/;
>>>>>>>             auth_basic "Restricted";
>>>>>>>             auth_basic_user_file /etc/nginx/.htpasswd;
>>>>>>>         }
>>>>>>>     }
>>>>>>>
>>>>>>> On Tue, Nov 11, 2014 at 7:01 PM, Leigh Martell <leigh@immun.io>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Same machine? Can you paste the nginx configuration and a
curl -v
>>>>>>>> <ngnix> result.
>>>>>>>>
>>>>>>>> Thank you!
>>>>>>>> On Nov 11, 2014 7:59 PM, "Jason Clark" <jason.clark@360pi.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I'm trying to put nginx in front of the mesos web interface
and
>>>>>>>>> for some reason it's always giving a 502 back for any
request.   Is there
>>>>>>>>> something funky with how the mesos web admin works that
would prevent this
>>>>>>>>> from working?  I've done the exact same thing for chronos
and marathon and
>>>>>>>>> they work perfectly fine.  For some reason proxying to
5050 always gives a
>>>>>>>>> 502...
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Jason Clark | Senior Systems Developer*
>>>>>>> jason.clark@360pi.com  |
>>>>>>>  ​
>>>>>>> 360pi.com  |  Our Blog <http://360pi.com/blog/>
>>>>>>>
>>>>>>> [image: facebook]
>>>>>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct1_0/1>
>>>>>>>  [image: twitter]
>>>>>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct2_0/1>
>>>>>>>  [image: linkedin]
>>>>>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct3_0/1>
>>>>>>>  [image: http://www.360pi.com/] <http://www.360pi.com/>
>>>>>>> <http://www.cnbc.com/id/101318146>
>>>>>>> <http://abcnews.go.com/blogs/business/2013/11/black-friday-discounts-may-be-an-illusion/>
>>>>>>> <http://www.forbes.com/sites/barbarathau/2013/11/28/how-amazon-stack-ups-price-wise-against-big-chains-on-5-popular-holiday-products/>
>>>>>>> <http://www.obj.ca/Local/2014-04-29/article-3706308/TUC-tops-list-of-Ottawa%26rsquo%3Bs-Fastest-Growing-Companies/1>
>>>>>>> <http://360pi.com/press_release/deloitte-names-360pi-as-one-of-canadas-companies-to-watch-in-the-2013-deloitte-technology-fast-50tm-awards/>
>>>>>>> <http://360pi.com/press_release/360pi-recognized-as-one-of-ottawas-top-10-employers/>
>>>>>>> <http://360pi.com/press_release/360pi-recognized-with-prestigious-red-herring-top-100-north-america-award/>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Jason Clark | Senior Systems Developer*
>>>>> jason.clark@360pi.com  |
>>>>>  ​
>>>>> 360pi.com  |  Our Blog <http://360pi.com/blog/>
>>>>>
>>>>> [image: facebook]
>>>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct1_0/1>
>>>>>  [image: twitter]
>>>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct2_0/1>
>>>>>  [image: linkedin]
>>>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct3_0/1>
>>>>>  [image: http://www.360pi.com/] <http://www.360pi.com/>
>>>>> <http://www.cnbc.com/id/101318146>
>>>>> <http://abcnews.go.com/blogs/business/2013/11/black-friday-discounts-may-be-an-illusion/>
>>>>> <http://www.forbes.com/sites/barbarathau/2013/11/28/how-amazon-stack-ups-price-wise-against-big-chains-on-5-popular-holiday-products/>
>>>>> <http://www.obj.ca/Local/2014-04-29/article-3706308/TUC-tops-list-of-Ottawa%26rsquo%3Bs-Fastest-Growing-Companies/1>
>>>>> <http://360pi.com/press_release/deloitte-names-360pi-as-one-of-canadas-companies-to-watch-in-the-2013-deloitte-technology-fast-50tm-awards/>
>>>>> <http://360pi.com/press_release/360pi-recognized-as-one-of-ottawas-top-10-employers/>
>>>>> <http://360pi.com/press_release/360pi-recognized-with-prestigious-red-herring-top-100-north-america-award/>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Jason Clark | Senior Systems Developer*
>>> jason.clark@360pi.com  |
>>>  ​
>>> 360pi.com  |  Our Blog <http://360pi.com/blog/>
>>>
>>> [image: facebook]
>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct1_0/1>
>>>  [image: twitter]
>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct2_0/1>
>>>  [image: linkedin]
>>> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct3_0/1>
>>>  [image: http://www.360pi.com/] <http://www.360pi.com/>
>>> <http://www.cnbc.com/id/101318146>
>>> <http://abcnews.go.com/blogs/business/2013/11/black-friday-discounts-may-be-an-illusion/>
>>> <http://www.forbes.com/sites/barbarathau/2013/11/28/how-amazon-stack-ups-price-wise-against-big-chains-on-5-popular-holiday-products/>
>>> <http://www.obj.ca/Local/2014-04-29/article-3706308/TUC-tops-list-of-Ottawa%26rsquo%3Bs-Fastest-Growing-Companies/1>
>>> <http://360pi.com/press_release/deloitte-names-360pi-as-one-of-canadas-companies-to-watch-in-the-2013-deloitte-technology-fast-50tm-awards/>
>>> <http://360pi.com/press_release/360pi-recognized-as-one-of-ottawas-top-10-employers/>
>>> <http://360pi.com/press_release/360pi-recognized-with-prestigious-red-herring-top-100-north-america-award/>
>>>
>>
>>
>
>
> --
> *Jason Clark | Senior Systems Developer*
> jason.clark@360pi.com  |
>  ​
> 360pi.com  |  Our Blog <http://360pi.com/blog/>
>
> [image: facebook]
> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct1_0/1>
>  [image: twitter]
> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct2_0/1>
>  [image: linkedin]
> <http://discover.360pi.com/acton/ct/9666/e-004e-1406/Bct/l-tst/l-tst:2/ct3_0/1>
>  [image: http://www.360pi.com/] <http://www.360pi.com/>
> <http://www.cnbc.com/id/101318146>
> <http://abcnews.go.com/blogs/business/2013/11/black-friday-discounts-may-be-an-illusion/>
> <http://www.forbes.com/sites/barbarathau/2013/11/28/how-amazon-stack-ups-price-wise-against-big-chains-on-5-popular-holiday-products/>
> <http://www.obj.ca/Local/2014-04-29/article-3706308/TUC-tops-list-of-Ottawa%26rsquo%3Bs-Fastest-Growing-Companies/1>
> <http://360pi.com/press_release/deloitte-names-360pi-as-one-of-canadas-companies-to-watch-in-the-2013-deloitte-technology-fast-50tm-awards/>
> <http://360pi.com/press_release/360pi-recognized-as-one-of-ottawas-top-10-employers/>
> <http://360pi.com/press_release/360pi-recognized-with-prestigious-red-herring-top-100-north-america-award/>
>

Mime
View raw message