[
https://issues.apache.org/jira/browse/MESOS-6409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15584421#comment-15584421
]
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.
try:
#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?
Regards.
Ron
> 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=127.0.0.1:5050
> Failed to get the master state: Invalid header value '127.0.0.1:5050\n'
> Master log shows:
> I1017 21:08:28.685926 70112 http.cpp:381] HTTP GET for /master/state from
> 127.0.0.1:50526 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 127.0.0.1 and http, also errors out.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)