Ronald Petty commented on MESOS-6409:

I dug around a little, a fix seems to be to string the newline.

sudo vi $(which mesos-ps)

# Get master info.
      #was master = resolve(options.master)
      master = str.strip(resolve(options.master))
    except Exception as e:
      fatal('Failed to get the master: %s' % str(e))

I am on Ubuntu 16.04.1.  Unclear what the cause is.  Should I do a PR for this? 
 Anyone else having a similar issue?



> mesos-ps - Invalid header value
> -------------------------------
>                 Key: MESOS-6409
>                 URL: https://issues.apache.org/jira/browse/MESOS-6409
>             Project: Mesos
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 1.0.1
>         Environment: Linux
>            Reporter: Ronald Petty
> Fresh install on Ubuntu 16.04.  Follow posix instructions then install libz.
> user@nodea:~$ mesos-ps --master=
> Failed to get the master state: Invalid header value '\n'
> Master log shows:
> I1017 21:08:28.685926 70112 http.cpp:381] HTTP GET for /master/state from 
> with User-Agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; 
> rv:49.0) Gecko/20100101 Firefox/49.0'
> If you use 'curl' it works:
> curl localhost:5050/state.json
> I also tried and http, also errors out.

This message was sent by Atlassian JIRA

Reply via email to